:root {
  --bg: #0b1220;
  --bg-alt: #0f1830;
  --panel: #131e38;
  --panel-2: #16233f;
  --line: #23324f;
  --ink: #eaf0fb;
  --muted: #93a2c2;
  --brand: #3b82f6;
  --brand-2: #22d3ee;
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
  --radius: 14px;
  --wrap: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 750; }
p { margin: 0 0 1rem; }
code { font-family: var(--mono); background: var(--panel); padding: .12em .4em; border-radius: 6px; font-size: .88em; color: var(--brand-2); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; font-weight: 650; font-size: .95rem;
  padding: .72rem 1.25rem; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent; transition: transform .08s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, var(--brand), #2f6fe0); color: #fff; box-shadow: 0 6px 20px rgba(59,130,246,.28); }
.btn-primary:hover { background: linear-gradient(180deg, #4f92ff, #3577e6); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: #fff; }
.btn-sm { padding: .5rem .9rem; font-size: .85rem; }
.btn-lg { padding: .95rem 1.7rem; font-size: 1.05rem; }
.btn-block { width: 100%; margin-top: .6rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11,18,32,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 0 4px rgba(59,130,246,.12);
}
.brand-name { font-weight: 800; letter-spacing: -0.02em; }
.nav { display: flex; gap: 1.35rem; margin-left: auto; font-size: .92rem; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--ink); }
.header-inner .btn { margin-left: .25rem; }

/* Hero */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(1000px 460px at 78% -8%, rgba(34,211,238,.12), transparent 60%),
    radial-gradient(760px 420px at 12% 0%, rgba(59,130,246,.16), transparent 60%);
}
.hero-inner { display: grid; grid-template-columns: 1.35fr .9fr; gap: 3rem; align-items: center; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--brand-2);
  border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem; margin-bottom: 1.1rem;
}
.lede { font-size: 1.12rem; color: #c6d2ea; max-width: 42ch; }
.hero-cta { display: flex; gap: .8rem; margin: 1.6rem 0 2rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2rem; margin: 0; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.hero-stats div { }
.hero-stats dt { font-size: 1.5rem; font-weight: 800; color: #fff; }
.hero-stats dd { margin: 0; font-size: .82rem; color: var(--muted); max-width: 16ch; }

.hero-card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.card-head { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .9rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-red { background: var(--red); box-shadow: 0 0 0 4px rgba(239,68,68,.16); }
.gap-list { list-style: none; margin: 0; padding: 0; }
.gap-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.gap-list li:last-child { border-bottom: none; }
.tag { font-size: .72rem; font-weight: 700; padding: .18rem .55rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.tag-red { background: rgba(239,68,68,.15); color: #fca5a5; }
.tag-amber { background: rgba(245,158,11,.15); color: #fcd34d; }
.tag-green { background: rgba(34,197,94,.15); color: #86efac; }
.card-foot { margin: .9rem 0 0; font-size: .84rem; color: var(--muted); }

/* Sections */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-kicker { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-2); margin-bottom: .6rem; }
.section-sub { color: var(--muted); max-width: 62ch; font-size: 1.02rem; }

/* Grid + features */
.grid { display: grid; gap: 1.2rem; margin-top: 1.8rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--muted); margin: 0; }
.feature.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.feature-num { font-family: var(--mono); font-size: .85rem; color: var(--brand-2); margin-bottom: .6rem; }
.callout {
  margin-top: 1.8rem; padding: 1.2rem 1.4rem; border-left: 3px solid var(--brand);
  background: var(--panel); border-radius: 0 var(--radius) var(--radius) 0; color: #cdd8ef;
}

/* Regulatory */
.reg-inner { display: grid; grid-template-columns: 1.4fr .8fr; gap: 2.6rem; align-items: start; }
.reg-copy p { color: #c6d2ea; }
.reg-points { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.reg-points li { padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.reg-points li:last-child { border-bottom: none; }
.reg-points strong { color: var(--ink); }

/* Explorer */
.explorer { margin-top: 1.8rem; }
.typology-tabs { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.3rem; }
.typo-tab {
  background: var(--panel); border: 1px solid var(--line); color: var(--muted);
  padding: .6rem 1rem; border-radius: 999px; font-size: .88rem; font-weight: 600; cursor: pointer;
  transition: all .15s ease;
}
.typo-tab:hover { color: var(--ink); border-color: var(--brand); }
.typo-tab[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

.explorer-body { display: grid; grid-template-columns: 1.7fr 1fr; gap: 1.3rem; }
.explorer-main, .explorer-side { min-width: 0; }
.explorer-head { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.explorer-head h3 { margin: 0; font-size: 1.3rem; }
.pill { font-family: var(--mono); font-size: .78rem; background: var(--panel); border: 1px solid var(--line); color: var(--brand-2); padding: .2rem .6rem; border-radius: 999px; }
.typo-summary { color: #c6d2ea; margin-top: .5rem; }

.chart-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1rem .6rem; margin: 1rem 0; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; font-size: .82rem; color: var(--muted); margin-bottom: .5rem; font-weight: 600; }
.chart-note { font-family: var(--mono); font-size: .74rem; color: var(--brand-2); }
#typoChart { width: 100%; height: auto; display: block; }

.redflags h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .6rem; }
.redflags ul { margin: 0; padding-left: 1.1rem; color: #c6d2ea; }
.redflags li { margin-bottom: .35rem; }

.explorer-side { display: flex; flex-direction: column; gap: 1.1rem; }
.side-block { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
.side-block h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .5rem; }
.table-scroll { max-height: 280px; overflow: auto; border-radius: 8px; }
.mini-table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: .74rem; }
.mini-table th { position: sticky; top: 0; background: var(--panel-2); text-align: left; padding: .45rem .5rem; color: var(--muted); border-bottom: 1px solid var(--line); font-weight: 600; }
.mini-table td { padding: .38rem .5rem; border-bottom: 1px solid var(--line); color: #c6d2ea; white-space: nowrap; }
.mini-table td.buy { color: #86efac; }
.mini-table td.sell { color: #fca5a5; }
.synthetic-note { margin-top: 1.3rem; font-size: .82rem; color: var(--muted); font-style: italic; }

/* Quiz */
.quiz { margin-top: 1.8rem; max-width: 820px; }
.quiz-q { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin-bottom: .8rem; display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; }
.quiz-q p { margin: 0; font-size: .98rem; }
.quiz-q .qnum { font-family: var(--mono); font-size: .78rem; color: var(--brand-2); margin-right: .5rem; }
.answers { display: flex; gap: .5rem; flex-shrink: 0; }
.answers button {
  border: 1px solid var(--line); background: var(--panel-2); color: var(--muted);
  padding: .45rem .95rem; border-radius: 8px; font-weight: 650; cursor: pointer; font-size: .85rem;
  transition: all .12s ease;
}
.answers button:hover { color: var(--ink); border-color: var(--brand); }
.answers button.sel-yes { background: var(--green); border-color: var(--green); color: #05230f; }
.answers button.sel-no { background: var(--red); border-color: var(--red); color: #2a0808; }

.quiz-result { margin-top: 1.2rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.result-badge { display: inline-block; font-weight: 800; font-size: 1.1rem; padding: .5rem 1.4rem; border-radius: 999px; margin-bottom: .9rem; text-transform: uppercase; letter-spacing: .05em; }
.result-badge.green { background: rgba(34,197,94,.18); color: #86efac; }
.result-badge.amber { background: rgba(245,158,11,.18); color: #fcd34d; }
.result-badge.red { background: rgba(239,68,68,.18); color: #fca5a5; }
.quiz-result p { color: #c6d2ea; max-width: 56ch; margin: 0 auto 1rem; }

/* Pricing */
.pricing-grid { margin-top: 2rem; align-items: stretch; }
.price-card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--brand); box-shadow: 0 20px 50px rgba(59,130,246,.18); }
.ribbon { position: absolute; top: -12px; left: 1.6rem; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.price-card h3 { font-size: 1.15rem; }
.price { font-size: 1.9rem; font-weight: 800; color: #fff; margin: .2rem 0 1rem; }
.price-card ul { list-style: none; margin: 0 0 1.3rem; padding: 0; flex: 1; }
.price-card li { padding: .45rem 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.price-card li:last-child { border-bottom: none; }

/* Steps */
.steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: step; }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 800; margin-bottom: .8rem; }
.steps h3 { font-size: 1.05rem; }
.steps p { color: var(--muted); margin: 0; font-size: .92rem; }

/* Contact */
.section-contact { background:
    radial-gradient(700px 300px at 50% 0%, rgba(59,130,246,.16), transparent 65%), var(--bg-alt);
  text-align: center; border-top: 1px solid var(--line);
}
.contact-inner { max-width: 640px; margin: 0 auto; }
.contact-inner .section-sub { margin: 0 auto 1.6rem; }
.contact-alt { margin-top: 1rem; }
.contact-alt a { color: var(--brand-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.4rem 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-inner .muted { margin: .3rem 0 0; font-size: .88rem; }
.footer-meta { text-align: right; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner, .reg-inner, .explorer-body { grid-template-columns: 1fr; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .hero-card { order: -1; }
}
@media (max-width: 560px) {
  .grid-3, .steps, .pricing-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 1.2rem; }
  .quiz-q { flex-direction: column; align-items: stretch; }
  .answers { justify-content: stretch; }
  .answers button { flex: 1; }
  .footer-meta { text-align: left; }
  .header-inner .btn { display: none; }
}
