/* =============================================================
   AI MARKET DETECTIVE — marketing site
   Design tokens mirror the desktop app's Theme.swift exactly so
   the site and product read as one company.
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Surfaces */
  --bg:            #0D0F14;
  --bg-deep:       #090A0E;
  --surface:       #151820;
  --surface-2:     #1D212B;
  --stroke:        rgba(255, 255, 255, 0.07);
  --stroke-strong: rgba(255, 255, 255, 0.14);

  /* Accent (used sparingly) */
  --accent:        #737AFF;   /* indigo */
  --accent-2:      #47C9EC;   /* cyan   */

  /* Market semantics */
  --bullish: #34D682;
  --bearish: #FF5C62;
  --neutral: #9EA9BD;
  --caution: #FFB84D;

  /* Text */
  --text-1: rgba(255, 255, 255, 0.93);
  --text-2: rgba(255, 255, 255, 0.62);
  --text-3: rgba(255, 255, 255, 0.38);

  /* Radii / spacing */
  --r-lg: 14px;
  --r-sm: 9px;
  --r-pill: 999px;

  /* Type */
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
          system-ui, ui-sans-serif, Roboto, Helvetica, Arial, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
             system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --maxw: 1200px;
  --nav-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(115, 122, 255, 0.28); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: clamp(72px, 11vw, 132px);
  position: relative;
}
.section--tight { padding-block: clamp(56px, 8vw, 96px); }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 18px;
}
.eyebrow--accent { color: var(--accent); }

.section-head { max-width: 720px; }
.section-head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  letter-spacing: -0.03em;
}
.section-head .lede {
  margin-top: 20px;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-2);
  max-width: 620px;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  will-change: transform;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  color: #0B0C10;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset;
}
.btn--primary:hover {
  background: #f0f1ff;
  box-shadow: 0 8px 30px -10px rgba(115,122,255,0.55);
}

.btn--ghost {
  color: var(--text-1);
  border-color: var(--stroke-strong);
  background: rgba(255,255,255,0.02);
}
.btn--ghost:hover { border-color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.05); }

.btn--lg { padding: 15px 26px; font-size: 1rem; }
.btn .chev { transition: transform .2s ease; }
.btn:hover .chev { transform: translateX(3px); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(13, 15, 20, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--stroke);
  background: rgba(11, 13, 18, 0.85);
}
.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  font-size: 0.9rem;
  color: var(--text-2);
  transition: color .18s ease;
}
.nav__links a:hover { color: var(--text-1); }
.nav__cta { display: flex; align-items: center; gap: 14px; }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark { width: 26px; height: 26px; border-radius: 7px; flex: none; }
.brand__name {
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-1);
}
.brand__name span { color: var(--text-3); font-weight: 500; }

.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--stroke-strong);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text-1);
  align-items: center; justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 96px));
  padding-bottom: clamp(48px, 8vw, 90px);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.18fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}
.hero__copy { max-width: 560px; }
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  letter-spacing: -0.038em;
  line-height: 1.02;
}
.hero h1 em {
  font-style: normal;
  color: var(--text-2);
}
.hero__sub {
  margin-top: 24px;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--text-2);
  max-width: 500px;
  line-height: 1.55;
}
.hero__actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero__evidence {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  color: var(--text-3);
  letter-spacing: 0.01em;
}
.hero__evidence .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(115,122,255,0.14);
}

/* faint editorial grid backdrop, no glowing blobs */
.hero__backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(115,122,255,0.08), transparent 55%),
    linear-gradient(to bottom, rgba(71,201,236,0.03), transparent 30%);
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

/* ---------- App window chrome (faithful product recreation) ---------- */
.appframe {
  position: relative;
  border-radius: 16px;
  background: linear-gradient(180deg, #12151d, var(--bg));
  border: 1px solid var(--stroke);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 40px 80px -32px rgba(0,0,0,0.9),
    0 8px 24px -12px rgba(0,0,0,0.6);
  overflow: hidden;
}
.appframe__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--stroke);
  background: rgba(255,255,255,0.015);
}
.traffic { display: flex; gap: 7px; }
.traffic i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.traffic i:nth-child(1) { background: #ff5f57; }
.traffic i:nth-child(2) { background: #febc2e; }
.traffic i:nth-child(3) { background: #28c840; }
.appframe__title {
  font-size: 0.75rem;
  color: var(--text-3);
  margin-left: 6px;
  letter-spacing: 0.01em;
}
.appframe__body {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  min-height: 420px;
}

/* Sidebar */
.side {
  border-right: 1px solid var(--stroke);
  padding: 14px 10px;
  background: rgba(0,0,0,0.16);
}
.side__group {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 6px 10px 8px;
}
.side__item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-size: 0.8rem;
  color: var(--text-2);
  margin-bottom: 1px;
}
.side__item svg { width: 15px; height: 15px; flex: none; opacity: 0.85; }
.side__item.is-active {
  background: rgba(115,122,255,0.14);
  color: var(--text-1);
}
.side__item.is-active svg { opacity: 1; color: var(--accent); }

.side__foot {
  margin-top: 14px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.66rem;
  color: var(--text-3);
}
.side__foot .live {
  width: 6px; height: 6px; border-radius: 50%; background: var(--bullish);
  box-shadow: 0 0 0 3px rgba(52,214,130,0.16);
  flex: none;
}

/* Main pane */
.pane { padding: 16px; overflow: hidden; }
.pane__head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.pane__head h3 { font-size: 0.95rem; }
.pane__head .spark { color: var(--accent); width: 16px; height: 16px; }
.freshness {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.66rem; color: var(--text-3);
  margin-bottom: 12px;
}
.freshness .live { width: 6px; height: 6px; border-radius: 50%; background: var(--bullish); flex: none; }

/* ---------- Discovery card (mirrors DiscoveryCard.swift) ---------- */
.disc {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  padding: 14px;
}
.disc + .disc { margin-top: 12px; }
.disc__head {
  display: flex; align-items: center; gap: 8px;
}
.disc__rank { font: 700 0.75rem/1 var(--rounded); color: var(--text-3); }
.disc__ticker { font: 700 0.95rem/1 var(--rounded); color: var(--text-1); }
.disc__name { font-size: 0.72rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.disc__score {
  margin-left: auto;
  display: inline-flex; align-items: baseline; gap: 3px;
}
.disc__score .mag { width: 13px; height: 13px; color: var(--accent); align-self: center; }
.disc__score b { font: 700 0.92rem/1 var(--rounded); color: var(--accent); }
.disc__score span { font-size: 0.66rem; color: var(--text-3); }

.disc__badges {
  display: flex; align-items: center; gap: 6px;
  margin-top: 11px; flex-wrap: wrap;
}
.tag {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px; border-radius: var(--r-pill);
}
.tag--contradiction { color: var(--caution); background: rgba(255,184,77,0.13); }
.tag--outlier       { color: var(--accent-2); background: rgba(71,201,236,0.13); }
.tag--valuation     { color: var(--bullish); background: rgba(52,214,130,0.13); }
.tag--data          { color: var(--bearish); background: rgba(255,92,98,0.13); }
.disc__conf { margin-left: auto; font-size: 0.66rem; }
.disc__conf.is-high { color: var(--bullish); }
.disc__conf.is-medium { color: var(--caution); }

.disc__mystery {
  margin-top: 11px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-1);
  line-height: 1.5;
}
.disc__metrics {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.metric {
  border: 1px solid var(--stroke);
  border-radius: var(--r-sm);
  padding: 8px 9px;
  background: rgba(0,0,0,0.2);
}
.metric .k { font-size: 0.6rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); }
.metric .v { font: 600 0.9rem/1.2 var(--rounded); margin-top: 3px; }
.v--bear { color: var(--bearish); }
.v--bull { color: var(--bullish); }
.v--neutral { color: var(--text-1); }

.disc__section { margin-top: 12px; }
.disc__section .st {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 5px;
}
.disc__section .st svg { width: 10px; height: 10px; color: var(--accent); }
.disc__section li {
  font-size: 0.76rem; color: var(--text-2); line-height: 1.5;
  padding-left: 12px; position: relative;
}
.disc__section li::before { content: "·"; position: absolute; left: 2px; color: var(--text-3); }

.disc__actions {
  margin-top: 13px; display: flex; gap: 16px;
  font-size: 0.72rem; font-weight: 600; color: var(--accent);
}

/* ---------- The Problem ---------- */
.problem__statements {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.statement {
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  padding: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.014), transparent);
}
.statement.is-lead { border-color: rgba(115,122,255,0.28); background: linear-gradient(180deg, rgba(115,122,255,0.05), transparent); }
.statement .lbl { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.statement p { margin-top: 12px; font-size: 1.28rem; letter-spacing: -0.02em; color: var(--text-1); line-height: 1.28; }
.statement.is-lead p { color: #fff; }
.statement em { font-style: normal; color: var(--accent); }

/* ---------- Steps (Scan / Detect / Investigate) ---------- */
.steps {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--stroke);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.step { background: var(--bg); padding: 34px 30px; }
.step__num {
  font: 600 0.8rem/1 var(--mono);
  color: var(--accent);
  letter-spacing: 0.1em;
}
.step h3 { margin-top: 18px; font-size: 1.15rem; letter-spacing: -0.02em; }
.step p { margin-top: 10px; color: var(--text-2); font-size: 0.94rem; }
.step__line {
  margin-top: 22px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.5;
}

/* ---------- Detection example (editorial) ---------- */
.case {
  margin-top: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.case__body .kicker {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3);
}
.case__body h3 {
  margin-top: 14px;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.case__body h3 em { font-style: normal; color: var(--caution); }
.case__q {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--stroke);
}
.case__q .q { font-size: 0.98rem; font-weight: 600; color: var(--text-1); }
.case__q p { margin-top: 10px; color: var(--text-2); font-size: 0.96rem; line-height: 1.6; }
.case__pull {
  margin-top: 26px;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: var(--text-1);
  line-height: 1.4;
  border-left: 2px solid var(--accent);
  padding-left: 20px;
}
.case__pull em { font-style: normal; color: var(--accent); }

/* ---------- Discovery categories ---------- */
.cats {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cat {
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  padding: 24px;
  background: var(--surface);
  transition: border-color .2s ease, transform .2s ease;
}
.cat:hover { border-color: var(--stroke-strong); transform: translateY(-2px); }
.cat__id {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-3);
}
.cat__id .dot { width: 7px; height: 7px; border-radius: 2px; }
.cat h3 { margin-top: 16px; font-size: 1.02rem; letter-spacing: -0.01em; }
.cat p { margin-top: 9px; color: var(--text-2); font-size: 0.88rem; line-height: 1.5; }

/* ---------- Features ---------- */
.features {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.feature {
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  padding: 26px;
  background: var(--surface);
  grid-column: span 4;
  display: flex; flex-direction: column;
}
.feature--wide { grid-column: span 6; }
.feature__ico {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(115,122,255,0.12);
  color: var(--accent);
  margin-bottom: 18px;
}
.feature__ico svg { width: 18px; height: 18px; }
.feature h3 { font-size: 1.02rem; letter-spacing: -0.01em; }
.feature p { margin-top: 9px; color: var(--text-2); font-size: 0.9rem; line-height: 1.5; }

/* ---------- Why different (comparison) ---------- */
.compare {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.lane {
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  padding: 30px;
  background: var(--surface);
}
.lane--md { border-color: rgba(115,122,255,0.30); background: linear-gradient(180deg, rgba(115,122,255,0.05), transparent); }
.lane__tag {
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3);
  margin-bottom: 20px;
}
.lane--md .lane__tag { color: var(--accent); }
.flow { display: flex; flex-direction: column; gap: 12px; }
.flow li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.98rem; color: var(--text-2);
}
.flow li b { color: var(--text-1); font-weight: 600; }
.flow__n {
  flex: none;
  width: 22px; height: 22px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 600;
  background: rgba(255,255,255,0.05); color: var(--text-3);
  margin-top: 1px;
}
.lane--md .flow__n { background: rgba(115,122,255,0.16); color: var(--accent); }

/* ---------- Trust ---------- */
.trust {
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,0.012), transparent);
}
.trust__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}
.trust__points { display: grid; gap: 18px; }
.tpoint { display: flex; gap: 14px; align-items: flex-start; }
.tpoint__ico {
  flex: none; width: 30px; height: 30px; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--stroke-strong); color: var(--accent-2);
}
.tpoint__ico svg { width: 15px; height: 15px; }
.tpoint h4 { font-size: 0.98rem; }
.tpoint p { margin-top: 5px; font-size: 0.9rem; color: var(--text-2); }

/* ---------- Pricing ---------- */
.pricing__wrap { margin-top: 48px; display: flex; justify-content: center; }
.plan {
  width: 100%;
  max-width: 440px;
  border: 1px solid var(--stroke-strong);
  border-radius: 18px;
  padding: 38px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(115,122,255,0.08), transparent 60%),
    var(--surface);
  text-align: center;
}
.plan__name { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.plan__price {
  margin-top: 20px;
  display: flex; align-items: baseline; justify-content: center; gap: 6px;
}
.plan__price .amt { font: 700 3.2rem/1 var(--rounded); letter-spacing: -0.03em; }
.plan__price .per { font-size: 0.95rem; color: var(--text-3); }
.plan__desc { margin-top: 10px; color: var(--text-2); font-size: 0.94rem; }
.plan__list { margin: 26px 0; display: grid; gap: 12px; text-align: left; }
.plan__list li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.9rem; color: var(--text-2); }
.plan__list svg { width: 16px; height: 16px; color: var(--bullish); flex: none; margin-top: 2px; }
.plan .btn { width: 100%; justify-content: center; }
.plan__secure { margin-top: 14px; font-size: 0.76rem; color: var(--text-3); display: inline-flex; align-items: center; gap: 7px; }
.plan__secure svg { width: 13px; height: 13px; }

/* ---------- FAQ ---------- */
.faq { margin-top: 44px; max-width: 820px; border-top: 1px solid var(--stroke); }
.qa { border-bottom: 1px solid var(--stroke); }
.qa__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px;
  background: none; border: 0;
  text-align: left;
  color: var(--text-1);
  font-size: 1.02rem; font-weight: 500; letter-spacing: -0.01em;
}
.qa__q .ico { flex: none; width: 20px; height: 20px; color: var(--text-3); transition: transform .25s ease, color .2s ease; }
.qa[open] .qa__q .ico, .qa.is-open .qa__q .ico { transform: rotate(45deg); color: var(--accent); }
.qa__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .32s ease;
}
.qa__a-inner { padding: 0 4px 24px; color: var(--text-2); font-size: 0.96rem; line-height: 1.65; max-width: 680px; }

/* ---------- Final CTA ---------- */
.final {
  text-align: center;
  padding-block: clamp(90px, 14vw, 160px);
  background:
    radial-gradient(80% 120% at 50% 120%, rgba(115,122,255,0.10), transparent 60%);
  border-top: 1px solid var(--stroke);
}
.final h2 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.035em; }
.final p { margin-top: 20px; color: var(--text-2); font-size: clamp(1.02rem, 1.5vw, 1.2rem); }
.final .hero__actions { justify-content: center; margin-top: 34px; }
.final .hero__evidence { justify-content: center; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--stroke);
  padding-block: 44px;
  background: var(--bg-deep);
}
.footer__top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.footer__cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer__col h5 { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; font-weight: 600; }
.footer__col a { display: block; font-size: 0.9rem; color: var(--text-2); padding: 5px 0; transition: color .18s ease; }
.footer__col a:hover { color: var(--text-1); }
.footer__brand { max-width: 280px; }
.footer__brand p { margin-top: 14px; font-size: 0.84rem; color: var(--text-3); line-height: 1.6; }
.footer__bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--stroke);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.8rem; color: var(--text-3);
}
.footer__disc { max-width: 620px; line-height: 1.55; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .07s; }
.reveal[data-delay="2"] { transition-delay: .14s; }
.reveal[data-delay="3"] { transition-delay: .21s; }
.reveal[data-delay="4"] { transition-delay: .28s; }
.reveal[data-delay="5"] { transition-delay: .35s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .cat, .qa__a { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { max-width: 640px; }
  .appframe__body { grid-template-columns: 150px minmax(0,1fr); }
  .case { grid-template-columns: 1fr; gap: 28px; }
  .trust__grid { grid-template-columns: 1fr; gap: 32px; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature--wide { grid-column: span 6; }
}

@media (max-width: 720px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.is-open + .mobilemenu { display: block; }

  .problem__statements { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .cats { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .feature, .feature--wide { grid-column: auto; }
  .compare { grid-template-columns: 1fr; }
  .disc__metrics { grid-template-columns: repeat(2, 1fr); }
  .footer__cols { gap: 40px; }
  .appframe__body { grid-template-columns: 1fr; }
  .side { display: none; }
}

/* ---------- Mobile menu ---------- */
.mobilemenu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  z-index: 99;
  background: rgba(11,13,18,0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--stroke);
  padding: 16px 24px 24px;
}
.mobilemenu a {
  display: block; padding: 14px 0; font-size: 1.05rem; color: var(--text-1);
  border-bottom: 1px solid var(--stroke);
}
.mobilemenu .btn { margin-top: 18px; width: 100%; justify-content: center; }
.mobilemenu.is-open { display: block; }
