/* ===========================================================================
   OptimuSEO — landing design system
   Hand-written, no framework. One file so the pages cannot drift apart.
   =========================================================================== */

:root {
  --bg:        #07070b;
  --bg-soft:   #0d0d14;
  --panel:     #11111a;
  --panel-2:   #16161f;
  --line:      #22222e;
  --line-soft: #1a1a24;
  --fg:        #f6f6f9;
  --muted:     #9a9aab;
  --dim:       #6e6e80;
  --accent:    #8b7cf6;
  --accent-2:  #4ac7f6;
  --accent-3:  #f472b6;
  --ok:        #4ade80;
  --warn:      #fbbf24;
  --radius:    14px;
  --maxw:      1120px;
  --ease:      cubic-bezier(.22, 1, .36, 1);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #fcfcfe; --bg-soft: #f5f5fa; --panel: #ffffff; --panel-2: #f7f7fb;
    --line: #e4e4ee; --line-soft: #eeeef5;
    --fg: #0f0f16; --muted: #55556a; --dim: #85859a;
    --accent: #6d5de8;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.68 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient glow behind the whole page. Fixed so it does not scroll with content. */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60rem 40rem at 12% -10%, color-mix(in oklab, var(--accent) 16%, transparent), transparent 60%),
    radial-gradient(50rem 36rem at 92% 8%, color-mix(in oklab, var(--accent-2) 11%, transparent), transparent 62%);
}
main, header, footer { position: relative; z-index: 1; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

a { color: inherit; }
img, svg { max-width: 100%; }

/* ── Header ───────────────────────────────────────────────────────────────── */

header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line-soft);
}
.bar { display: flex; align-items: center; gap: 20px; padding: 14px 0; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 650; letter-spacing: -.02em; text-decoration: none; font-size: 15.5px;
}
.brand .mark { width: 28px; height: 28px; flex: none; }
nav.links { display: none; gap: 4px; margin-left: 8px; }
@media (min-width: 880px) { nav.links { display: flex; } }
nav.links a {
  text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500;
  padding: 7px 12px; border-radius: 8px; transition: color .18s, background .18s;
}
nav.links a:hover { color: var(--fg); background: var(--panel-2); }
nav.links a[aria-current="page"] { color: var(--fg); background: var(--panel-2); }
.bar .spacer { margin-left: auto; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; text-decoration: none;
  font-size: 14px; font-weight: 600; border: 1px solid transparent;
  transition: transform .18s var(--ease), box-shadow .18s, filter .18s, border-color .18s;
  will-change: transform;
}
.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), color-mix(in oklab, var(--accent-2) 60%, var(--accent)));
  box-shadow: 0 6px 22px -8px color-mix(in oklab, var(--accent) 70%, transparent);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px color-mix(in oklab, var(--accent) 80%, transparent); }
.btn.ghost { border-color: var(--line); color: var(--fg); background: color-mix(in oklab, var(--panel) 60%, transparent); }
.btn.ghost:hover { border-color: color-mix(in oklab, var(--accent) 50%, var(--line)); transform: translateY(-2px); }
.btn.sm { padding: 8px 14px; font-size: 13px; }

/* ── Type ─────────────────────────────────────────────────────────────────── */

h1 {
  font-size: clamp(34px, 6.2vw, 62px); line-height: 1.04;
  letter-spacing: -.035em; margin: 0 0 18px; font-weight: 680;
}
h2 { font-size: clamp(23px, 3.2vw, 33px); line-height: 1.18; letter-spacing: -.025em; margin: 0 0 14px; font-weight: 650; }
h3 { font-size: 16.5px; letter-spacing: -.01em; margin: 0 0 7px; font-weight: 620; }
p  { margin: 0 0 16px; color: var(--muted); }
.lead { font-size: clamp(16.5px, 1.9vw, 19.5px); color: var(--fg); opacity: .88; max-width: 62ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
  padding: 6px 12px; border: 1px solid color-mix(in oklab, var(--accent) 28%, transparent);
  border-radius: 999px; background: color-mix(in oklab, var(--accent) 9%, transparent);
}
.section { padding: 84px 0; }
.section.tight { padding: 56px 0; }
.section-head { max-width: 62ch; margin-bottom: 36px; }

/* Gradient text, used sparingly — one phrase per page. */
.grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero { padding: 76px 0 64px; }
.hero-grid { display: grid; gap: 48px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ── Cards & grids ────────────────────────────────────────────────────────── */

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .grid.two   { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px)  { .grid.three { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px)  { .grid.four  { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid.four  { grid-template-columns: repeat(4, 1fr); } }

.card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in oklab, var(--accent) 34%, var(--line)); box-shadow: 0 18px 40px -24px #000; }
.card p { margin: 0; font-size: 14.5px; }
.card .ico { width: 34px; height: 34px; margin-bottom: 14px; }
/* Light sweep across the top edge on hover. */
.card::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--accent) 70%, transparent), transparent);
  opacity: 0; transition: opacity .3s;
}
.card:hover::after { opacity: 1; }

/* ── Stats ────────────────────────────────────────────────────────────────── */

.stats { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  border: 1px solid var(--line); border-radius: 12px; padding: 18px;
  background: color-mix(in oklab, var(--panel) 70%, transparent);
}
.stat b { display: block; font-size: clamp(24px, 3.4vw, 34px); font-weight: 680; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12.5px; color: var(--dim); }

/* ── Gate list ────────────────────────────────────────────────────────────── */

.gates { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: color-mix(in oklab, var(--panel) 60%, transparent); }
.gate { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 15px 18px; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; align-items: baseline; }
.gate:last-child { border-bottom: 0; }
.gate b { font-weight: 620; min-width: 160px; }
.gate span { color: var(--muted); flex: 1; min-width: 220px; }
.gate .pill { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--dim); }
.gate .pill.on { color: var(--ok); border-color: color-mix(in oklab, var(--ok) 36%, transparent); background: color-mix(in oklab, var(--ok) 10%, transparent); }

/* ── Steps ────────────────────────────────────────────────────────────────── */

.steps { display: grid; gap: 2px; counter-reset: step; }
.step {
  display: grid; gap: 4px 20px; grid-template-columns: auto 1fr;
  padding: 22px 0; border-top: 1px solid var(--line-soft);
}
.step:first-child { border-top: 0; }
.step .n {
  counter-increment: step; grid-row: span 2;
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  font-size: 13px; font-weight: 680; color: var(--accent);
  border: 1px solid color-mix(in oklab, var(--accent) 32%, transparent);
  background: color-mix(in oklab, var(--accent) 10%, transparent);
}
.step .n::before { content: counter(step, decimal-leading-zero); }
.step h3 { margin: 0; align-self: center; }
.step p { margin: 0; font-size: 14.5px; grid-column: 2; }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */

details.faq {
  border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px;
  background: color-mix(in oklab, var(--panel) 55%, transparent); overflow: hidden;
}
details.faq summary {
  cursor: pointer; list-style: none; padding: 16px 20px;
  font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 12px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: ""; margin-left: auto; width: 9px; height: 9px; flex: none;
  border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim);
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
details.faq[open] summary::after { transform: rotate(-135deg); }
details.faq[open] summary { color: var(--fg); }
details.faq .body { padding: 0 20px 18px; }
details.faq .body p { margin: 0; font-size: 14.5px; }

/* ── Notes / callouts ─────────────────────────────────────────────────────── */

.note {
  border-left: 2px solid color-mix(in oklab, var(--accent) 60%, transparent);
  padding: 2px 0 2px 16px; color: var(--muted); font-size: 14px; margin: 24px 0;
}
.callout {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  background: color-mix(in oklab, var(--panel) 70%, transparent);
}
.callout.warn { border-color: color-mix(in oklab, var(--warn) 32%, var(--line)); background: color-mix(in oklab, var(--warn) 7%, transparent); }

/* ── CTA band ─────────────────────────────────────────────────────────────── */

.cta-band {
  border: 1px solid var(--line); border-radius: 20px; padding: 44px 28px; text-align: center;
  background:
    radial-gradient(40rem 20rem at 50% -40%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 70%),
    linear-gradient(180deg, var(--panel), var(--panel-2));
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band .hero-cta { justify-content: center; }

/* ── Footer ───────────────────────────────────────────────────────────────── */

footer { border-top: 1px solid var(--line-soft); padding: 40px 0; margin-top: 40px; color: var(--dim); font-size: 13.5px; }
.foot { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 16px; margin-left: auto; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--fg); }

/* ── Motion ───────────────────────────────────────────────────────────────── */

[data-reveal] { opacity: 0; transform: translateY(18px); }
[data-reveal].in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0ms);
}

/* Hero words rise in sequence. */
.kinetic > span { display: inline-block; opacity: 0; transform: translateY(.5em) rotate(1.5deg); }
.kinetic.in > span {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--i) * 55ms);
}

@keyframes drift   { to { transform: translateY(-8px); } }
@keyframes dash    { to { stroke-dashoffset: 0; } }
@keyframes pulse   { 0%,100% { opacity: .35; r: 3; } 50% { opacity: 1; r: 4.6; } }
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes sheen   { to { background-position: 200% center; } }

.float { animation: drift 4.5s var(--ease) infinite alternate; }

/* Everything above is decoration. If motion is unwelcome, it all stops and the
   page is still complete — nothing is revealed by animation alone. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal], .kinetic > span { opacity: 1 !important; transform: none !important; }
}

/* ── Industry tiles ───────────────────────────────────────────────────────── */

.inds { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .inds { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .inds { grid-template-columns: repeat(5, 1fr); } }
.ind {
  display: flex; flex-direction: column; gap: 9px; align-items: flex-start;
  padding: 16px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: color-mix(in oklab, var(--panel) 55%, transparent);
  transition: transform .22s var(--ease), border-color .22s, background .22s;
}
.ind:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklab, var(--accent) 38%, var(--line));
  background: color-mix(in oklab, var(--accent) 7%, transparent);
}
.ind svg { width: 24px; height: 24px; }
.ind b { font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; }
.ind span { font-size: 11.5px; color: var(--dim); line-height: 1.45; }

/* ── Integration tiles ────────────────────────────────────────────────────── */

.ints { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .ints { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .ints { grid-template-columns: repeat(4, 1fr); } }
.int {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px;
  background: color-mix(in oklab, var(--panel) 50%, transparent);
  transition: transform .22s var(--ease), border-color .22s, opacity .22s;
}
.int:hover { transform: translateY(-2px); border-color: color-mix(in oklab, var(--accent) 34%, var(--line)); }
.int .glyph {
  width: 30px; height: 30px; flex: none; border-radius: 8px; display: grid; place-items: center;
  font-size: 12px; font-weight: 750; letter-spacing: -.03em; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.int .meta { min-width: 0; }
.int .meta b { display: block; font-size: 13px; font-weight: 600; }
.int .meta span { font-size: 11px; color: var(--dim); }
.int.planned { opacity: .62; }
.int.planned .glyph { background: var(--line); color: var(--dim); }

.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; font-size: 12px; color: var(--dim); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 6px; vertical-align: 1px; }
.legend .live i { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.legend .soon i { background: var(--line); }

/* Marquee strip — pauses on hover, and still legible if motion is off. */
.strip { overflow: hidden; border-block: 1px solid var(--line-soft); padding: 14px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.strip-track { display: flex; gap: 40px; width: max-content; animation: slide 34s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip span { font-size: 13px; color: var(--dim); white-space: nowrap; display: flex; align-items: center; gap: 9px; }
.strip span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .7; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip-track { animation: none; } }

/* ── Review cards ─────────────────────────────────────────────────────────────
   Unused until there is a real review. Kept here, styled and ready, so adding
   one is filling in a template rather than designing under pressure — which is
   exactly when a placeholder quietly becomes permanent. */

.reviews { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .reviews { grid-template-columns: 1fr 1fr; } }
.review-item {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
}
.review-item .stars { display: flex; gap: 3px; margin-bottom: 10px; }
.review-item .stars svg { width: 15px; height: 15px; }
.review-item blockquote { margin: 0 0 14px; font-size: 14.5px; color: var(--fg); opacity: .9; line-height: 1.6; }
.review-item cite { display: flex; align-items: center; gap: 10px; font-style: normal; font-size: 12.5px; color: var(--dim); }
.review-item cite .who { color: var(--fg); font-weight: 600; }
.review-item .disclosure { margin-top: 10px; font-size: 11.5px; color: var(--warn); }

.review-empty {
  border: 1px dashed var(--line); border-radius: var(--radius); padding: 34px 22px; text-align: center;
}
.review-empty svg { width: 34px; height: 34px; opacity: .55; margin-bottom: 12px; }
.review-empty b { display: block; font-size: 15px; margin-bottom: 6px; }
.review-empty p { margin: 0 auto; max-width: 46ch; font-size: 13.5px; }
