/* Shared design system for the marketing SUB-pages (features/pricing/privacy).
   Values are extracted BY VALUE from landing/index.html's inline CSS — the
   landing page itself stays self-contained on purpose (see the qmti1 spec).
   Tokens are canonical in design/TOKENS.md. */

:root {
  --bg: #0B0D17;
  --card: #151827;
  --elevated: #1E2233;
  --border: #2A2F45;
  --primary: #6742E0;
  --primary-bright: #7B5BFF;
  --ink: #FFFFFF;
  --muted: #a1a1aa;
  --green: #00D084;
  --amber: #FFB020;
  --sky: #00B8FF;
  --coral: #FF6B6B;
  --g1: #FABE4A; --g2: #F55A73; --g3: #F856A0; --g4: #944FE8; --g5: #6336C1;
  --logo-gradient: linear-gradient(165deg, var(--g1) 0%, var(--g2) 30%, var(--g3) 50%, var(--g4) 75%, var(--g5) 100%);
  --radius: 18px;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/landing-assets/fonts/PlusJakartaSans-ExtraBold.ttf') format('truetype');
  font-weight: 800; font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/landing-assets/fonts/PlusJakartaSans-SemiBold.ttf') format('truetype');
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/landing-assets/fonts/PlusJakartaSans-Regular.ttf') format('truetype');
  font-weight: 400; font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Atmosphere: aurora mesh + grain ─────────────────────────────── */
.atmosphere {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(103, 66, 224, 0.22), transparent 65%),
    radial-gradient(700px 500px at -10% 25%, rgba(248, 86, 160, 0.10), transparent 60%),
    radial-gradient(800px 700px at 50% 115%, rgba(99, 54, 193, 0.16), transparent 65%);
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

a { color: inherit; text-decoration: none; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 16px; border-radius: 14px;
  padding: 14px 28px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset, 0 8px 32px rgba(103,66,224,0.45);
}
.btn-primary:hover { background: var(--primary-bright); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(103,66,224,0.6); }
.btn-ghost {
  background: transparent; color: var(--ink);
  box-shadow: 0 0 0 1px var(--border) inset;
}
.btn-ghost:hover { box-shadow: 0 0 0 1px var(--primary) inset; transform: translateY(-2px); }

/* ── Header ──────────────────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 13, 23, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(42, 47, 69, 0.6);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.lettermark {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--card); border: 1px solid var(--border);
  display: grid; place-items: center;
  font-weight: 800; font-size: 22px; line-height: 1;
}
.lettermark span {
  background: var(--logo-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links { display: flex; gap: 22px; margin-right: auto; margin-left: 14px; }
.nav-links a { font-weight: 600; font-size: 15px; color: var(--muted); transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn { padding: 10px 20px; font-size: 15px; }

/* ── Section scaffolding ─────────────────────────────────────────── */
section { padding: 88px 0; }
.kicker {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--g3); margin-bottom: 14px;
}
h2 { font-weight: 800; letter-spacing: -0.03em; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; }
.lede { color: var(--muted); font-size: 18px; max-width: 38em; margin-top: 16px; }

/* Page hero (lighter than the landing hero) */
.page-head { padding: 72px 0 8px; }
.page-head h1 {
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.06;
  font-size: clamp(38px, 5vw, 60px);
}
.page-head h1 .grad {
  background: var(--logo-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.page-head h1, .page-head .lede { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.page-head .lede { animation-delay: .08s; }
@media (prefers-reduced-motion: reduce) {
  .page-head h1, .page-head .lede { animation: none; }
}

/* ── Cards / checklists ──────────────────────────────────────────── */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
}
.check-list { list-style: none; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 15.5px; }
.check-list li::before {
  content: "✓"; flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px;
  background: rgba(0,208,132,0.14); color: var(--green);
  display: grid; place-items: center; font-size: 13px; font-weight: 800; margin-top: 2px;
}

/* ── Prose (legal pages) ─────────────────────────────────────────── */
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(22px, 2.4vw, 28px); margin-top: 44px; }
.prose h2:first-of-type { margin-top: 28px; }
.prose p { color: var(--muted); font-size: 16px; margin-top: 14px; }
.prose ul { margin: 14px 0 0 1.2em; color: var(--muted); font-size: 16px; display: grid; gap: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--primary-bright); }
.prose a:hover { text-decoration: underline; }

/* ── Final CTA panel (gradient ring) ─────────────────────────────── */
.cta-final .panel {
  position: relative; border-radius: 28px; padding: 72px 40px; text-align: center;
  background: var(--card); border: 1px solid transparent;
  background-clip: padding-box; overflow: hidden;
}
.cta-final .panel::before {
  content: ""; position: absolute; inset: 0; border-radius: 28px; padding: 1px;
  background: var(--logo-gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.65; pointer-events: none;
}
.cta-final .panel::after {
  content: ""; position: absolute; inset: -40% 20% 50% 20%; z-index: 0;
  background: radial-gradient(closest-side, rgba(103,66,224,0.3), transparent 75%);
  pointer-events: none;
}
.cta-final .panel > * { position: relative; z-index: 1; }
.cta-final p { color: var(--muted); margin: 14px auto 32px; max-width: 34em; font-size: 17px; }

/* ── Footer ──────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border); padding: 36px 0 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: 14px;
}
footer .links { display: flex; gap: 22px; }
footer a:hover { color: var(--ink); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 920px) {
  section { padding: 64px 0; }
  .page-head { padding: 56px 0 0; }
}
@media (max-width: 600px) {
  .nav-actions .btn-ghost { display: none; }
  .nav-links { display: none; }
}
