/* =========================================================
   UPQON — Clean Light Design System
   Portable, WordPress-ready stylesheet. No framework deps.
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Color */
  --bg: #F5F7FB;
  --surface: #FFFFFF;
  --surface-alt: #EDF1F8;
  --text: #0E1726;
  --text-muted: #475067;
  --text-faint: #7A8599;
  --accent: #2563FF;
  --accent-bright: #4D8DFF;
  --accent-soft: #EEF3FF;
  --border: rgba(37, 99, 255, 0.10);
  --border-strong: rgba(37, 99, 255, 0.22);
  --shadow: 0 10px 30px -14px rgba(14, 23, 38, 0.14);
  --shadow-lg: 0 24px 50px -22px rgba(14, 23, 38, 0.20);

  /* Type */
  --font-head: 'Manrope', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Spacing rhythm */
  --space-section: clamp(4rem, 12vh, 9rem);
  --container: 1200px;
  --radius: 14px;
  --radius-lg: 22px;

  /* Motion */
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --dur: 0.5s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-muted);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
h4 { font-size: 1.25rem; }
p { max-width: 64ch; }
.lead { font-size: 1.2rem; color: var(--text-muted); max-width: 60ch; }

.eyebrow, .label-mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.cta-banner .eyebrow {
    color: #fff;
}

.gradient-text {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-bright) 55%, #6BA6FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: var(--space-section) 0; position: relative; overflow-x: clip; }
.section--tight { padding: clamp(3rem, 7vh, 5rem) 0; }
.section--alt { background: var(--surface-alt); }
.section--light { background: var(--surface); }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.center { text-align: center; }
.center .lead, .center p { margin-left: auto; margin-right: auto; }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2 { margin: 1rem 0 1.2rem; }
.muted { color: var(--text-muted); }

/* ---------- Background atmospherics ---------- */
.bg-orb {
  position: absolute; pointer-events: none; z-index: 0;
  border-radius: 50%; filter: blur(80px); opacity: 0.22;
}
.bg-orb--blue { background: radial-gradient(circle, rgba(37,99,255,0.45), transparent 70%); }
.grid-overlay {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(37,99,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,255,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.section > .container { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-head); font-weight: 700; font-size: 0.98rem;
  letter-spacing: -0.01em; padding: 0.95rem 1.6rem; border-radius: 999px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  min-height: 48px; border: 1px solid transparent; cursor: pointer;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 10px 24px -8px rgba(37,99,255,0.5);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--accent-bright); box-shadow: 0 16px 34px -8px rgba(77,141,255,0.6); }
.btn-secondary {
  background: var(--surface); color: var(--text); border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); transform: translateY(-2px); }
.btn-ghost { color: var(--text-muted); padding: 0.6rem 0; }
.btn-ghost:hover { color: var(--text); }
.btn-light { background: var(--accent); color: #fff; }
.btn-light:hover { background: var(--accent-bright); transform: translateY(-2px); }
.btn-outline-light { border-color: var(--border-strong); color: var(--text); background: var(--surface); }
.btn-outline-light:hover { border-color: var(--accent); color: var(--accent); }
.btn .arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-head); font-weight: 700; color: var(--accent); font-size: 0.95rem;
}
.link-arrow:hover { color: var(--text); }
.link-arrow .arrow { transition: transform var(--dur) var(--ease); }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.1rem 0; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), padding var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border); padding: 0.7rem 0; box-shadow: var(--shadow);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.wordmark {
  font-family: var(--font-head); font-weight: 800; font-size: 1.4rem;
  letter-spacing: -0.04em; color: var(--text); display: inline-flex; align-items: baseline;
}
.wordmark span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 0.35rem; }
.nav-item {
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; color: var(--text-muted);
  padding: 0.55rem 0.95rem; border-radius: 999px; transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.nav-item:hover, .nav-item.active { color: var(--text); background: var(--accent-soft); }
.nav-item .caret { font-size: 0.7rem; opacity: 0.7; }
.nav-cta { display: flex; align-items: center; gap: 0.75rem; }
.mobile-toggle {
  display: none; width: 44px; height: 44px; position: relative; border-radius: 10px;
}
.mobile-toggle span, .mobile-toggle span::before, .mobile-toggle span::after {
  content: ''; position: absolute; left: 50%; width: 22px; height: 2px; background: var(--text);
  transform: translateX(-50%); transition: transform var(--dur) var(--ease), opacity 0.2s;
}
.mobile-toggle span::before { top: -7px; }
.mobile-toggle span::after { top: 7px; }
.mobile-toggle.open span { background: transparent; }
.mobile-toggle.open span::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.mobile-toggle.open span::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

/* Service dropdown */
.has-dropdown { position: relative; }
.service-dropdown {
  position: absolute; top: calc(100% + 0.6rem); left: 50%; transform: translateX(-50%) translateY(8px);
  width: 620px; background: rgba(255,255,255,0.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); box-shadow: var(--shadow-lg);
}
.has-dropdown:hover .service-dropdown, .has-dropdown:focus-within .service-dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown-link { display: flex; gap: 0.75rem; padding: 0.75rem; border-radius: 12px; transition: background 0.25s; }
.dropdown-link:hover { background: var(--accent-soft); }
.dropdown-link .di { width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); }
.dropdown-link .dt { font-family: var(--font-head); font-weight: 700; color: var(--text); font-size: 0.95rem; }
.dropdown-link .dd { font-size: 0.82rem; color: var(--text-faint); margin-top: 0.1rem; }

/* Mobile nav */
.mobile-nav {
  position: fixed; inset: 0; z-index: 99; background: var(--bg);
  padding: 6rem 1.5rem 2rem; transform: translateX(100%); transition: transform 0.45s var(--ease);
  overflow-y: auto; visibility: hidden;
}
.mobile-nav.open { transform: translateX(0); visibility: visible; }
.mobile-nav .m-group { border-bottom: 1px solid var(--border); }
.mobile-nav .m-link {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-head); font-weight: 700; color: var(--text); font-size: 1.3rem; padding: 1.1rem 0;
}
.mobile-nav .m-sub { display: none; padding-bottom: 1rem; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.mobile-nav .m-group.open .m-sub { display: grid; }
.mobile-nav .m-sub a { color: var(--text-muted); font-size: 0.95rem; padding: 0.4rem 0; }
.mobile-nav .m-sub a:hover { color: var(--accent); }
.mobile-nav .btn { width: 100%; margin-top: 1.5rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 11rem 0 5rem; overflow: hidden; overflow-x: clip; background: radial-gradient(circle at 82% 18%, rgba(37,99,255,0.07), transparent 55%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
.hero h1 { margin: 1.4rem 0 1.6rem; }
.hero .lead { font-size: 1.18rem; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero-visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.hero-visual img { width: 100%; }
.hero-visual::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(238,243,255,0.4));
}
.hero-stats { display: flex; gap: 2.5rem; margin-top: 3rem; flex-wrap: wrap; }
.stat .num { font-family: var(--font-head); font-weight: 800; color: var(--text); font-size: 2rem; letter-spacing: -0.03em; }
.stat .lbl { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-faint); letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.08em; color: var(--text-faint); display: flex; gap: 0.5rem; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { opacity: 0.5; }
.breadcrumbs .current { color: var(--text-muted); }

/* ---------- Cards: Service ---------- */
.service-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.2rem;
  position: relative; overflow: hidden; transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  display: flex; flex-direction: column; height: 100%;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translateX(-100%); transition: transform 0.7s var(--ease);
}
.service-card:hover { transform: translateY(-8px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: translateX(100%); }
.service-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); margin-bottom: 1.4rem; }
.service-card h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.service-card p { font-size: 0.97rem; }
.service-card .link-arrow { margin-top: auto; padding-top: 1.4rem; }

/* Feature card (with image) */
.feature-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; height: 100%; transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.feature-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.feature-card .fc-media { aspect-ratio: 16/10; position: relative; overflow: hidden; }
.feature-card .fc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.feature-card:hover .fc-media img { transform: scale(1.05); }
.feature-card .fc-body { padding: 1.6rem; }
.feature-card .fc-body h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.feature-card .fc-body p { font-size: 0.95rem; }

/* ---------- Value / Why cards ---------- */
.value-card { padding: 2rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); height: 100%; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.value-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.value-card .num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); letter-spacing: 0.15em; }
.value-card h3 { font-size: 1.2rem; margin: 0.8rem 0 0.6rem; }
.value-card p { font-size: 0.95rem; }

/* ---------- Process steps ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.process-step { position: relative; padding: 2rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); height: 100%; }
.process-step .step-num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); letter-spacing: 0.15em; }
.process-step h3 { font-size: 1.2rem; margin: 0.7rem 0 0.6rem; }
.process-step p { font-size: 0.93rem; }
.process-step .big-num { position: absolute; top: 1.2rem; right: 1.4rem; font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: rgba(37,99,255,0.14); }

/* ---------- Showcase / AI ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.showcase-media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); position: relative; box-shadow: var(--shadow); }
.showcase-media img { width: 100%; }
.feature-list { display: grid; gap: 1rem; margin-top: 1.8rem; }
.feature-list li { display: flex; gap: 0.8rem; align-items: flex-start; }
.feature-list .check { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); margin-top: 2px; }
.feature-list .check svg { width: 14px; height: 14px; }
.feature-list b { color: var(--text); font-family: var(--font-head); }

/* ---------- Industries chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.chip { padding: 0.7rem 1.3rem; border: 1px solid var(--border); border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; color: var(--text-muted); transition: all 0.3s var(--ease); background: var(--surface); }
.chip:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }

/* ---------- Portfolio cards ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.5rem; }
.filter-btn { padding: 0.6rem 1.2rem; border-radius: 999px; border: 1px solid var(--border); font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; color: var(--text-muted); transition: all 0.3s var(--ease); background: var(--surface); }
.filter-btn:hover { color: var(--text); border-color: var(--border-strong); }
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.project-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--surface); position: relative; transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.project-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.project-card .pc-media { aspect-ratio: 4/3; position: relative; overflow: hidden; }
.project-card .pc-media .ph { position: absolute; inset: 0; display: grid; place-items: center; }
.project-card .pc-media .ph .tag { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.15em; color: rgba(255,255,255,0.85); text-transform: uppercase; }
.project-card .pc-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 65%, rgba(14,23,38,0.18)); }
.project-card .pc-cat { position: absolute; top: 1rem; left: 1rem; z-index: 2; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); background: rgba(255,255,255,0.9); padding: 0.35rem 0.7rem; border-radius: 999px; border: 1px solid var(--border); }
.project-card .pc-body { padding: 1.4rem; }
.project-card .pc-body h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.project-card .pc-body p { font-size: 0.9rem; }
.project-card .pc-link { position: absolute; inset: 0; z-index: 3; }

/* Portfolio placeholder gradients (colorful, brand-aligned) */
.ph-grad-1 { background: linear-gradient(135deg, #4D8DFF, #2563FF); }
.ph-grad-2 { background: linear-gradient(135deg, #5B9BFF, #3B6BFF); }
.ph-grad-3 { background: linear-gradient(135deg, #7B8BFF, #5B6BFF); }
.ph-grad-4 { background: linear-gradient(135deg, #3BC4B0, #2BA090); }
.ph-grad-5 { background: linear-gradient(135deg, #B07BFF, #8B5BFF); }
.ph-grad-6 { background: linear-gradient(135deg, #5BAEFF, #3B8BFF); }

/* ---------- Blog cards ---------- */
.article-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; height: 100%; transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.article-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.article-card .ac-media { aspect-ratio: 16/10; position: relative; overflow: hidden; }
.article-card .ac-media .ph { position: absolute; inset: 0; display: grid; place-items: center; }
.article-card .ac-media .ph .tag { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; color: rgba(255,255,255,0.85); text-transform: uppercase; }
.article-card .ac-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.article-card .ac-meta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-faint); letter-spacing: 0.08em; display: flex; gap: 0.8rem; margin-bottom: 0.7rem; }
.article-card .ac-cat { color: var(--accent); }
.article-card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; line-height: 1.2; }
.article-card p { font-size: 0.93rem; }
.article-card .link-arrow { margin-top: auto; padding-top: 1.2rem; }

/* Featured article */
.featured-article { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.featured-article .fa-media { aspect-ratio: auto; min-height: 100%; position: relative; }
.featured-article .fa-media .ph { position: absolute; inset: 0; display: grid; place-items: center; }
.featured-article .fa-body { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.featured-article .fa-body h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 1rem 0; }

/* ---------- FAQ accordion ---------- */
.faq { display: grid; gap: 0.8rem; max-width: 760px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.faq-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem 1.5rem; font-family: var(--font-head); font-weight: 700; color: var(--text); font-size: 1.05rem; text-align: left; }
.faq-trigger .icon { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border-strong); display: grid; place-items: center; color: var(--accent); transition: transform var(--dur) var(--ease), background var(--dur) var(--ease); font-size: 1.1rem; line-height: 1; }
.faq-item.is-open .faq-trigger .icon { transform: rotate(45deg); background: var(--accent); color: #fff; border-color: var(--accent); }
.faq-panel { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }
.faq-panel-inner { padding: 0 1.5rem 1.4rem; color: var(--text-muted); font-size: 0.98rem; }

/* ---------- CTA banner ---------- */
.cta-banner { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-strong); padding: clamp(1.5rem, 6vw, 5rem); text-align: center; background: linear-gradient(135deg, var(--accent), var(--accent-bright)); color: #fff; box-shadow: var(--shadow-lg); }
.cta-banner h2 { margin: 1rem auto 1.2rem; max-width: 18ch; color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.92); }
.cta-banner .lead { color: rgba(255,255,255,0.92); margin: 0 auto 2rem; max-width: 52ch;  }
.cta-banner .btn { margin: 0 0.4rem 0.8rem; }
.cta-banner .btn-primary { background: #fff; color: var(--accent); box-shadow: 0 10px 24px -8px rgba(0,0,0,0.25); }
.cta-banner .btn-primary:hover { background: var(--surface-alt); color: var(--accent); }
.cta-banner .btn-secondary { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.5); }
.cta-banner .btn-secondary:hover { background: rgba(255,255,255,0.22); color: #fff; border-color: #fff; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; color: var(--text); }
.field .req { color: var(--accent); }
.input, .textarea, .select {
  width: 100%; padding: 0.9rem 1rem; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--border); color: var(--text); transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  font-size: 1rem;
}
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent-bright); box-shadow: 0 0 0 3px rgba(37,99,255,0.14); }
.textarea { resize: vertical; min-height: 140px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232563FF' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.field-error { color: #E04545; font-size: 0.82rem; min-height: 1em; }
.form-success { display: none; padding: 1.5rem; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--border-strong); color: var(--text); margin-top: 1.5rem; }
.form-success.show { display: block; }

/* Contact info */
.contact-info { display: grid; gap: 1.2rem; }
.info-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.4rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.info-card .ii { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); }
.info-card h4 { font-size: 1rem; margin-bottom: 0.2rem; }
.info-card p { font-size: 0.92rem; }
.info-card a { color: var(--accent); }

/* WhatsApp placeholder */
.whatsapp-box { border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); padding: 2rem; text-align: center; background: var(--accent-soft); }
.whatsapp-box .wa-icon { width: 52px; height: 52px; margin: 0 auto 1rem; border-radius: 16px; background: var(--surface); display: grid; place-items: center; color: var(--accent); box-shadow: var(--shadow); }
.whatsapp-box h4 { color: var(--text); }
.whatsapp-box p { color: var(--text-muted); }
.whatsapp-box .badge { display: inline-block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); border: 1px solid var(--border); padding: 0.3rem 0.7rem; border-radius: 999px; margin-top: 0.8rem; background: var(--surface); }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 4rem 0 2rem; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand .wordmark { margin-bottom: 1.2rem; }
.footer-brand p { font-size: 0.95rem; max-width: 32ch; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-faint); font-weight: 500; margin-bottom: 1.2rem; }
.footer-col ul { display: grid; gap: 0.7rem; }
.footer-col a { color: var(--text-muted); font-size: 0.95rem; transition: color 0.25s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; padding-top: 1.8rem; border-top: 1px solid var(--border); font-size: 0.88rem; color: var(--text-faint); }
.footer-social { display: flex; gap: 0.6rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-muted); background: var(--surface); transition: all 0.3s var(--ease); }
.footer-social a:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }

/* ---------- Floating widgets ---------- */
.back-to-top { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 90; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all var(--dur) var(--ease); box-shadow: 0 10px 24px -8px rgba(37,99,255,0.5); }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-bright); transform: translateY(-2px); }

.chat-widget { position: fixed; left: 1.5rem; bottom: 1.5rem; z-index: 90; }
.chat-toggle { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(37,99,255,0.5); transition: transform var(--dur) var(--ease); }
.chat-toggle:hover { transform: scale(1.06); background: var(--accent-bright); }
.chat-bubble { position: absolute; bottom: 70px; left: 0; width: 280px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all var(--dur) var(--ease); box-shadow: var(--shadow-lg); }
.chat-bubble.open { opacity: 1; visibility: visible; transform: translateY(0); }
.chat-bubble h4 { font-size: 1rem; margin-bottom: 0.4rem; }
.chat-bubble p { font-size: 0.85rem; margin-bottom: 0.9rem; color: var(--text-muted); }

/* ---------- Page hero (interior) ---------- */
.page-hero { position: relative; padding: 10rem 0 4rem; overflow: hidden; overflow-x: clip; background: radial-gradient(circle at 18% 12%, rgba(37,99,255,0.07), transparent 55%); }
.page-hero h1 { margin: 1.2rem 0 1.4rem; max-width: 16ch; }
.page-hero .lead { max-width: 56ch; }

/* ---------- Detail layout (service / case study / article) ---------- */
.detail-hero { padding: 9rem 0 3rem; overflow-x: clip; background: radial-gradient(circle at 88% 8%, rgba(37,99,255,0.06), transparent 55%); }
.detail-meta { display: flex; flex-wrap: wrap; gap: 1.5rem; font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-faint); letter-spacing: 0.08em; margin-bottom: 1.5rem; }
.detail-meta span b { color: var(--accent); font-weight: 500; }
.detail-feature { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); margin: 2rem 0; position: relative; box-shadow: var(--shadow); }
.detail-feature img, .detail-feature .ph { width: 100%; }
.prose { max-width: 760px; }
.prose h2 { margin: 2.5rem 0 1rem; }
.prose h3 { margin: 2rem 0 0.8rem; font-size: 1.4rem; }
.prose p { margin-bottom: 1.2rem; }
.prose ul { margin: 1rem 0 1.5rem; display: grid; gap: 0.6rem; }
.prose ul li { padding-left: 1.5rem; position: relative; }
.prose ul li::before { content: ''; position: absolute; left: 0; top: 0.7em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-bright); }

.case-section { padding: 3rem 0; border-bottom: 1px solid var(--border); }
.case-section .case-label { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.6rem; }
.case-section h2 { margin-bottom: 1rem; }

/* Sidebar nav (service detail sticky) */
.detail-layout { display: grid; grid-template-columns: 240px 1fr; gap: 3rem; align-items: start; }
.side-nav { position: sticky; top: 100px; display: grid; gap: 0.3rem; }
.side-nav a { padding: 0.6rem 0.9rem; border-left: 2px solid var(--border); font-size: 0.92rem; color: var(--text-muted); transition: all 0.25s; border-radius: 0 8px 8px 0; }
.side-nav a:hover, .side-nav a.active { color: var(--accent); border-color: var(--accent-bright); background: var(--accent-soft); }

/* Related grid */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 3rem; }
.pagination a, .pagination span { min-width: 44px; height: 44px; padding: 0 0.8rem; border-radius: 10px; border: 1px solid var(--border); display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; color: var(--text-muted); transition: all 0.25s; background: var(--surface); }
.pagination a:hover { color: var(--text); border-color: var(--border-strong); }
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Search */
.search-box { position: relative; max-width: 420px; }
.search-box input { width: 100%; padding: 0.9rem 1rem 0.9rem 3rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.search-box input:focus { outline: none; border-color: var(--accent-bright); box-shadow: 0 0 0 3px rgba(37,99,255,0.14); }
.search-box .si { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--text-faint); }

/* Newsletter */
.newsletter { display: flex; gap: 0.6rem; max-width: 460px; }
.newsletter input { flex: 1; padding: 0.9rem 1.2rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.newsletter input:focus { outline: none; border-color: var(--accent-bright); box-shadow: 0 0 0 3px rgba(37,99,255,0.14); }

/* ---------- Scroll reveal ---------- */
.scroll-reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.scroll-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .scroll-reveal { opacity: 1; transform: none; }
}

.contact-us-box{
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}
/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .contact-us-box { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; }
  .showcase { grid-template-columns: 1fr; gap: 2rem; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .project-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .featured-article { grid-template-columns: 1fr; }
  .featured-article .fa-media { min-height: 280px; }
  .detail-layout { grid-template-columns: 1fr; }
  .side-nav { position: static; flex-direction: row; overflow-x: auto; }
  .service-dropdown { display: none; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta .btn { display: none; }
  .mobile-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .project-grid, .related-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { padding: 8rem 0 3rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-banner .btn { width: 100%; }
  .hero-stats { gap: 1.5rem; }
  .stat .num { font-size: 1.6rem; }
}
@media (max-width: 480px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* Focus visibility for keyboard */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent-bright); outline-offset: 3px; border-radius: 6px;
}

.contact-form-box form {
    display: grid;
    gap: 1.2rem;
}
.contact-form-box .field > p {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.contact-form-box .form-grid {
    gap: 1.6rem;
}
.contact-form-box .textarea {
    height: 140px;
}