/* NOVA website. Colours match the app (src/ui/style.cpp). The site is dark-only, like the app. */
:root {
  --bg: #0b0c10;
  --bg-2: #0d0e13;
  --surface: #121419;
  --surface-hi: #16181f;
  --raised: #1b1e26;
  --track: #232630;
  --border: rgba(255, 255, 255, 0.06);
  --border-hi: rgba(255, 255, 255, 0.11);
  --text: #eceef3;
  --text-dim: #9ea6b5;
  --text-mute: #686f7f;
  --accent: #7c6cff;
  --accent-hi: #a195ff;
  --good: #43d396;
  --warn: #fbbf43;
  --bad: #f87171;
  --radius: 16px;
  --max: 1160px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-hi); text-decoration: none; }
a:hover { color: #c3bbff; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* Ambient glows, as in the app. */
.glow { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(90px); opacity: .55; z-index: 0; }

/* ---------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 12, 16, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; letter-spacing: .02em; }
.brand img { width: 30px; height: 30px; }
.brand:hover { color: var(--text); }
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a { color: var(--text-dim); font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav .spacer { flex: 1; }
.nav-plain { color: var(--text-dim); font-size: 14.5px; font-weight: 500; }
.nav-plain:hover { color: var(--text); }
@media (max-width: 480px) { .nav-plain { display: none; } }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 11px;
  font: 600 15px/1 inherit; font-family: inherit; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--accent-hi), var(--accent));
  box-shadow: 0 8px 28px -8px rgba(124, 108, 255, .65), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 34px -8px rgba(124, 108, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-ghost { color: var(--text); background: var(--surface); border-color: var(--border-hi); }
.btn-ghost:hover { color: var(--text); background: var(--surface-hi); border-color: rgba(255, 255, 255, .18); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 13px; }
.btn[disabled] { opacity: .5; cursor: default; transform: none; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: 96px 0 40px; text-align: center; overflow: hidden; }
.hero .glow.a { width: 720px; height: 420px; background: var(--accent); top: -160px; left: 50%; transform: translateX(-50%); opacity: .28; }
.hero .glow.b { width: 420px; height: 320px; background: #3a8dff; top: 120px; right: -120px; opacity: .12; }
.hero > .wrap { position: relative; z-index: 1; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: rgba(124, 108, 255, .10); border: 1px solid rgba(124, 108, 255, .28);
  color: var(--accent-hi); font-size: 13.5px; font-weight: 600;
}
.pill .dot { width: 20px; height: 20px; border-radius: 50%; background: rgba(124, 108, 255, .22); display: grid; place-items: center; }
.pill .dot::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-hi); box-shadow: 0 0 10px var(--accent-hi); }
.hero h1 { font-size: clamp(40px, 7vw, 76px); margin: 22px auto 0; max-width: 900px; }
.hero h1 .grad { background: linear-gradient(90deg, #fff 10%, var(--accent-hi) 60%, #7fb4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { color: var(--text-dim); font-size: clamp(17px, 2.1vw, 20px); max-width: 680px; margin: 22px auto 0; }
.hero .cta { display: flex; gap: 12px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.hero .trust { display: flex; gap: 22px; justify-content: center; margin-top: 22px; color: var(--text-mute); font-size: 14px; flex-wrap: wrap; }
.hero .trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero .trust svg { width: 15px; height: 15px; color: var(--good); }

/* App screenshot in a window frame. */
.shot {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border-hi);
  background: var(--surface);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .4);
}
.shot img { width: 100%; height: auto; }
.hero-shot { margin: 64px auto 0; max-width: 1080px; position: relative; }
.hero-shot::before {
  content: ""; position: absolute; inset: -1px; border-radius: 15px; padding: 1px;
  background: linear-gradient(180deg, rgba(161, 149, 255, .6), rgba(161, 149, 255, 0) 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; z-index: 2; pointer-events: none;
}
.hero-shot .shot { transform: perspective(1800px) rotateX(6deg); transform-origin: 50% 0; }
@media (prefers-reduced-motion: no-preference) {
  .hero-shot .shot { animation: rise 1.1s cubic-bezier(.2, .8, .2, 1) both .15s; }
  @keyframes rise { from { opacity: 0; transform: perspective(1800px) rotateX(14deg) translateY(40px); } }
}

/* ---------------------------------------------------------------- stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 72px auto 0; }
.stat { background: var(--bg-2); padding: 26px 24px; }
.stat b { display: block; font-size: 34px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--text-dim); font-size: 14.5px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------------------------------------------------------------- sections */
section { position: relative; }
.section { padding: 110px 0 0; }
.eyebrow { color: var(--accent-hi); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.section h2 { font-size: clamp(30px, 4.4vw, 46px); margin-top: 12px; max-width: 760px; }
.section .sub { color: var(--text-dim); font-size: 18px; margin-top: 16px; max-width: 640px; }
.center { text-align: center; }
.center h2, .center .sub { margin-left: auto; margin-right: auto; }

/* Feature grid. */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.card:hover { border-color: var(--border-hi); background: var(--surface-hi); transform: translateY(-2px); }
.card .ico {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(124, 108, 255, .12); color: var(--accent-hi); margin-bottom: 18px;
}
.card .ico svg { width: 21px; height: 21px; }
.card h3 { font-size: 18px; }
.card p { color: var(--text-dim); font-size: 15px; margin-top: 8px; }
.card ul { margin: 14px 0 0; padding: 0; list-style: none; color: var(--text-dim); font-size: 14.5px; }
.card li { padding: 4px 0 4px 22px; position: relative; }
.card li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(124, 108, 255, .7); }

/* Spotlight rows: text beside a screenshot. */
.spot { display: grid; grid-template-columns: 1fr 1.35fr; gap: 56px; align-items: center; margin-top: 120px; }
.spot.flip { grid-template-columns: 1.35fr 1fr; }
.spot.flip .spot-text { order: 2; }
@media (max-width: 900px) { .spot, .spot.flip { grid-template-columns: 1fr; gap: 32px; } .spot.flip .spot-text { order: 0; } }
.spot h2 { font-size: clamp(28px, 3.6vw, 40px); margin-top: 12px; }
.spot p.sub { font-size: 17px; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; color: var(--text-dim); font-size: 15.5px; }
.checks li b { color: var(--text); font-weight: 600; }
.checks svg { flex: none; width: 20px; height: 20px; color: var(--good); margin-top: 2px; }
.callout {
  position: absolute; right: 22px; top: 22px; z-index: 3;
  background: rgba(11, 12, 16, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(161, 149, 255, .35); border-radius: 14px; padding: 14px 18px;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .8), 0 0 40px -10px rgba(124, 108, 255, .5);
}
.callout b { display: block; font-size: 30px; letter-spacing: -0.03em; color: #fff; }
.callout span { color: var(--text-dim); font-size: 13px; }
@media (max-width: 520px) { .callout { right: 10px; top: 10px; padding: 10px 12px; } .callout b { font-size: 22px; } }
.shot-wrap { position: relative; }

/* ---------------------------------------------------------------- pricing */
.price-card {
  position: relative; max-width: 460px; margin: 48px auto 0; text-align: left;
  background: linear-gradient(180deg, var(--surface-hi), var(--surface));
  border: 1px solid rgba(161, 149, 255, .28); border-radius: 22px; padding: 34px;
  box-shadow: 0 40px 100px -40px rgba(124, 108, 255, .55);
}
.price-card .tag { position: absolute; top: -13px; left: 34px; background: linear-gradient(180deg, var(--accent-hi), var(--accent)); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.price-card .amount { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; }
.price-card .amount b { font-size: 56px; letter-spacing: -0.04em; }
.price-card .amount span { color: var(--text-dim); }
.price-card .btn { width: 100%; margin-top: 26px; }
.price-card .fine { color: var(--text-mute); font-size: 13.5px; text-align: center; margin-top: 14px; }

/* ---------------------------------------------------------------- FAQ */
.faq { max-width: 820px; margin: 44px auto 0; }
.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 26px; width: 10px; height: 10px; border-right: 2px solid var(--text-mute); border-bottom: 2px solid var(--text-mute); transform: rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 31px; }
.faq details p { color: var(--text-dim); padding: 0 40px 20px 0; }

/* ---------------------------------------------------------------- final CTA + footer */
.final { margin: 130px 0 0; padding: 72px 24px; text-align: center; border-radius: 26px; position: relative; overflow: hidden; border: 1px solid var(--border-hi); background: radial-gradient(120% 140% at 50% 0%, rgba(124, 108, 255, .22), rgba(124, 108, 255, 0) 60%), var(--surface); }
.final h2 { font-size: clamp(30px, 4.4vw, 46px); }
.final p { color: var(--text-dim); margin: 14px auto 0; max-width: 560px; font-size: 17px; }
.final .btn { margin-top: 30px; }

footer { margin-top: 90px; border-top: 1px solid var(--border); padding: 40px 0 56px; color: var(--text-mute); font-size: 14px; }
footer .wrap { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--text-dim); }
footer .spacer { flex: 1; }
.credit { color: var(--text-mute); font-size: 13px; margin-top: 18px; width: 100%; }

/* ---------------------------------------------------------------- inner pages (license, legal) */
.page { position: relative; padding: 72px 0 0; overflow: hidden; }
.page .glow.a { width: 560px; height: 340px; background: var(--accent); top: -200px; left: 50%; transform: translateX(-50%); opacity: .22; }
.page .inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.page h1 { font-size: clamp(32px, 5vw, 46px); }
.page .lede { color: var(--text-dim); font-size: 18px; margin-top: 14px; }
.legal h2 { font-size: 22px; margin: 38px 0 10px; }
.legal p, .legal li { color: var(--text-dim); }
.legal p + p { margin-top: 12px; }
.legal .updated { color: var(--text-mute); font-size: 14px; margin-top: 10px; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-top: 32px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 600; color: var(--text-dim); }
.field input {
  height: 48px; padding: 0 16px; border-radius: 11px; font: 15px inherit; font-family: inherit;
  color: var(--text); background: var(--bg); border: 1px solid var(--border-hi); outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .02em; }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(124, 108, 255, .18); }
.msg { margin-top: 16px; padding: 12px 14px; border-radius: 11px; font-size: 14.5px; display: none; }
.msg.show { display: block; }
.msg.err { background: rgba(248, 113, 113, .08); border: 1px solid rgba(248, 113, 113, .3); color: #fca5a5; }
.msg.ok { background: rgba(67, 211, 150, .08); border: 1px solid rgba(67, 211, 150, .3); color: #86efac; }
.pcs { display: grid; gap: 10px; margin-top: 18px; }
.pc { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); }
.pc .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(124, 108, 255, .12); color: var(--accent-hi); flex: none; }
.pc .ico svg { width: 19px; height: 19px; }
.pc .meta { flex: 1; min-width: 0; }
.pc .meta b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc .meta span { color: var(--text-mute); font-size: 13.5px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: flex; gap: 14px; color: var(--text-dim); }
.steps li::before { content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13.5px; font-weight: 700; color: var(--accent-hi); background: rgba(124, 108, 255, .14); }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Reveal on scroll. */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
  .reveal.in { opacity: 1; transform: none; }
}
