/* ==========================================================================
   Macverse.io — Growth, automated.
   Premium dark design system
   ========================================================================== */

/* ---------- Self-hosted fonts (OFL) — no third-party requests, preloaded in <head> ---------- */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('/assets/fonts/outfit-latin-var.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('/assets/fonts/instrument-serif-italic-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('/assets/fonts/jetbrains-mono-latin-var.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Brand (from the Macverse logo) */
  --brand: #2D5BFF;
  --brand-hi: #6F8CFF;
  --brand-lo: #1E44D6;
  --violet: #7B5CFF;
  --lime: #C6F432;
  --lime-lo: #A9D61C;
  --coral: #FF6B4A;
  --amber: #F5A524;
  --green: #34D399;

  /* Surfaces */
  --bg: #07080C;
  --bg-2: #0A0C12;
  --surface: #0D0F16;
  --raised: #131623;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);

  /* Text */
  --text: #F4F5F8;
  --text-2: #C7CAD8;
  --muted: #8D92A8;
  --dim: #7C8198;

  /* Legacy names used by carried-over components */
  --ink: #0B0D1A;
  --ink-2: #0D0F16;
  --ink-3: #131623;
  --white: #FFFFFF;
  --slate: var(--text-2);
  --d-text: var(--text-2);
  --d-muted: var(--muted);
  --d-line: var(--line);
  --d-card: rgba(255, 255, 255, .03);

  --serif-grad: linear-gradient(100deg, #FFFFFF 0%, #DCE3FF 45%, #9FB2FF 100%);

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
  --shadow-lg: 0 40px 120px -30px rgba(0, 0, 0, .9);
  --glow-blue: 0 0 0 1px rgba(111, 140, 255, .25), 0 30px 90px -30px rgba(45, 91, 255, .55);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --container: 1200px;
  --gutter: clamp(18px, 4vw, 32px);
  --nav-h: 84px;

  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; background: var(--bg); color-scheme: dark; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* Film grain */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 400; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-hi); text-decoration: none; transition: color .2s; }
a:hover { color: var(--text); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; color: var(--text); font-weight: 500; line-height: 1.05; letter-spacing: -0.04em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand-hi); outline-offset: 3px; border-radius: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 500; background: var(--lime); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */
/* Serif italic accent: second line / key phrase of every headline */
.grad-text, h1 .muted, h2 .muted, .grad-text--light {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.015em;
  font-size: 1.08em; line-height: .95;
}
.grad-text, .grad-text--light {
  background: var(--serif-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em; /* italic overhang */
}
h1 .muted, h2 .muted { color: var(--muted); }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px rgba(198, 244, 50, .8); }
.eyebrow--dark { color: var(--muted); }
.eyebrow .live-dot { display: none; }

.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); flex: none; display: inline-block; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--lime); animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3); opacity: 0; } }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--text); --b-fg: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; border: 0;
  background: var(--b-bg); color: var(--b-fg);
  font-weight: 600; font-size: 15.5px; line-height: 1; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s, color .3s;
  isolation: isolate; overflow: hidden;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.btn:hover { color: var(--b-fg); transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn--lime { --b-bg: var(--lime); --b-fg: var(--ink); box-shadow: 0 0 0 1px rgba(198,244,50,.4), 0 14px 40px -12px rgba(198,244,50,.55); }
.btn--lime:hover { box-shadow: 0 0 0 1px rgba(198,244,50,.6), 0 20px 60px -12px rgba(198,244,50,.75); }
.btn--primary { --b-bg: var(--brand); --b-fg: #fff; box-shadow: 0 14px 40px -12px rgba(45,91,255,.7); }
.btn--dark { --b-bg: rgba(255,255,255,.06); --b-fg: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--dark:hover { --b-bg: rgba(255,255,255,.1); }
.btn--ghost { --b-bg: rgba(255,255,255,.04); --b-fg: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(10px); }
.btn--ghost:hover { --b-bg: rgba(255,255,255,.09); }
.btn--ghost::after, .btn--dark::after { background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.12) 50%, transparent 70%); }
.btn--sm { padding: 11px 18px; font-size: 14.5px; }
.btn--lg { padding: 18px 30px; font-size: 17px; }
.btn--block { width: 100%; }

/* The big CTA */
.btn--xl {
  gap: 16px; padding: 10px 10px 10px 34px; min-height: 72px; font-size: 19px; letter-spacing: -0.015em;
}
.btn__arrow {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--ink); color: var(--lime); transition: transform .5s var(--ease);
}
.btn__arrow svg { width: 20px; height: 20px; stroke-width: 2.4; }
.btn--xl:hover .btn__arrow { transform: rotate(-45deg); }
.btn--xl:hover svg { transform: none; }
.btn--xl.btn--block { justify-content: space-between; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 500; font-size: 16px; }
.link-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.link-arrow:hover { color: var(--text); }
.link-arrow:hover svg { transform: translateY(3px); }

/* ==========================================================================
   NAV — floating glass pill
   ========================================================================== */
.nav { position: fixed; inset: 14px 0 auto 0; z-index: 100; pointer-events: none; }
.nav__inner {
  pointer-events: auto; position: relative; width: auto;
  max-width: 1180px; height: 62px; margin: 0 auto; padding: 0 8px 0 20px;
  display: flex; align-items: center; gap: 24px;
  border-radius: 999px;
  background: rgba(13, 15, 22, .55); border: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  transition: max-width .6s var(--ease), background .4s, border-color .4s, box-shadow .4s;
}
.nav.is-scrolled .nav__inner { max-width: 1040px; background: rgba(13, 15, 22, .82); border-color: var(--line-2); box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); }
@media (max-width: 1240px) { .nav__inner { margin: 0 var(--gutter); } }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__word { font-size: 20px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.brand__word span { color: var(--brand-hi); }
.nav .brand__mark .bar { transform-box: fill-box; transform-origin: 50% 100%; animation: barUp .9s var(--ease-spring) both; }
.nav .brand__mark .bar--2 { animation-delay: .12s; }
.nav .brand__mark .bar--3 { animation-delay: .24s; }
.nav .brand__mark .dot { transform-box: fill-box; transform-origin: center; animation: dotPop .6s var(--ease-spring) .55s both; }
.brand:hover .bar { animation: barBounce .7s var(--ease-spring); }
.brand:hover .bar--2 { animation-delay: .06s; }
.brand:hover .bar--3 { animation-delay: .12s; }
@keyframes barUp { from { transform: scaleY(.1); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
@keyframes dotPop { from { transform: scale(0) translateY(10px); } to { transform: scale(1) translateY(0); } }
@keyframes barBounce { 0%, 100% { transform: scaleY(1); } 40% { transform: scaleY(.55); } }

.nav__links { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.nav__links a { position: relative; padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 15px; transition: color .2s, background .2s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); }
.nav__links > a[aria-current="page"]::after, .nav__group > a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--lime);
}
.nav__cta { margin-left: 0; }
.nav__cta-mobile { display: none !important; }
.nav__toggle { display: none; }

/* Dropdown */
.nav__group { position: relative; }
.nav__group > a { display: inline-flex; align-items: center; gap: 4px; }
.nav__caret { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.nav__group:hover .nav__caret, .nav__group:focus-within .nav__caret { transform: rotate(180deg); }
.nav__group::after { content: ""; position: absolute; left: -10px; right: -10px; top: 100%; height: 22px; }
.nav__menu {
  position: absolute; top: calc(100% + 20px); left: 50%; width: 320px; z-index: 5;
  display: grid; gap: 2px; padding: 8px; border-radius: 22px;
  background: #0D0F16; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translate(-50%, 10px) scale(.98);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
}
.nav__group:hover .nav__menu, .nav__group:focus-within .nav__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.nav__links .nav__menu a { display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 14px; }
.nav__links .nav__menu a:hover { background: rgba(255,255,255,.05); }
.nav__links .nav__menu a::after { display: none; }
.nav__menu strong { display: block; color: var(--text); font-size: 15px; font-weight: 500; line-height: 1.25; }
.nav__menu small { display: block; color: var(--muted); font-size: 13px; line-height: 1.3; }
.nav__ico { position: relative; flex: none; width: 36px; height: 36px; border-radius: 11px; --c: var(--brand-hi); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 25%, transparent); }
.nav__ico::after { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.nav__ico--seo { --c: #34D399; } .nav__ico--aeo { --c: #A78BFF; } .nav__ico--ads { --c: #FF8A6B; } .nav__ico--software { --c: #FFB020; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; isolation: isolate; overflow: hidden; color: var(--text-2); }
.hero--home { padding: calc(var(--nav-h) + 64px) 0 0; text-align: center; }
.hero__center { display: flex; flex-direction: column; align-items: center; max-width: 1080px; }

/* Background layers (shared with page heroes via partials/page-hero-bg.html) */
.aurora { position: absolute; inset: 0; z-index: -3; overflow: hidden; pointer-events: none; }
.aurora::before { /* light beam from above */
  content: ""; position: absolute; left: 50%; top: -38%; width: 1400px; height: 900px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(111,140,255,.32), rgba(45,91,255,.12) 45%, transparent 75%);
  filter: blur(10px);
}
.aurora span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; will-change: transform; }
.aurora span:nth-child(1) { width: 620px; height: 620px; left: -10%; top: 10%; background: radial-gradient(circle, rgba(45,91,255,.55), transparent 65%); animation: aur1 22s ease-in-out infinite; }
.aurora span:nth-child(2) { width: 560px; height: 560px; right: -8%; top: 4%; background: radial-gradient(circle, rgba(123,92,255,.45), transparent 65%); animation: aur2 26s ease-in-out infinite; }
.aurora span:nth-child(3) { width: 380px; height: 380px; left: 42%; top: 46%; background: radial-gradient(circle, rgba(198,244,50,.16), transparent 65%); animation: aur3 18s ease-in-out infinite; }
@keyframes aur1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(120px, 60px) scale(1.15); } }
@keyframes aur2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-110px, 80px) scale(1.1); } }
@keyframes aur3 { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(-80px, -40px); } 66% { transform: translate(60px, 30px); } }
.hero__grid-bg {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 72px 72px; background-position: center top;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
}
.hero__glow {
  position: absolute; z-index: -1; left: 0; top: 0; width: 560px; height: 560px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(111,140,255,.14), transparent 62%);
  opacity: 0; transition: opacity .5s;
}
.hero:hover .hero__glow { opacity: 1; }

.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 30px; padding: 8px 16px 8px 10px; border-radius: 999px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line-2); color: var(--text-2);
  font-size: 14px; font-weight: 500; letter-spacing: .01em; backdrop-filter: blur(10px);
}
.eyebrow-pill b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: 12px; }

.display { font-size: clamp(56px, 9.4vw, 144px); font-weight: 500; letter-spacing: -0.06em; line-height: .92; }
.display .grad-text { font-size: 1.1em; letter-spacing: -0.03em; }
.hero__lead { max-width: 600px; margin-top: 30px; color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; }
.hero--home .hero__lead { margin-inline: auto; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 44px; }
.hero--home .hero__ctas { justify-content: center; }
.hero__trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 36px; color: var(--dim); font-size: 14px; }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust svg { width: 15px; height: 15px; fill: none; stroke: var(--lime); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Dashboard "product shot" that tilts into place */
.hero__stage { position: relative; margin-top: 56px; perspective: 1600px; animation: stageIn 1.6s var(--ease) .9s both; }
@keyframes stageIn { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
.hero__stage::before { /* glow under the shot */
  content: ""; position: absolute; left: 50%; top: 8%; width: 82%; height: 80%; transform: translateX(-50%); z-index: -1;
  background: radial-gradient(closest-side, rgba(45,91,255,.5), rgba(123,92,255,.18) 55%, transparent 80%);
  filter: blur(40px);
}
.hero__shot {
  position: relative; max-width: 1040px; margin: 0 auto;
  transform-origin: 50% 0%;
  transform: rotateX(var(--tilt, 0deg)) scale(var(--sc, 1)) translateY(var(--ty, 0px));
  will-change: transform;
}
.hero__shot .dash { padding: 22px; border-radius: 26px; text-align: left; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 60px 140px -40px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.1); }
.hero__shot .dash__chart { height: 260px; }
.hero__fade { /* fades the bottom of the shot into the page */
  position: absolute; left: 0; right: 0; bottom: 0; height: 38%; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--bg) 92%);
}

/* Page heroes */
.hero--page { padding: calc(var(--nav-h) + 96px) 0 110px; border-bottom: 1px solid var(--line); }
.hero--mini { padding-bottom: 70px; }
.page-hero { display: grid; grid-template-columns: 1.35fr .65fr; gap: 64px; align-items: center; }
.page-hero--center { grid-template-columns: 1fr; text-align: center; max-width: 920px; }
.page-hero--center .hero__lead { margin-inline: auto; }
.page-hero--center .crumbs, .hero__ctas--center, .page-hero--center .hero__ctas { justify-content: center; }
.page-hero__title { font-size: clamp(46px, 6.8vw, 96px); font-weight: 500; letter-spacing: -0.055em; line-height: .96; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 26px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-current] { color: var(--lime); }
.hero--page .eyebrow { margin-bottom: 18px; }

.result-card {
  position: relative; padding: 28px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.result-card__label { display: block; margin-bottom: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.result-card__row { display: flex; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.result-card__row:last-child { border-bottom: 0; padding-bottom: 0; }
.result-card__row strong { flex: none; min-width: 132px; font-size: 44px; font-weight: 500; letter-spacing: -0.045em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.result-card__row > span { color: var(--muted); font-size: 15.5px; line-height: 1.45; }
.engine-list { display: grid; gap: 10px; margin-top: 12px; }
.engine-list span { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); color: var(--text); font-weight: 500; }
.engine-list i { position: relative; width: 22px; height: 22px; border-radius: 50%; background: var(--lime); flex: none; }
.engine-list i::after { content: ""; position: absolute; left: 7px; top: 5px; width: 5px; height: 9px; border-right: 2.4px solid var(--ink); border-bottom: 2.4px solid var(--ink); transform: rotate(45deg); }

/* Line-mask headline reveal (JS wraps lines in .line > .line__in) */
[data-split] { opacity: 0; }
[data-split].is-split { opacity: 1; }
.line { display: block; overflow: hidden; padding: 0 .08em .1em; margin: 0 -.08em -.1em; }
.line__in { display: block; transform: translateY(110%) rotate(2deg); transform-origin: 0 100%; transition: transform 1.2s var(--ease); transition-delay: calc(var(--li, 0) * 110ms + 120ms); }
[data-split].is-in .line__in { transform: none; }

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee { position: relative; overflow: hidden; padding: 34px 0; border-block: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; align-items: center; }
.marquee__list li { display: inline-flex; align-items: center; gap: 0; padding: 0 30px; color: var(--dim); font-size: 20px; font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; transition: color .3s; }
.marquee__list li::after { content: "✦"; margin-left: 60px; font-size: 12px; color: rgba(255,255,255,.18); }
.marquee__list li:hover { color: var(--text); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { position: relative; padding: clamp(96px, 12vw, 160px) 0; }
.section--dark { isolation: isolate; overflow: hidden; }
.section--tint { background: var(--bg-2); border-block: 1px solid var(--line); }
.section__head { max-width: 820px; margin-bottom: clamp(48px, 6vw, 80px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section h2 { font-size: clamp(40px, 5.6vw, 78px); letter-spacing: -0.05em; line-height: 1; }
.section__lead { margin-top: 24px; font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 640px; }
.section__head--center .section__lead { margin-inline: auto; }

/* Reveal */
[data-reveal] { opacity: 0; transform: translateY(30px); filter: blur(6px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }
/* Above-the-fold hero content must not wait for JavaScript (LCP): visible from the first frame, CSS-only rise. */
.hero [data-reveal] { opacity: 1; filter: none; transform: none; transition: none; animation: heroRise 1s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes heroRise { from { transform: translateY(18px); } }

/* Shared card surface + gradient border that follows the cursor */
.svc, .feature, .case__btn, .checklist, .timeline li, .ai-card, .rank-card, .lh-card, .stat-card, .flow__node, .qa, .table-wrap, .result-card { --mx: 50%; --my: 0%; }
.svc::after, .feature::after, .case__btn::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(111,140,255,.75), rgba(198,244,50,.25) 30%, transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
}
.svc:hover::after, .feature:hover::after, .case__btn:hover::after { opacity: 1; }

/* ==========================================================================
   DASHBOARD (hero product shot)
   ========================================================================== */
.dash {
  position: relative; border-radius: 22px; padding: 18px;
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  transform-style: preserve-3d; transition: transform .5s var(--ease);
}
.dash__head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--d-line); }
.dash__dots { display: flex; gap: 6px; }
.dash__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.16); }
.dash__dots i:nth-child(1) { background: #FF6B57; } .dash__dots i:nth-child(2) { background: #FFC93C; } .dash__dots i:nth-child(3) { background: #3DDC84; }
.dash__title { font-size: 14px; font-weight: 600; color: var(--d-text); }
.pill-live { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 9px; border-radius: 999px; background: rgba(198,244,50,.1); color: var(--lime); font-size: 12px; font-weight: 600; }
.pill-live .live-dot { width: 6px; height: 6px; }
.dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.kpi { padding: 12px 12px 11px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--d-line); min-width: 0; }
.kpi__label { display: block; font-size: 12px; color: var(--d-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi__value { display: block; margin-top: 4px; font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; letter-spacing: -0.03em; color: #fff; font-variant-numeric: tabular-nums; }
.kpi__delta { font-style: normal; font-size: 12px; font-weight: 600; color: var(--lime); }
.dash__chart { position: relative; height: 170px; margin-top: 14px; border-radius: 14px; background: rgba(0,0,0,.18); border: 1px solid var(--d-line); overflow: hidden; padding: 16px 14px 0; }
.dash__bars { position: absolute; inset: 16px 14px 0; display: flex; align-items: flex-end; gap: 6px; }
.dash__bars i { flex: 1; height: var(--h, 20%); border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--brand-hi), rgba(45,91,255,.25)); transform-origin: bottom; transition: height 1.2s var(--ease); animation: barUp 1s var(--ease-spring) both; animation-delay: calc(var(--i) * 50ms + .4s); }
.dash__bars i:last-child { background: linear-gradient(180deg, var(--lime), rgba(198,244,50,.25)); }
.dash__line { position: absolute; inset: 22px 0 0; width: 100%; height: calc(100% - 22px); }
.dash__stroke { stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawLine 2.2s var(--ease) .9s forwards; filter: drop-shadow(0 0 6px rgba(198,244,50,.7)); }
.dash__area { opacity: 0; animation: fadeIn 1.2s ease 1.8s forwards; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
.dash__foot { display: flex; align-items: center; gap: 16px; margin-top: 12px; font-size: 12.5px; color: var(--d-muted); }
.dash__foot span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.sw--blue { background: var(--brand-hi); } .sw--lime { background: var(--lime); }
.dash__updated { margin-left: auto; }

.float {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 16px;
  background: rgba(18, 21, 42, .82); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -15px rgba(0,0,0,.6);
  font-size: 14px; line-height: 1.25; white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.float strong { display: block; color: #fff; font-weight: 600; }
.float small { color: var(--d-muted); font-size: 12.5px; }
.float__icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.float__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.float__icon--lime { background: rgba(198,244,50,.14); color: var(--lime); }
.float__icon--blue { background: rgba(91,127,255,.18); color: var(--brand-hi); }
.float__icon--violet { background: rgba(143,107,255,.18); color: #B49BFF; }
.float--1 { top: 0; left: -30px; animation-delay: 0s; }
.float--2 { bottom: 64px; right: -24px; animation-delay: -2s; }
.float--3 { bottom: -6px; left: 6%; animation-delay: -4s; }

/* ==========================================================================
   GOOGLE ADS SHOWCASE (journey + optimization log)
   ========================================================================== */
.flow { display: flex; align-items: stretch; justify-content: space-between; gap: 0; }
.flow__node {
  position: relative; flex: 0 0 auto; width: 176px; text-align: center;
  padding: 22px 14px 20px; border-radius: 20px;
  background: var(--d-card); border: 1px solid var(--d-line);
  transition: border-color .5s, background .5s, transform .5s var(--ease-spring), box-shadow .5s;
}
.flow__node strong { display: block; color: #fff; font-size: 16px; font-weight: 600; margin-top: 14px; letter-spacing: -0.01em; }
.flow__node small { display: block; color: var(--d-muted); font-size: 13px; margin-top: 3px; }
.flow__icon {
  width: 52px; height: 52px; margin: 0 auto; border-radius: 15px; display: grid; place-items: center;
  background: rgba(255,255,255,.06); color: var(--d-muted); transition: background .5s, color .5s, box-shadow .5s;
}
.flow__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.flow__node.is-active { border-color: rgba(198,244,50,.55); background: rgba(198,244,50,.06); transform: translateY(-6px); box-shadow: 0 20px 50px -20px rgba(198,244,50,.45); }
.flow__node.is-active .flow__icon { background: var(--lime); color: var(--ink); box-shadow: 0 0 0 6px rgba(198,244,50,.12); }
.flow__node.is-done { border-color: rgba(91,127,255,.4); }
.flow__node.is-done .flow__icon { background: rgba(91,127,255,.2); color: var(--brand-hi); }
.flow__link { position: relative; flex: 1; align-self: center; height: 2px; min-width: 20px; margin: 0 -1px; background-image: linear-gradient(90deg, rgba(255,255,255,.22) 50%, transparent 50%); background-size: 10px 2px; animation: dashFlow .8s linear infinite; }
@keyframes dashFlow { to { background-position: 10px 0; } }
.flow__packet { position: absolute; top: 50%; left: 0; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 14px 2px var(--lime); opacity: 0; }
.flow__link.is-sending .flow__packet { animation: sendPacket .7s var(--ease) forwards; }
@keyframes sendPacket { 0% { left: 0; opacity: 1; } 90% { opacity: 1; } 100% { left: calc(100% - 10px); opacity: 0; } }

.showcase__bottom { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; margin-top: 56px; }
.terminal { border-radius: 20px; background: #070812; border: 1px solid var(--d-line); overflow: hidden; box-shadow: var(--shadow-lg); }
.terminal__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--d-line); font-family: var(--mono); font-size: 12.5px; color: var(--d-muted); }
.terminal__body { height: 248px; padding: 16px 18px; font-family: var(--mono); font-size: 13px; line-height: 1.85; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.terminal__body li { display: flex; gap: 12px; color: var(--d-text); animation: logIn .45s var(--ease) both; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.terminal__body time { color: #5C6185; flex: none; }
.terminal__body li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.terminal__body .ok { color: var(--lime); }
.terminal__body .ai { color: #B49BFF; }
.terminal__body .info { color: var(--brand-hi); }
@keyframes logIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.showcase__stats { display: grid; gap: 14px; }
.stat-card { display: flex; align-items: center; gap: 18px; padding: 20px 24px; border-radius: 20px; background: var(--d-card); border: 1px solid var(--d-line); }
.stat-card strong { display: flex; align-items: baseline; gap: 4px; min-width: 116px; font-size: 44px; font-weight: 700; letter-spacing: -0.04em; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-card strong small { font-size: 18px; color: var(--lime); font-weight: 600; letter-spacing: 0; }
.stat-card > span { color: var(--d-muted); font-size: 15.5px; line-height: 1.4; }


/* ==========================================================================
   SERVICES
   ========================================================================== */
.services__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.svc {
  --accent: var(--brand-hi);
  position: relative; display: flex; flex-direction: column;
  padding: 36px 34px 32px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012));
  border: 1px solid var(--line);
  transition: transform .6s var(--ease) var(--d, 0ms), border-color .4s, background .4s, opacity 1.1s var(--ease) var(--d, 0ms), filter 1.1s var(--ease) var(--d, 0ms);
  transform-style: preserve-3d;
}
.svc::before { /* soft spotlight */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(500px circle at var(--mx) var(--my), rgba(111,140,255,.09), transparent 45%);
}
.svc:hover { border-color: transparent; }
.svc:hover::before { opacity: 1; }
.svc--seo { --accent: #34D399; }
.svc--ads { --accent: #FF8A6B; }
.svc--aeo { --accent: #A78BFF; }
.svc--software { --accent: #FFB020; }
.svc--feature { background: radial-gradient(120% 120% at 100% 0%, rgba(123,92,255,.16), transparent 50%), linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); border-color: rgba(167,139,255,.22); }
.svc__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 28px; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.svc__icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.svc__icon .fill { fill: currentColor; stroke: none; }
.svc h3 { font-size: 28px; letter-spacing: -0.035em; }
.svc h3 small { display: block; margin-top: 6px; font-family: var(--mono); font-size: 11.5px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.svc p { margin-top: 12px; color: var(--muted); font-size: 16px; }
.svc--feature p { color: var(--muted) !important; }
.svc__list { margin-top: 22px; display: grid; gap: 10px; }
.svc__list li { position: relative; padding-left: 24px; font-size: 15px; color: var(--text-2); }
.svc__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 1px; background: var(--accent); }
.svc__link { position: static; margin-top: auto; padding-top: 28px; display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; font-size: 15.5px; }
.svc__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.svc__link svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.svc:hover .svc__link svg { transform: translateX(5px); }
.svc__link:focus-visible { outline: none; }
.svc:has(.svc__link:focus-visible) { outline: 2px solid var(--brand-hi); outline-offset: 3px; }
.svc__engines { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.svc__engines span { padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--text-2); font-family: var(--mono); font-size: 12px; }
.svc__badge { position: absolute; top: 34px; right: 34px; padding: 5px 12px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 12px; font-weight: 700; }
.svc--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px 56px; align-items: center; }
.svc__main { display: flex; flex-direction: column; align-items: flex-start; }
.svc__main .svc__link { padding-top: 22px; }
.svc__list--cols { grid-template-columns: 1fr 1fr; gap: 14px 28px; margin-top: 0; }

/* icon micro-animations */
.svc .code-l, .svc .code-r { transition: transform .5s var(--ease-spring); }
.svc:hover .code-l { transform: translateX(-3px); }
.svc:hover .code-r { transform: translateX(3px); }
.svc .rise { transform-box: fill-box; transform-origin: bottom; }
.svc:hover .rise { animation: barBounce .8s var(--ease-spring); }
.svc:hover .r2 { animation-delay: .08s; } .svc:hover .r3 { animation-delay: .16s; } .svc:hover .r4 { animation-delay: .24s; }
.svc .target { transform-box: fill-box; transform-origin: center; }
.svc:hover .target { animation: pulse .9s var(--ease-spring); }
.svc .arrow { transition: transform .5s var(--ease-spring); }
.svc:hover .arrow { transform: translate(-5px, 5px); }
@keyframes pulse { 50% { transform: scale(1.7); } }
.svc .type { stroke-dasharray: 22; stroke-dashoffset: 0; }
.svc:hover .t1 { animation: typeLine .9s var(--ease) both; }
.svc:hover .t2 { animation: typeLine .9s var(--ease) .25s both; }
@keyframes typeLine { from { stroke-dashoffset: 22; } to { stroke-dashoffset: 0; } }
.svc .spark { transform-box: fill-box; transform-origin: center; animation: twinkle 2.4s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.6) rotate(45deg); opacity: .6; } }
.svc .blk { transform-box: fill-box; transform-origin: center; }
.svc:hover .blk { animation: blkPop .6s var(--ease-spring) both; }
.svc:hover .b2 { animation-delay: .08s; } .svc:hover .b3 { animation-delay: .16s; }
@keyframes blkPop { 0% { transform: scale(1); } 45% { transform: scale(.6); opacity: .5; } 100% { transform: scale(1); opacity: 1; } }

/* ==========================================================================
   GOOGLE ADS SHOWCASE background
   ========================================================================== */
.showcase { border-block: 1px solid var(--line); background: var(--bg-2); }
.showcase__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 420px at 50% 0%, rgba(45,91,255,.16), transparent 70%); }
.showcase__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 28px 28px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}

/* ==========================================================================
   SEO + AEO cards (dark)
   ========================================================================== */
.visibility { background: radial-gradient(900px 500px at 85% 20%, rgba(123,92,255,.08), transparent 70%); }
.visibility__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
.ai-card, .rank-card, .lh-card, .checklist { position: relative; border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); border: 1px solid var(--line); padding: 28px; }
.ai-card { display: flex; flex-direction: column; }
.ai-card__head { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; color: var(--text); }
.ai-card__avatar { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--violet)); color: #fff; }
.ai-card__avatar svg { width: 17px; height: 17px; fill: currentColor; }
.ai-card__badge { margin-left: auto; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(167,139,255,.12); color: #C4B2FF; }
.ai-card__q { align-self: flex-end; margin-top: 24px; max-width: 88%; padding: 13px 17px; border-radius: 18px 18px 4px 18px; background: var(--brand); color: #fff; font-size: 15.5px; line-height: 1.45; }
.ai-card__a { margin-top: 16px; padding: 18px 20px; border-radius: 18px 18px 18px 4px; background: rgba(255,255,255,.035); border: 1px solid var(--line); flex: 1; }
.ai-card__a p { font-size: 15.5px; color: var(--text-2); min-height: 7.2em; }
.ai-card__a p .hl { color: var(--text); background: linear-gradient(180deg, transparent 62%, rgba(198,244,50,.45) 62%); font-weight: 600; }
.ai-card__a p.is-typing::after { content: ""; display: inline-block; width: 8px; height: 1em; margin-left: 2px; vertical-align: -0.12em; background: var(--lime); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ai-card__sources { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; opacity: 0; transform: translateY(6px); transition: opacity .6s, transform .6s var(--ease); }
.ai-card__sources.is-in { opacity: 1; transform: none; }
.src { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 5px; border-radius: 999px; background: rgba(255,255,255,.03); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.src i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; background: rgba(255,255,255,.08); color: var(--text-2); }
.src--hl { border-color: rgba(198,244,50,.45); color: var(--lime); box-shadow: 0 0 0 4px rgba(198,244,50,.07); }
.src--hl i { background: var(--lime); color: var(--ink); }
.ai-card__input { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding: 12px 12px 12px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--dim); font-size: 14.5px; }
.ai-card__input i { width: 30px; height: 30px; border-radius: 50%; background: var(--text); position: relative; }
.ai-card__input i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -2px 0 0 -4px; border-left: 2px solid var(--ink); border-top: 2px solid var(--ink); transform: rotate(45deg); }

.rank-card__head, .lh-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rank-card__label { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.rank-card__value { display: block; margin-top: 6px; font-size: 60px; font-weight: 500; letter-spacing: -0.05em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.chip { display: inline-flex; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip--up { background: rgba(52,211,153,.1); color: #5EE2A9; border: 1px solid rgba(52,211,153,.2); }
.rank-chart { width: 100%; height: auto; margin-top: 18px; overflow: visible; }
.rank-chart__grid line { stroke: rgba(255,255,255,.07); stroke-width: 1; stroke-dasharray: 3 6; }
.rank-chart__line { stroke: var(--brand-hi); stroke-width: 3; stroke-linecap: round; stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); transition: stroke-dashoffset 2.4s var(--ease); filter: drop-shadow(0 0 10px rgba(111,140,255,.6)); }
.rank-chart__area { opacity: 0; transition: opacity 1.2s ease 1.4s; }
.rank-chart__dot { fill: var(--lime); stroke: var(--bg); stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: opacity .3s 2s, transform .6s var(--ease-spring) 2s; }
.rank-card.is-drawn .rank-chart__line { stroke-dashoffset: 0; }
.rank-card.is-drawn .rank-chart__area { opacity: 1; }
.rank-card.is-drawn .rank-chart__dot { opacity: 1; transform: scale(1); animation: dotGlow 2s ease-in-out 2.5s infinite; }
@keyframes dotGlow { 50% { filter: drop-shadow(0 0 10px rgba(198,244,50,1)); } }
.rank-card__months { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
.kw-list { margin-top: 20px; border-top: 1px solid var(--line); }
.kw-list li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.kw-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.kw-list span { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kw-pos { font-style: normal; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.kw-up { font-size: 12.5px; color: #5EE2A9; font-weight: 600; min-width: 42px; text-align: right; }

/* ==========================================================================
   WORK
   ========================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters--center { justify-content: center; margin-bottom: 44px; }
.filter { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-size: 14.5px; font-weight: 500; color: var(--muted); transition: all .3s var(--ease); }
.filter:hover { color: var(--text); border-color: rgba(255,255,255,.3); }
.filter.is-active { background: var(--text); border-color: var(--text); color: var(--ink); }
.work__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work__grid--2 { grid-template-columns: repeat(2, 1fr); }
.case { transition: opacity 1.1s var(--ease) var(--d, 0ms), transform 1.1s var(--ease) var(--d, 0ms), filter 1.1s var(--ease) var(--d, 0ms); }
.case.is-hidden { display: none; }
.case.is-filtering { animation: caseIn .6s var(--ease) both; }
@keyframes caseIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.case__btn { all: unset; position: relative; box-sizing: border-box; display: flex; flex-direction: column; width: 100%; height: 100%; cursor: pointer; border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012)); border: 1px solid var(--line); overflow: hidden; transition: transform .6s var(--ease), border-color .4s; }
.case__btn:hover { transform: translateY(-6px); border-color: transparent; }
.case__btn:focus-visible { outline: 2px solid var(--brand-hi); outline-offset: 3px; }
.case__media { position: relative; aspect-ratio: 4 / 3; margin: 10px 10px 0; border-radius: 18px; overflow: hidden; background: var(--raised); }
.case__media::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(111,140,255,.55), transparent 55%), radial-gradient(circle at 85% 80%, rgba(198,244,50,.3), transparent 50%), var(--raised); }
.case__media--2::before { background: radial-gradient(circle at 75% 25%, rgba(255,107,74,.5), transparent 55%), radial-gradient(circle at 15% 85%, rgba(111,140,255,.45), transparent 50%), var(--raised); }
.case__media--3::before { background: radial-gradient(circle at 25% 75%, rgba(198,244,50,.35), transparent 55%), radial-gradient(circle at 80% 20%, rgba(123,92,255,.55), transparent 50%), var(--raised); }
.case__media--4::before { background: radial-gradient(circle at 70% 70%, rgba(255,140,180,.4), transparent 55%), radial-gradient(circle at 20% 25%, rgba(123,92,255,.45), transparent 50%), var(--raised); }
.case__media--5::before { background: radial-gradient(circle at 30% 30%, rgba(123,92,255,.6), transparent 55%), radial-gradient(circle at 80% 85%, rgba(111,140,255,.4), transparent 50%), var(--raised); }
.case__media--6::before { background: radial-gradient(circle at 80% 30%, rgba(198,244,50,.35), transparent 55%), radial-gradient(circle at 20% 80%, rgba(45,91,255,.55), transparent 50%), var(--raised); }
.case__media img { position: relative; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .6s; filter: saturate(.9) contrast(1.05); }
.case__media img.is-broken { opacity: 0; }
.case__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(7,8,12,.7)); pointer-events: none; }
.case__btn:hover .case__media img { transform: scale(1.06); }
.case__metric { position: absolute; z-index: 1; left: 14px; bottom: 14px; display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(7,8,12,.7); color: var(--text-2); font-size: 13.5px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line-2); }
.case__metric strong { color: var(--lime); font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.case__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 26px; }
.case__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.case__tags span { padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--muted); }
.case__body h3 { margin-top: 16px; font-size: 25px; letter-spacing: -0.035em; }
.case__body p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
.case__more { margin-top: auto; padding-top: 20px; display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; font-size: 15px; }
.case__more svg { width: 16px; height: 16px; fill: none; stroke: var(--lime); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.case__btn:hover .case__more svg { transform: translateX(5px); }
.work__note { margin-top: 32px; text-align: center; font-size: 13.5px; color: var(--dim); }

/* ==========================================================================
   STATS BAND (dark strip)
   ========================================================================== */
.band { position: relative; overflow: hidden; padding: clamp(64px, 8vw, 100px) 0; border-block: 1px solid var(--line); background: radial-gradient(800px 300px at 50% 120%, rgba(45,91,255,.16), transparent 70%); }
.band__shine { position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(111,140,255,.8), rgba(198,244,50,.6), transparent); background-size: 200% 100%; animation: shine 6s linear infinite; }
@keyframes shine { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.band__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.band__item { position: relative; padding: 0 28px; }
.band__item + .band__item { border-left: 1px solid var(--line); }
.band__item strong { display: block; color: var(--text); font-size: clamp(44px, 5.4vw, 72px); font-weight: 400; letter-spacing: -0.055em; line-height: 1; font-variant-numeric: tabular-nums; }
.band__item > span { display: block; margin-top: 14px; color: var(--muted); font-size: 15px; }

/* ==========================================================================
   PROCESS
   ========================================================================== */
.process__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.process__aside { position: sticky; top: calc(var(--nav-h) + 40px); }
.process__photo { position: relative; margin: 44px 0 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line); background: radial-gradient(circle at 25% 25%, rgba(111,140,255,.5), transparent 55%), radial-gradient(circle at 80% 80%, rgba(198,244,50,.25), transparent 50%), var(--raised); }
.process__photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity .6s; filter: saturate(.85) contrast(1.05); }
.process__photo img.is-broken { opacity: 0; }
.process__photo figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(7,8,12,.7); color: var(--text-2); font-size: 14.5px; line-height: 1.4; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line-2); }
.process__photo figcaption strong { color: var(--text); font-weight: 600; }
.steps { position: relative; display: grid; gap: 8px; }
.steps__line { position: absolute; left: 31px; top: 44px; bottom: 44px; width: 1px; background: var(--line-2); }
.steps__fill { position: absolute; inset: 0 0 auto 0; height: var(--p, 0%); background: linear-gradient(180deg, var(--brand-hi), var(--lime)); box-shadow: 0 0 12px rgba(198,244,50,.6); transition: height .2s linear; }
.step { position: relative; display: flex; gap: 26px; padding: 28px 0; }
.step__num { position: relative; z-index: 1; flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line-2); font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--dim); transition: color .5s, border-color .5s, box-shadow .5s, background .5s; }
.step.is-lit .step__num { color: var(--lime); border-color: rgba(198,244,50,.5); box-shadow: 0 0 0 6px rgba(198,244,50,.06), 0 0 30px -6px rgba(198,244,50,.5); background: var(--surface); }
.step h3 { font-size: 26px; margin-top: 8px; letter-spacing: -0.035em; }
.step p { margin-top: 10px; color: var(--muted); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { border-top: 1px solid var(--line); }
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.faq__list { display: grid; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); transition: opacity 1.1s var(--ease) var(--d, 0ms), transform 1.1s var(--ease) var(--d, 0ms), filter 1.1s var(--ease) var(--d, 0ms); }
.qa summary { position: relative; list-style: none; cursor: pointer; padding: 26px 64px 26px 0; color: var(--text); font-weight: 500; font-size: 20px; letter-spacing: -0.02em; transition: color .3s; }
.qa summary:hover { color: #fff; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after, .qa summary::before { content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 1.5px; margin-top: -1px; background: var(--text); transition: transform .5s var(--ease), background .3s; }
.qa summary::before { transform: rotate(90deg); }
.qa[open] summary::before { transform: rotate(0); }
.qa[open] summary::after, .qa[open] summary::before { background: var(--lime); }
.qa p { padding: 0 64px 28px 0; color: var(--muted); animation: qaIn .5s var(--ease); }
.qa p em { color: var(--text-2); }
@keyframes qaIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   FEATURES / CHECKLIST / TIMELINE / TABLE / PROSE
   ========================================================================== */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.features--4 { grid-template-columns: repeat(4, 1fr); }
.feature { position: relative; padding: 30px; border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012)); border: 1px solid var(--line); transition: transform .6s var(--ease), border-color .4s, opacity 1.1s var(--ease) var(--d, 0ms), filter 1.1s var(--ease) var(--d, 0ms); }
.feature:hover { transform: translateY(-4px); border-color: transparent; }
.feature__ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(111,140,255,.1); border: 1px solid rgba(111,140,255,.2); color: var(--brand-hi); transition: background .4s, color .4s, transform .6s var(--ease-spring); }
.feature:hover .feature__ico { background: var(--lime); border-color: var(--lime); color: var(--ink); transform: rotate(-6deg) scale(1.05); }
.feature__ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin-top: 24px; font-size: 21px; letter-spacing: -0.03em; }
.feature p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }

.checklist h3 { font-size: 24px; letter-spacing: -0.035em; }
.checklist ol { margin-top: 22px; display: grid; gap: 20px; counter-reset: c; }
.checklist li { position: relative; padding-left: 52px; counter-increment: c; }
.checklist li::before { content: counter(c); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(198,244,50,.35); color: var(--lime); font-family: var(--serif); font-style: italic; font-size: 18px; }
.checklist strong { display: block; font-size: 16.5px; font-weight: 500; color: var(--text); }
.checklist span { display: block; margin-top: 3px; color: var(--muted); font-size: 15px; }
.tech { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.tech span { flex-basis: 100%; margin-bottom: 4px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.tech i { padding: 4px 10px; border-radius: 8px; background: rgba(255,255,255,.03); border: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; font-style: normal; color: var(--text-2); }

.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.timeline::before { content: ""; position: absolute; left: 30px; right: 30px; top: 44px; height: 1px; background: linear-gradient(90deg, var(--brand-hi), var(--violet), var(--lime)); opacity: .45; }
.timeline li { position: relative; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.timeline__wk { position: relative; display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--bg); border: 1px solid rgba(198,244,50,.35); color: var(--lime); font-family: var(--mono); font-size: 12px; }
.timeline h3 { margin-top: 20px; font-size: 22px; letter-spacing: -0.03em; }
.timeline p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }

.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; }
.compare th, .compare td { padding: 20px 24px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.compare tbody th { font-weight: 500; white-space: nowrap; }
.compare tbody th a { color: var(--text); }
.compare tbody th a:hover { color: var(--lime); }
.compare td { color: var(--muted); font-size: 15.5px; }
.compare tbody tr { transition: background .3s; }
.compare tbody tr:hover { background: rgba(255,255,255,.025); }

.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.about__photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line); background: radial-gradient(circle at 25% 25%, rgba(111,140,255,.5), transparent 55%), radial-gradient(circle at 80% 80%, rgba(198,244,50,.25), transparent 50%), var(--raised); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity .6s; filter: saturate(.85) contrast(1.05); }
.about__photo img.is-broken { opacity: 0; }
.prose { margin-top: 24px; color: var(--muted); font-size: 18px; }
.prose p + p { margin-top: 18px; }
.prose--doc { max-width: 760px; margin: 0 auto; font-size: 17px; }
.prose--doc h2 { margin: 48px 0 14px; font-size: 28px; letter-spacing: -0.03em; }
.prose--doc ul { list-style: disc; padding-left: 22px; margin: 12px 0; }
.prose--doc li + li { margin-top: 6px; }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; }

.notfound { min-height: 88vh; display: flex; align-items: center; }
.notfound__code { font-family: var(--serif); font-style: italic; font-size: clamp(130px, 22vw, 260px); line-height: .85; background: var(--serif-grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }

/* ==========================================================================
   CLOSING CTA + CONTACT
   ========================================================================== */
.contact { border-top: 1px solid var(--line); }
.contact__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(900px 520px at 50% 0%, rgba(45,91,255,.22), transparent 70%), radial-gradient(500px 400px at 100% 100%, rgba(198,244,50,.07), transparent 70%); }
.contact__bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 72px 72px; mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000, transparent 75%); }
.cta-hero { max-width: 980px; margin: 0 auto clamp(64px, 8vw, 100px); text-align: center; }
.cta-hero h2 { font-size: clamp(52px, 8vw, 120px); letter-spacing: -0.06em; line-height: .95; }
.cta-hero .section__lead { margin-inline: auto; }
.cta-hero .hero__ctas { justify-content: center; }
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact__copy h3 { font-size: 30px; letter-spacing: -0.035em; }
.contact__copy > p { margin-top: 12px; color: var(--muted); }
.contact__list { display: grid; gap: 14px; margin-top: 30px; }
.contact__list li { display: flex; align-items: center; gap: 14px; color: var(--text-2); }
.contact__list a { color: var(--text); font-weight: 500; }
.contact__list a:hover { color: var(--lime); }
.contact__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.03); border: 1px solid var(--line); color: var(--lime); flex: none; }
.contact__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.contact--page { padding-top: calc(var(--nav-h) + 80px); }
.contact--page .page-hero__title { margin-bottom: 8px; }
.next-steps { margin-top: 44px; padding-top: 34px; border-top: 1px solid var(--line); }
.section .next-steps h2 { font-size: 22px; letter-spacing: -0.02em; }
.next-steps ol { margin-top: 20px; display: grid; gap: 18px; counter-reset: n; }
.next-steps li { position: relative; padding-left: 50px; counter-increment: n; }
.next-steps li::before { content: counter(n); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(198,244,50,.35); color: var(--lime); font-family: var(--serif); font-style: italic; font-size: 18px; }
.next-steps strong { display: block; color: var(--text); font-weight: 500; }
.next-steps span { display: block; color: var(--muted); font-size: 15px; }

.form { position: relative; display: grid; gap: 18px; padding: clamp(24px, 3.4vw, 40px); border-radius: 30px; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field legend { font-size: 13.5px; font-weight: 500; color: var(--text-2); padding: 0; }
.field small { color: var(--dim); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(0,0,0,.3); color: var(--text); font: inherit; font-size: 16px; transition: border-color .3s, box-shadow .3s, background .3s; }
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 55%, calc(100% - 17px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #5E6380; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-hi); box-shadow: 0 0 0 4px rgba(111,140,255,.18); background: rgba(0,0,0,.45); }
.field__err { display: none; font-style: normal; font-size: 13px; color: #FF9B87; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #FF9B87; }
.field.is-invalid .field__err { display: block; }
.field--chips legend { margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font-size: 14px; transition: all .3s var(--ease); user-select: none; }
.chips label:hover span { border-color: rgba(255,255,255,.35); }
.chips input:checked + span { background: var(--lime); border-color: var(--lime); color: var(--ink); font-weight: 600; }
.chips input:focus-visible + span { outline: 2px solid var(--brand-hi); outline-offset: 2px; }
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field--check { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.field.field--check input { width: 18px; height: 18px; padding: 0; margin: 3px 0 0; flex: none; accent-color: var(--lime); cursor: pointer; }
.field.field--check > span { flex: 1; min-width: 0; font-size: 14px; font-weight: 400; color: var(--muted); }
.field--check a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.field--check .field__err { flex-basis: 100%; }
.field.is-invalid.field--check > span { color: #FFB3A6; }
.form .btn { margin-top: 6px; }
.form.is-sending .btn { pointer-events: none; opacity: .8; }
.form button:disabled { opacity: .75; cursor: progress; }
.form__error { padding: 12px 14px; border-radius: 12px; background: rgba(255,107,87,.1); border: 1px solid rgba(255,139,120,.35); color: #FFB3A6; font-size: 14.5px; }
.form__success { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: rgba(198,244,50,.08); border: 1px solid rgba(198,244,50,.35); color: var(--text-2); animation: logIn .5s var(--ease); }
.form__success[hidden] { display: none; }
.form__success strong { display: block; color: var(--text); }
.form__success span { font-size: 14.5px; color: var(--muted); }
.form__check { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); flex: none; }
.form__check svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: drawLine .6s var(--ease) .2s forwards; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { position: relative; overflow: hidden; padding: 96px 0 0; border-top: 1px solid var(--line); color: var(--muted); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand p { margin-top: 18px; max-width: 320px; font-size: 15.5px; }
.footer__tagline { color: var(--text) !important; font-family: var(--serif); font-style: italic; font-size: 24px !important; line-height: 1.2; }
.footer__brand .footer__tagline + p { margin-top: 8px; }
.footer__col { display: grid; gap: 12px; align-content: start; }
.footer__col h2, .footer__col h4 { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.footer__col a { color: var(--text-2); font-size: 15px; }
.footer__col a:hover { color: var(--lime); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 72px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 14px; }
.footer__mark { margin-top: 24px; text-align: center; font-size: clamp(64px, 17vw, 260px); font-weight: 600; letter-spacing: -0.07em; line-height: .78; white-space: nowrap; user-select: none; background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.02) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; transform: translateY(12%); }

/* ==========================================================================
   MODAL
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(3, 4, 8, .75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fadeIn .3s ease both; opacity: 0; }
.modal__panel { position: relative; width: 100%; max-width: 860px; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow: auto; border-radius: 30px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); animation: modalIn .6s var(--ease) both; overscroll-behavior: contain; }
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }
.modal.is-closing .modal__panel { animation: modalOut .25s var(--ease) both; }
.modal.is-closing .modal__backdrop { animation: fadeOut .25s ease both; }
@keyframes modalOut { to { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
.modal__close { position: absolute; top: 16px; right: 16px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; background: rgba(7,8,12,.6); color: var(--text); backdrop-filter: blur(8px); transition: transform .4s var(--ease), background .2s; }
.modal__close:hover { transform: rotate(90deg); background: var(--raised); }
.modal__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.modal__media { position: relative; aspect-ratio: 21 / 9; overflow: hidden; }
.modal__media .case__media { aspect-ratio: auto; height: 100%; margin: 0; border-radius: 0; }
.modal__content { padding: clamp(24px, 4vw, 44px); }
.modal__content h3 { margin-top: 16px; font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.045em; }
.modal__content .case__client { margin-top: 6px; color: var(--muted); }
.modal__content h4 { margin-top: 28px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.modal__content p { margin-top: 8px; color: var(--muted); }
.modal__content ul { margin-top: 12px; display: grid; gap: 10px; }
.modal__content ul li { position: relative; padding-left: 24px; color: var(--text-2); }
.modal__content ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 1px; background: var(--lime); }
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; }
.results div { padding: 20px; border-radius: 18px; background: rgba(255,255,255,.03); border: 1px solid var(--line); color: var(--muted); animation: logIn .5s var(--ease) both; }
.results div:nth-child(2) { animation-delay: .1s; } .results div:nth-child(3) { animation-delay: .2s; }
.results strong { display: block; color: var(--text); font-size: 30px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; }
.results span { display: block; margin-top: 6px; font-size: 14px; }
.modal__content > .btn { margin-top: 32px; }
body.is-locked { overflow: hidden; }

/* ==========================================================================
   WEB SHOWCASE (device frames for the light mockups)
   ========================================================================== */
.web-show { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; align-items: center; }
.web-show > * { min-width: 0; }
.web-show__mock { position: relative; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2); background: #fff; box-shadow: 0 0 0 8px rgba(255,255,255,.025), var(--glow-blue); }
.lh-rings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 24px; }
.lh-ring { position: relative; display: grid; justify-items: center; text-align: center; gap: 8px; }
.lh-ring svg { width: 100%; max-width: 78px; transform: rotate(-90deg); }
.lh-ring circle { fill: none; stroke-width: 5; stroke: rgba(52,211,153,.14); }
.lh-ring .lh-ring__val { stroke: #34D399; stroke-linecap: round; stroke-dasharray: 169.65; stroke-dashoffset: 169.65; transition: stroke-dashoffset 1.8s var(--ease); filter: drop-shadow(0 0 6px rgba(52,211,153,.5)); }
.lh-card.is-drawn .lh-ring__val { stroke-dashoffset: calc(169.65 * (1 - var(--v) / 100)); }
.lh-ring strong { position: absolute; top: 0; left: 0; right: 0; aspect-ratio: 1; max-width: 78px; margin: 0 auto; display: grid; place-items: center; font-size: 22px; font-weight: 500; color: #5EE2A9; font-variant-numeric: tabular-nums; }
.lh-ring span { font-size: 12.5px; color: var(--muted); line-height: 1.25; }
.vitals { margin-top: 26px; display: grid; gap: 16px; border-top: 1px solid var(--line); padding-top: 22px; }
.vitals li { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; font-size: 14.5px; }
.vitals span { color: var(--text-2); }
.vitals em { font-style: normal; font-weight: 600; color: #5EE2A9; }
.vitals b { grid-column: 1 / -1; position: relative; height: 4px; border-radius: 4px; background: rgba(255,255,255,.06); overflow: hidden; }
.vitals b::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 4px; background: linear-gradient(90deg, #34D399, #A7F3D0); transition: width 1.6s var(--ease) .3s; }
.lh-card.is-drawn .vitals b::after { width: var(--w); }

/* hero chips pinned to the dashboard */
.hero__shot .float { z-index: 4; }
.hero__shot .float--1 { top: 60%; left: -60px; }
.hero__shot .float--2 { top: 22%; right: -52px; bottom: auto; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes logIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Site mockup (used for Northwind Dental instead of a stock photo) */
.case__media--mock { background: #E3F4F1; }
.case__media--mock::before { display: none; }
.site-mock {
  --teal: #0FA3A3; --deep: #0E2A2F; --soft: #4D6A6F;
  position: absolute; inset: 0; container-type: inline-size;
  display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(160deg, #F2FBF9, #DDF1ED); color: var(--deep);
  font-family: var(--font); line-height: 1.2; text-align: left;
}
.site-mock > * { font-size: 2.15cqw; }
.site-mock__bar { flex: none; display: flex; align-items: center; gap: 1em; height: 2.6em; padding: 0 1em; background: #E7ECEF; border-bottom: 1px solid #D5DDE0; }
.site-mock__dots { display: flex; gap: .4em; }
.site-mock__dots i { width: .6em; height: .6em; border-radius: 50%; background: #C5CFD3; }
.site-mock__url { display: inline-flex; align-items: center; gap: .4em; flex: 1; max-width: 22em; margin: 0 auto; padding: .3em .9em; border-radius: 999px; background: #fff; color: #5B6B70; font-size: .8em; }
.site-mock__url svg { width: 1em; height: 1em; fill: none; stroke: #12804A; stroke-width: 2.4; }
.site-mock__page { flex: 1; display: flex; flex-direction: column; gap: 1.3em; padding: 1.1em 1.6em 1.3em; }
.site-mock__nav { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.site-mock__logo { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; font-size: .95em; letter-spacing: -0.02em; }
.site-mock__logo b { width: 1.25em; height: 1.25em; border-radius: .4em; background: var(--teal); box-shadow: inset 0 -.35em 0 rgba(0,0,0,.12); }
.site-mock__links { display: flex; gap: 1.3em; }
.site-mock__links i { font-style: normal; font-size: .72em; color: var(--soft); }
.site-mock__btn { padding: .5em 1em; border-radius: 999px; background: var(--teal); color: #fff; font-size: .7em; font-weight: 600; }
.site-mock__hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.4em; align-items: center; }
.site-mock__badge { display: inline-block; padding: .35em .75em; border-radius: 999px; background: #fff; color: #B7791F; font-size: .62em; font-weight: 600; box-shadow: 0 .2em .6em rgba(14,42,47,.06); }
.site-mock__h { display: block; margin: .45em 0 .35em; font-size: 1.8em; font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; }
.site-mock__p { display: block; font-size: .74em; line-height: 1.45; color: var(--soft); }
.site-mock__ctas { display: flex; gap: .5em; margin-top: .9em; }
.site-mock__cta { padding: .65em 1.1em; border-radius: 999px; background: var(--deep); color: #fff; font-size: .7em; font-weight: 600; }
.site-mock__ghost { padding: .65em 1.1em; border-radius: 999px; border: 1px solid rgba(14,42,47,.2); font-size: .7em; font-weight: 600; }
.site-mock__booking { position: relative; display: flex; flex-direction: column; gap: .6em; padding: .9em; border-radius: .9em; background: #fff; box-shadow: 0 .8em 2em -.6em rgba(14,42,47,.25); }
.site-mock__bt { font-size: .78em; font-weight: 700; }
.site-mock__days { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35em; }
.site-mock__days i { padding: .4em 0; border-radius: .5em; background: #F1F5F6; color: #5B6B70; font-style: normal; font-size: .58em; text-align: center; }
.site-mock__days b { display: block; font-size: 1.5em; color: var(--deep); }
.site-mock__days .on { background: var(--teal); color: #DFF7F5; }
.site-mock__days .on b { color: #fff; }
.site-mock__slots { display: grid; grid-template-columns: 1fr 1fr; gap: .35em; }
.site-mock__slots i { padding: .45em 0; border-radius: .5em; border: 1px solid #DCE6E8; font-style: normal; font-size: .66em; text-align: center; color: var(--deep); }
.site-mock__slots .pick { animation: mockPick 7s var(--ease) infinite; }
.site-mock__confirm { padding: .5em; border-radius: .5em; background: #E5F8EF; color: #12804A; font-size: .62em; font-weight: 600; text-align: center; opacity: 0; animation: mockConfirm 7s var(--ease) infinite; }
.site-mock__strip { display: flex; flex-wrap: wrap; gap: .5em; margin-top: auto; }
.site-mock__strip i { padding: .4em .85em; border-radius: 999px; background: rgba(255,255,255,.8); color: var(--soft); font-style: normal; font-size: .6em; }
.site-mock__cursor {
  position: absolute; left: 0; top: 0; z-index: 3; width: 3.2cqw; height: 3.2cqw; pointer-events: none;
  background: var(--ink); clip-path: polygon(0 0, 0 100%, 30% 72%, 50% 100%, 64% 94%, 45% 66%, 82% 66%);
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 2px 3px rgba(0,0,0,.3));
  transform: translate(var(--sx, 30cqw), var(--sy, 40cqw)); opacity: 0;
  animation: mockCursor 7s var(--ease) infinite;
}
@keyframes mockCursor {
  0% { opacity: 0; transform: translate(var(--sx, 30cqw), var(--sy, 40cqw)); }
  8% { opacity: 1; transform: translate(var(--sx, 30cqw), var(--sy, 40cqw)); }
  34% { transform: translate(var(--cx, 70cqw), var(--cy, 40cqw)) scale(1); }
  38% { transform: translate(var(--cx, 70cqw), var(--cy, 40cqw)) scale(.8); }
  42%, 86% { opacity: 1; transform: translate(var(--cx, 70cqw), var(--cy, 40cqw)) scale(1); }
  94%, 100% { opacity: 0; transform: translate(var(--cx, 70cqw), var(--cy, 40cqw)); }
}
@keyframes mockPick {
  0%, 37% { background: transparent; color: var(--deep); border-color: #DCE6E8; }
  40%, 90% { background: var(--deep); color: #fff; border-color: var(--deep); }
  100% { background: transparent; color: var(--deep); border-color: #DCE6E8; }
}
@keyframes mockConfirm {
  0%, 42% { opacity: 0; transform: translateY(.3em); }
  48%, 88% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; }
}


/* App mockup (custom software showcase) */
.app-mock { position: absolute; inset: 0; container-type: inline-size; display: flex; flex-direction: column; overflow: hidden; background: #F7F8FB; color: #101426; font-family: var(--font); line-height: 1.2; text-align: left; }
.app-mock > * { font-size: 2.15cqw; }
.app-mock__bar { flex: none; display: flex; align-items: center; gap: 1em; height: 2.6em; padding: 0 1em; background: #E7EAF0; border-bottom: 1px solid #D7DCE5; }
.app-mock__url { flex: 1; max-width: 20em; margin: 0 auto; padding: .3em .9em; border-radius: 999px; background: #fff; color: #5B6383; font-size: .8em; text-align: center; }
.app-mock__body { flex: 1; min-height: 0; display: grid; grid-template-columns: 9.5em 1fr; }
.app-mock__side { display: flex; flex-direction: column; gap: .3em; padding: 1em .7em; background: #101426; color: #A9B0CC; }
.app-mock__logo { display: flex; align-items: center; gap: .45em; margin: 0 0 .9em .3em; color: #fff; font-weight: 700; font-size: .88em; }
.app-mock__logo b { width: 1.15em; height: 1.15em; border-radius: .3em; background: #E08A00; }
.app-mock__side i { padding: .5em .6em; border-radius: .45em; font-style: normal; font-size: .72em; }
.app-mock__side i.on { background: rgba(255,255,255,.1); color: #fff; }
.app-mock__main { min-width: 0; display: flex; flex-direction: column; gap: .9em; padding: 1em 1.2em; }
.app-mock__head { display: flex; align-items: center; justify-content: space-between; }
.app-mock__title { font-weight: 700; font-size: 1.15em; letter-spacing: -0.02em; }
.app-mock__btn { padding: .5em .85em; border-radius: .5em; background: #2D5BFF; color: #fff; font-size: .66em; font-weight: 600; animation: mockBtn 6s var(--ease) infinite; }
.app-mock__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6em; }
.app-mock__kpis span { padding: .6em .75em; border-radius: .6em; background: #fff; border: 1px solid #E6E8F2; }
.app-mock__kpis small { display: block; font-size: .58em; color: #7A7F9C; }
.app-mock__kpis b { display: block; margin-top: .15em; font-size: 1.15em; letter-spacing: -0.02em; }
.app-mock__table { border-radius: .6em; background: #fff; border: 1px solid #E6E8F2; overflow: hidden; }
.app-mock__row { display: grid; grid-template-columns: .8fr 1.4fr 1.5fr .8fr; align-items: center; height: 2.35em; padding: 0 .9em; border-bottom: 1px solid #EEF0F5; overflow: hidden; }
.app-mock__row:last-child { border-bottom: 0; }
.app-mock__row i { font-style: normal; font-size: .64em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-mock__row i:last-child { text-align: right; font-weight: 600; }
.app-mock__row--head { height: 2em; background: #FAFBFE; }
.app-mock__row--head i { font-size: .54em; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #7A7F9C; }
.app-mock__row--new { animation: mockRow 6s var(--ease) infinite; }
.st { display: inline-block; padding: .25em .65em; border-radius: 999px; font-style: normal; font-weight: 600; white-space: nowrap; }
.st--new { background: #EAF8C2; color: #4B6300; }
.st--ok { background: #E3F7EA; color: #0E8A43; }
.st--wip { background: #FFF2DB; color: #A86E00; }
.st--wait { background: #E6ECFF; color: #2D5BFF; }
.st--done { background: #F1F2F6; color: #7A7F9C; }
@keyframes mockRow {
  0%, 14% { height: 0; opacity: 0; background: rgba(198,244,50,0); border-bottom-width: 0; }
  24% { height: 2.35em; opacity: 1; background: rgba(198,244,50,.4); border-bottom-width: 1px; }
  60% { background: rgba(198,244,50,.16); }
  86% { height: 2.35em; opacity: 1; background: rgba(198,244,50,0); }
  96%, 100% { height: 0; opacity: 0; border-bottom-width: 0; }
}
@keyframes mockBtn { 0%, 8%, 18%, 100% { transform: scale(1); } 12% { transform: scale(.9); } }


/* Ads stat cards: lighter numerals to match the rest of the system */
.stat-card { border-radius: var(--radius-lg); }
.stat-card strong { font-weight: 500; font-size: 48px; }
.flow__node { border-radius: 22px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .hero__shot .float--1 { left: -12px; }
  .hero__shot .float--2 { right: -12px; }
  .page-hero { grid-template-columns: 1fr; gap: 44px; }
  .result-card { max-width: 560px; }
  .visibility__grid { grid-template-columns: 1fr; }
  .flow { flex-wrap: wrap; justify-content: center; gap: 14px; }
  .flow__link { display: none; }
  .flow__node { width: calc(33.333% - 10px); }
  .showcase__bottom { grid-template-columns: 1fr; }
  .showcase__stats { grid-template-columns: repeat(3, 1fr); }
  .stat-card { flex-direction: column; align-items: flex-start; gap: 8px; }
  .stat-card strong { min-width: 0; }
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .band__grid { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .band__item:nth-child(3) { border-left: 0; }
  .process__grid, .faq__grid, .contact__grid, .about__grid { grid-template-columns: 1fr; }
  .process__aside { position: static; }
  .process__photo { aspect-ratio: 16 / 9; }
  .features, .features--4 { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { display: none; }
  .web-show { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --nav-h: 76px; }
  .nav { inset: 10px 0 auto 0; }
  .nav__inner { height: 58px; padding: 0 8px 0 16px; margin: 0 12px; }
  .nav.is-scrolled .nav__inner { max-width: none; }
  .nav__cta { display: none; }
  .nav__toggle {
    display: grid; place-content: center; gap: 6px; margin-left: auto;
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255,255,255,.04);
  }
  .nav__toggle span { display: block; width: 18px; height: 1.5px; border-radius: 2px; background: var(--text); transition: transform .4s var(--ease); }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
  .nav__links {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0; margin: 0;
    padding: 12px; flex-direction: column; align-items: stretch; gap: 2px;
    border-radius: 26px; background: rgba(13, 15, 22, .97); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    max-height: calc(100dvh - var(--nav-h) - 24px); overflow-y: auto;
    transform: translateY(-10px) scale(.98); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s;
  }
  .nav.is-open .nav__inner { background: rgba(13, 15, 22, .97); }
  .nav.is-open .nav__links { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .35s var(--ease), transform .35s var(--ease); }
  .nav__links a { padding: 14px 16px; font-size: 18px; color: var(--text-2); }
  .nav__links > a[aria-current="page"]::after, .nav__group > a[aria-current="page"]::after { left: auto; right: 16px; top: 50%; bottom: auto; margin: -2px 0 0; }
  .nav__group { display: contents; }
  .nav__group::after { display: none; }
  .nav__caret { display: none; }
  .nav__menu { position: static; width: auto; padding: 0 0 6px 14px; background: none; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; backdrop-filter: none; }
  .nav__links .nav__menu a { padding: 9px 12px; }
  .nav__menu strong { font-size: 16px; color: var(--muted); }
  .nav__menu a[aria-current="page"] strong { color: var(--text); }
  .nav__menu small { display: none; }
  .nav__ico { width: 26px; height: 26px; border-radius: 8px; }
  .nav__ico::after { inset: 9px; }
  .nav__cta-mobile { display: inline-flex !important; margin-top: 10px; padding: 16px !important; color: var(--ink) !important; }
  .svc--wide { display: flex; flex-direction: column; align-items: stretch; }
  .svc__list--cols { margin-top: 20px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .hero--home { padding-top: calc(var(--nav-h) + 56px); }
  .eyebrow-pill { margin-bottom: 26px; font-size: 13px; }
  .display { font-size: clamp(50px, 15vw, 76px); }
  .hero__lead { margin-top: 22px; }
  .hero__ctas { margin-top: 34px; width: 100%; }
  .hero--home .hero__ctas, .cta-hero .hero__ctas { flex-direction: column; gap: 18px; }
  .btn--xl { width: 100%; justify-content: space-between; min-height: 66px; padding-left: 26px; font-size: 17.5px; }
  .btn__arrow { width: 48px; height: 48px; }
  .hero__trust { flex-direction: column; align-items: center; gap: 8px; }
  .hero__stage { margin-top: 56px; }
  .hero__shot .float { display: none; }
  .hero__shot .dash { padding: 14px; border-radius: 20px; }
  .hero__shot .dash__chart { height: 150px; }
  .dash__kpis { gap: 6px; }
  .kpi { padding: 10px 9px; }
  .kpi__label { font-size: 11px; }
  .dash__updated { display: none; }
  .hero--page { padding: calc(var(--nav-h) + 52px) 0 80px; }
  .page-hero__title { font-size: clamp(42px, 12vw, 60px); }
  .result-card { padding: 22px; }
  .result-card__row strong { min-width: 104px; font-size: 34px; }
  .section h2 { font-size: clamp(36px, 10vw, 48px); }
  .cta-hero h2 { font-size: clamp(46px, 13vw, 64px); }
  .marquee { padding: 24px 0; }
  .marquee__list li { font-size: 17px; padding: 0 20px; }
  .marquee__list li::after { margin-left: 40px; }
  .services__grid { grid-template-columns: 1fr; }
  .svc { padding: 28px 24px 26px; }
  .svc__badge { top: 26px; right: 24px; }
  .svc__list--cols { grid-template-columns: 1fr; gap: 10px; }
  .flow__node { width: calc(50% - 7px); padding: 18px 10px 16px; }
  .flow__node:last-child { width: 100%; }
  .showcase__stats { grid-template-columns: 1fr; }
  .stat-card { flex-direction: row; align-items: center; }
  .stat-card strong { min-width: 104px; font-size: 40px; }
  .terminal__body { font-size: 11.5px; height: 230px; padding: 14px; }
  .ai-card, .rank-card, .lh-card, .checklist { padding: 20px; }
  .ai-card__q { max-width: 100%; }
  .rank-card__value { font-size: 46px; }
  .work__grid, .work__grid--2 { grid-template-columns: 1fr; }
  .band__grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .band__item { padding: 0 16px; }
  .band__item:nth-child(odd) { padding-left: 0; border-left: 0; }
  .band__item > span { font-size: 14px; }
  .step { gap: 18px; padding: 20px 0; }
  .step__num { width: 54px; height: 54px; font-size: 22px; }
  .steps__line { left: 26.5px; }
  .step h3 { font-size: 22px; margin-top: 6px; }
  .qa summary { font-size: 17.5px; padding: 22px 48px 22px 0; }
  .qa p { padding-right: 0; }
  .features, .features--4, .timeline { grid-template-columns: 1fr; }
  .feature { padding: 24px; }
  .compare th, .compare td { padding: 16px 18px; }
  .prose { font-size: 16.5px; }
  .form__row { grid-template-columns: 1fr; }
  .form { border-radius: 24px; }
  .results { grid-template-columns: 1fr; }
  .modal { padding: 10px; align-items: end; }
  .modal__panel { max-height: calc(100dvh - 20px); border-radius: 24px; }
  .modal__media { aspect-ratio: 16 / 9; }
  .contact--page { padding-top: calc(var(--nav-h) + 44px); }
  .lh-rings { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .web-show__mock { aspect-ratio: 4 / 3.4; }
  .site-mock__links { display: none; }
  .app-mock > * { font-size: 2.7cqw; }
  .app-mock__body { grid-template-columns: 1fr; }
  .app-mock__side { display: none; }
  .footer { padding-top: 72px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; }
}

/* ==========================================================================
   BLOG
   ========================================================================== */
.blog-list { padding-top: clamp(64px, 8vw, 100px); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { position: relative; }
.post-card__link { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012)); border: 1px solid var(--line); overflow: hidden; color: inherit; transition: transform .6s var(--ease), border-color .4s; }
.post-card__link:hover { transform: translateY(-6px); border-color: rgba(111,140,255,.35); color: inherit; }
.post-card__media { position: relative; aspect-ratio: 16 / 10; margin: 10px 10px 0; border-radius: 18px; overflow: hidden; background: radial-gradient(circle at 25% 25%, rgba(111,140,255,.5), transparent 55%), radial-gradient(circle at 80% 80%, rgba(198,244,50,.22), transparent 50%), var(--raised); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post-card__link:hover .post-card__media img { transform: scale(1.05); }
.post-card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 96px; color: rgba(255,255,255,.18); }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 26px; }
.post-card__tag { align-self: flex-start; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(198,244,50,.3); color: var(--lime); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.post-card h3 { margin-top: 16px; font-size: 22px; letter-spacing: -0.03em; line-height: 1.2; }
.post-card p { margin-top: 10px; color: var(--muted); font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__meta { margin-top: auto; padding-top: 18px; font-size: 13.5px; color: var(--dim); }
.post-card--featured { margin-bottom: 20px; }
.post-card--featured .post-card__link { display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch; }
.post-card--featured .post-card__media { aspect-ratio: auto; min-height: 340px; margin: 10px; }
.post-card--featured .post-card__body { justify-content: center; padding: 40px 44px 40px 24px; }
.post-card--featured h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.045em; line-height: 1.08; }
.post-card--featured p { -webkit-line-clamp: 4; font-size: 17px; }
.post-card--featured .post-card__meta { margin-top: 0; }

.blog-empty { max-width: 640px; margin: 0 auto; padding: 64px 32px; text-align: center; border-radius: var(--radius-lg); border: 1px dashed var(--line-2); }
.blog-empty__icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%; background: rgba(198,244,50,.1); color: var(--lime); font-size: 22px; }
.blog-empty h2 { font-size: 30px !important; letter-spacing: -0.035em; }
.blog-empty p { margin-top: 12px; color: var(--muted); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; }
.pager__info { font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }

/* Article */
.preview-banner { position: fixed; left: 50%; bottom: 20px; z-index: 150; transform: translateX(-50%); padding: 12px 18px; border-radius: 999px; background: var(--amber); color: var(--ink); font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow-lg); white-space: nowrap; }
.preview-banner a { color: var(--ink); text-decoration: underline; margin-left: 8px; }
.article__hero { padding-bottom: 72px; }
.article__head { max-width: 900px; text-align: center; }
.article__head .crumbs { justify-content: center; }
.article__title { font-size: clamp(38px, 5.6vw, 72px); font-weight: 500; letter-spacing: -0.05em; line-height: 1.02; }
.article__excerpt { max-width: 680px; margin: 24px auto 0; color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); }
.article__meta { display: inline-flex; align-items: center; gap: 12px; margin-top: 32px; text-align: left; }
.article__avatar svg { width: 42px; height: 42px; }
.article__meta strong { display: block; color: var(--text); font-weight: 500; font-size: 15px; }
.article__meta small { display: block; color: var(--dim); font-size: 13.5px; }
.article__container { max-width: 1120px; }
.article__cover { margin: 56px 0 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 8.5; background: var(--raised); }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }
.article__layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; padding: 64px 0 clamp(80px, 10vw, 120px); }
.article__aside { position: sticky; top: calc(var(--nav-h) + 30px); align-self: start; display: grid; gap: 32px; }
.toc__label { display: block; margin-bottom: 12px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.toc ol { display: grid; gap: 2px; border-left: 1px solid var(--line); counter-reset: none; }
.toc a { display: block; margin-left: -1px; padding: 6px 0 6px 14px; border-left: 1px solid transparent; color: var(--muted); font-size: 14px; line-height: 1.4; transition: color .2s, border-color .2s; }
.toc a:hover, .toc a.is-current { color: var(--text); border-left-color: var(--lime); }
.share__links { display: flex; flex-wrap: wrap; gap: 8px; }
.share__links a, .share__copy { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font-size: 13.5px; font-weight: 600; transition: border-color .2s, color .2s; }
.share__links a:hover, .share__copy:hover { border-color: var(--lime); color: var(--lime); }

.prose--article { margin: 0; max-width: 720px; font-size: 18.5px; line-height: 1.75; color: var(--text-2); }
.prose--article > * + * { margin-top: 1.15em; }
.prose--article h2 { margin-top: 2.2em; font-size: clamp(28px, 3vw, 36px); letter-spacing: -0.035em; line-height: 1.15; scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose--article h3 { margin-top: 1.9em; font-size: 24px; letter-spacing: -0.025em; line-height: 1.25; }
.prose--article h4 { margin-top: 1.6em; font-size: 19px; letter-spacing: -0.01em; }
.prose--article h2 + *, .prose--article h3 + *, .prose--article h4 + * { margin-top: .7em; }
.prose--article > :first-child { margin-top: 0; }
.prose--article strong { color: var(--text); font-weight: 600; }
.prose--article a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(198,244,50,.6); text-underline-offset: 3px; }
.prose--article a:hover { color: var(--lime); }
.prose--article ul, .prose--article ol { padding-left: 1.3em; }
.prose--article ul { list-style: disc; }
.prose--article ol { list-style: decimal; }
.prose--article li + li { margin-top: .45em; }
.prose--article li::marker { color: var(--lime); }
.prose--article blockquote { margin-left: 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--lime); font-family: var(--serif); font-style: italic; font-size: 1.35em; line-height: 1.45; color: var(--text); }
.prose--article img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); }
.prose--article figure { margin: 2em 0; }
.prose--article figcaption { margin-top: 10px; text-align: center; color: var(--dim); font-size: 14px; }
.prose--article hr { margin: 2.6em 0; border: 0; height: 1px; background: var(--line-2); }
.prose--article code { padding: .15em .4em; border-radius: 6px; background: rgba(255,255,255,.06); font-family: var(--mono); font-size: .85em; color: var(--text); }
.prose--article pre { padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow-x: auto; }
.prose--article pre code { padding: 0; background: none; }
.prose--article table { width: 100%; border-collapse: collapse; font-size: .9em; display: block; overflow-x: auto; }
.prose--article th, .prose--article td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.prose--article th { color: var(--text); font-weight: 600; }
.article__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 3em !important; padding-top: 24px; border-top: 1px solid var(--line); }
.article__tags span { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.related { border-top: 1px solid var(--line); }

@media (max-width: 1080px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-card--featured .post-card__link { grid-template-columns: 1fr; }
  .post-card--featured .post-card__media { min-height: 0; aspect-ratio: 16 / 9; margin: 10px 10px 0; }
  .post-card--featured .post-card__body { padding: 28px; }
  .article__layout { grid-template-columns: 1fr; gap: 40px; }
  .article__aside { position: static; order: 2; }
  .toc { display: none; }
  .prose--article { max-width: none; }
}
@media (max-width: 680px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-card--featured .post-card__body { padding: 22px 22px 26px; }
  .article__cover { margin-top: 36px; aspect-ratio: 16 / 10; }
  .article__layout { padding-top: 40px; }
  .prose--article { font-size: 17px; }
  .prose--article blockquote { font-size: 1.2em; padding-left: 18px; }
  .pager .btn { padding: 12px 16px; }
  .preview-banner { white-space: normal; width: calc(100% - 32px); border-radius: 18px; text-align: center; }
}

/* Related services (internal links on service pages and blog posts) */
.related-services { border-top: 1px solid var(--line); }
.related-services__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.related-services__list li:has(a[aria-current]) { display: none; }
.related-services__list a { display: grid; gap: 6px; height: 100%; padding: 22px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012)); border: 1px solid var(--line); color: var(--text); transition: transform .5s var(--ease), border-color .3s; }
.related-services__list a:hover { transform: translateY(-4px); border-color: rgba(111,140,255,.35); color: var(--text); }
.related-services__list .nav__ico { margin-bottom: 10px; }
.related-services__list strong { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.related-services__list small { color: var(--muted); font-size: 14.5px; line-height: 1.45; }

/* Real client case study (screenshots instead of stock photos) */
.case__media--shot { background: #F3F4F6; }
.case__media--shot::before { display: none; }
.case__media--shot img { object-position: 0 0; filter: none; }
.case__media--shot::after { background: linear-gradient(180deg, transparent 55%, rgba(7,8,12,.55)); }
.case__tags .case__tag--real { border-color: rgba(198,244,50,.4); color: var(--lime); }
.work__grid--feature { grid-template-columns: 1fr; }
.work__grid--feature .case__btn { display: grid; grid-template-columns: 1.35fr 1fr; }
.work__grid--feature .case__media { aspect-ratio: auto; min-height: 380px; margin: 10px; }
.work__grid--feature .case__body { justify-content: center; padding: 36px 40px 36px 24px; }
.work__grid--feature .case__body h3 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.04em; }
.modal__media .case__media--shot img { object-fit: contain; object-position: center; }
.case__gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 14px; }
.case__gallery figure { margin: 0; }
.case__gallery img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line-2); background: #F3F4F6; }
.case__gallery figcaption { margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.case__note { margin-top: 18px !important; font-size: 13px; color: var(--dim) !important; }
@media (max-width: 860px) {
  .work__grid--feature .case__btn { display: flex; }
  .work__grid--feature .case__media { min-height: 0; aspect-ratio: 16 / 9; margin: 10px 10px 0; }
  .work__grid--feature .case__body { padding: 22px 24px 26px; }
}
@media (max-width: 680px) { .case__gallery { grid-template-columns: 1fr; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
  [data-split] { opacity: 1; }
  .line__in { transform: none; }
  .aurora span, .marquee__track, .float { animation: none; }
  .hero__shot { transform: none; }
  .site-mock__cursor { display: none; }
  .site-mock__slots .pick { background: var(--deep); color: #fff; }
  .site-mock__confirm { opacity: 1; }
  .app-mock__row--new { animation: none; background: rgba(198,244,50,.2); }
}
