/* ==========================================================================
   SEO AITracker — Aquil Tech Labs
   Design system  ·  vanilla CSS  ·  light + dark themes
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* brand */
  --brand-50:  #eef2ff;
  --brand-100: #e0e7ff;
  --brand-200: #c7d2fe;
  --brand-300: #a5b4fc;
  --brand-400: #818cf8;
  --brand-500: #6366f1;
  --brand-600: #4f46e5;
  --brand-700: #4338ca;
  --brand-800: #3730a3;

  --blue-500: #3b82f6;
  --blue-600: #2563eb;

  /* status */
  --ok:    #10b981;
  --ok-bg: #d1fae5;
  --warn:  #f59e0b;
  --warn-bg:#fef3c7;
  --bad:   #ef4444;
  --bad-bg:#fee2e2;
  --violet:#8b5cf6;
  --cyan:  #06b6d4;
  --pink:  #ec4899;

  /* radii + motion */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;
  --ease: cubic-bezier(.4,0,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  /* layout */
  --wrap: 1200px;
  --wrap-narrow: 820px;
  --nav-h: 72px;

  /* fonts */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* ---- light (default) ---- */
:root,
[data-theme="light"] {
  --bg:        #ffffff;
  --bg-soft:   #f8fafc;
  --bg-soft-2: #f1f5f9;
  --surface:   #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #ffffff;
  --border:    #e2e8f0;
  --border-2:  #cbd5e1;
  --text:      #0f172a;
  --text-2:    #475569;
  --text-3:    #94a3b8;
  --primary:   var(--brand-600);
  --primary-2: var(--brand-700);
  --primary-soft: var(--brand-50);
  --ring: rgba(79,70,229,.28);

  --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
  --shadow:    0 4px 16px -4px rgba(15,23,42,.10), 0 2px 6px -2px rgba(15,23,42,.06);
  --shadow-lg: 0 24px 48px -18px rgba(15,23,42,.20), 0 8px 20px -10px rgba(15,23,42,.10);
  --shadow-brand: 0 16px 40px -14px rgba(79,70,229,.42);

  --grid-line: rgba(15,23,42,.055);
  --shot-filter: none;
  --glass: rgba(255,255,255,.82);
}

/* ---- dark ---- */
[data-theme="dark"] {
  --bg:        #0a0f1e;
  --bg-soft:   #0d1426;
  --bg-soft-2: #111a30;
  --surface:   #111a2e;
  --surface-2: #16203a;
  --surface-3: #1b2745;
  --border:    #22304f;
  --border-2:  #2e3f66;
  --text:      #e9eefb;
  --text-2:    #a3b0cc;
  --text-3:    #6b7a9c;
  --primary:   #818cf8;
  --primary-2: #a5b4fc;
  --primary-soft: rgba(99,102,241,.14);
  --ring: rgba(129,140,248,.34);

  --ok-bg:  rgba(16,185,129,.16);
  --warn-bg:rgba(245,158,11,.16);
  --bad-bg: rgba(239,68,68,.16);

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow:    0 6px 20px -6px rgba(0,0,0,.6);
  --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.75);
  --shadow-brand: 0 16px 44px -14px rgba(99,102,241,.45);

  --grid-line: rgba(255,255,255,.05);
  /* screenshots are light captures — soften + tint them for dark UI */
  --shot-filter: invert(.92) hue-rotate(180deg) saturate(1.12) brightness(1.02) contrast(.95);
  --glass: rgba(17,26,46,.82);
}

/* --------------------------------------------------------------------------
   2. Reset + base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

h1, h2, h3, h4, h5 {
  margin: 0 0 .5em;
  line-height: 1.18;
  letter-spacing: -.022em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); letter-spacing: -.028em; }
h3 { font-size: clamp(1.2rem, 2.1vw, 1.5rem); }
h4 { font-size: 1.06rem; }
p  { margin: 0 0 1.05em; color: var(--text-2); }
strong { color: var(--text); font-weight: 650; }

::selection { background: var(--primary); color: #fff; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 999px; border: 3px solid var(--bg-soft); }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.wrap-narrow { max-width: var(--wrap-narrow); }
.section { padding: clamp(64px, 9vw, 116px) 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: clamp(48px, 6vw, 76px) 0; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.wrapf { flex-wrap: wrap; }

@media (max-width: 980px) {
  .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .wrap { padding-inline: 18px; }
}

/* --------------------------------------------------------------------------
   4. Typography blocks
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  padding: 6px 14px; border-radius: var(--r-full);
  margin-bottom: 18px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); animation: pulseDot 2s var(--ease) infinite;
}
@keyframes pulseDot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: .35; transform: scale(.7); }
}

.lead { font-size: clamp(1.02rem, 1.6vw, 1.16rem); color: var(--text-2); line-height: 1.72; }
.section-head { max-width: 720px; margin: 0 auto clamp(40px,5vw,64px); text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.section-head p:last-child { margin-bottom: 0; }

.grad {
  background: linear-gradient(112deg, var(--brand-500) 0%, var(--blue-500) 46%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: var(--r-full);
  font-size: .935rem; font-weight: 640; letter-spacing: -.008em;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease),
              background-color .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn-primary {
  background: linear-gradient(135deg, var(--brand-600), var(--blue-600));
  color: #fff; box-shadow: var(--shadow-brand);
}
.btn-primary:hover { box-shadow: 0 22px 52px -16px rgba(79,70,229,.6); }
[data-theme="dark"] .btn-primary { background: linear-gradient(135deg, var(--brand-500), var(--blue-500)); }

.btn-ghost {
  background: var(--surface); color: var(--text);
  border-color: var(--border); box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow); }

.btn-soft { background: var(--primary-soft); color: var(--primary); }
.btn-soft:hover { background: color-mix(in srgb, var(--primary) 18%, transparent); }

.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-lg { padding: 16px 34px; font-size: 1rem; }
.btn-block { width: 100%; }

/* text link with arrow */
.tlink {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--primary); font-weight: 620; font-size: .93rem;
}
.tlink svg { width: 16px; height: 16px; transition: transform .25s var(--ease-out); }
.tlink:hover svg { transform: translateX(5px); }

/* --------------------------------------------------------------------------
   6. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease), border-color .3s var(--ease);
  position: relative;
}
.card--hover:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--border-2); }
.card--flat { box-shadow: none; }
.card--pad-sm { padding: 20px; }

.icon-box {
  width: 46px; height: 46px; border-radius: var(--r-md);
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--primary-soft); color: var(--primary);
  transition: transform .3s var(--ease-out);
}
.icon-box svg { width: 22px; height: 22px; }
.card--hover:hover .icon-box { transform: scale(1.08) rotate(-4deg); }

.icon-box.ok    { background: var(--ok-bg);   color: var(--ok); }
.icon-box.warn  { background: var(--warn-bg); color: var(--warn); }
.icon-box.bad   { background: var(--bad-bg);  color: var(--bad); }
.icon-box.violet{ background: color-mix(in srgb, var(--violet) 14%, transparent); color: var(--violet); }
.icon-box.cyan  { background: color-mix(in srgb, var(--cyan) 14%, transparent);   color: var(--cyan); }
.icon-box.pink  { background: color-mix(in srgb, var(--pink) 14%, transparent);   color: var(--pink); }

/* feature card (homepage glimpse) */
.fcard {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform .34s var(--ease-out), box-shadow .34s var(--ease), border-color .34s var(--ease);
  box-shadow: var(--shadow-sm);
}
.fcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.fcard__media {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  background: var(--bg-soft-2); border-bottom: 1px solid var(--border);
}
.fcard__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  filter: var(--shot-filter);
  transition: transform .55s var(--ease-out);
}
.fcard:hover .fcard__media img { transform: scale(1.045); }
.fcard__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--surface) 70%, transparent), transparent 45%);
  pointer-events: none;
}
.fcard__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.fcard__body h3 { margin-bottom: 9px; font-size: 1.16rem; }
.fcard__body p { font-size: .93rem; margin-bottom: 16px; flex: 1; }
.fcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.pill-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.pill {
  font-size: .7rem; font-weight: 620; letter-spacing: .02em;
  padding: 4px 10px; border-radius: var(--r-full);
  background: var(--bg-soft-2); color: var(--text-2); border: 1px solid var(--border);
}
.pill.brand { background: var(--primary-soft); color: var(--primary); border-color: color-mix(in srgb, var(--primary) 25%, transparent); }
.pill.ok   { background: var(--ok-bg);   color: var(--ok);   border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.pill.warn { background: var(--warn-bg); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.pill.bad  { background: var(--bad-bg);  color: var(--bad);  border-color: color-mix(in srgb, var(--bad) 30%, transparent); }

/* --------------------------------------------------------------------------
   7. Header / nav
   -------------------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.06rem; letter-spacing: -.028em; }
.logo__mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-600), var(--blue-500));
  display: grid; place-items: center; color: #fff; flex-shrink: 0;
  box-shadow: 0 6px 16px -6px rgba(79,70,229,.7);
}
.logo__mark svg { width: 19px; height: 19px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 14px; border-radius: var(--r-full);
  font-size: .91rem; font-weight: 550; color: var(--text-2);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--text); background: var(--bg-soft-2); }
.nav a.active { color: var(--primary); font-weight: 640; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* dropdown */
.dd { position: relative; }
.dd__btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 14px; border-radius: var(--r-full);
  font-size: .91rem; font-weight: 550; color: var(--text-2);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.dd__btn:hover, .dd.open .dd__btn { color: var(--text); background: var(--bg-soft-2); }
.dd__btn svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.dd.open .dd__btn svg { transform: rotate(180deg); }
.dd__menu {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: min(620px, 88vw);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 12px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .24s var(--ease), transform .24s var(--ease-out), visibility .24s;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
}
.dd.open .dd__menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.dd__item { display: flex; gap: 12px; padding: 11px 12px; border-radius: var(--r-md); transition: background-color .2s var(--ease); }
.dd__item:hover { background: var(--bg-soft-2); }
.dd__item .ic {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  display: grid; place-items: center; background: var(--primary-soft); color: var(--primary);
}
.dd__item .ic svg { width: 17px; height: 17px; }
.dd__item strong { display: block; font-size: .89rem; font-weight: 640; margin-bottom: 1px; }
.dd__item span { display: block; font-size: .78rem; color: var(--text-3); line-height: 1.45; }

/* theme toggle */
.theme-toggle {
  width: 38px; height: 38px; border-radius: var(--r-full);
  display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .3s var(--ease-out);
}
.theme-toggle:hover { color: var(--primary); border-color: var(--primary); transform: rotate(18deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun  { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }

/* burger */
.burger { display: none; width: 38px; height: 38px; border-radius: var(--r-full); place-items: center; border: 1px solid var(--border); background: var(--surface); }
.burger span { display: block; width: 17px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.burger span + span { margin-top: 4px; }
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* mobile drawer */
.mobile-nav {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 99;
  background: var(--bg); overflow-y: auto; padding: 24px 20px 60px;
  transform: translateX(100%); transition: transform .34s var(--ease-out);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a { display: block; padding: 13px 4px; font-size: 1rem; font-weight: 560; border-bottom: 1px solid var(--border); }
.mobile-nav .grp { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); font-weight: 700; margin: 26px 0 6px; }
.mobile-nav .btn { margin-top: 24px; }

@media (max-width: 1024px) {
  .nav, .dd { display: none; }
  .burger { display: grid; }
  .nav-actions .btn { display: none; }
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 92px); overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(58% 46% at 50% -8%, color-mix(in srgb, var(--brand-500) 20%, transparent), transparent 70%),
    radial-gradient(40% 34% at 88% 12%, color-mix(in srgb, var(--violet) 15%, transparent), transparent 70%),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
  -webkit-mask-image: radial-gradient(78% 68% at 50% 24%, #000 40%, transparent 100%);
          mask-image: radial-gradient(78% 68% at 50% 24%, #000 40%, transparent 100%);
}
.hero__inner { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { max-width: 540px; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 22px; font-size: .84rem; color: var(--text-3); }
.hero__trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero__trust svg { width: 15px; height: 15px; color: var(--ok); }

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero .lead { max-width: none; }
}

/* --------------------------------------------------------------------------
   9. Animated dashboard mock (pure CSS/JS "gif")
   -------------------------------------------------------------------------- */
.mock {
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transition: transform .6s var(--ease-out);
}
.mock:hover { transform: perspective(1400px) rotateY(0deg) rotateX(0deg); }
.mock--flat { transform: none; }
.mock--flat:hover { transform: none; }

.mock__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.mock__dots { display: flex; gap: 6px; }
.mock__dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.mock__dots i:nth-child(1) { background: #ef4444; }
.mock__dots i:nth-child(2) { background: #f59e0b; }
.mock__dots i:nth-child(3) { background: #10b981; }
.mock__url {
  flex: 1; margin-left: 8px; font-size: .72rem; color: var(--text-3);
  background: var(--bg); border: 1px solid var(--border);
  padding: 5px 12px; border-radius: var(--r-full);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--mono);
}
.mock__body { padding: 18px; background: var(--bg-soft); }

.mock__tabs { display: flex; gap: 4px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.mock__tabs::-webkit-scrollbar { display: none; }
.mock__tab {
  font-size: .74rem; font-weight: 600; padding: 6px 13px;
  border-radius: var(--r-full); color: var(--text-3);
  background: transparent; white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.mock__tab.on { background: var(--primary); color: #fff; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 12px 13px;
}
.stat__k { font-size: .63rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); font-weight: 700; }
.stat__v { font-size: 1.5rem; font-weight: 750; letter-spacing: -.03em; line-height: 1.2; margin-top: 3px; }
.stat__d { font-size: .7rem; font-weight: 650; margin-top: 1px; }
.stat__d.up   { color: var(--ok); }
.stat__d.down { color: var(--bad); }

/* animated bar chart */
.chartbox {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 14px; margin-bottom: 14px;
}
.chartbox__t { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); font-weight: 700; margin-bottom: 12px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 92px; }
.bars i {
  flex: 1; display: block; border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--brand-500), var(--blue-600));
  height: 6%;
  animation: barGrow 3.6s var(--ease-out) infinite;
  transform-origin: bottom;
}
@keyframes barGrow {
  0%   { height: 6%; opacity: .35; }
  22%  { height: var(--h, 50%); opacity: 1; }
  70%  { height: var(--h, 50%); opacity: 1; }
  92%  { height: 6%; opacity: .35; }
  100% { height: 6%; opacity: .35; }
}

/* animated rank table */
.rank-tbl { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; }
.rank-tbl__h,
.rank-row {
  display: grid; grid-template-columns: 1fr 54px 60px;
  gap: 8px; padding: 9px 13px; align-items: center; font-size: .76rem;
}
.rank-tbl__h {
  background: var(--surface-2); color: var(--text-3);
  font-size: .63rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.rank-row { border-bottom: 1px solid var(--border); }
.rank-row:last-child { border-bottom: 0; }
.rank-row span:first-child { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row b { font-weight: 700; }
.rank-row .chg { font-weight: 700; font-size: .72rem; }
.chg.up   { color: var(--ok); }
.chg.down { color: var(--bad); }

/* floating badges around mock */
.float-badge {
  position: absolute; z-index: 3;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 10px 14px;
  box-shadow: var(--shadow-lg); font-size: .78rem; font-weight: 620;
  display: flex; align-items: center; gap: 9px;
  animation: floaty 5.5s var(--ease) infinite;
}
.float-badge svg { width: 16px; height: 16px; }
.float-badge.b1 { top: 8%; left: -6%; animation-delay: 0s; }
.float-badge.b2 { bottom: 14%; right: -5%; animation-delay: 1.6s; }
@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-13px); }
}
@media (max-width: 1180px) { .float-badge { display: none; } }

.mock-wrap { position: relative; }

/* --------------------------------------------------------------------------
   10. AI engine visibility meters (animated)
   -------------------------------------------------------------------------- */
.engines { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.engine {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 18px;
  transition: transform .3s var(--ease-out), border-color .3s var(--ease);
}
.engine:hover { transform: translateY(-4px); border-color: var(--border-2); }
.engine__top { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.engine__logo {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center; font-size: .7rem; font-weight: 800; color: #fff;
}
.engine__name { font-size: .87rem; font-weight: 640; }
.engine__val { font-size: 1.45rem; font-weight: 760; letter-spacing: -.03em; margin-bottom: 8px; }
.meter { height: 6px; border-radius: 999px; background: var(--bg-soft-2); overflow: hidden; }
.meter i {
  display: block; height: 100%; border-radius: 999px; width: 0;
  background: linear-gradient(90deg, var(--brand-500), var(--blue-500));
  transition: width 1.5s var(--ease-out);
}
.engine.is-in .meter i { width: var(--w, 60%); }

/* --------------------------------------------------------------------------
   11. Screenshot frame (browser chrome + theme-aware filter)
   -------------------------------------------------------------------------- */
.shot {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--shadow);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease-out);
}
.shot:hover { box-shadow: var(--shadow-lg); }
.shot__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.shot__label {
  flex: 1; font-size: .72rem; color: var(--text-3);
  font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.shot__img { position: relative; background: var(--bg-soft-2); overflow: hidden; }
.shot__img img {
  width: 100%; height: auto; display: block;
  filter: var(--shot-filter);
  transition: filter .3s var(--ease);
}
.shot--tall .shot__img { max-height: 520px; overflow: hidden; }
.shot--tall .shot__img::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 90px;
  background: linear-gradient(to top, var(--surface), transparent);
  pointer-events: none;
}
.shot__cap { font-size: .82rem; color: var(--text-3); text-align: center; margin-top: 12px; }

/* --------------------------------------------------------------------------
   12. Feature page: split rows
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split.rev > *:first-child { order: 2; }
.split + .split { margin-top: clamp(56px, 7vw, 96px); }
@media (max-width: 900px) {
  .split, .split.rev { grid-template-columns: 1fr; }
  .split.rev > *:first-child { order: 0; }
}

.check-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 11px; }
.check-list li { display: flex; gap: 11px; font-size: .94rem; color: var(--text-2); line-height: 1.6; }
.check-list li::before {
  content: ""; flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}
.check-list li strong { color: var(--text); }

/* stat strip */
.stats-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.stats-strip > div { background: var(--surface); padding: 26px 22px; text-align: center; }
.stats-strip .n { font-size: clamp(1.7rem, 3.2vw, 2.35rem); font-weight: 780; letter-spacing: -.035em; line-height: 1.1; }
.stats-strip .l { font-size: .8rem; color: var(--text-3); margin-top: 5px; font-weight: 550; }

/* --------------------------------------------------------------------------
   13. Page hero (inner pages)
   -------------------------------------------------------------------------- */
.phero { position: relative; padding: clamp(48px, 6vw, 80px) 0 clamp(40px, 5vw, 60px); overflow: hidden; }
.phero__bg {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    radial-gradient(60% 90% at 20% 0%, color-mix(in srgb, var(--brand-500) 16%, transparent), transparent 68%),
    radial-gradient(50% 80% at 88% 8%, color-mix(in srgb, var(--violet) 13%, transparent), transparent 68%);
}
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: .82rem; color: var(--text-3); margin-bottom: 18px; }
.crumbs a:hover { color: var(--primary); }
.crumbs svg { width: 13px; height: 13px; opacity: .55; }
.phero h1 { max-width: 15ch; }
.phero .lead { max-width: 640px; }

/* --------------------------------------------------------------------------
   14. Tabs (feature pages)
   -------------------------------------------------------------------------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; justify-content: center; }
.tab-btn {
  padding: 9px 18px; border-radius: var(--r-full); font-size: .87rem; font-weight: 600;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  transition: all .22s var(--ease);
}
.tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.tab-btn.on { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: var(--shadow-brand); }
.tab-panel { display: none; animation: fadeUp .45s var(--ease-out); }
.tab-panel.on { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   15. Accordion / FAQ
   -------------------------------------------------------------------------- */
.acc { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.acc + .acc { margin-top: 10px; }
.acc__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; text-align: left; font-size: .98rem; font-weight: 620; color: var(--text);
  transition: background-color .2s var(--ease);
}
.acc__q:hover { background: var(--bg-soft-2); }
.acc__q .ico {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center; transition: transform .3s var(--ease);
}
.acc__q .ico svg { width: 13px; height: 13px; }
.acc.open .acc__q .ico { transform: rotate(45deg); }
.acc__a { max-height: 0; overflow: hidden; transition: max-height .38s var(--ease); }
.acc__a > div { padding: 0 22px 20px; color: var(--text-2); font-size: .93rem; line-height: 1.72; }

/* --------------------------------------------------------------------------
   16. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl); padding: clamp(44px, 6vw, 72px) clamp(28px, 5vw, 64px);
  background: linear-gradient(125deg, var(--brand-700) 0%, var(--brand-600) 42%, var(--blue-600) 100%);
  color: #fff; text-align: center;
  box-shadow: var(--shadow-brand);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(40% 60% at 12% 10%, rgba(255,255,255,.22), transparent 60%),
    radial-gradient(38% 55% at 88% 90%, rgba(255,255,255,.15), transparent 60%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.86); max-width: 560px; margin-inline: auto; }
.cta-band .btn-primary { background: #fff; color: var(--brand-700); box-shadow: 0 14px 34px -12px rgba(0,0,0,.4); }
.cta-band .btn-primary:hover { box-shadow: 0 20px 44px -14px rgba(0,0,0,.5); }
.cta-band .btn-ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.34); color: #fff; }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.2); border-color: #fff; color: #fff; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: clamp(52px, 6vw, 76px) 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 40px; margin-bottom: 44px; }
.footer__brand p { font-size: .89rem; max-width: 300px; margin-top: 16px; }
.footer h5 { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); font-weight: 700; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { font-size: .89rem; color: var(--text-2); transition: color .2s var(--ease); }
.footer ul a:hover { color: var(--primary); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  padding-top: 26px; border-top: 1px solid var(--border);
  font-size: .84rem; color: var(--text-3);
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__bottom a:hover { color: var(--primary); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   18. Legal pages
   -------------------------------------------------------------------------- */
.legal { display: grid; grid-template-columns: 260px 1fr; gap: 52px; align-items: start; }
.legal__toc {
  position: sticky; top: calc(var(--nav-h) + 24px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px; max-height: calc(100vh - var(--nav-h) - 60px); overflow-y: auto;
}
.legal__toc h5 { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); font-weight: 700; margin-bottom: 14px; }
.legal__toc a {
  display: block; padding: 7px 10px; border-radius: var(--r-xs);
  font-size: .84rem; color: var(--text-2); line-height: 1.45;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.legal__toc a:hover, .legal__toc a.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }

.legal__body { max-width: 780px; }
.legal__body section { scroll-margin-top: calc(var(--nav-h) + 24px); }
.legal__body section + section { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--border); }
.legal__body h2 { display: flex; align-items: baseline; gap: 14px; font-size: 1.5rem; margin-bottom: 18px; }
.legal__body h2 .num {
  font-size: .72rem; font-weight: 800; letter-spacing: .06em;
  color: var(--primary); background: var(--primary-soft);
  padding: 4px 10px; border-radius: var(--r-full); flex-shrink: 0;
}
.legal__body h3 { font-size: 1.02rem; margin: 26px 0 10px; }
.legal__body p, .legal__body li { font-size: .94rem; line-height: 1.78; color: var(--text-2); }
.legal__body ul, .legal__body ol { padding-left: 22px; margin: 0 0 18px; display: grid; gap: 9px; }
.legal__body a { color: var(--primary); font-weight: 550; }
.legal__body a:hover { text-decoration: underline; }
.legal__body code {
  font-family: var(--mono); font-size: .85em;
  background: var(--bg-soft-2); border: 1px solid var(--border);
  padding: 2px 7px; border-radius: var(--r-xs); color: var(--primary);
}

.legal-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.legal-meta span {
  font-size: .8rem; padding: 7px 14px; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
}
.legal-meta b { color: var(--text); font-weight: 640; }

.kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 14px; margin: 0 0 20px; }
.kv {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 16px 18px;
}
.kv strong { display: block; font-size: .9rem; margin-bottom: 4px; }
.kv span { font-size: .85rem; color: var(--text-2); line-height: 1.6; }
.kv--ok    { border-left: 3px solid var(--ok); }
.kv--bad   { border-left: 3px solid var(--bad); }
.kv--brand { border-left: 3px solid var(--primary); }

.tbl-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-md); margin: 0 0 20px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 480px; }
table.tbl th, table.tbl td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
table.tbl th { background: var(--surface-2); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); font-weight: 700; }
table.tbl td { color: var(--text-2); }
table.tbl tr:last-child td { border-bottom: 0; }

@media (max-width: 900px) {
  .legal { grid-template-columns: 1fr; gap: 28px; }
  .legal__toc { position: static; max-height: none; }
}

/* --------------------------------------------------------------------------
   19. Misc utility
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; }
.reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; }
.reveal.d4 { transition-delay: .28s; }
.reveal.d5 { transition-delay: .35s; }

.mb-0 { margin-bottom: 0 !important; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mt-56 { margin-top: 56px; }
.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; }

.divider { height: 1px; background: var(--border); border: 0; margin: 0; }

/* back to top */
.totop {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-brand);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .3s var(--ease), transform .3s var(--ease-out), visibility .3s;
}
.totop.show { opacity: 1; visibility: visible; transform: none; }
.totop:hover { transform: translateY(-3px); }
.totop svg { width: 19px; height: 19px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   20. Print
   -------------------------------------------------------------------------- */
@media print {
  .header, .footer, .totop, .cta-band, .mobile-nav { display: none !important; }
  body { background: #fff; color: #000; }
  .legal { grid-template-columns: 1fr; }
  .legal__toc { display: none; }
}
/* ==========================================================================
   SEO AITracker — Aquil Tech Labs
   Design system  ·  vanilla CSS  ·  light + dark themes
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* brand */
  --brand-50:  #eef2ff;
  --brand-100: #e0e7ff;
  --brand-200: #c7d2fe;
  --brand-300: #a5b4fc;
  --brand-400: #818cf8;
  --brand-500: #6366f1;
  --brand-600: #4f46e5;
  --brand-700: #4338ca;
  --brand-800: #3730a3;

  --blue-500: #3b82f6;
  --blue-600: #2563eb;

  /* status */
  --ok:    #10b981;
  --ok-bg: #d1fae5;
  --warn:  #f59e0b;
  --warn-bg:#fef3c7;
  --bad:   #ef4444;
  --bad-bg:#fee2e2;
  --violet:#8b5cf6;
  --cyan:  #06b6d4;
  --pink:  #ec4899;

  /* radii + motion */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;
  --ease: cubic-bezier(.4,0,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  /* layout */
  --wrap: 1200px;
  --wrap-narrow: 820px;
  --nav-h: 72px;

  /* fonts */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* status + accent alphas (identical in both themes) */
  --violet-a13: rgba(139,92,246,.13);
  --violet-a14: rgba(139,92,246,.14);
  --violet-a15: rgba(139,92,246,.15);
  --cyan-a14:   rgba(6,182,212,.14);
  --pink-a14:   rgba(236,72,153,.14);
  --ok-a30:     rgba(16,185,129,.30);
  --ok-a34:     rgba(16,185,129,.34);
  --warn-a30:   rgba(245,158,11,.30);
  --warn-a34:   rgba(245,158,11,.34);
  --bad-a30:    rgba(239,68,68,.30);
}

/* ---- light (default) ---- */
:root,
[data-theme="light"] {
  --bg:        #ffffff;
  --bg-soft:   #f8fafc;
  --bg-soft-2: #f1f5f9;
  --surface:   #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #ffffff;
  --border:    #e2e8f0;
  --border-2:  #cbd5e1;
  --text:      #0f172a;
  --text-2:    #475569;
  --text-3:    #94a3b8;
  --primary:   var(--brand-600);
  --primary-2: var(--brand-700);
  --primary-soft: var(--brand-50);
  --ring: rgba(79,70,229,.28);

  --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
  --shadow:    0 4px 16px -4px rgba(15,23,42,.10), 0 2px 6px -2px rgba(15,23,42,.06);
  --shadow-lg: 0 24px 48px -18px rgba(15,23,42,.20), 0 8px 20px -10px rgba(15,23,42,.10);
  --shadow-brand: 0 16px 40px -14px rgba(79,70,229,.42);

  --grid-line: rgba(15,23,42,.055);
  --glass: rgba(255,255,255,.82);

  /* pre-mixed alpha values, written as plain rgba for maximum browser support */
  --primary-a18: rgba(79,70,229,.18);
  --primary-a22: rgba(79,70,229,.22);
  --primary-a25: rgba(79,70,229,.25);
  --primary-a32: rgba(79,70,229,.32);
  --primary-a35: rgba(79,70,229,.35);
  --primary-a45: rgba(79,70,229,.45);
  --brand-a16:   rgba(99,102,241,.16);
  --brand-a18:   rgba(99,102,241,.18);
  --brand-a20:   rgba(99,102,241,.20);
  --brand-glow:  rgba(79,70,229,.34);
  --brand-sh42:  rgba(79,70,229,.42);
  --brand-sh45:  rgba(79,70,229,.45);
  --surface-a55: rgba(255,255,255,.55);
  --sheen:       rgba(255,255,255,.42);
}

/* ---- dark ---- */
[data-theme="dark"] {
  --bg:        #0a0f1e;
  --bg-soft:   #0d1426;
  --bg-soft-2: #111a30;
  --surface:   #111a2e;
  --surface-2: #16203a;
  --surface-3: #1b2745;
  --border:    #22304f;
  --border-2:  #2e3f66;
  --text:      #e9eefb;
  --text-2:    #a3b0cc;
  --text-3:    #6b7a9c;
  --primary:   #818cf8;
  --primary-2: #a5b4fc;
  --primary-soft: rgba(99,102,241,.14);
  --ring: rgba(129,140,248,.34);

  --ok-bg:  rgba(16,185,129,.16);
  --warn-bg:rgba(245,158,11,.16);
  --bad-bg: rgba(239,68,68,.16);

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow:    0 6px 20px -6px rgba(0,0,0,.6);
  --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.75);
  --shadow-brand: 0 16px 44px -14px rgba(99,102,241,.45);

  --grid-line: rgba(255,255,255,.05);
  --glass: rgba(17,26,46,.82);

  /* pre-mixed alphas — dark variants */
  --primary-a18: rgba(129,140,248,.20);
  --primary-a22: rgba(129,140,248,.24);
  --primary-a25: rgba(129,140,248,.28);
  --primary-a32: rgba(129,140,248,.34);
  --primary-a35: rgba(129,140,248,.38);
  --primary-a45: rgba(129,140,248,.48);
  --brand-a16:   rgba(99,102,241,.22);
  --brand-a18:   rgba(99,102,241,.24);
  --brand-a20:   rgba(99,102,241,.26);
  --brand-glow:  rgba(129,140,248,.46);
  --brand-sh42:  rgba(99,102,241,.46);
  --brand-sh45:  rgba(99,102,241,.50);
  --surface-a55: rgba(17,26,46,.55);
  --sheen:       rgba(165,180,252,.20);
}

/* --------------------------------------------------------------------------
   2. Reset + base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

h1, h2, h3, h4, h5 {
  margin: 0 0 .5em;
  line-height: 1.18;
  letter-spacing: -.022em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); letter-spacing: -.028em; }
h3 { font-size: clamp(1.2rem, 2.1vw, 1.5rem); }
h4 { font-size: 1.06rem; }
p  { margin: 0 0 1.05em; color: var(--text-2); }
strong { color: var(--text); font-weight: 650; }

::selection { background: var(--primary); color: #fff; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 999px; border: 3px solid var(--bg-soft); }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.wrap-narrow { max-width: var(--wrap-narrow); }
.section { padding: clamp(64px, 9vw, 116px) 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: clamp(48px, 6vw, 76px) 0; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.wrapf { flex-wrap: wrap; }

@media (max-width: 980px) {
  .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .wrap { padding-inline: 18px; }
}

/* --------------------------------------------------------------------------
   4. Typography blocks
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid var(--primary-a22);
  padding: 6px 14px; border-radius: var(--r-full);
  margin-bottom: 18px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); animation: pulseDot 2s var(--ease) infinite;
}
@keyframes pulseDot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: .35; transform: scale(.7); }
}

.lead { font-size: clamp(1.02rem, 1.6vw, 1.16rem); color: var(--text-2); line-height: 1.72; }
.section-head { max-width: 720px; margin: 0 auto clamp(40px,5vw,64px); text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.section-head p:last-child { margin-bottom: 0; }

.grad {
  background: linear-gradient(112deg, var(--brand-500) 0%, var(--blue-500) 46%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: var(--r-full);
  font-size: .935rem; font-weight: 640; letter-spacing: -.008em;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease),
              background-color .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn-primary {
  background: linear-gradient(135deg, var(--brand-600), var(--blue-600));
  color: #fff; box-shadow: var(--shadow-brand);
}
.btn-primary:hover { box-shadow: 0 22px 52px -16px rgba(79,70,229,.6); }
[data-theme="dark"] .btn-primary { background: linear-gradient(135deg, var(--brand-500), var(--blue-500)); }

.btn-ghost {
  background: var(--surface); color: var(--text);
  border-color: var(--border); box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow); }

.btn-soft { background: var(--primary-soft); color: var(--primary); }
.btn-soft:hover { background: var(--primary-a18); }

.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-lg { padding: 16px 34px; font-size: 1rem; }
.btn-block { width: 100%; }

/* text link with arrow */
.tlink {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--primary); font-weight: 620; font-size: .93rem;
}
.tlink svg { width: 16px; height: 16px; transition: transform .25s var(--ease-out); }
.tlink:hover svg { transform: translateX(5px); }

/* --------------------------------------------------------------------------
   6. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease), border-color .3s var(--ease);
  position: relative;
}
.card--hover:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--border-2); }
.card--flat { box-shadow: none; }
.card--pad-sm { padding: 20px; }

.icon-box {
  width: 46px; height: 46px; border-radius: var(--r-md);
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--primary-soft); color: var(--primary);
  transition: transform .3s var(--ease-out);
}
.icon-box svg { width: 22px; height: 22px; }
.card--hover:hover .icon-box { transform: scale(1.08) rotate(-4deg); }

.icon-box.ok    { background: var(--ok-bg);   color: var(--ok); }
.icon-box.warn  { background: var(--warn-bg); color: var(--warn); }
.icon-box.bad   { background: var(--bad-bg);  color: var(--bad); }
.icon-box.violet{ background: var(--violet-a14); color: var(--violet); }
.icon-box.cyan  { background: var(--cyan-a14);   color: var(--cyan); }
.icon-box.pink  { background: var(--pink-a14);   color: var(--pink); }

/* feature card (homepage glimpse) */
.fcard {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform .34s var(--ease-out), box-shadow .34s var(--ease), border-color .34s var(--ease);
  box-shadow: var(--shadow-sm);
}
.fcard:hover {
  transform: translateY(-8px) scale(1.012);
  box-shadow: var(--shadow-lg), 0 26px 60px -30px var(--brand-sh45);
  border-color: var(--primary-a45);
}

/* the screenshot sits on a tilted stage inside the card */
.fcard__media {
  position: relative; aspect-ratio: 16/10; overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -20%, var(--brand-a16), transparent 62%),
    var(--bg-soft-2);
  border-bottom: 1px solid var(--border);
  perspective: 1100px;
  perspective-origin: 50% 30%;
  display: grid; place-items: end center;
  padding: 20px 18px 0;
}
.fcard__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  border-radius: 10px 10px 0 0;
  border: 1px solid var(--border);
  border-bottom: 0;
  transform: rotateX(11deg) scale(.99);
  transform-origin: 50% 100%;
  box-shadow: 0 22px 40px -22px rgba(15,23,42,.5);
  transition: transform .6s var(--ease-out), box-shadow .5s var(--ease);
}
[data-theme="dark"] .fcard__media img { box-shadow: 0 22px 46px -20px rgba(0,0,0,.8); }
.fcard:hover .fcard__media img {
  transform: rotateX(0deg) scale(1.03) translateY(-4px);
  box-shadow: 0 30px 56px -24px rgba(15,23,42,.55);
}
.fcard__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--surface-a55), transparent 40%);
  pointer-events: none;
}
.fcard__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.fcard__body h3 { margin-bottom: 9px; font-size: 1.16rem; }
.fcard__body p { font-size: .93rem; margin-bottom: 16px; flex: 1; }
.fcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.pill-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.pill {
  font-size: .7rem; font-weight: 620; letter-spacing: .02em;
  padding: 4px 10px; border-radius: var(--r-full);
  background: var(--bg-soft-2); color: var(--text-2); border: 1px solid var(--border);
}
.pill.brand { background: var(--primary-soft); color: var(--primary); border-color: var(--primary-a25); }
.pill.ok   { background: var(--ok-bg);   color: var(--ok);   border-color: var(--ok-a30); }
.pill.warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-a30); }
.pill.bad  { background: var(--bad-bg);  color: var(--bad);  border-color: var(--bad-a30); }

/* --------------------------------------------------------------------------
   7. Header / nav
   -------------------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.06rem; letter-spacing: -.028em; }
.logo__mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-600), var(--blue-500));
  display: grid; place-items: center; color: #fff; flex-shrink: 0;
  box-shadow: 0 6px 16px -6px rgba(79,70,229,.7);
}
.logo__mark svg { width: 19px; height: 19px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 14px; border-radius: var(--r-full);
  font-size: .91rem; font-weight: 550; color: var(--text-2);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--text); background: var(--bg-soft-2); }
.nav a.active { color: var(--primary); font-weight: 640; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* dropdown */
.dd { position: relative; }
.dd__btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 14px; border-radius: var(--r-full);
  font-size: .91rem; font-weight: 550; color: var(--text-2);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.dd__btn:hover, .dd.open .dd__btn { color: var(--text); background: var(--bg-soft-2); }
.dd__btn svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.dd.open .dd__btn svg { transform: rotate(180deg); }
.dd__menu {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: min(620px, 88vw);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 12px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .24s var(--ease), transform .24s var(--ease-out), visibility .24s;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
}
.dd.open .dd__menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.dd__item { display: flex; gap: 12px; padding: 11px 12px; border-radius: var(--r-md); transition: background-color .2s var(--ease); }
.dd__item:hover { background: var(--bg-soft-2); }
.dd__item .ic {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  display: grid; place-items: center; background: var(--primary-soft); color: var(--primary);
}
.dd__item .ic svg { width: 17px; height: 17px; }
.dd__item strong { display: block; font-size: .89rem; font-weight: 640; margin-bottom: 1px; }
.dd__item span { display: block; font-size: .78rem; color: var(--text-3); line-height: 1.45; }

/* theme toggle */
.theme-toggle {
  width: 38px; height: 38px; border-radius: var(--r-full);
  display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .3s var(--ease-out);
}
.theme-toggle:hover { color: var(--primary); border-color: var(--primary); transform: rotate(18deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun  { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }

/* burger */
.burger { display: none; width: 38px; height: 38px; border-radius: var(--r-full); place-items: center; border: 1px solid var(--border); background: var(--surface); }
.burger span { display: block; width: 17px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.burger span + span { margin-top: 4px; }
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* mobile drawer */
.mobile-nav {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 99;
  background: var(--bg); overflow-y: auto; padding: 24px 20px 60px;
  transform: translateX(100%); transition: transform .34s var(--ease-out);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a { display: block; padding: 13px 4px; font-size: 1rem; font-weight: 560; border-bottom: 1px solid var(--border); }
.mobile-nav .grp { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); font-weight: 700; margin: 26px 0 6px; }
.mobile-nav .btn { margin-top: 24px; }

@media (max-width: 1024px) {
  .nav, .dd { display: none; }
  .burger { display: grid; }
  .nav-actions .btn { display: none; }
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 92px); overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(58% 46% at 50% -8%, var(--brand-a20), transparent 70%),
    radial-gradient(40% 34% at 88% 12%, var(--violet-a15), transparent 70%),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
  -webkit-mask-image: radial-gradient(78% 68% at 50% 24%, #000 40%, transparent 100%);
          mask-image: radial-gradient(78% 68% at 50% 24%, #000 40%, transparent 100%);
}
.hero__inner { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { max-width: 540px; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 22px; font-size: .84rem; color: var(--text-3); }
.hero__trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero__trust svg { width: 15px; height: 15px; color: var(--ok); }

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero .lead { max-width: none; }
}

/* --------------------------------------------------------------------------
   9. Animated dashboard mock (pure CSS/JS "gif")
   -------------------------------------------------------------------------- */
.mock {
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transition: transform .6s var(--ease-out);
}
.mock:hover { transform: perspective(1400px) rotateY(0deg) rotateX(0deg); }
.mock--flat { transform: none; }
.mock--flat:hover { transform: none; }

.mock__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.mock__dots { display: flex; gap: 6px; }
.mock__dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.mock__dots i:nth-child(1) { background: #ef4444; }
.mock__dots i:nth-child(2) { background: #f59e0b; }
.mock__dots i:nth-child(3) { background: #10b981; }
.mock__url {
  flex: 1; margin-left: 8px; font-size: .72rem; color: var(--text-3);
  background: var(--bg); border: 1px solid var(--border);
  padding: 5px 12px; border-radius: var(--r-full);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--mono);
}
.mock__body { padding: 18px; background: var(--bg-soft); }

.mock__tabs { display: flex; gap: 4px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.mock__tabs::-webkit-scrollbar { display: none; }
.mock__tab {
  font-size: .74rem; font-weight: 600; padding: 6px 13px;
  border-radius: var(--r-full); color: var(--text-3);
  background: transparent; white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.mock__tab.on { background: var(--primary); color: #fff; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 12px 13px;
}
.stat__k { font-size: .63rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); font-weight: 700; }
.stat__v { font-size: 1.5rem; font-weight: 750; letter-spacing: -.03em; line-height: 1.2; margin-top: 3px; }
.stat__d { font-size: .7rem; font-weight: 650; margin-top: 1px; }
.stat__d.up   { color: var(--ok); }
.stat__d.down { color: var(--bad); }

/* animated bar chart */
.chartbox {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 14px; margin-bottom: 14px;
}
.chartbox__t { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); font-weight: 700; margin-bottom: 12px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 92px; }
.bars i {
  flex: 1; display: block; border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--brand-500), var(--blue-600));
  height: 6%;
  animation: barGrow 3.6s var(--ease-out) infinite;
  transform-origin: bottom;
}
@keyframes barGrow {
  0%   { height: 6%; opacity: .35; }
  22%  { height: var(--h, 50%); opacity: 1; }
  70%  { height: var(--h, 50%); opacity: 1; }
  92%  { height: 6%; opacity: .35; }
  100% { height: 6%; opacity: .35; }
}

/* animated rank table */
.rank-tbl { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; }
.rank-tbl__h,
.rank-row {
  display: grid; grid-template-columns: 1fr 54px 60px;
  gap: 8px; padding: 9px 13px; align-items: center; font-size: .76rem;
}
.rank-tbl__h {
  background: var(--surface-2); color: var(--text-3);
  font-size: .63rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.rank-row { border-bottom: 1px solid var(--border); }
.rank-row:last-child { border-bottom: 0; }
.rank-row span:first-child { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row b { font-weight: 700; }
.rank-row .chg { font-weight: 700; font-size: .72rem; }
.chg.up   { color: var(--ok); }
.chg.down { color: var(--bad); }

/* floating badges around mock */
.float-badge {
  position: absolute; z-index: 3;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 10px 14px;
  box-shadow: var(--shadow-lg); font-size: .78rem; font-weight: 620;
  display: flex; align-items: center; gap: 9px;
  animation: floaty 5.5s var(--ease) infinite;
}
.float-badge svg { width: 16px; height: 16px; }
.float-badge.b1 { top: 8%; left: -6%; animation-delay: 0s; }
.float-badge.b2 { bottom: 14%; right: -5%; animation-delay: 1.6s; }
@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-13px); }
}
@media (max-width: 1180px) { .float-badge { display: none; } }

.mock-wrap { position: relative; }

/* --------------------------------------------------------------------------
   10. AI engine visibility meters (animated)
   -------------------------------------------------------------------------- */
.engines { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.engine {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 18px;
  transition: transform .3s var(--ease-out), border-color .3s var(--ease);
}
.engine:hover { transform: translateY(-4px); border-color: var(--border-2); }
.engine__top { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.engine__logo {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center; font-size: .7rem; font-weight: 800; color: #fff;
}
.engine__name { font-size: .87rem; font-weight: 640; }
.engine__val { font-size: 1.45rem; font-weight: 760; letter-spacing: -.03em; margin-bottom: 8px; }
.meter { height: 6px; border-radius: 999px; background: var(--bg-soft-2); overflow: hidden; }
.meter i {
  display: block; height: 100%; border-radius: 999px; width: 0;
  background: linear-gradient(90deg, var(--brand-500), var(--blue-500));
  transition: width 1.5s var(--ease-out);
}
.engine.is-in .meter i { width: var(--w, 60%); }

/* --------------------------------------------------------------------------
   11. Screenshot frame — 3D perspective stage
   -------------------------------------------------------------------------- */
.shot3d {
  position: relative;
  perspective: 1900px;
  perspective-origin: 50% 38%;
  padding: 10px 0 34px;
  z-index: 0;
}

/* offset ghost layer — reads as a stack of panels receding into the page */
.shot3d::before {
  content: ""; position: absolute; z-index: -2;
  inset: 10px 0 34px 0;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transform: translate3d(20px, 18px, 0) scale(.985);
  opacity: .6;
  transition: transform .55s var(--ease-out), opacity .45s var(--ease);
}

/* contact shadow on the floor — grounds the tilted panel */
.shot3d::after {
  content: ""; position: absolute; z-index: -3;
  left: 7%; right: 7%; bottom: 8px; height: 46px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
              var(--brand-glow), transparent 72%);
  filter: blur(18px);
  opacity: .5;
  transition: opacity .45s var(--ease), transform .55s var(--ease-out);
}
[data-theme="dark"] .shot3d::after {
  background: radial-gradient(ellipse at center,
              var(--brand-glow), transparent 72%);
  opacity: .62;
}

.shot {
  position: relative;
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--shadow);
  transition: box-shadow .45s var(--ease), transform .6s var(--ease-out);
}
.shot:hover { box-shadow: var(--shadow-lg); }

/* the tilt itself */
.shot3d > .shot {
  transform: rotateX(7deg) rotateY(-13deg) rotateZ(1deg) scale(.965);
  transform-origin: 50% 50%;
  box-shadow:
    -14px 22px 40px -22px rgba(15,23,42,.34),
    -28px 44px 80px -40px rgba(15,23,42,.30),
    var(--shadow);
  animation: shotFloat 7s var(--ease) infinite;
}
.shot3d--right > .shot {
  transform: rotateX(7deg) rotateY(13deg) rotateZ(-1deg) scale(.965);
  box-shadow:
    14px 22px 40px -22px rgba(15,23,42,.34),
    28px 44px 80px -40px rgba(15,23,42,.30),
    var(--shadow);
}
.shot3d--right::before { transform: translate3d(-20px, 18px, 0) scale(.985); }

/* full-width hero shot — leans back toward the reader, no sideways yaw */
.shot3d--hero { perspective: 2400px; perspective-origin: 50% 0%; padding-bottom: 44px; }
.shot3d--hero > .shot {
  transform: rotateX(11deg) scale(.975);
  transform-origin: 50% 0%;
  box-shadow:
    0 30px 50px -26px rgba(15,23,42,.36),
    0 60px 100px -50px rgba(15,23,42,.32),
    var(--shadow);
}
.shot3d--hero::before { transform: translate3d(0, 26px, 0) scale(.96); }
[data-theme="dark"] .shot3d--hero > .shot {
  box-shadow: 0 30px 56px -24px rgba(0,0,0,.75), 0 64px 110px -50px rgba(0,0,0,.65);
}

[data-theme="dark"] .shot3d > .shot {
  box-shadow:
    -14px 22px 44px -20px rgba(0,0,0,.72),
    -30px 48px 90px -40px rgba(0,0,0,.6);
}
[data-theme="dark"] .shot3d--right > .shot {
  box-shadow:
    14px 22px 44px -20px rgba(0,0,0,.72),
    30px 48px 90px -40px rgba(0,0,0,.6);
}

@keyframes shotFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -9px; }
}

/* straighten and lift on hover */
.shot3d:hover > .shot,
.shot3d:focus-within > .shot {
  transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1);
  animation-play-state: paused;
  box-shadow: var(--shadow-lg), 0 30px 70px -28px var(--brand-sh42);
}
.shot3d:hover::before { transform: translate3d(0, 0, 0) scale(1); opacity: 0; }
.shot3d--right:hover::before { transform: translate3d(0, 0, 0) scale(1); }
.shot3d:hover::after { opacity: .8; transform: scaleX(1.05); }

/* light sweep across the glass on hover */
.shot__img::before {
  content: ""; position: absolute; inset: 0; z-index: 3;
  pointer-events: none;
  background: linear-gradient(104deg,
    transparent 34%,
    var(--sheen) 46%,
    transparent 58%);
  transform: translateX(-120%);
  transition: transform 1.05s var(--ease-out);
}
.shot3d:hover .shot__img::before { transform: translateX(120%); }
[data-theme="dark"] .shot__img::before {
  background: linear-gradient(104deg,
    transparent 34%,
    var(--sheen) 46%,
    transparent 58%);
}

@media (max-width: 720px) {
  .shot3d { perspective: none; padding: 6px 0 20px; }
  .shot3d > .shot,
  .shot3d--right > .shot { transform: none; animation: none; }
  .shot3d::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .shot3d > .shot, .shot3d--right > .shot { animation: none; }
}
.shot__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.shot__label {
  flex: 1; font-size: .72rem; color: var(--text-3);
  font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.shot__img { position: relative; background: var(--bg-soft-2); overflow: hidden; }
.shot__img img { width: 100%; height: auto; display: block; }

/* each view is drawn twice — once per palette — so dark mode is a real
   redraw rather than an inverted light-mode image */
.shot-dark  { display: none; }
[data-theme="dark"] .shot-light { display: none; }
[data-theme="dark"] .shot-dark  { display: block; }
.shot--tall .shot__img { max-height: 520px; overflow: hidden; }
.shot--tall .shot__img::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 90px;
  background: linear-gradient(to top, var(--surface), transparent);
  pointer-events: none;
}
.shot__cap { font-size: .82rem; color: var(--text-3); text-align: center; margin-top: 12px; }

/* --------------------------------------------------------------------------
   12. Feature page: split rows
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split.rev > *:first-child { order: 2; }
.split + .split { margin-top: clamp(56px, 7vw, 96px); }
@media (max-width: 900px) {
  .split, .split.rev { grid-template-columns: 1fr; }
  .split.rev > *:first-child { order: 0; }
}

.check-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 11px; }
.check-list li { display: flex; gap: 11px; font-size: .94rem; color: var(--text-2); line-height: 1.6; }
.check-list li::before {
  content: ""; flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}
.check-list li strong { color: var(--text); }

/* stat strip */
.stats-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.stats-strip > div { background: var(--surface); padding: 26px 22px; text-align: center; }
.stats-strip .n { font-size: clamp(1.7rem, 3.2vw, 2.35rem); font-weight: 780; letter-spacing: -.035em; line-height: 1.1; }
.stats-strip .l { font-size: .8rem; color: var(--text-3); margin-top: 5px; font-weight: 550; }

/* --------------------------------------------------------------------------
   13. Page hero (inner pages)
   -------------------------------------------------------------------------- */
.phero { position: relative; padding: clamp(48px, 6vw, 80px) 0 clamp(40px, 5vw, 60px); overflow: hidden; }
.phero__bg {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    radial-gradient(60% 90% at 20% 0%, var(--brand-a16), transparent 68%),
    radial-gradient(50% 80% at 88% 8%, var(--violet-a13), transparent 68%);
}
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: .82rem; color: var(--text-3); margin-bottom: 18px; }
.crumbs a:hover { color: var(--primary); }
.crumbs svg { width: 13px; height: 13px; opacity: .55; }
.phero h1 { max-width: 15ch; }
.phero .lead { max-width: 640px; }

/* --------------------------------------------------------------------------
   14. Tabs (feature pages)
   -------------------------------------------------------------------------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; justify-content: center; }
.tab-btn {
  padding: 9px 18px; border-radius: var(--r-full); font-size: .87rem; font-weight: 600;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  transition: all .22s var(--ease);
}
.tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.tab-btn.on { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: var(--shadow-brand); }
.tab-panel { display: none; animation: fadeUp .45s var(--ease-out); }
.tab-panel.on { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   15. Accordion / FAQ
   -------------------------------------------------------------------------- */
.acc { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.acc + .acc { margin-top: 10px; }
.acc__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; text-align: left; font-size: .98rem; font-weight: 620; color: var(--text);
  transition: background-color .2s var(--ease);
}
.acc__q:hover { background: var(--bg-soft-2); }
.acc__q .ico {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center; transition: transform .3s var(--ease);
}
.acc__q .ico svg { width: 13px; height: 13px; }
.acc.open .acc__q .ico { transform: rotate(45deg); }
.acc__a { max-height: 0; overflow: hidden; transition: max-height .38s var(--ease); }
.acc__a > div { padding: 0 22px 20px; color: var(--text-2); font-size: .93rem; line-height: 1.72; }

/* --------------------------------------------------------------------------
   16. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl); padding: clamp(44px, 6vw, 72px) clamp(28px, 5vw, 64px);
  background: linear-gradient(125deg, var(--brand-700) 0%, var(--brand-600) 42%, var(--blue-600) 100%);
  color: #fff; text-align: center;
  box-shadow: var(--shadow-brand);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(40% 60% at 12% 10%, rgba(255,255,255,.22), transparent 60%),
    radial-gradient(38% 55% at 88% 90%, rgba(255,255,255,.15), transparent 60%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.86); max-width: 560px; margin-inline: auto; }
.cta-band .btn-primary { background: #fff; color: var(--brand-700); box-shadow: 0 14px 34px -12px rgba(0,0,0,.4); }
.cta-band .btn-primary:hover { box-shadow: 0 20px 44px -14px rgba(0,0,0,.5); }
.cta-band .btn-ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.34); color: #fff; }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.2); border-color: #fff; color: #fff; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: clamp(52px, 6vw, 76px) 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 40px; margin-bottom: 44px; }
.footer__brand p { font-size: .89rem; max-width: 300px; margin-top: 16px; }
.footer h5 { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); font-weight: 700; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { font-size: .89rem; color: var(--text-2); transition: color .2s var(--ease); }
.footer ul a:hover { color: var(--primary); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  padding-top: 26px; border-top: 1px solid var(--border);
  font-size: .84rem; color: var(--text-3);
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__bottom a:hover { color: var(--primary); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   18. Legal pages
   -------------------------------------------------------------------------- */
.legal { display: grid; grid-template-columns: 260px 1fr; gap: 52px; align-items: start; }
.legal__toc {
  position: sticky; top: calc(var(--nav-h) + 24px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px; max-height: calc(100vh - var(--nav-h) - 60px); overflow-y: auto;
}
.legal__toc h5 { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); font-weight: 700; margin-bottom: 14px; }
.legal__toc a {
  display: block; padding: 7px 10px; border-radius: var(--r-xs);
  font-size: .84rem; color: var(--text-2); line-height: 1.45;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.legal__toc a:hover, .legal__toc a.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }

.legal__body { max-width: 780px; }
.legal__body section { scroll-margin-top: calc(var(--nav-h) + 24px); }
.legal__body section + section { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--border); }
.legal__body h2 { display: flex; align-items: baseline; gap: 14px; font-size: 1.5rem; margin-bottom: 18px; }
.legal__body h2 .num {
  font-size: .72rem; font-weight: 800; letter-spacing: .06em;
  color: var(--primary); background: var(--primary-soft);
  padding: 4px 10px; border-radius: var(--r-full); flex-shrink: 0;
}
.legal__body h3 { font-size: 1.02rem; margin: 26px 0 10px; }
.legal__body p, .legal__body li { font-size: .94rem; line-height: 1.78; color: var(--text-2); }
.legal__body ul, .legal__body ol { padding-left: 22px; margin: 0 0 18px; display: grid; gap: 9px; }
.legal__body a { color: var(--primary); font-weight: 550; }
.legal__body a:hover { text-decoration: underline; }
.legal__body code {
  font-family: var(--mono); font-size: .85em;
  background: var(--bg-soft-2); border: 1px solid var(--border);
  padding: 2px 7px; border-radius: var(--r-xs); color: var(--primary);
}

.legal-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.legal-meta span {
  font-size: .8rem; padding: 7px 14px; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
}
.legal-meta b { color: var(--text); font-weight: 640; }

.kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 14px; margin: 0 0 20px; }
.kv {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 16px 18px;
}
.kv strong { display: block; font-size: .9rem; margin-bottom: 4px; }
.kv span { font-size: .85rem; color: var(--text-2); line-height: 1.6; }
.kv--ok    { border-left: 3px solid var(--ok); }
.kv--bad   { border-left: 3px solid var(--bad); }
.kv--brand { border-left: 3px solid var(--primary); }

.tbl-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-md); margin: 0 0 20px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 480px; }
table.tbl th, table.tbl td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
table.tbl th { background: var(--surface-2); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); font-weight: 700; }
table.tbl td { color: var(--text-2); }
table.tbl tr:last-child td { border-bottom: 0; }

@media (max-width: 900px) {
  .legal { grid-template-columns: 1fr; gap: 28px; }
  .legal__toc { position: static; max-height: none; }
}

/* --------------------------------------------------------------------------
   18b. Blog — listing
   -------------------------------------------------------------------------- */
.post-filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 40px; }
.post-filter button {
  padding: 8px 18px; border-radius: var(--r-full); font-size: .87rem; font-weight: 600;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  transition: all .22s var(--ease);
}
.post-filter button:hover { border-color: var(--primary); color: var(--primary); }
.post-filter button.on { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: var(--shadow-brand); }

.pcard {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  transition: transform .34s var(--ease-out), box-shadow .34s var(--ease), border-color .34s var(--ease);
}
.pcard:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg), 0 26px 60px -30px var(--brand-sh42);
  border-color: var(--primary-a45);
}
.pcard__media {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(120% 90% at 50% -20%, var(--brand-a18), transparent 62%),
    var(--bg-soft-2);
  perspective: 1000px; display: grid; place-items: end center; padding: 18px 16px 0;
}
.pcard__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  border-radius: 8px 8px 0 0; border: 1px solid var(--border); border-bottom: 0;
  transform: rotateX(12deg) scale(.99); transform-origin: 50% 100%;
  box-shadow: 0 20px 36px -20px rgba(15,23,42,.5);
  transition: transform .55s var(--ease-out);
}
.pcard:hover .pcard__media img { transform: rotateX(0deg) scale(1.03) translateY(-4px); }
.pcard__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.pcard__body h3 { font-size: 1.14rem; margin-bottom: 10px; }
.pcard__body p { font-size: .93rem; flex: 1; margin-bottom: 16px; }
.pcard__meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: .8rem; color: var(--text-3); }
.pcard__meta span { display: inline-flex; align-items: center; gap: 6px; }
.pcard__meta svg { width: 14px; height: 14px; }

/* featured post */
.pfeat { display: grid; grid-template-columns: 1.05fr .95fr; gap: 0; overflow: hidden; }
.pfeat .pcard__media { aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--border); padding: 26px 24px 0; }
.pfeat .pcard__body { padding: clamp(28px, 3.4vw, 44px); justify-content: center; }
.pfeat .pcard__body h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.24; }
.pfeat .pcard__body p { font-size: 1rem; }
@media (max-width: 860px) {
  .pfeat { grid-template-columns: 1fr; }
  .pfeat .pcard__media { aspect-ratio: 16/9; border-right: 0; border-bottom: 1px solid var(--border); }
}

/* --------------------------------------------------------------------------
   18c. Blog — article
   -------------------------------------------------------------------------- */
.article { display: grid; grid-template-columns: 250px 1fr; gap: 56px; align-items: start; }
.article__toc {
  position: sticky; top: calc(var(--nav-h) + 24px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px;
  max-height: calc(100vh - var(--nav-h) - 60px); overflow-y: auto;
}
.article__toc h5 { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); font-weight: 700; margin-bottom: 14px; }
.article__toc a {
  display: block; padding: 7px 10px; border-radius: var(--r-xs);
  font-size: .84rem; color: var(--text-2); line-height: 1.45;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.article__toc a:hover, .article__toc a.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }

.prose { max-width: 760px; }
.prose > section { scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 52px 0 18px;
  padding-top: 4px; letter-spacing: -.024em;
}
.prose > section:first-child h2 { margin-top: 0; }
.prose h3 { font-size: 1.14rem; margin: 34px 0 12px; }
.prose p { font-size: 1.03rem; line-height: 1.8; margin-bottom: 1.15em; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 1.3em; display: grid; gap: 11px; }
.prose li { font-size: 1.02rem; line-height: 1.75; color: var(--text-2); }
.prose li::marker { color: var(--primary); }
.prose a { color: var(--primary); font-weight: 550; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; text-decoration-color: var(--primary-a35); }
.prose a:hover { text-decoration-color: var(--primary); }
.prose code {
  font-family: var(--mono); font-size: .87em;
  background: var(--bg-soft-2); border: 1px solid var(--border);
  padding: 2px 7px; border-radius: var(--r-xs); color: var(--primary);
}
.prose pre {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 18px 20px; overflow-x: auto;
  margin: 0 0 1.4em; font-size: .86rem; line-height: 1.65;
}
.prose pre code { background: none; border: 0; padding: 0; color: var(--text-2); }
.prose figure { margin: 0 0 1.6em; }
.prose figcaption { font-size: .84rem; color: var(--text-3); text-align: center; margin-top: 12px; }

.prose blockquote {
  margin: 0 0 1.5em; padding: 4px 0 4px 24px;
  border-left: 3px solid var(--primary);
  font-size: 1.14rem; line-height: 1.68; color: var(--text);
  font-weight: 500;
}
.prose blockquote cite { display: block; margin-top: 10px; font-size: .86rem; font-weight: 500; color: var(--text-3); font-style: normal; }

/* callouts */
.callout {
  display: flex; gap: 14px; padding: 20px 22px; border-radius: var(--r-md);
  margin: 0 0 1.6em; border: 1px solid var(--border); background: var(--surface-2);
}
.callout__ic { flex-shrink: 0; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; }
.callout__ic svg { width: 15px; height: 15px; }
.callout p:last-child { margin-bottom: 0; }
.callout p { font-size: .96rem; }
.callout strong { display: block; margin-bottom: 4px; }
.callout--key   { border-color: var(--primary-a32); background: var(--primary-soft); }
.callout--key .callout__ic { background: var(--primary); color: #fff; }
.callout--warn  { border-color: var(--warn-a34); background: var(--warn-bg); }
.callout--warn .callout__ic { background: var(--warn); color: #fff; }
.callout--ok    { border-color: var(--ok-a34); background: var(--ok-bg); }
.callout--ok .callout__ic { background: var(--ok); color: #fff; }

/* stat band inside an article */
.statband {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden; margin: 0 0 1.7em;
}
.statband > div { background: var(--surface); padding: 22px 18px; text-align: center; }
.statband .n { font-size: 1.7rem; font-weight: 780; letter-spacing: -.03em; line-height: 1.1; color: var(--primary); }
.statband .l { font-size: .8rem; color: var(--text-3); margin-top: 6px; line-height: 1.45; }

/* article meta + author */
.amenu { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; font-size: .87rem; color: var(--text-3); margin-top: 22px; }
.amenu span { display: inline-flex; align-items: center; gap: 7px; }
.amenu svg { width: 15px; height: 15px; }

.author {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 26px; border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface); margin-top: 52px;
}
.author__av {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand-600), var(--blue-500));
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .95rem;
}
.author h4 { margin-bottom: 4px; font-size: 1rem; }
.author p { font-size: .9rem; margin-bottom: 0; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--border); }
.share span { font-size: .85rem; color: var(--text-3); font-weight: 600; }
.share a {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--border); color: var(--text-2);
  transition: all .2s var(--ease);
}
.share a:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.share a svg { width: 16px; height: 16px; }

@media (max-width: 900px) {
  .article { grid-template-columns: 1fr; gap: 28px; }
  .article__toc { position: static; max-height: none; }
}

/* --------------------------------------------------------------------------
   19. Misc utility
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; }
.reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; }
.reveal.d4 { transition-delay: .28s; }
.reveal.d5 { transition-delay: .35s; }

.mb-0 { margin-bottom: 0 !important; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mt-56 { margin-top: 56px; }
.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; }

.divider { height: 1px; background: var(--border); border: 0; margin: 0; }

/* back to top */
.totop {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-brand);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .3s var(--ease), transform .3s var(--ease-out), visibility .3s;
}
.totop.show { opacity: 1; visibility: visible; transform: none; }
.totop:hover { transform: translateY(-3px); }
.totop svg { width: 19px; height: 19px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   19b. Graceful degradation
   The layout deliberately avoids color-mix(), CSS nesting and :is() so it works
   in any browser from roughly 2020 onward. These blocks cover the few remaining
   modern properties, so an older engine loses an effect rather than a layout.
   -------------------------------------------------------------------------- */

/* aspect-ratio — fall back to a fixed height for media panels */
@supports not (aspect-ratio: 16 / 9) {
  .fcard__media, .pcard__media { height: 230px; }
  .pfeat .pcard__media { height: 320px; }
  .shot__img { min-height: 120px; }
}

/* backdrop-filter — make the sticky header opaque if it cannot blur */
@supports not ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .header { background: var(--bg); border-bottom: 1px solid var(--border); }
}

/* mask-image — soften the hero grid with opacity instead of a mask */
@supports not ((mask-image: radial-gradient(#000, #000)) or (-webkit-mask-image: radial-gradient(#000, #000))) {
  .hero__bg { opacity: .45; }
}

/* gap in flexbox — old Safari; margins keep rows from colliding */
@supports not (gap: 1px) {
  .hero__cta > *, .cta-band__actions > *, .post-filter > *, .tabs > * { margin: 0 8px 8px 0; }
  .grid > * { margin-bottom: 24px; }
}

/* --------------------------------------------------------------------------
   20. Print
   -------------------------------------------------------------------------- */
@media print {
  .header, .footer, .totop, .cta-band, .mobile-nav { display: none !important; }
  body { background: #fff; color: #000; }
  .legal { grid-template-columns: 1fr; }
  .legal__toc { display: none; }
}

/* --------------------------------------------------------------------------
   21. Send Inquiry Modal
   -------------------------------------------------------------------------- */
.sm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 30, 0.75);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
 
.sm-overlay.show {
  opacity: 1;
  pointer-events: all;
}
 
.sm-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.25rem 2rem;
  max-width: 520px;
  width: 90%;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
 
.sm-overlay.show .sm-container {
  transform: scale(1);
}
 
.sm-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-2);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--r-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
 
.sm-close-btn:hover {
  background: var(--bg-soft-2);
  color: var(--text);
}
 
.sm-close-btn svg {
  width: 20px;
  height: 20px;
}
 
.sm-header h3 {
  font-family: var(--font);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem 0;
}
 
.sm-header p {
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text-2);
  margin: 0 0 1.5rem 0;
}
 
.sm-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
 
.sm-row {
  display: flex;
  gap: 1rem;
}
 
.sm-row .sm-field {
  flex: 1;
}
 
@media (max-width: 576px) {
  .sm-row {
    flex-direction: column;
    gap: 0.75rem;
  }
}
 
.sm-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
 
.sm-field label {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
}
 
.sm-field input,
.sm-field select {
  width: 100%;
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-2);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  height: 46px;
  box-sizing: border-box;
}
 
.sm-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}
 
[data-theme="dark"] .sm-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3b0cc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}
 
.sm-field input:focus,
.sm-field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}
 
.sm-field input.sm-invalid,
.sm-field select.sm-invalid {
  border-color: var(--bad);
}
 
.sm-field input.sm-invalid:focus,
.sm-field select.sm-invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
}
 
.sm-error-msg {
  font-family: var(--font);
  font-size: 0.75rem;
  color: var(--bad);
  margin-top: 0.15rem;
  display: none;
}
 
.sm-error-msg:not(:empty) {
  display: block;
}
 
.sm-submit-btn {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem;
  border-radius: var(--r-sm);
  border: none;
  background: var(--primary);
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 0.5rem;
}
 
.sm-submit-btn:hover {
  background: var(--primary-2);
}
 
.sm-submit-btn:active {
  transform: scale(0.98);
}
