/* ============================================================
   Thrtn85 Solutions — Homepage styles
   Design tokens + component styles
   ============================================================ */

:root {
  /* Color palette — "engineering blueprint": deep ink, electric blue, paper.
     Variable names kept stable; values retuned so the whole site re-skins. */
  --ink: #0A0E14;          /* near-black IDE ink — dominant dark */
  --navy: #0A0E14;         /* alias (legacy name) → ink */
  --blue: #2D6BFF;         /* electric blue — the one sharp accent */
  --blue-light: #7FA8FF;
  --blue-700: #1B4FD6;
  --bg: #F7F8FA;           /* warm paper, not pure white */
  --panel: #FFFFFF;        /* card/panel surface */
  --surface: #EEF1F6;      /* alt band */
  --border: #DDE3EC;
  /* Blueprint grid (shared by .grid-bg helper) */
  --grid-line: rgba(45, 107, 255, 0.06);       /* blue lines, light sections */
  --grid-line-light: rgba(127, 168, 255, 0.07); /* pale lines, dark sections */
  --grid-size: 56px;
  --text: #0A0E14;
  --text-2: #3D4757;
  --text-3: #69737F;
  --success: #19C37D;

  /* Hero gradient (deep, atmospheric) */
  --hero-gradient: radial-gradient(120% 120% at 12% 0%, #18233A 0%, #0A0E14 60%);

  /* Typography — IBM Plex superfamily */
  --font-head: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
  --font-serif: "IBM Plex Serif", Georgia, serif;

  /* Spacing / layout */
  --max: 1280px;
  --section-y: 104px;
  --radius-card: 8px;      /* tighter, more technical than the soft 16px */
  --radius-btn: 6px;

  /* Shadows — tighter, inkier */
  --shadow-sm: 0 1px 2px rgba(10, 14, 20, 0.05), 0 1px 3px rgba(10, 14, 20, 0.06);
  --shadow-md: 0 6px 16px rgba(10, 14, 20, 0.07), 0 2px 6px rgba(10, 14, 20, 0.05);
  --shadow-lg: 0 18px 40px rgba(10, 14, 20, 0.12), 0 4px 12px rgba(10, 14, 20, 0.06);
  --shadow-blue: 0 10px 26px rgba(45, 107, 255, 0.30);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  /* Paper + faint blueprint grid for atmosphere (no flat solid) */
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  /* Reveal transforms can momentarily extend the scroll area; clip the overflow
     so no paper background shows past the footer. */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Reusable blueprint-grid overlay for sections with their own background.
   Set --grid-color (and optionally --grid-mask) on the section. */
.grid-bg { position: relative; }
.grid-bg > * { position: relative; z-index: 1; }
.grid-bg::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-color, var(--grid-line)) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color, var(--grid-line)) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  -webkit-mask-image: var(--grid-mask, none);
  mask-image: var(--grid-mask, none);
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-head);
  line-height: 1.1;
  letter-spacing: -0.022em;
  font-weight: 700;
  color: var(--text);
  text-wrap: balance;
}

p { margin: 0; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ---------- Scroll reveal (fade + rise) ----------
   Only hides when JS is active (html.js-reveal) so no-JS users see everything.
   JS also skips this entirely under prefers-reduced-motion. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.js-reveal .reveal.in-view {
  opacity: 1;
  transform: none;
}
/* The footer is the last element on the page — a downward-reserved translate
   there can leave a sliver of paper background below it. Fade only, no rise. */
.js-reveal .footer .reveal { transform: none; }

/* Skip link */
.skip-link {
  position: absolute; left: 0; top: 0; z-index: 200;
  transform: translateY(-120%);
  background: var(--blue); color: #fff;
  padding: 12px 18px; border-radius: 0 0 10px 0; font-weight: 600;
  transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); outline: none; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: 32px;
}

.section { padding-block: var(--section-y); }

/* Mono "code comment" label — the signature accent of the system */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 18px;
}
.eyebrow::before { content: "// "; opacity: .6; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(32px, 4vw, 50px); }
.section-head .eyebrow { display: inline-block; margin-bottom: 16px; }

/* Split header: title left, link right (shared by pricing + work) */
.section-head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 44px; flex-wrap: wrap;
}
.section-head-row h2 { font-size: clamp(30px, 3.6vw, 44px); }

/* Accent variant: keep the "//" prefix, add a trailing mono rule */
.eyebrow-accent { display: inline-flex; align-items: center; gap: 12px; }
.eyebrow-accent::after {
  content: ""; width: 32px; height: 1px;
  background: currentColor; opacity: .4;
}

/* Highlighted word — electric blue with a solid mono-style underline */
.hl { color: var(--blue); position: relative; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em;
  height: 3px; border-radius: 1px;
  background: var(--blue);
}

/* ---------- Image placeholders (fillable later) ---------- */
.img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(45,107,255,.10), rgba(45,107,255,.18));
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 13px; font-weight: 500;
  text-align: center; padding: 12px; box-sizing: border-box;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  padding: 15px 24px;
  border-radius: var(--radius-btn);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: var(--blue-700); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(45,107,255,.40); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-ghost-light { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.24); }
.btn-ghost-light:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* Mono link with arrow — technical, like a CLI flag */
.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.01em; color: var(--blue);
  transition: gap .18s ease, color .18s ease;
}
.link-arrow:hover { gap: 12px; color: var(--blue-700); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 14, 20, 0.82);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom-color: rgba(127,168,255,.14);
}
.nav {
  max-width: var(--max); margin: 0 auto;
  padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; font-family: var(--font-head); font-weight: 700; font-size: 22px; letter-spacing: -0.03em; color: #fff; }
.brand .brand-13 { color: #fff; }
.brand .brand-85 { color: var(--blue-light); }
.brand .brand-sub { display:block; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.38em; font-weight: 500; color: rgba(255,255,255,.6); margin-top: 3px; }
.brand-mark { display: flex; flex-direction: column; line-height: 1; }

.nav-links { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.nav-links > li { position: relative; list-style: none; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  color: rgba(255,255,255,.82); font-weight: 400; font-size: 15px;
  padding: 9px 14px; border-radius: 6px; white-space: nowrap;
  transition: color .16s ease, background .16s ease;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-link .chev { width: 14px; height: 14px; transition: transform .2s ease; }
.has-dd:hover .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 220px; background: var(--panel);
  border: 1px solid var(--border); border-radius: 8px;
  box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-dd:hover .dropdown, .has-dd:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: 10px 12px; border-radius: 5px;
  color: var(--text-2); font-size: 15px; font-weight: 400;
  transition: background .14s ease, color .14s ease;
}
.dropdown a:hover { background: var(--surface); color: var(--blue); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 12px 20px; font-size: 15px; }

.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  position: relative; z-index: 102; /* stay above the open drawer so the ✕ closes it */
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: var(--hero-gradient);
  color: #fff;
  padding-top: 210px; padding-bottom: 128px;
}
/* Blueprint grid + electric glow layered over the ink for depth.
   Bespoke (not .grid-bg) because it also carries a radial mask + the ::after glow. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-light) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 78%);
}
.hero::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 620px; height: 620px; top: -180px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(45,107,255,.32) 0%, transparent 64%);
  filter: blur(8px);
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 920px; margin: 0 auto; text-align: center; }
.hero .eyebrow { color: var(--blue-light); font-size: 14px; margin-bottom: 28px; }
.hero h1 {
  font-size: clamp(46px, 7vw, 88px);
  font-weight: 700;
  color: #fff; letter-spacing: -0.04em; line-height: 1.0;
}
/* On the dark hero, the highlight uses the lighter blue for contrast */
.hero h1 .hl { color: var(--blue-light); }
.hero h1 .hl::after { background: var(--blue-light); bottom: .04em; }
.hero-sub { margin: 30px auto 0; font-size: 19px; line-height: 1.7; color: rgba(226,232,240,.74); max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 42px; justify-content: center; }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 60px; justify-content: center;
  padding-top: 36px; border-top: 1px solid rgba(127,168,255,.14);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.02em;
  color: rgba(226,232,240,.78);
}
.hero-badge svg { width: 18px; height: 18px; color: var(--blue-light); flex: none; }

/* ============================================================
   TRUST / LOGO STRIP
   ============================================================ */
.logo-strip { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding-block: 40px; }
.logo-strip .eyebrow { text-align: center; color: var(--text-3); margin-bottom: 28px; }
.logo-row {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 28px 56px;
}
.logo-item {
  display: inline-flex; align-items: center; justify-content: center;
  height: 96px;
}
.logo-item img {
  max-height: 100%; width: auto; object-fit: contain;
  filter: grayscale(1); opacity: .65;
  transition: filter .2s ease, opacity .2s ease;
}
.logo-item img:hover { filter: grayscale(0); opacity: 1; }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: transparent; }
.services-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}
.svc-card {
  position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  --svc-transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
  transition: var(--svc-transition);
}
/* Once revealed, the scroll-reveal `.reveal` transition no longer applies its
   own rule, but its higher specificity (.js-reveal .reveal) still wins over
   `.svc-card`. Restore the interaction transition at matching specificity so
   hover animates smoothly instead of snapping. */
.js-reveal .svc-card.in-view {
  transition: var(--svc-transition);
}
/* Hard offset shadow on hover — the editorial "stamped block" cue.
   will-change is scoped to hover so cards aren't kept on a GPU layer at rest. */
.svc-card:hover { transform: translateY(-4px); box-shadow: 6px 6px 0 0 var(--blue), var(--shadow-lg); border-color: var(--blue); will-change: transform; }
.svc-icon {
  width: 54px; height: 54px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(45,107,255,.10), rgba(45,107,255,.18));
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); margin-bottom: 22px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.svc-card:hover .svc-icon { background: var(--blue); color: #fff; transform: scale(1.04); }
.svc-icon svg { width: 26px; height: 26px; }
.svc-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.svc-card p { color: var(--text-2); font-size: 15.5px; margin-bottom: 18px; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing { background: var(--surface); }
.pricing-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
}
.price-card {
  position: relative; background: var(--panel);
  border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* Featured = solid ink block: the strongest accent in the grid */
.price-card.featured {
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 24px 50px rgba(10,14,20,.34);
}
.price-card.featured .price-head h3 { color: #fff; }
.price-card.featured .price-ic { background: rgba(96,165,250,.18); color: var(--blue-light); }
.price-card.featured .price-amount .from { color: rgba(226,232,240,.7); }
.price-card.featured .price-amount .big,
.price-card.featured .price-amount .per { color: #fff; }
.price-card.featured .price-features li { color: rgba(226,232,240,.86); }
.price-card.featured .price-features svg { color: var(--blue-light); }
.price-card.featured .btn-primary { background: #fff; color: var(--navy); box-shadow: none; }
.price-card.featured .btn-primary:hover { background: var(--blue-light); color: var(--navy); }

.price-badge {
  position: absolute; top: -12px; right: 22px;
  background: var(--blue); color: #fff;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 4px;
  box-shadow: 0 6px 16px rgba(45,107,255,.45);
}
.price-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.price-ic {
  width: 40px; height: 40px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, rgba(45,107,255,.10), rgba(45,107,255,.18));
  display: flex; align-items: center; justify-content: center; color: var(--blue);
}
.price-ic svg { width: 21px; height: 21px; }
.price-head h3 { font-size: 18px; font-weight: 600; }
.price-amount { margin-bottom: 22px; }
.price-amount .from { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); font-weight: 400; margin-bottom: 4px; letter-spacing: 0.02em; }
.price-amount .big { font-family: var(--font-mono); font-size: 36px; font-weight: 600; color: var(--blue); letter-spacing: -0.03em; }
.price-amount .per { font-family: var(--font-mono); font-size: 15px; font-weight: 400; color: var(--text-3); }
.price-amount .custom { font-family: var(--font-mono); font-size: 26px; font-weight: 600; color: var(--blue); letter-spacing: -0.02em; }
.price-features { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.price-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--text-2); }
.price-features svg { width: 18px; height: 18px; color: var(--success); flex: none; margin-top: 1px; }
.price-card .btn { margin-top: auto; }
.price-blurb { color: var(--text-2); font-size: 15px; margin-bottom: 26px; }
.pricing-note {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin-top: 34px; color: var(--text-2); font-size: 15.5px;
}
.pricing-note svg { width: 19px; height: 19px; color: var(--blue); }

/* ============================================================
   OUR WORK
   ============================================================ */
.work { background: transparent; }
.work-grid { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.work-card { display: block; transition: transform .2s ease; }
.work-card:hover { transform: translateY(-6px); }
.work-thumb {
  position: relative;
  border-radius: var(--radius-card); overflow: hidden;
  box-shadow: var(--shadow-md); margin-bottom: 16px;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
}
.work-thumb .img-placeholder,
.work-thumb img { transition: transform .4s ease; }
.work-card:hover .work-thumb .img-placeholder,
.work-card:hover .work-thumb img { transform: scale(1.06); }
/* Ink overlay with a mono "view project" cue, wiping up on hover */
.work-thumb::after {
  content: "view_project →";
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; padding: 16px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; color: #fff;
  background: linear-gradient(0deg, rgba(10,14,20,.82) 0%, rgba(10,14,20,.1) 55%, transparent 100%);
  opacity: 0; transform: translateY(8px);
  transition: opacity .28s ease, transform .28s ease;
}
.work-card:hover .work-thumb::after { opacity: 1; transform: translateY(0); }
.work-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 4px; letter-spacing: -0.01em; transition: color .18s ease; }
.work-card:hover h3 { color: var(--blue); }
.work-card p { font-family: var(--font-mono); color: var(--text-3); font-size: 12.5px; letter-spacing: 0.01em; }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why { background: var(--surface); }
.why-grid {
  display: grid; gap: 56px;
  grid-template-columns: 0.85fr 1.6fr;
  align-items: center;
}
.why-intro h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 18px; }
.why-intro p { color: var(--text-2); font-size: 17px; margin-bottom: 28px; max-width: 340px; }
.why-items {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
}
.why-item {
  text-align: center;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 24px 16px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.why-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--blue-light); }
.why-ic {
  width: 54px; height: 54px; border-radius: 8px; margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(45,107,255,.10), rgba(45,107,255,.18));
  display: flex; align-items: center; justify-content: center; color: var(--blue);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.why-item:hover .why-ic { background: var(--blue); color: #fff; transform: scale(1.04); }
.why-ic svg { width: 28px; height: 28px; }
.why-item h3 { font-size: 16px; font-weight: 700; margin-bottom: 7px; }
.why-item p { font-size: 13.5px; color: var(--text-3); line-height: 1.5; }

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.testi {
  overflow: hidden;
  background: var(--ink);
  padding-block: 104px;
  --grid-color: rgba(127,168,255,.05); /* faint lines on the dark band */
}
.testi-inner {
  max-width: 880px; margin: 0 auto; position: relative;
  padding: 0 24px;
}
.testi-quotemark {
  font-family: var(--font-serif);
  font-size: 140px; line-height: 1; color: var(--blue-light);
  opacity: .22;
  position: absolute; left: 8px; top: -28px; pointer-events: none;
}
.testi-row { display: flex; align-items: center; gap: 30px; position: relative; }
.testi-avatar {
  flex: none; width: 84px; height: 84px; border-radius: 50%; overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-700));
  color: #fff; font-family: var(--font-mono); font-size: 26px; font-weight: 500; letter-spacing: 0.02em;
}
.testi-body { min-height: 110px; }
.testi-quote {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(21px, 2.3vw, 30px); line-height: 1.45;
  color: #fff; font-weight: 500; letter-spacing: -0.005em;
}
.testi-cite { margin-top: 22px; }
.testi-cite .name { display: block; font-family: var(--font-mono); color: var(--blue-light); font-weight: 500; font-size: 14px; letter-spacing: 0.02em; margin-bottom: 2px; }
.testi-cite .role { display: block; font-family: var(--font-mono); color: rgba(226,232,240,.55); font-size: 13px; letter-spacing: 0.02em; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
  overflow: hidden; color: var(--text); padding-block: 88px;
  background:
    radial-gradient(120% 140% at 85% 110%, rgba(45,107,255,.12) 0%, transparent 55%),
    linear-gradient(135deg, #E8EEFC 0%, #D6E2FF 100%);
  border-top: 1px solid var(--border);
  --grid-color: rgba(45,107,255,.07);
}
.final-cta .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 1.3fr auto; gap: 40px; align-items: center; }
.final-cta .eyebrow { color: var(--blue); margin-bottom: 16px; }
.final-left h2 { font-size: clamp(30px, 3.8vw, 48px); color: var(--text); }
.final-left h2 .hl { color: var(--blue); }
.final-left h2 .hl::after { background: var(--blue); bottom: .04em; }
.final-sub { margin-top: 14px; color: var(--text-2); font-size: 16.5px; max-width: 340px; }
.final-feats { display: flex; gap: 30px; flex-wrap: wrap; }
.final-feat { max-width: 150px; }
.final-feat .fic { width: 40px; height: 40px; border-radius: 8px; background: var(--panel); box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; color: var(--blue); margin-bottom: 12px; }
.final-feat .fic svg { width: 21px; height: 21px; }
.final-feat h4 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.final-feat p { font-size: 13.5px; color: var(--text-3); line-height: 1.5; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative; background: var(--navy); color: #94A3B8; padding-top: 72px;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--blue), var(--blue-light)) 1;
}
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer .brand { margin-bottom: 16px; }
.footer-about { font-size: 14.5px; line-height: 1.7; color: #7c899c; max-width: 280px; }
.footer-col h4 {
  position: relative; display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; margin-bottom: 22px; font-weight: 500; padding-bottom: 10px;
}
.footer-col h4::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 24px; height: 2px;
  background: var(--blue);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer-col a { color: #94A3B8; font-size: 14.5px; transition: color .15s ease, padding-left .15s ease; }
.footer-col a:hover { color: var(--blue-light); padding-left: 5px; }
.footer-contact li { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 13px; }
.footer-contact svg { width: 17px; height: 17px; color: var(--blue-light); flex: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-block: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12.5px; color: #69737F;
}
.footer-bottom .legal { display: flex; gap: 26px; }
.footer-bottom a:hover { color: var(--blue-light); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  :root { --section-y: 76px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-items { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .final-cta .container { grid-template-columns: 1fr; gap: 30px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links, .nav-cta .btn { display: none; }
  .menu-toggle { display: flex; }
  .mobile-menu { display: block; }
  .hero h1 { font-size: clamp(34px, 8vw, 46px); }
  .why-items { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  :root { --section-y: 60px; }
  .container { padding-inline: 22px; }
  .nav { padding-inline: 22px; }
  .services-grid, .pricing-grid, .work-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 130px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-badges { gap: 14px; flex-direction: column; }
  .testi-inner { padding: 40px 26px 34px; }
  .testi-row { flex-direction: column; text-align: center; gap: 20px; }
  .why-items { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---------- Mobile menu drawer ---------- */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 101;
  background: rgba(10,14,20,.98); backdrop-filter: blur(8px);
  padding: 96px 28px 40px;
  transform: translateX(100%); transition: transform .3s ease;
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { display: block; color: #fff; font-size: 20px; font-weight: 600; padding: 16px 0; border-bottom: 1px solid rgba(127,168,255,.1); }
.mobile-menu .btn { width: 100%; margin-top: 24px; }

/* ============================================================
   SERVICE PAGES — shared components
   (Overview prose, Ideal-For grid, FAQ accordion)
   Built on the existing tokens; homepage components are reused
   directly in the page markup and need no extra CSS here.
   ============================================================ */

/* ---------- Service hero: a touch shorter than the home hero ---------- */
.hero.hero-service { padding-top: 184px; padding-bottom: 104px; }
.hero.hero-service .hero-sub { max-width: 640px; }

/* ---------- Overview prose block ---------- */
.overview { background: transparent; }
.overview .overview-grid {
  display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 56px; align-items: start;
}
.overview-head h2 { font-size: clamp(28px, 3.4vw, 42px); }
.overview-head .eyebrow { display: inline-flex; }
.overview-body p { color: var(--text-2); font-size: 17px; margin-bottom: 18px; }
.overview-body p:last-child { margin-bottom: 0; }
.overview-body strong { color: var(--text); font-weight: 600; }

/* ---------- "Ideal For" grid ---------- */
.ideal { background: transparent; }
.ideal-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.ideal-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ideal-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--blue-light); }
.ideal-card .ideal-ic {
  width: 46px; height: 46px; border-radius: 8px; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(45,107,255,.10), rgba(45,107,255,.18));
  display: flex; align-items: center; justify-content: center; color: var(--blue);
  transition: background .2s ease, color .2s ease;
}
.ideal-card:hover .ideal-ic { background: var(--blue); color: #fff; }
.ideal-card .ideal-ic svg { width: 23px; height: 23px; }
.ideal-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.ideal-card p { font-size: 14.5px; color: var(--text-2); line-height: 1.55; }

/* ---------- FAQ accordion ---------- */
.faq { background: var(--surface); }
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-card); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: none; border: none; font-family: var(--font-head);
  font-size: 17px; font-weight: 600; color: var(--text); letter-spacing: -0.01em;
  padding: 22px 24px;
  transition: color .16s ease;
}
.faq-q:hover { color: var(--blue); }
.faq-q .faq-chev {
  width: 20px; height: 20px; flex: none; color: var(--blue);
  transition: transform .25s ease;
}
.faq-q[aria-expanded="true"] .faq-chev { transform: rotate(180deg); }
/* Progressive enhancement: panels start open (no-JS sees answers).
   JS adds .faq-js to <html>, which collapses panels until expanded. */
.faq-a { padding: 0 24px 24px; color: var(--text-2); font-size: 16px; line-height: 1.65; }
.faq-a p { margin: 0; }
.faq-js .faq-a { display: none; }
.faq-js .faq-item.open .faq-a { display: block; }

/* ---------- Service-page responsive ---------- */
@media (max-width: 1080px) {
  .overview .overview-grid { grid-template-columns: 1fr; gap: 28px; }
  .ideal-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .hero.hero-service { padding-top: 120px; }
  .ideal-grid { grid-template-columns: 1fr; }
  .faq-q { font-size: 16px; padding: 18px 18px; }
  .faq-a { padding: 0 18px 20px; font-size: 15px; }
}
