/* TradeNuro website — tokens mirror ios/TradeNuro/DesignSystem/Theme.swift (dark palette) */
:root {
  --bg: #060B14;
  --bg-2: #0A1220;
  --card: #0E1828;
  --card-elev: #16223A;
  --sep: rgba(255, 255, 255, 0.09);
  --sep-strong: rgba(255, 255, 255, 0.16);
  --text: #F5F6F8;
  --text-2: #A2AEBD;
  --text-3: #8290A2;
  --bull: #34C759;
  --bear: #FF453A;
  --hold: #FF9F0A;
  --accent: #19C3B1;
  --accent-soft: #3DDBC8;
  --on-accent: #04121C;
  --r-chip: 16px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-card: 18px;
  --r-sheet: 28px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-num: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --maxw: 1160px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-soft); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip-link:focus { left: 16px; }
.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; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 28px; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 11, 20, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--sep);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 4px; align-items: center; }
.nav-links a { color: var(--text-2); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: 15px; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,0.05); }
.nav .nav-cta { display: none; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--sep); background: var(--card); color: var(--text); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
.mobile-menu { display: none; border-top: 1px solid var(--sep); padding: 8px 0 16px; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 12px 4px; color: var(--text); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--sep); }
@media (min-width: 880px) {
  .nav-links { display: flex; }
  .nav .nav-cta { display: inline-flex; }
  .menu-btn, .mobile-menu, .mobile-menu.open { display: none; }
}

/* ---------- Buttons / chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 14px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-soft); color: var(--on-accent); }
.btn-ghost { background: rgba(255,255,255,0.04); color: var(--text); border-color: var(--sep-strong); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: var(--text); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; border-radius: 12px; }

.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid var(--sep-strong); background: rgba(255,255,255,0.04); color: var(--text-2); }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(25,195,177,0.18); }
.badge-ios { color: var(--text); }
.badge-ios svg { width: 16px; height: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-chip); font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip-buy { color: var(--bull); background: rgba(52,199,89,0.14); }
.chip-sell { color: var(--bear); background: rgba(255,69,58,0.14); }
.chip-hold { color: var(--hold); background: rgba(255,159,10,0.14); }
.chip-sim { color: var(--hold); background: rgba(255,159,10,0.12); }
.chip-sim::before { display: none; }

.eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 12px; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
@media (min-width: 880px) { section { padding: 104px 0; } }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 5vw, 44px); }
.section-head p { color: var(--text-2); font-size: 18px; }
.section-alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 18%, var(--bg-2) 82%, var(--bg) 100%); }

.card { background: var(--card); border: 1px solid var(--sep); border-radius: var(--r-card); padding: 24px; box-shadow: var(--shadow); }
.card-elev { background: var(--card-elev); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 48px 0 72px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px; background: radial-gradient(closest-side, rgba(25,195,177,0.20), transparent 70%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: auto auto -30% -20%; width: 640px; height: 640px; background: radial-gradient(closest-side, rgba(22,34,58,0.9), transparent 70%); pointer-events: none; z-index: -1; }
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 88px 0 112px; } .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; } }
.hero h1 { font-size: clamp(38px, 7.4vw, 68px); font-weight: 800; letter-spacing: -0.035em; margin: 18px 0 18px; }
.hero h1 .grad { background: linear-gradient(100deg, var(--accent) 0%, var(--accent-soft) 45%, #43F08C 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--text-2); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-note { font-size: 13px; color: var(--text-3); max-width: 560px; }
.hero-points { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--text-2); font-size: 14px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* Phone mockup (HTML, sample data) */
.phone { position: relative; width: min(340px, 86vw); margin: 0 auto; aspect-ratio: 9 / 19; border-radius: 48px; padding: 12px; background: linear-gradient(160deg, #1d2a40, #0a111d 60%); box-shadow: 0 40px 80px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08) inset, 0 0 60px rgba(25,195,177,.12); }
.phone-screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: var(--bg); padding: 46px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.phone-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 96px; height: 28px; border-radius: 20px; background: #000; }
.ph-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-3); }
.ph-title { display: flex; align-items: center; gap: 10px; }
.ph-ticker { width: 40px; height: 40px; border-radius: 10px; background: var(--card); border: 1px solid var(--sep); display: grid; place-items: center; font-size: 10px; font-weight: 800; }
.ph-name { font-weight: 700; font-size: 18px; line-height: 1.1; }
.ph-sub { color: var(--text-3); font-size: 11px; }
.ph-price { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.ph-chart { background: var(--card); border: 1px solid var(--sep); border-radius: 14px; padding: 8px; }
.ph-chart svg { width: 100%; height: auto; display: block; }
.ph-levels { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-level { background: var(--card); border: 1px solid var(--sep); border-radius: 12px; padding: 8px 10px; }
.ph-level .k { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.ph-level .v { font-size: 14px; font-weight: 700; }
.ph-foot { margin-top: auto; text-align: center; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.ph-btn { background: var(--accent); color: var(--on-accent); border-radius: 14px; text-align: center; padding: 10px; font-weight: 700; font-size: 14px; }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(25,195,177,0.12); color: var(--accent-soft); margin-bottom: 16px; }
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 19px; }
.feature p { color: var(--text-2); margin: 0; font-size: 15px; }

/* Signal anatomy */
.anatomy { display: grid; gap: 24px; margin-top: 40px; align-items: center; }
@media (min-width: 900px) { .anatomy { grid-template-columns: 1fr 1fr; gap: 48px; } }
.signal-card { max-width: 460px; }
.signal-card .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--sep); font-size: 15px; }
.signal-card .row:last-child { border-bottom: 0; }
.signal-card .k { color: var(--text-2); }
.signal-card .v { font-weight: 700; text-align: right; }
.signal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.signal-head .t { font-size: 22px; font-weight: 800; }
.sample-tag { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--text-2); }
.check-list li strong { color: var(--text); display: block; }
.check-list svg { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }

/* ---------- Chart demo ---------- */
.chart-shell { padding: 0; overflow: hidden; }
.chart-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 12px; border-bottom: 1px solid var(--sep); }
.chart-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.chart-meta .sym { font-weight: 800; font-size: 18px; }
.chart-meta .px { font-size: 18px; font-weight: 700; }
.seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--sep); border-radius: 12px; padding: 3px; }
.seg button { appearance: none; border: 0; background: transparent; color: var(--text-2); font: 600 13px var(--font); padding: 7px 12px; border-radius: 9px; cursor: pointer; min-width: 44px; min-height: 34px; }
.seg button[aria-pressed="true"] { background: var(--card-elev); color: var(--text); }
.chart-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; user-select: none; padding: 6px 4px; }
.toggle input { width: 18px; height: 18px; accent-color: var(--accent); }
.chart-wrap { position: relative; height: 380px; }
@media (min-width: 720px) { .chart-wrap { height: 460px; } }
.chart-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: crosshair; }
.chart-tip { padding: 8px 16px; font-size: 12.5px; color: var(--text-2); border-bottom: 1px solid var(--sep); font-variant-numeric: tabular-nums; min-height: 2.6em; white-space: pre-wrap; }
.chart-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 12px 16px 16px; border-top: 1px solid var(--sep); font-size: 13px; color: var(--text-3); }
.chart-caption strong { color: var(--hold); font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }

/* ---------- Paper trading ---------- */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.sim { display: grid; gap: 14px; }
.sim-balance { font-size: clamp(34px, 6vw, 46px); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; }
.sim-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--card-elev); border: 1px solid var(--sep); border-radius: 14px; padding: 12px; }
.stat .k { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.stat .v { font-weight: 700; font-size: 15px; }
.ticket { display: grid; gap: 10px; }
.ticket-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ticket label { font-size: 13px; color: var(--text-2); }
.ticket input[type="number"] { width: 110px; min-height: 44px; border-radius: 12px; border: 1px solid var(--sep-strong); background: var(--bg-2); color: var(--text); font: 600 16px var(--font-num); padding: 8px 12px; }
.btn-buy { background: var(--bull); color: #04140A; }
.btn-sell { background: var(--bear); color: #1A0503; }
.btn-buy:hover, .btn-sell:hover { filter: brightness(1.08); }
.sim-log { font-size: 13px; color: var(--text-2); min-height: 1.6em; }
.sim-positions { font-size: 14px; color: var(--text-2); }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 16px; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan { display: flex; flex-direction: column; gap: 16px; position: relative; }
.plan h3 { font-size: 20px; margin: 0; }
.plan .price { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--text-2); font-size: 15px; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.plan li svg { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
.plan-featured { border-color: rgba(25,195,177,0.55); box-shadow: 0 0 0 1px rgba(25,195,177,0.35), 0 20px 50px -20px rgba(25,195,177,0.35); }
.plan .tag { position: absolute; top: -12px; right: 20px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.plan .muted { color: var(--text-3); font-size: 13px; margin-top: auto; }
.plans-note { margin-top: 20px; color: var(--text-3); font-size: 14px; max-width: 820px; }

/* ---------- Waitlist ---------- */
.waitlist { text-align: center; padding: 40px 20px; background: radial-gradient(120% 140% at 50% 0%, rgba(25,195,177,0.16), transparent 60%), var(--card); }
@media (min-width: 720px) { .waitlist { padding: 64px 48px; } }
.waitlist h2 { font-size: clamp(28px, 5vw, 40px); }
.waitlist p { color: var(--text-2); max-width: 560px; margin-left: auto; margin-right: auto; }
.wl-form { display: flex; flex-direction: column; gap: 10px; max-width: 520px; margin: 24px auto 8px; }
@media (min-width: 560px) { .wl-form { flex-direction: row; } }
.wl-form input[type="email"] { flex: 1; min-height: 52px; border-radius: 14px; border: 1px solid var(--sep-strong); background: var(--bg-2); color: var(--text); font: 16px var(--font); padding: 12px 16px; }
.wl-form input[type="email"]::placeholder { color: var(--text-3); }
.wl-form input[aria-invalid="true"] { border-color: var(--bear); }
.wl-msg { min-height: 1.6em; font-size: 15px; font-weight: 600; }
.wl-msg.ok { color: var(--accent-soft); }
.wl-msg.err { color: var(--bear); }
.wl-fine { font-size: 13px; color: var(--text-3); }

/* ---------- Important notice ---------- */
.notice { border: 1px solid rgba(255,159,10,0.35); background: rgba(255,159,10,0.06); border-radius: var(--r-card); padding: 20px 22px; }
.notice h2, .notice h3 { font-size: 17px; color: var(--hold); margin-bottom: 10px; letter-spacing: 0; }
.notice ul { margin: 0; padding-left: 20px; color: var(--text-2); display: grid; gap: 6px; font-size: 15px; }
.notice strong { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--sep); background: var(--bg-2); padding: 48px 0 32px; margin-top: 40px; font-size: 14px; color: var(--text-2); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.disclaimer { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--sep); font-size: 12.5px; line-height: 1.65; color: var(--text-3); }
.disclaimer p { margin-bottom: .7em; }
.disclaimer strong { color: var(--text-2); }
.copyright { margin-top: 16px; font-size: 12.5px; color: var(--text-3); }

/* ---------- Prose (legal / about) ---------- */
.page-hero { padding: 56px 0 24px; }
.page-hero h1 { font-size: clamp(32px, 6vw, 52px); font-weight: 800; letter-spacing: -.03em; }
.page-hero p { color: var(--text-2); font-size: 18px; max-width: 680px; }
.prose { max-width: 780px; padding-bottom: 40px; }
.prose h2 { font-size: 24px; margin-top: 2em; padding-top: .4em; }
.prose h3 { font-size: 19px; margin-top: 1.6em; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); }
.prose ul { padding-left: 22px; display: grid; gap: 6px; margin: 0 0 1.2em; }
.prose ul ul { margin: 6px 0 0; }
.meta-line { color: var(--text-3); font-size: 14px; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--sep); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--sep); vertical-align: top; color: var(--text-2); }
th { background: var(--card); color: var(--text); font-weight: 600; font-size: 14px; }
tr:last-child td { border-bottom: 0; }
.faq details { background: var(--card); border: 1px solid var(--sep); border-radius: 14px; padding: 0 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-soft); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 16px; }
.faq details ul { margin: 0; }
.contact-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 8px 0 32px; }
.contact-card .email { font-size: 20px; font-weight: 700; }

/* ---------- Overflow guards (grid children may shrink) ---------- */
.hero-grid > *, .split > *, .anatomy > *, .plans > *, .feature-grid > *, .footer-grid > * { min-width: 0; }
.sim-row > .stat { min-width: 0; }
.stat .v { font-size: clamp(12px, 3.4vw, 15px); overflow-wrap: anywhere; }
@media (max-width: 380px) { .sim-row { grid-template-columns: 1fr 1fr; } .sim-row > .stat:last-child { grid-column: span 2; } }
