/* ============================================================
   TradeNinja landing — Glass Sharpened (tokens mirrored from
   the app's globals.css so the site IS the brand)
   ============================================================ */

:root {
  --bg-base: #04081a;
  --bg-base-2: #060d24;
  --glass-card: rgba(255, 255, 255, 0.038);
  --glass-card-hi: rgba(255, 255, 255, 0.075);
  /* sRGB fallbacks — overridden by exact oklch in @supports below */
  --accent: #8f6ff2;
  --accent-soft: #c3b1fa;
  --accent-dim: rgba(143, 111, 242, 0.16);
  --accent-glow: rgba(143, 111, 242, 0.55);
  --accent-grad: linear-gradient(180deg, #8f6ff2 0%, #7a58e8 100%);
  --pos: #2fe6a5;
  --neg: #f4564a;
  --text-96: rgba(255, 255, 255, 0.95);
  --text-78: rgba(255, 255, 255, 0.76);
  --text-62: rgba(255, 255, 255, 0.60);
  --text-46: rgba(255, 255, 255, 0.52);
  --hairline: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.11);
  --border-hover: rgba(255, 255, 255, 0.20);
  --border-focus: rgba(143, 111, 242, 0.50);
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-card: 18px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 0 rgba(255,255,255,0.07) inset, 0 18px 48px rgba(0,0,0,0.5);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max-w: 960px;
}

/* Exact brand colors where oklch is supported (matches the app's tokens) */
@supports (color: oklch(70% 0.19 290)) {
  :root {
    --accent: oklch(70% 0.19 290);
    --accent-soft: oklch(83% 0.145 290);
    --accent-dim: oklch(70% 0.19 290 / 0.16);
    --accent-glow: oklch(72% 0.19 290 / 0.55);
    --accent-grad: linear-gradient(180deg, oklch(70% 0.19 290) 0%, oklch(62% 0.19 290) 100%);
    --pos: oklch(82% 0.21 158);
    --neg: oklch(67% 0.24 25);
    --border-focus: oklch(72% 0.19 290 / 0.50);
  }
}

/* Visually-hidden (screen-reader-only) headings */
.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;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  background: var(--bg-base);
  color: var(--text-96);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Aurora backdrop ── */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 45% at 18% -8%, oklch(45% 0.16 290 / 0.22), transparent 60%),
    radial-gradient(ellipse 55% 40% at 85% 8%, oklch(50% 0.14 250 / 0.14), transparent 60%),
    radial-gradient(ellipse 65% 50% at 50% 108%, oklch(45% 0.15 290 / 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-base) 0%, var(--bg-base-2) 100%);
}

/* ── Nav ── */
.nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-96); }
.brand-mark { display: block; }
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, background 0.12s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 4px 24px var(--accent-dim), 0 1px 0 rgba(255,255,255,0.25) inset;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 32px var(--accent-glow), 0 1px 0 rgba(255,255,255,0.25) inset; }
.btn-primary:disabled { opacity: 0.6; cursor: default; transform: none; }
.btn-ghost {
  background: var(--glass-card);
  border-color: var(--border);
  color: var(--text-96);
}
.btn-ghost:hover { border-color: var(--border-hover); background: var(--glass-card-hi); }

/* ── Hero ── */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px 24px 40px;
  text-align: center;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-soft);
  margin-bottom: 22px;
}
h1 {
  text-wrap: balance;
  font-size: clamp(38px, 6.5vw, 62px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 22px;
}
.accent-text {
  background: linear-gradient(120deg, oklch(83% 0.145 290), oklch(70% 0.19 290));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text-78);
  max-width: 640px;
  margin: 0 auto 36px;
}
.lede strong { color: var(--text-96); }

/* ── Waitlist form ── */
.waitlist-form { max-width: 660px; margin: 0 auto; }
.form-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.waitlist-form input[type="email"],
.waitlist-form select {
  font-family: var(--font-sans);
  font-size: 16px; /* ≥16px prevents iOS Safari zoom-on-focus */
  color: var(--text-96);
  background: var(--glass-card-hi);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  min-width: 0;
  transition: border-color 0.12s ease;
}
.waitlist-form input[type="email"] { flex: 1 1 220px; }
.waitlist-form select { flex: 0 1 auto; appearance: none; -webkit-appearance: none; padding-right: 30px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(255,255,255,0.5)' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.waitlist-form select option { background: var(--bg-base-2); color: var(--text-96); }
.waitlist-form input:focus, .waitlist-form select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.btn:focus-visible, a:focus-visible, .faq summary:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}
.waitlist-form input::placeholder { color: var(--text-46); }
.form-note { font-size: 13px; color: var(--text-62); margin-top: 14px; }
.form-status { margin-top: 14px; font-size: 15px; min-height: 1.4em; }
.form-status.ok { color: var(--pos); font-weight: 600; }
.form-status.err { color: var(--neg); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; pointer-events: none; }

/* ── Trust chips ── */
.chips {
  list-style: none;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
}
.chips li {
  font-size: 13.5px;
  color: var(--text-78);
  background: var(--glass-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ── Sections ── */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 76px 24px 8px;
}
.section-center { text-align: center; }
.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-soft);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}
.section-center .section-label { border-bottom: none; padding-bottom: 0; }
h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin-bottom: 16px;
}
.section-lede { color: var(--text-78); max-width: 700px; margin-bottom: 34px; }
.section-center .section-lede { margin-left: auto; margin-right: auto; }
.section-lede strong { color: var(--text-96); }

/* ── Cards & grids ── */
.grid { display: grid; gap: 14px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--glass-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.card:hover { border-color: var(--border); background: var(--glass-card-hi); }
.card h3 { font-size: 16.5px; font-weight: 650; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { font-size: 14.5px; color: var(--text-78); }
.card p em { color: var(--text-96); font-style: italic; }

/* ── Compliance strip ── */
.compliance-strip {
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--text-62);
  background: var(--glass-card);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--accent-dim);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

/* ── Steps ── */
.steps { list-style: none; display: grid; gap: 14px; }
.steps li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--glass-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 22px 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.step-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  color: var(--accent-soft);
  background: var(--accent-dim);
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-pill);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.steps h3 { font-size: 16.5px; font-weight: 650; margin-bottom: 6px; }
.steps p { font-size: 14.5px; color: var(--text-78); }
.steps p strong { color: var(--text-96); }

/* ── Venue cloud ── */
.venue-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.venue-cloud span {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text-78);
  background: var(--glass-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
}
.venue-note { margin-top: 18px; font-size: 14px; color: var(--text-62); max-width: 640px; }

/* ── FAQ ── */
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--glass-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
}
.faq details[open] { background: var(--glass-card-hi); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  padding: 18px 22px;
  list-style: none;
  position: relative;
  padding-right: 46px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  color: var(--accent-soft);
  font-size: 18px;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 18px; font-size: 14.5px; color: var(--text-78); }

/* ── Footer ── */
.footer {
  max-width: var(--max-w);
  margin: 70px auto 0;
  padding: 40px 24px 56px;
  border-top: 1px solid var(--hairline);
  text-align: center;
}
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; margin-bottom: 16px; }
.footer-disclaimer { font-size: 13px; color: var(--text-62); max-width: 560px; margin: 0 auto 18px; }
.footer-links { display: flex; gap: 22px; justify-content: center; margin-bottom: 14px; flex-wrap: wrap; }
.footer-links a { color: var(--text-78); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--text-96); }
.footer-fine { font-size: 12.5px; color: var(--text-46); }

/* ── Legal pages ── */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}
.legal h1 { font-size: 32px; margin-bottom: 8px; }
.legal .updated { font-size: 13px; color: var(--text-46); margin-bottom: 30px; font-family: var(--font-mono); }
.legal h2 { font-size: 20px; margin: 30px 0 10px; }
.legal p, .legal li { color: var(--text-78); font-size: 15px; margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--accent-soft); }

/* ── Responsive ── */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero { padding-top: 48px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .waitlist-form input[type="email"] { flex: 0 0 auto; }
  .waitlist-form input[type="email"], .waitlist-form select, .waitlist-form .btn { width: 100%; }
  .section { padding-top: 56px; }
  .steps li { flex-direction: row; }
}
