
/* === 01-tokens.css === */
/* ==========================================================================
   01 · DESIGN TOKENS — Merlin India Tech
   Brand reference: logo cobalt blue (#1A6CBE). Warm saffron accent is used
   sparingly as a counterpoint (a nod to India) — no neon, no purple clichés.
   ========================================================================== */

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-var-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/mono-var-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* — Ink (dark surfaces) — */
  --ink-950: #04080f;
  --ink-900: #070d1a;
  --ink-850: #0a1222;
  --ink-800: #0e182c;
  --ink-750: #13203a;
  --ink-700: #1a2a48;

  /* — Brand cobalt (from logo) — */
  --brand-700: #0f4f9e;
  --brand-600: #1662c4;
  --brand-500: #2476e0;
  --brand-400: #4b93f2;
  --brand-300: #84b8ff;
  --brand-200: #bcd8ff;
  --brand-100: #e6f0ff;

  /* — Supporting accents — */
  --teal-400: #3ec6d4;
  --teal-300: #7fdde6;
  --saffron-500: #f58a2a;
  --saffron-400: #ff9f45;
  --mint-400: #36d39a;

  /* — Light surfaces — */
  --paper: #f4f6fb;
  --paper-2: #eaeef6;
  --surface: #ffffff;

  /* — Text — */
  --text-strong: #0a1426;
  --text: #34445e;
  --text-muted: #5a6a84;
  --on-dark-strong: #eef3fb;
  --on-dark: #b2bfd4;
  --on-dark-muted: #8796b0;

  /* — Lines — */
  --line: rgba(10, 20, 38, 0.09);
  --line-strong: rgba(10, 20, 38, 0.16);
  --line-dark: rgba(150, 180, 230, 0.12);
  --line-dark-strong: rgba(150, 180, 230, 0.22);

  /* — Gradients — */
  --grad-brand: linear-gradient(120deg, #2476e0 0%, #3ec6d4 100%);
  --grad-text: linear-gradient(100deg, #84b8ff 0%, #4b93f2 38%, #3ec6d4 78%, #7fdde6 100%);
  --grad-text-light: linear-gradient(100deg, #1662c4 0%, #2476e0 45%, #1aa6b8 100%);
  --grad-warm: linear-gradient(120deg, #ff9f45 0%, #f58a2a 100%);

  /* — Typography — */
  --font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --fs-xs: 0.78rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: clamp(1.05rem, 0.98rem + 0.3vw, 1.18rem);
  --fs-lg: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);
  --fs-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  --fs-2xl: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --fs-3xl: clamp(2.4rem, 1.5rem + 3.8vw, 4.6rem);
  --fs-hero: clamp(2.6rem, 1.4rem + 5vw, 5.6rem);

  /* — Spacing & layout — */
  --container: 1240px;
  --container-wide: 1440px;
  --gutter: clamp(1.15rem, 0.6rem + 2.4vw, 2.5rem);
  --section-y: clamp(4.5rem, 3rem + 6vw, 9rem);
  --header-h: 76px;

  /* — Radius — */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 36px;
  --r-pill: 999px;

  /* — Shadows — */
  --shadow-sm: 0 1px 2px rgba(10, 20, 38, 0.06), 0 2px 8px rgba(10, 20, 38, 0.05);
  --shadow-md: 0 8px 24px -8px rgba(10, 20, 38, 0.14), 0 2px 6px rgba(10, 20, 38, 0.05);
  --shadow-lg: 0 30px 60px -20px rgba(10, 30, 70, 0.28), 0 10px 24px -12px rgba(10, 20, 38, 0.12);
  --shadow-glow: 0 20px 60px -20px rgba(36, 118, 224, 0.55);

  /* — Motion — */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur: 320ms;
  --dur-slow: 700ms;

  color-scheme: light;
}

/* === 02-base.css === */
/* ==========================================================================
   02 · BASE — reset, typography, layout primitives, buttons
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }

img, svg, video, canvas, picture { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, h5, h6, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"], .list-reset { list-style: none; margin: 0; padding: 0; }
:where(h1, h2, h3, h4) {
  font-family: var(--font-display);
  color: var(--text-strong);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 650;
  text-wrap: balance;
}
p { text-wrap: pretty; }
strong { color: var(--text-strong); font-weight: 600; }
::selection { background: var(--brand-500); color: #fff; }

/* Focus: visible, branded, keyboard-only */
:focus-visible {
  outline: 2px solid var(--brand-400);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.75rem 1.1rem;
  background: var(--brand-500);
  color: #fff;
  font-weight: 600;
  border-radius: var(--r-sm);
  transition: top var(--dur) var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.container--wide { width: min(100% - 2 * var(--gutter), var(--container-wide)); }
.container--narrow { width: min(100% - 2 * var(--gutter), 880px); }

.section { position: relative; padding-block: var(--section-y); isolation: isolate; }
.section--tight { padding-block: calc(var(--section-y) * 0.65); }
.section--paper { background: var(--paper); }
.section--white { background: var(--surface); }
.section--dark {
  background: var(--ink-900);
  color: var(--on-dark);
  color-scheme: dark;
}
.section--dark :where(h1, h2, h3, h4, strong) { color: var(--on-dark-strong); }

/* Subtle blueprint grid used on dark surfaces */
.bg-grid::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
  pointer-events: none;
}
.bg-grid--light::before {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
}

/* ---------- Section heading system ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-600);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
}
.section--dark .eyebrow, .on-dark .eyebrow { color: var(--brand-300); }
.eyebrow--plain::before { display: none; }

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head h2 { font-size: var(--fs-2xl); margin-top: 1rem; }
.section-head p { margin-top: 1.15rem; font-size: var(--fs-md); color: var(--text-muted); max-width: 640px; }
.section-head--center p { margin-inline: auto; }
.section--dark .section-head p { color: var(--on-dark); }
.section-head--split {
  max-width: none;
  display: grid;
  gap: 1.5rem 4rem;
  align-items: end;
}
@media (min-width: 960px) {
  .section-head--split { grid-template-columns: 1.15fr 1fr; }
  .section-head--split p { margin-top: 0; }
}

.text-grad {
  background: var(--grad-text-light);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section--dark .text-grad, .on-dark .text-grad, .hero .text-grad { background-image: var(--grad-text); }
h1 em, h2 em { font-style: normal; }

.lead { font-size: var(--fs-md); line-height: 1.7; color: var(--text-muted); }
.section--dark .lead { color: var(--on-dark); }
.mono { font-family: var(--font-mono); }

/* ---------- Icons ---------- */
.i {
  width: 1.25em; height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.i--sm { width: 1em; height: 1em; }
.i--lg { width: 1.6em; height: 1.6em; }

/* Icon badge echoing the logo's pin-shaped ring */
.badge-ico {
  --size: 52px;
  position: relative;
  display: grid;
  place-items: center;
  width: var(--size); height: var(--size);
  border-radius: 50% 50% 50% 14%;
  transform: rotate(-45deg);
  background: linear-gradient(145deg, var(--brand-100), #fff);
  border: 1px solid rgba(36, 118, 224, 0.18);
  color: var(--brand-600);
  box-shadow: 0 8px 20px -10px rgba(36, 118, 224, 0.5);
  transition: transform var(--dur) var(--ease-out), background var(--dur);
}
.badge-ico > .i { transform: rotate(45deg); width: 46%; height: 46%; }
.section--dark .badge-ico, .on-dark .badge-ico {
  background: linear-gradient(145deg, rgba(36, 118, 224, 0.22), rgba(36, 118, 224, 0.05));
  border-color: var(--line-dark-strong);
  color: var(--brand-300);
  box-shadow: none;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brand-500);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.85rem 1.5rem;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid transparent;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out),
    background-color var(--dur), border-color var(--dur), color var(--dur);
  white-space: nowrap;
}
.btn .i { transition: transform var(--dur) var(--ease-out); }
.btn:hover .i--arrow { transform: translateX(4px); }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--primary {
  background: linear-gradient(120deg, var(--brand-600), var(--brand-500) 55%, #2f8ae8);
  box-shadow: 0 10px 30px -10px rgba(36, 118, 224, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn--primary::after {
  /* sheen sweep */
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 800ms var(--ease-out);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(36, 118, 224, 0.8), inset 0 1px 0 rgba(255,255,255,.2); }
.btn--primary:hover::after { transform: translateX(120%); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-strong);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--brand-500); color: var(--brand-600); transform: translateY(-2px); }
.section--dark .btn--ghost, .on-dark .btn--ghost, .hero .btn--ghost {
  color: var(--on-dark-strong);
  border-color: var(--line-dark-strong);
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.section--dark .btn--ghost:hover, .on-dark .btn--ghost:hover, .hero .btn--ghost:hover {
  border-color: var(--brand-300); color: #fff; background: rgba(255,255,255,.08);
}
.btn--light { background: #fff; color: var(--ink-900); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -14px rgba(0,0,0,.5); }
.btn--sm { min-height: 42px; padding: 0.55rem 1.1rem; font-size: 0.88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }

/* Inline text link with animated arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--brand-600);
  transition: gap var(--dur) var(--ease-out), color var(--dur);
}
.link-arrow:hover { gap: 0.75rem; }
.section--dark .link-arrow, .on-dark .link-arrow { color: var(--brand-300); }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.85rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
}
.section--dark .chip, .on-dark .chip, .hero .chip {
  color: var(--on-dark);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-dark);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 0.55rem; }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint-400); box-shadow: 0 0 0 4px rgba(54, 211, 154, 0.18); flex: none; }

/* Check list */
.checklist { display: grid; gap: 0.8rem; list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 0.75rem; align-items: flex-start; }
.checklist li .i { color: var(--brand-500); margin-top: 0.2em; }
.section--dark .checklist li .i { color: var(--teal-400); }

/* === 03-header.css === */
/* ==========================================================================
   03 · HEADER, MEGA MENU, MOBILE NAV, FOOTER
   ========================================================================== */

.scroll-progress {
  position: fixed; inset: 0 0 auto 0;
  height: 2px; z-index: 120;
  pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%;
  background: var(--grad-brand);
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
}

/* ---------- Header shell ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--on-dark-strong);
  transition: background-color var(--dur) var(--ease-out), box-shadow var(--dur), transform 420ms var(--ease-out), border-color var(--dur);
  border-bottom: 1px solid transparent;
}
.site-header::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(7, 13, 26, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
  z-index: -1;
}
.site-header.is-scrolled { border-bottom-color: var(--line-dark); box-shadow: 0 10px 30px -20px rgba(0,0,0,.6); }
.site-header.is-scrolled::before,
.site-header.menu-open::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 0.7rem; flex: none; }
.brand-mark { width: 44px; height: 44px; transition: transform 600ms var(--ease-out); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.04); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  color: var(--on-dark-strong);
}
.brand-name b { font-weight: 400; color: var(--brand-300); }
.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-top: 3px;
}

/* ---------- Desktop nav ---------- */
.nav { display: none; margin-inline: auto; }
.nav-list { display: flex; align-items: center; gap: 0.1rem; list-style: none; margin: 0; padding: 0; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0.72rem;
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--on-dark);
  transition: color var(--dur-fast), background-color var(--dur-fast);
  white-space: nowrap;
}
.nav-link:hover, .has-mega.is-open > .nav-link { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav-link.is-active { color: #fff; }
.nav-link.is-active::after {
  content: "";
  position: absolute; left: 50%; bottom: 2px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--saffron-400);
  transform: translateX(-50%);
}
.nav-chev { transition: transform var(--dur) var(--ease-out); opacity: 0.7; }
.has-mega.is-open .nav-chev { transform: rotate(180deg); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.header-cta .cta-long { display: none; }
@media (max-width: 479px) { .header-cta { display: none; } }

/* ---------- Mega panel ---------- */
.has-mega { position: static; }
.mega {
  position: absolute;
  top: calc(100% - 6px);
  left: 50%;
  width: min(1080px, calc(100vw - 2 * var(--gutter)));
  padding-top: 12px;
  transform: translate(-50%, 10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 260ms var(--ease-out), transform 360ms var(--ease-out), visibility 0s linear 360ms;
}
.mega--compact { width: min(760px, calc(100vw - 2 * var(--gutter))); }
.has-mega.is-open .mega,
.no-js .has-mega:hover .mega,
.no-js .has-mega:focus-within .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}
.mega-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--r-lg);
  background: rgba(10, 18, 34, 0.94);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid var(--line-dark-strong);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255,255,255,.05);
}
.mega:not(.mega--compact) .mega-inner { grid-template-columns: 1fr 280px; }
.mega-main { padding: 0.5rem 0.25rem; }
.mega-intro {
  font-size: 0.86rem;
  color: var(--on-dark-muted);
  padding: 0.25rem 0.85rem 0.85rem;
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 0.6rem;
}
.mega-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.15rem; list-style: none; padding: 0; margin: 0; }
.mega-link {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.8rem 0.85rem;
  border-radius: var(--r-sm);
  transition: background-color var(--dur-fast);
}
.mega-link:hover, .mega-link:focus-visible { background: rgba(255, 255, 255, 0.05); }
.mega-ico {
  display: grid; place-items: center;
  width: 38px; height: 38px; flex: none;
  border-radius: 11px;
  color: var(--brand-300);
  background: rgba(36, 118, 224, 0.12);
  border: 1px solid rgba(132, 184, 255, 0.14);
  transition: transform var(--dur) var(--ease-out), color var(--dur), background var(--dur);
}
.mega-ico .i { width: 18px; height: 18px; }
.mega-link:hover .mega-ico { transform: translateY(-2px) rotate(-6deg); color: #fff; background: var(--brand-500); }
.mega-title { display: block; font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; color: var(--on-dark-strong); letter-spacing: -0.01em; }
.mega-text { display: block; font-size: 0.8rem; color: var(--on-dark-muted); margin-top: 2px; line-height: 1.45; }

.mega-feature {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  padding: 1.3rem;
  border-radius: var(--r-md);
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(36, 118, 224, 0.45), transparent 60%),
    radial-gradient(90% 60% at 0% 100%, rgba(62, 198, 212, 0.18), transparent 60%),
    var(--ink-800);
  border: 1px solid var(--line-dark);
  isolation: isolate;
}
.mega-feature-img { position: absolute; inset: 0; z-index: -1; }
.mega-feature-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.mega-feature.has-img::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 15%, rgba(7, 13, 26, 0.95) 75%);
}
.mega-feature-orb {
  position: absolute; top: 24px; right: 24px;
  width: 92px; height: 92px; border-radius: 50%;
  border: 1px solid rgba(132, 184, 255, 0.35);
  box-shadow: inset 0 0 40px rgba(36, 118, 224, 0.5), 0 0 0 14px rgba(36, 118, 224, 0.06), 0 0 0 30px rgba(36, 118, 224, 0.04);
}
.mega-kicker { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--saffron-400); }
.mega-feature-title { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: #fff; margin: 0.4rem 0 0.4rem; line-height: 1.25; letter-spacing: -0.02em; }
.mega-feature-text { font-size: 0.84rem; color: var(--on-dark); margin-bottom: 0.9rem; }

/* ---------- Burger ---------- */
.burger {
  position: relative;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-dark-strong);
  background: rgba(255, 255, 255, 0.04);
  display: grid; place-content: center; gap: 5px;
}
.burger span {
  display: block; width: 18px; height: 1.6px;
  background: var(--on-dark-strong);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* ---------- Mobile drawer ---------- */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: rgba(7, 13, 26, 0.98);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: var(--on-dark-strong);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.mobile-nav.is-open { opacity: 1; transform: none; }
.mobile-nav-inner {
  width: min(100% - 2 * var(--gutter), 640px);
  margin-inline: auto;
  padding: 1.25rem 0 calc(2rem + env(safe-area-inset-bottom));
  min-height: 100%;
  display: flex; flex-direction: column;
}
.m-list { list-style: none; margin: 0; padding: 0; }
.m-list > li { border-bottom: 1px solid var(--line-dark); }
.m-link {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: 1.05rem 0.25rem;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--on-dark-strong);
  text-align: left;
}
.m-toggle .i { transition: transform var(--dur) var(--ease-out); color: var(--brand-300); }
.m-toggle[aria-expanded="true"] .i { transform: rotate(45deg); }
.m-sub {
  list-style: none; margin: 0; padding: 0 0 0.75rem;
  display: grid; gap: 0.1rem;
}
.m-sub[hidden] { display: none; }
.m-sub a {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 0.5rem;
  border-radius: var(--r-xs);
  color: var(--on-dark);
  font-size: 0.97rem;
}
.m-sub a .i { color: var(--brand-300); }
.m-sub a:hover { background: rgba(255,255,255,.05); color: #fff; }
.m-foot { margin-top: auto; padding-top: 2rem; display: grid; gap: 0.9rem; }
.m-foot .btn { width: 100%; }
.m-contact { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--on-dark); font-size: 0.95rem; }
body.nav-locked { overflow: hidden; }

@media (min-width: 1280px) {
  .nav { display: block; }
  .burger, .mobile-nav { display: none !important; }
}
@media (min-width: 1480px) {
  .header-cta .cta-long { display: inline; }
  .header-cta .cta-short { display: none; }
  .nav-link { padding-inline: 0.85rem; font-size: 0.92rem; }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink-950);
  color: var(--on-dark);
  padding-top: clamp(4rem, 3rem + 4vw, 6.5rem);
  isolation: isolate;
}
.footer-glow {
  position: absolute; z-index: -1;
  width: 900px; height: 500px;
  left: 50%; top: -280px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(36, 118, 224, 0.28), transparent);
  pointer-events: none;
}
.footer-top { display: grid; gap: 3rem; }
.f-intro { margin-top: 1.25rem; max-width: 380px; font-size: 0.95rem; color: var(--on-dark-muted); }
.f-contact { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.7rem; font-size: 0.93rem; }
.f-contact li { display: flex; gap: 0.7rem; align-items: flex-start; }
.f-contact .i { color: var(--brand-300); margin-top: 0.25em; }
.f-contact a:hover { color: #fff; }
.f-social { display: flex; gap: 0.5rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.f-social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-dark-strong); transition: all var(--dur); }
.f-social a:hover { background: var(--brand-500); border-color: var(--brand-500); color: #fff; }
.f-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.5rem; }
.f-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-strong);
  margin-bottom: 1.1rem;
}
.f-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.f-col a { font-size: 0.92rem; color: var(--on-dark-muted); transition: color var(--dur-fast), padding var(--dur) var(--ease-out); }
.f-col a:hover { color: #fff; padding-left: 4px; }
.footer-word {
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 1rem + 10vw, 11rem);
  letter-spacing: -0.05em;
  line-height: 0.85;
  text-align: center;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(132, 184, 255, 0.16), rgba(132, 184, 255, 0.0) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  align-items: center; justify-content: space-between;
  padding: 1.6rem 0 calc(1.6rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-dark);
  font-size: 0.86rem;
  color: var(--on-dark-muted);
}
.f-legal { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.f-legal a:hover { color: #fff; }
@media (min-width: 720px) { .f-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .footer-top { grid-template-columns: 340px 1fr; gap: 4rem; } }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: clamp(1rem, 2vw, 1.75rem);
  bottom: calc(clamp(1rem, 2vw, 1.75rem) + env(safe-area-inset-bottom));
  z-index: 90;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(14, 24, 44, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-dark-strong);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(12px) scale(0.9);
  pointer-events: none;
  transition: opacity var(--dur), transform var(--dur) var(--ease-out), background var(--dur);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--brand-500); }

/* === 04-components.css === */
/* ==========================================================================
   04 · COMPONENTS — Cards, Accordions, Timeline, Modals, Forms, Stats
   ========================================================================== */

/* ---------- Surface Cards ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(1.4rem, 1.2rem + 1vw, 2.2rem);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(36, 118, 224, 0.28);
}
.section--dark .card, .on-dark .card {
  background: rgba(14, 24, 44, 0.7);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-color: var(--line-dark);
  box-shadow: none;
}
.section--dark .card:hover, .on-dark .card:hover {
  background: rgba(19, 32, 58, 0.85);
  border-color: var(--brand-400);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
}

/* Glassmorphism Panel */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.section--dark .glass-panel, .on-dark .glass-panel {
  background: rgba(10, 18, 34, 0.75);
  border-color: var(--line-dark-strong);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
}

/* ---------- Interactive Service Cards ---------- */
.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-card .badge-ico { margin-bottom: 1.4rem; }
.service-card h3 {
  font-size: var(--fs-lg);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}
.section--dark .service-card p { color: var(--on-dark-muted); }
.service-card .link-arrow { margin-top: auto; }

/* Large Asymmetrical Feature Card */
.feature-card-lg {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (min-width: 900px) {
  .feature-card-lg {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

/* ---------- Development Process Timeline ---------- */
.timeline {
  position: relative;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 800px) {
  .timeline {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
  }
}
.timeline-step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 2rem 1.6rem;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur);
}
.section--dark .timeline-step {
  background: rgba(14, 24, 44, 0.6);
  border-color: var(--line-dark);
}
.timeline-step:hover {
  transform: translateY(-4px);
  border-color: var(--brand-500);
}
.timeline-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-500);
  margin-bottom: 0.8rem;
  display: block;
}
.section--dark .timeline-num { color: var(--teal-300); }
.timeline-step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.timeline-step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.section--dark .timeline-step p { color: var(--on-dark-muted); }

/* ---------- Stat Counter Widget ---------- */
.stat-box {
  text-align: left;
  padding: 1.25rem;
}
.stat-val {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 2rem + 1.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-strong);
  margin-bottom: 0.5rem;
}
.section--dark .stat-val, .on-dark .stat-val { color: var(--on-dark-strong); }
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-600);
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.section--dark .stat-label, .on-dark .stat-label { color: var(--brand-300); }
.stat-detail {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.section--dark .stat-detail, .on-dark .stat-detail { color: var(--on-dark-muted); }

/* ---------- FAQ Accordions ---------- */
.faq-list {
  display: grid;
  gap: 1rem;
  max-width: 860px;
  margin-inline: auto;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: border-color var(--dur);
}
.section--dark .faq-item {
  background: rgba(14, 24, 44, 0.6);
  border-color: var(--line-dark);
}
.faq-item.is-open {
  border-color: var(--brand-400);
}
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.35rem 1.6rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-strong);
  cursor: pointer;
}
.section--dark .faq-trigger { color: var(--on-dark-strong); }
.faq-trigger .i {
  transition: transform var(--dur) var(--ease-out);
  color: var(--brand-500);
  flex-shrink: 0;
}
.section--dark .faq-trigger .i { color: var(--teal-400); }
.faq-item.is-open .faq-trigger .i {
  transform: rotate(180deg);
}
.faq-body {
  padding: 0 1.6rem 1.4rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
.section--dark .faq-body { color: var(--on-dark); }
.faq-body[hidden] { display: none; }

/* ---------- Interactive Forms ---------- */
.form-grid {
  display: grid;
  gap: 1.2rem;
}
@media (min-width: 640px) {
  .form-grid--2col {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-span-2 {
    grid-column: span 2;
  }
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.form-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-strong);
}
.section--dark .form-label, .on-dark .form-label { color: var(--on-dark-strong); }
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--text-strong);
  font-size: 0.95rem;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background-color var(--dur-fast);
}
.form-textarea { min-height: 130px; resize: vertical; }
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(36, 118, 224, 0.2);
}
.section--dark .form-input, .section--dark .form-textarea, .section--dark .form-select,
.on-dark .form-input, .on-dark .form-textarea, .on-dark .form-select {
  background: rgba(10, 18, 34, 0.85);
  border-color: var(--line-dark-strong);
  color: var(--on-dark-strong);
}
.section--dark .form-input:focus, .section--dark .form-textarea:focus, .section--dark .form-select:focus,
.on-dark .form-input:focus, .on-dark .form-textarea:focus, .on-dark .form-select:focus {
  border-color: var(--brand-400);
  box-shadow: 0 0 0 3px rgba(75, 147, 242, 0.3);
}

.form-feedback {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: var(--r-sm);
  font-size: 0.92rem;
  font-weight: 500;
  margin-top: 1rem;
}
.form-feedback.is-success {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(54, 211, 154, 0.15);
  border: 1px solid rgba(54, 211, 154, 0.4);
  color: #178a5e;
}
.section--dark .form-feedback.is-success, .on-dark .form-feedback.is-success {
  color: #5ff0b8;
}
.form-feedback.is-error {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.4);
  color: #c92a2a;
}
.section--dark .form-feedback.is-error, .on-dark .form-feedback.is-error {
  color: #ff8787;
}

/* ---------- Portfolio Card & Lightbox ---------- */
.project-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur);
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(36, 118, 224, 0.3);
}
.section--dark .project-card, .on-dark .project-card {
  background: rgba(14, 24, 44, 0.85);
  border-color: var(--line-dark);
}
.project-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink-850);
}
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}
.project-card:hover .project-thumb img {
  transform: scale(1.04);
}
.project-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  background: rgba(7, 13, 26, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--on-dark-strong);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-dark-strong);
}
.project-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.project-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}
.project-meta {
  font-size: 0.84rem;
  color: var(--brand-600);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.section--dark .project-meta { color: var(--teal-300); }
.project-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.section--dark .project-body p { color: var(--on-dark-muted); }
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.section--dark .project-tags { border-top-color: var(--line-dark); }
.project-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--paper-2);
  color: var(--text-muted);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}
.section--dark .project-tag {
  background: rgba(255, 255, 255, 0.05);
  color: var(--on-dark-muted);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(4, 8, 15, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease-out);
}
.lightbox-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-content {
  position: relative;
  max-width: 1000px;
  max-height: 90vh;
  overflow: auto;
  border-radius: var(--r-md);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
  border: 1px solid var(--line-dark-strong);
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(7, 13, 26, 0.85);
  color: #fff;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-dark);
}
.lightbox-close:hover { background: var(--brand-500); }

/* ---------- Testimonial Card ---------- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.testimonial-quote {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  font-style: italic;
  margin-bottom: 1.6rem;
  flex-grow: 1;
}
.section--dark .testimonial-quote, .on-dark .testimonial-quote { color: var(--on-dark-strong); }
.testimonial-author-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(36, 118, 224, 0.4);
}
.testimonial-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-strong);
}
.section--dark .testimonial-name, .on-dark .testimonial-name { color: #fff; }
.testimonial-company {
  font-size: 0.84rem;
  color: var(--text-muted);
}
.section--dark .testimonial-company, .on-dark .testimonial-company { color: var(--on-dark-muted); }

/* ---------- Interactive Filter Tabs ---------- */
.filter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: 0.55rem 1.25rem;
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: all var(--dur-fast);
}
.filter-btn:hover {
  color: var(--brand-600);
  border-color: var(--brand-400);
}
.filter-btn.is-active {
  background: var(--brand-500);
  color: #fff;
  border-color: var(--brand-500);
  box-shadow: 0 4px 15px rgba(36, 118, 224, 0.35);
}
.section--dark .filter-btn, .on-dark .filter-btn {
  background: rgba(14, 24, 44, 0.6);
  border-color: var(--line-dark);
  color: var(--on-dark);
}
.section--dark .filter-btn:hover, .on-dark .filter-btn:hover {
  color: #fff;
  border-color: var(--brand-400);
}
.section--dark .filter-btn.is-active, .on-dark .filter-btn.is-active {
  background: var(--brand-500);
  color: #fff;
}

/* === 05-sections.css === */
/* ==========================================================================
   05 · SECTIONS — Hero, AI Showcase, Expertise, Process, Portfolio, CTAs
   ========================================================================== */

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + clamp(2rem, 1.5rem + 3vw, 4.5rem));
  padding-bottom: clamp(3rem, 2rem + 4vw, 6rem);
  background:
    radial-gradient(100% 70% at 50% 0%, rgba(36, 118, 224, 0.22), transparent 70%),
    radial-gradient(60% 40% at 85% 20%, rgba(62, 198, 212, 0.12), transparent 60%),
    var(--ink-900);
  color: var(--on-dark);
  color-scheme: dark;
  overflow: hidden;
  isolation: isolate;
}
.hero-glow-1 {
  position: absolute;
  top: -10%;
  left: 20%;
  width: 50vw;
  height: 50vw;
  max-width: 650px;
  max-height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 118, 224, 0.35) 0%, rgba(36, 118, 224, 0) 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
  animation: pulseGlow 8s ease-in-out infinite alternate;
}
.hero-glow-2 {
  position: absolute;
  top: 30%;
  right: -10%;
  width: 45vw;
  height: 45vw;
  max-width: 550px;
  max-height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 198, 212, 0.22) 0%, rgba(62, 198, 212, 0) 70%);
  filter: blur(70px);
  pointer-events: none;
  z-index: -1;
  animation: pulseGlow 10s ease-in-out infinite alternate-reverse;
}
@keyframes pulseGlow {
  0% { transform: scale(0.9) translate(0, 0); opacity: 0.6; }
  100% { transform: scale(1.1) translate(20px, 30px); opacity: 0.9; }
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.hero-eyebrow-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark-strong);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--brand-200);
  width: fit-content;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hero-title {
  font-size: var(--fs-hero);
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.hero-desc {
  font-size: var(--fs-md);
  line-height: 1.7;
  color: var(--on-dark);
  max-width: 600px;
}
.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-dark);
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--on-dark-strong);
}
.hero-trust-item .i { color: var(--mint-400); }

/* Layered 3D Visual in Hero */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-visual-card {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line-dark-strong);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9), 0 0 60px rgba(36, 118, 224, 0.25);
}
.hero-visual-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* Floating interface pills around hero visual */
.float-pill {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--r-pill);
  background: rgba(10, 18, 34, 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(132, 184, 255, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.88rem;
  white-space: nowrap;
}
.float-pill .badge-ico {
  --size: 36px;
}
.float-pill-1 {
  top: -15px;
  right: -10px;
  animation: floatAnim1 6s ease-in-out infinite alternate;
}
.float-pill-2 {
  bottom: 20px;
  left: -20px;
  animation: floatAnim2 7s ease-in-out infinite alternate;
}
@media (max-width: 768px) {
  .float-pill-1 { top: 10px; right: 10px; }
  .float-pill-2 { bottom: 10px; left: 10px; }
}
@keyframes floatAnim1 {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-12px) rotate(1deg); }
}
@keyframes floatAnim2 {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(14px) rotate(-1deg); }
}

/* ---------- Trusted Partner / Stats Banner ---------- */
.stats-banner {
  background: var(--ink-850);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding-block: 3.5rem;
  color: var(--on-dark);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
}
@media (min-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Dedicated Our Clients Section & Logo Scroller ---------- */
.clients-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.logo-scroller-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.clients-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 18, 34, 0.9);
  border: 1px solid var(--line-dark-strong);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--dur-fast);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
}

.clients-nav-arrow:hover {
  background: var(--brand-600);
  border-color: var(--brand-400);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 18px rgba(36, 118, 224, 0.65);
}

.clients-nav-prev {
  left: clamp(0.5rem, 1.5vw, 2.5rem);
}

.clients-nav-next {
  right: clamp(0.5rem, 1.5vw, 2.5rem);
}

.logo-scroller {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 1.5rem 0;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.logo-scroller:active {
  cursor: grabbing;
}

.logo-scroller-track {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  width: max-content;
  will-change: transform;
  animation: scrollLogos 34s linear infinite;
}

.logo-scroller:hover .logo-scroller-track {
  animation-play-state: paused;
}

@keyframes scrollLogos {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 1.125rem));
  }
}

.logo-scroller-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: var(--r-md);
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--line-dark);
  transition: all var(--dur-normal) var(--ease-out);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-scroller-item:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: var(--brand-400);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 25px -5px rgba(36, 118, 224, 0.35);
}

.client-logo-svg {
  height: 38px;
  width: auto;
  max-width: 210px;
  display: block;
}

/* ---------- Client Logo & Brand Grid (Fallback / Utility) ---------- */
.client-logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
@media (min-width: 600px) {
  .client-logo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .client-logo-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1200px) {
  .client-logo-grid { grid-template-columns: repeat(6, 1fr); }
}
.client-logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem 0.85rem;
  border-radius: var(--r-sm);
  background: rgba(14, 24, 44, 0.55);
  border: 1px solid var(--line-dark);
  transition: all var(--dur-fast);
}
.client-logo-card:hover {
  background: rgba(36, 118, 224, 0.16);
  border-color: var(--brand-400);
  transform: translateY(-3px);
}
.client-logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
  letter-spacing: -0.01em;
}
.client-logo-cat {
  font-size: 0.72rem;
  color: var(--on-dark-muted);
  margin-top: 3px;
  font-family: var(--font-mono);
}

/* ---------- Core Expertise Showcase ---------- */
.expertise-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .expertise-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Highlighted wide card in expertise grid */
.expertise-featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(36, 118, 224, 0.12), rgba(62, 198, 212, 0.05)), var(--surface);
  border-color: rgba(36, 118, 224, 0.35);
}
.section--dark .expertise-featured {
  background: linear-gradient(135deg, rgba(36, 118, 224, 0.22), rgba(10, 18, 34, 0.9));
  border-color: var(--brand-400);
}

/* ---------- AI & Innovation Highlight Section ---------- */
.ai-section {
  position: relative;
  background:
    radial-gradient(80% 50% at 50% 50%, rgba(36, 118, 224, 0.18), transparent 70%),
    var(--ink-950);
  color: var(--on-dark);
  color-scheme: dark;
  overflow: hidden;
}
.ai-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .ai-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}
.ai-visual-wrap {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line-dark-strong);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8), 0 0 80px rgba(36, 118, 224, 0.25);
}
.ai-visual-wrap img {
  width: 100%;
  height: auto;
  display: block;
}
.ai-nodes-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.ai-node-card {
  padding: 1.25rem;
  background: rgba(14, 24, 44, 0.65);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-sm);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur);
}
.ai-node-card:hover {
  transform: translateY(-3px);
  border-color: var(--teal-300);
}
.ai-node-card h4 {
  font-size: 0.95rem;
  color: var(--on-dark-strong);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ai-node-card p {
  font-size: 0.82rem;
  color: var(--on-dark-muted);
  line-height: 1.5;
}

/* ---------- Custom Application Showcase ---------- */
.custom-app-section {
  background: var(--paper);
}
.app-feature-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .app-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .app-feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- IT Infrastructure Section ---------- */
.infra-section {
  background: var(--surface);
}
.infra-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .infra-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
  }
}
.infra-visual-card {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.infra-list {
  display: grid;
  gap: 1.2rem;
}
.infra-item {
  display: flex;
  gap: 1.2rem;
  padding: 1.2rem;
  border-radius: var(--r-sm);
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform var(--dur-fast), border-color var(--dur-fast);
}
.infra-item:hover {
  transform: translateX(6px);
  border-color: var(--brand-500);
}
.infra-item-content h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}
.infra-item-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ---------- Why Choose Us Grid ---------- */
.why-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Industries Grid ---------- */
.industries-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 600px) {
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .industries-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.industry-card {
  padding: 1.8rem 1.4rem;
  text-align: left;
  display: flex;
  flex-direction: column;
}
.industry-card .badge-ico { margin-bottom: 1.2rem; }
.industry-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.industry-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.section--dark .industry-card p { color: var(--on-dark-muted); }

/* ---------- Featured Projects / Portfolio Grid ---------- */
.portfolio-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Testimonials Showcase & Carousel Slider ---------- */
.testimonials-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-viewport {
  overflow: hidden;
  border-radius: var(--r-xl);
  position: relative;
  touch-action: pan-y pinch-zoom;
}

.testimonial-track {
  display: flex;
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.testimonial-slide {
  flex: 0 0 100%;
  width: 100%;
  padding: 0.5rem;
  box-sizing: border-box;
}

.testimonial-card-inner {
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  background: rgba(14, 24, 44, 0.75);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line-dark-strong);
  border-radius: var(--r-xl);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(36, 118, 224, 0.12);
  min-height: 290px;
  position: relative;
  overflow: hidden;
}

.testimonial-card-inner::before {
  content: "“";
  position: absolute;
  top: 1rem;
  right: 2rem;
  font-family: var(--font-display);
  font-size: 8rem;
  line-height: 1;
  color: rgba(36, 118, 224, 0.08);
  pointer-events: none;
  user-select: none;
}

.testimonial-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.testimonial-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #fbbf24;
}

.testimonial-stars .i--star {
  width: 1.25rem;
  height: 1.25rem;
  fill: #fbbf24;
  color: #fbbf24;
}

.testimonial-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: var(--r-pill);
  background: rgba(36, 118, 224, 0.15);
  border: 1px solid rgba(36, 118, 224, 0.3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--brand-300);
}

.testimonial-card-inner .testimonial-quote {
  font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.3rem);
  line-height: 1.65;
  color: #f1f5f9;
  font-style: normal;
  margin-bottom: 2rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.testimonial-card-inner .testimonial-author-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
}

.testimonial-card-inner .testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(36, 118, 224, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.testimonial-card-inner .testimonial-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
}

.testimonial-card-inner .testimonial-company {
  font-size: 0.86rem;
  color: var(--on-dark-muted);
  margin-top: 2px;
}

/* Slider Controls: Arrows & Dots */
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.slider-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--line-dark-strong);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--dur-fast);
}

.slider-arrow:hover {
  background: var(--brand-600);
  border-color: var(--brand-400);
  transform: scale(1.08);
  box-shadow: 0 0 18px rgba(36, 118, 224, 0.55);
}

.slider-arrow:focus-visible {
  outline: 2px solid var(--brand-400);
  outline-offset: 3px;
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all var(--dur-normal) var(--ease-out);
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.slider-dot.is-active {
  width: 28px;
  border-radius: 6px;
  background: var(--brand-400);
  box-shadow: 0 0 12px rgba(36, 118, 224, 0.7);
}

/* ---------- High-Impact Conversion CTA Section ---------- */
.cta-section {
  position: relative;
  background:
    radial-gradient(100% 100% at 50% 0%, rgba(36, 118, 224, 0.35), transparent 75%),
    var(--ink-900);
  color: var(--on-dark-strong);
  color-scheme: dark;
  padding-block: clamp(5rem, 4rem + 5vw, 8rem);
  overflow: hidden;
  isolation: isolate;
}
.cta-card {
  display: grid;
  gap: 3rem;
  padding: clamp(2rem, 1.5rem + 3vw, 4.5rem);
  border-radius: var(--r-xl);
  background: rgba(10, 18, 34, 0.85);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line-dark-strong);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9), 0 0 80px rgba(36, 118, 224, 0.2);
}
@media (min-width: 1024px) {
  .cta-card {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
}
.cta-content h2 {
  font-size: var(--fs-3xl);
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.cta-content p {
  font-size: var(--fs-md);
  color: var(--on-dark);
  line-height: 1.65;
  margin-bottom: 2rem;
}
.cta-features {
  display: grid;
  gap: 0.8rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.cta-features li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--on-dark-strong);
}
.cta-features .i { color: var(--teal-300); }

/* Quick Inquiry Form inside CTA */
.cta-form-box {
  background: rgba(14, 24, 44, 0.7);
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.5rem);
  border-radius: var(--r-md);
  border: 1px solid var(--line-dark);
}

/* ---------- Inner Service Page Layout ---------- */
.inner-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 2rem + 3vw, 5rem));
  padding-bottom: clamp(3rem, 2.5rem + 3vw, 5.5rem);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(36, 118, 224, 0.2), transparent 70%),
    var(--ink-900);
  color: var(--on-dark);
  color-scheme: dark;
  border-bottom: 1px solid var(--line-dark);
  isolation: isolate;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--on-dark-muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--on-dark); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { opacity: 0.5; }

.inner-hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 960px) {
  .inner-hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3.5rem;
  }
}
.inner-hero h1 {
  font-size: var(--fs-3xl);
  color: #fff;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.inner-hero-lead {
  font-size: var(--fs-md);
  line-height: 1.7;
  color: var(--on-dark);
  max-width: 650px;
}

/* Service Overview Split */
.overview-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 900px) {
  .overview-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
    gap: 4rem;
  }
}
.overview-content p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1.25rem;
}

/* Service Tech Stack Groups */
.tech-groups {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .tech-groups {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .tech-groups {
    grid-template-columns: repeat(4, 1fr);
  }
}
.tech-group-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 1.5rem;
}
.tech-group-card h3 {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-600);
  margin-bottom: 1rem;
}
.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.tech-pill {
  font-size: 0.84rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--r-pill);
  background: var(--paper-2);
  color: var(--text-strong);
  font-weight: 500;
}

/* === 06-utilities.css === */
/* ==========================================================================
   06 · UTILITIES — Scroll Reveal, Animations, Accessibility, Print
   ========================================================================== */

/* ---------- Scroll Reveal Animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  will-change: opacity, transform;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveals for child items */
[data-reveal-group] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}

[data-reveal-group].is-revealed > *:nth-child(1) { transition-delay: 50ms; }
[data-reveal-group].is-revealed > *:nth-child(2) { transition-delay: 120ms; }
[data-reveal-group].is-revealed > *:nth-child(3) { transition-delay: 190ms; }
[data-reveal-group].is-revealed > *:nth-child(4) { transition-delay: 260ms; }
[data-reveal-group].is-revealed > *:nth-child(5) { transition-delay: 330ms; }
[data-reveal-group].is-revealed > *:nth-child(6) { transition-delay: 400ms; }
[data-reveal-group].is-revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* Fallback if JavaScript is disabled */
.no-js [data-reveal],
.no-js [data-reveal-group] > * {
  opacity: 1 !important;
  transform: none !important;
}

/* ---------- Text & Spacing Helpers ---------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mx-auto { margin-inline: auto; }
.w-full { width: 100%; }

.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 3rem; }
.mb-sm { margin-bottom: 1rem; }
.mb-md { margin-bottom: 2rem; }
.mb-lg { margin-bottom: 3rem; }

/* ---------- Accessibility & Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal],
  [data-reveal-group] > * {
    opacity: 1 !important;
    transform: none !important;
  }
  .float-pill-1,
  .float-pill-2,
  .hero-glow-1,
  .hero-glow-2 {
    animation: none !important;
  }
}

/* ---------- Print Styles ---------- */
@media print {
  .site-header,
  .site-footer,
  .to-top,
  .cta-section,
  .scroll-progress,
  .mobile-nav {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .section {
    padding-block: 2rem !important;
  }
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}
