/* Simple Edge — landing page styles */

:root {
  --bg: #0a0a0b;
  --bg-1: #0f0f12;
  --bg-2: #15151a;
  --bg-3: #1c1c22;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --fg: #f4f4f3;
  --fg-2: rgba(244, 244, 243, 0.66);
  --fg-3: rgba(244, 244, 243, 0.42);
  --fg-4: rgba(244, 244, 243, 0.28);
  --green: oklch(0.78 0.17 148);
  --green-dim: oklch(0.78 0.17 148 / 0.18);
  --red: oklch(0.66 0.21 25);
  --red-dim: oklch(0.66 0.21 25 / 0.18);
  --amber: oklch(0.82 0.14 78);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max-w: 1200px;
  --radius: 4px;
  --radius-lg: 8px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body { overflow-x: hidden; }

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

/* Scanline-y subtle dot background to give the page some texture */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at top, black 30%, transparent 80%);
  z-index: 0;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  background: rgba(10, 10, 11, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: var(--fg);
  color: var(--bg);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
}
.brand-name { letter-spacing: 0; }
.brand-name span { color: var(--fg-3); }

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: var(--fg-2);
}
.nav-links a:hover { color: var(--fg); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--fg);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--mono);
  border: 1px solid var(--fg);
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.nav-cta:hover { opacity: 0.85; }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ============ HERO ============ */
.hero {
  padding: 96px 0 64px;
  position: relative;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg-2);
  text-transform: uppercase;
}
.kicker .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2.4s ease-in-out infinite;
}
.kicker-divider {
  width: 1px;
  height: 10px;
  background: var(--line-strong);
  display: inline-block;
}
.kicker-date {
  color: var(--fg-3);
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 22px 0 22px;
  max-width: 18ch;
  text-wrap: balance;
}
.hero h1 .accent {
  color: var(--fg-3);
  font-style: italic;
  font-weight: 300;
}
.hero-sub {
  max-width: 56ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0 0 32px;
  text-wrap: pretty;
}
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: #07140d;
  padding: 14px 22px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 0 1px var(--green), 0 12px 30px -8px var(--green-dim);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--green), 0 18px 40px -10px var(--green-dim); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--fg);
  padding: 13px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 14px;
  cursor: pointer;
}
.btn-secondary:hover { background: var(--bg-2); }

.trust-row {
  margin-top: 40px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-3);
}
.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust-row .sep { color: var(--fg-4); }

/* ============ HERO CHART ============ */
.chart-shell {
  margin-top: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent 60%), var(--bg-1);
  overflow: hidden;
}
.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
}
.chart-tabs {
  display: flex;
  gap: 4px;
}
.chart-tabs button {
  background: transparent;
  border: 1px solid transparent;
  color: var(--fg-3);
  font-family: inherit;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
  letter-spacing: 0.03em;
}
.chart-tabs button:hover { color: var(--fg-2); }
.chart-tabs button.active {
  color: var(--fg);
  background: var(--bg-3);
  border-color: var(--line-strong);
}
.chart-stat {
  display: flex;
  gap: 24px;
  color: var(--fg-3);
}
.chart-stat b { color: var(--fg); font-weight: 600; }
.chart-stat .pos { color: var(--green); }

.chart-body {
  position: relative;
  height: 380px;
}
.chart-body svg { display: block; width: 100%; height: 100%; }

.chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  white-space: nowrap;
  transform: translate(-50%, calc(-100% - 12px));
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  z-index: 5;
}
.chart-tooltip .label { color: var(--fg-3); }
.chart-tooltip .row { display: flex; gap: 14px; justify-content: space-between; }
.chart-tooltip .pos { color: var(--green); }
.chart-tooltip .neg { color: var(--red); }

.chart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
}
.chart-footer .legend {
  display: flex;
  gap: 18px;
  align-items: center;
}
.chart-footer .swatch {
  display: inline-block;
  width: 10px;
  height: 2px;
  margin-right: 6px;
  vertical-align: middle;
}

/* ============ SECTION HEAD ============ */
.section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.section-tight {
  padding: 56px 0 96px;
  border-top: none;
}
.section-tight .section-head { margin-bottom: 32px; }
.section-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 16px;
}
.section h2 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  max-width: 22ch;
  text-wrap: balance;
}
.section .lede {
  font-size: 17px;
  color: var(--fg-2);
  max-width: 60ch;
  margin: 0;
}
.section-head {
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
}

/* ============ METRICS ============ */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.metric {
  background: var(--bg-1);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.metric-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.metric-value {
  font-family: var(--mono);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}
.metric-value.green { color: var(--green); }
.metric-value.red { color: var(--red); }
.metric-sub {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-3);
}
.metric-meta {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  display: flex;
  justify-content: space-between;
}
.metric-meta b { color: var(--fg-2); font-weight: 500; }

@media (max-width: 880px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .metrics { grid-template-columns: 1fr; }
  .metric-value { font-size: 36px; }
}

/* ============ VALIDATION NOTE ============ */
.validation-note {
  margin-top: 24px;
  padding: 14px 18px;
  background: linear-gradient(90deg, oklch(0.78 0.17 148 / 0.06), transparent 90%);
  border: 1px solid var(--line);
  border-left: 2px solid var(--green);
  border-radius: var(--radius);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.5;
}
.validation-note b { color: var(--fg); font-weight: 600; }
.vn-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: oklch(0.78 0.17 148 / 0.14);
  color: var(--green);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============ EXAMPLE ACCOUNT ============ */
.example-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: stretch;
}
.example-headline {
  background:
    radial-gradient(120% 80% at 0% 0%, oklch(0.78 0.17 148 / 0.10), transparent 60%),
    var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.example-headline::before {
  content: "";
  position: absolute;
  top: 0; right: 0; width: 220px; height: 220px;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 12px 12px;
  mask-image: radial-gradient(ellipse at top right, black, transparent 70%);
  pointer-events: none;
}
.example-headline-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.example-headline-amount {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.example-headline-amount .amt-prefix { color: var(--fg); }
.example-headline-amount .amt-divider { color: var(--fg-4); }
.example-headline-amount .amt-suffix { color: var(--green); }
.example-headline-sub {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-3);
}
.example-projection {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
}
.proj-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.proj-value {
  font-family: var(--mono);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-top: 6px;
  line-height: 1;
  color: var(--green);
}
.proj-value.red { color: var(--red); }

.example-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.example-card {
  background: var(--bg-1);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ec-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ec-value {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1.1;
}
.ec-value.green { color: var(--green); }
.ec-value.red { color: var(--red); }
.ec-hint {
  font-size: 12px;
  color: var(--fg-3);
  line-height: 1.45;
}

.example-note {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-3);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.55;
}
.example-note::before {
  content: "→";
  color: var(--fg-4);
  flex-shrink: 0;
}
.example-note b { color: var(--fg-2); font-weight: 500; }

@media (max-width: 960px) {
  .example-grid { grid-template-columns: 1fr; }
  .example-headline-amount { font-size: 22px; }
  .proj-value { font-size: 28px; }
}
@media (max-width: 560px) {
  .example-cards { grid-template-columns: 1fr; }
}

/* ============ HOW IT WORKS ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.steps.steps-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.workflow-aside {
  margin-top: 28px;
  padding: 14px 18px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-3);
  display: flex;
  gap: 12px;
  align-items: center;
}
.workflow-aside a { color: var(--fg-2); text-decoration: underline; text-decoration-color: var(--fg-4); }
.workflow-aside a:hover { color: var(--fg); }
.wa-tag {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: oklch(0.82 0.14 78 / 0.14);
  color: var(--amber);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.step {
  padding: 24px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.step-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.step-num span:last-child {
  width: 28px; height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--fg);
  font-weight: 600;
}
.step h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
}
.step p {
  font-size: 14px;
  color: var(--fg-2);
  margin: 0;
  line-height: 1.55;
}
.step-snippet {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-2);
  white-space: pre;
  overflow-x: auto;
}
.step-snippet .cmt { color: var(--fg-4); }
.step-snippet .k { color: var(--green); }
.step-snippet .n { color: var(--amber); }

@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; }
  .steps.steps-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .steps.steps-4 { grid-template-columns: 1fr; }
}

/* ============ STRATEGY ============ */
.strategy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.rules {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.rules li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
}
.rules .tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  padding-top: 2px;
}
.rules .desc { color: var(--fg); font-size: 15px; line-height: 1.55; }
.rules .desc b { font-weight: 600; }
.rules .desc .em { color: var(--green); font-family: var(--mono); }

.strategy-visual {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  font-family: var(--mono);
  font-size: 12px;
}
.strategy-visual .vhead {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  color: var(--fg-3);
}

@media (max-width: 880px) {
  .strategy-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============ EXAMPLE TRADE CARD ============ */
.example-trade {
  background:
    radial-gradient(140% 90% at 100% 0%, oklch(0.78 0.17 148 / 0.10), transparent 55%),
    var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  max-width: 760px;
  position: relative;
  overflow: hidden;
}
.example-trade::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 280px; height: 280px;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 14px 14px;
  mask-image: radial-gradient(ellipse at top right, black, transparent 70%);
  pointer-events: none;
}

.et-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 28px;
  position: relative;
}
.et-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.et-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
}

.et-prose {
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.et-prose p {
  font-size: 18px;
  line-height: 1.5;
  color: var(--fg);
  margin: 0;
  letter-spacing: -0.01em;
}

.et-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.et-steps li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  align-items: baseline;
}
.et-time {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-3);
}
.et-desc {
  font-size: 17px;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.et-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  margin-bottom: 20px;
  position: relative;
}
.et-result-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 6px;
}
.et-result-value {
  font-family: var(--mono);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--green);
  line-height: 1;
}
.et-result-sub {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-3);
}
.et-spark {
  width: 240px;
  height: 60px;
  flex-shrink: 0;
}
.et-footnote {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.55;
  position: relative;
}

@media (max-width: 720px) {
  .example-trade { padding: 28px 24px; }
  .et-result { flex-direction: column; align-items: flex-start; }
  .et-spark { width: 100%; }
  .et-result-value { font-size: 36px; }
}

/* ============ RISK CARDS (3-up) ============ */
.risk-tables {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.risk-card {
  background: var(--bg-1);
  padding: 28px 24px 12px;
  display: flex;
  flex-direction: column;
}
.risk-card-head {
  margin-bottom: 18px;
}
.risk-card-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.risk-card-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.02em;
}
.risk-card .risk-table {
  font-size: 13px;
}
.risk-card .risk-table th,
.risk-card .risk-table td {
  padding: 12px 0;
  border-color: var(--line);
}
.risk-card .risk-table thead th {
  border-bottom: 1px solid var(--line-strong);
}

@media (max-width: 880px) {
  .risk-tables { grid-template-columns: 1fr; }
}

/* ============ FINAL CTA SUB ============ */
.final-cta-sub {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-3);
  position: relative;
}
.final-cta-sub a {
  color: var(--fg-2);
  text-decoration: underline;
  text-decoration-color: var(--fg-4);
}
.final-cta-sub a:hover { color: var(--fg); }

/* ============ BRAND MARK SVG ============ */
.brand-mark svg {
  display: block;
}
.brand-name span { margin-left: 2px; }

/* ============ BENEFIT CARDS ============ */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.benefit {
  background: var(--bg-1);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.benefit-icon {
  color: var(--green);
  background: oklch(0.78 0.17 148 / 0.12);
  padding: 8px;
  border-radius: 6px;
  width: 38px;
  height: 38px;
  box-sizing: content-box;
  margin-bottom: 4px;
}
.benefit h4 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
  font-family: var(--mono);
}
.benefit p {
  font-size: 14px;
  color: var(--fg-2);
  margin: 0;
  line-height: 1.55;
}
@media (max-width: 880px) {
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .benefit-grid { grid-template-columns: 1fr; }
}

/* ============ MONTE CARLO ============ */
.mc-wrap {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.mc-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.mc-title {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-2);
  letter-spacing: 0.02em;
}
.mc-legend {
  display: flex;
  gap: 18px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
}
.mc-legend .swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  vertical-align: -1px;
  border-radius: 1px;
}
.mc-legend .swatch-line {
  height: 0;
  border-top: 2px dashed var(--fg);
  background: transparent;
  margin-bottom: 2px;
}
.mc-chart {
  width: 100%;
}
.mc-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.mc-stats {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--bg-1);
}
.mc-stats-head,
.mc-stats-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  padding: 14px 20px;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 13px;
  gap: 8px;
}
.mc-stats-head {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  border-bottom: 1px solid var(--line-strong);
  background: var(--bg-2);
}
.mc-stats-row + .mc-stats-row { border-top: 1px solid var(--line); }
.mc-stats-label { color: var(--fg); font-weight: 500; }
.mc-stats-val { color: var(--fg-2); font-variant-numeric: tabular-nums; }
.mc-stats-val.mean { color: var(--green); font-weight: 600; }

.mc-callout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.mc-callout-item {
  background: var(--bg-1);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.mc-callout-val {
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--green);
  line-height: 1;
}
.mc-callout-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-3);
  letter-spacing: 0.02em;
}
@media (max-width: 720px) {
  .mc-stats-head, .mc-stats-row { grid-template-columns: 1fr 1fr; row-gap: 6px; }
  .mc-stats-head > div:nth-child(n+3), .mc-stats-row > div:nth-child(n+3) { display: none; }
  .mc-callout { grid-template-columns: 1fr; }
}

/* ============ COMPARE TABLE ============ */
.compare-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-1);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 14px;
}
.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.compare-table thead th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 500;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-strong);
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-feature {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--fg-3);
  text-transform: uppercase;
  width: 26%;
}
.compare-cell {
  color: var(--fg-2);
  font-variant-numeric: tabular-nums;
}
.compare-self {
  color: var(--green) !important;
  background: oklch(0.78 0.17 148 / 0.06);
}
.compare-self-cell {
  color: var(--fg);
  font-weight: 500;
  background: oklch(0.78 0.17 148 / 0.04);
}
@media (max-width: 720px) {
  .compare-table th, .compare-table td { padding: 12px 14px; font-size: 13px; }
  .compare-feature { font-size: 10px; }
}

/* ============ DRAWDOWN REALITY TABLE ============ */
.dd-table-wrap, .sizing-table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-1);
}
.dd-table, .sizing-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 14px;
}
.dd-table th, .dd-table td,
.sizing-table th, .sizing-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.dd-table thead th,
.sizing-table thead th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 500;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-strong);
}
.dd-table tbody tr:last-child td,
.sizing-table tbody tr:last-child td { border-bottom: none; }

.dd-acct { color: var(--fg); font-weight: 600; }
.dd-risk { color: var(--fg-2); }
.dd-bt .dd-num { color: var(--amber); font-weight: 600; }
.dd-ws .dd-num { color: var(--red); font-weight: 600; }
.dd-pct {
  display: inline-block;
  margin-left: 8px;
  color: var(--fg-4);
  font-size: 12px;
}

.dd-legend {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.dd-legend-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-2);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  font-weight: 600;
}
.dd-legend-desc {
  font-size: 13px;
  color: var(--fg-3);
  line-height: 1.5;
}
@media (max-width: 720px) {
  .dd-legend { grid-template-columns: 1fr; }
  .dd-table th, .dd-table td { padding: 11px 12px; font-size: 12px; }
  .dd-pct { display: block; margin-left: 0; }
}

/* ============ SIZING TABLE EXTENSIONS ============ */
.sizing-table tbody tr:hover { background: var(--bg-2); }
.sizing-table .acct { color: var(--fg); font-weight: 600; }
.sizing-table .col-safe { color: var(--green); }
.sizing-table .col-mod  { color: var(--amber); }
.sizing-table .col-agg  { color: var(--red); }
.sizing-table .sz-dim { color: var(--fg-3); }
@media (max-width: 720px) {
  .sizing-table th, .sizing-table td { padding: 11px 12px; font-size: 12px; }
}

/* ============ EXAMPLE PROJECTION 3-COL ============ */
.example-projection-3 {
  grid-template-columns: 1fr 1fr 1fr;
}
.proj-sub {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  line-height: 1.5;
  max-width: 22ch;
}
@media (max-width: 960px) {
  .example-projection-3 { grid-template-columns: 1fr; }
}

/* ============ SECONDARY VALIDATION NOTE ============ */
.validation-note-secondary {
  margin-top: 8px;
  background: linear-gradient(90deg, var(--bg-1), transparent 90%);
  border-left-color: var(--line-strong);
}
.validation-note-secondary .vn-icon {
  background: var(--bg-3);
  color: var(--fg-3);
}

/* ============ FOOTER LEGAL UPDATED ============ */
.footer-legal {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-4);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.footer-legal-left,
.footer-legal-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-legal-left .sep { color: var(--fg-4); }
.footer-legal a {
  color: var(--fg-3);
}
.footer-legal a:hover { color: var(--fg); }

/* ============ WHY ============ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.why {
  background: var(--bg-1);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.why .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.06em;
}
.why h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.015em;
}
.why p {
  font-size: 14px;
  color: var(--fg-2);
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 880px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ============ RISK TABLE ============ */
.risk-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--mono);
  font-size: 14px;
}
.risk-table th, .risk-table td {
  padding: 16px 18px;
  text-align: right;
  border-bottom: 1px solid var(--line);
}
.risk-table th:first-child, .risk-table td:first-child {
  text-align: left;
}
.risk-table thead th {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  text-transform: uppercase;
  font-weight: 500;
  border-bottom: 1px solid var(--line-strong);
}
.risk-table tbody tr:hover { background: var(--bg-1); }
.risk-table .acct {
  color: var(--fg);
  font-weight: 600;
}
.risk-table .col-safe { color: var(--green); }
.risk-table .col-mod  { color: var(--amber); }
.risk-table .col-agg  { color: var(--red); }

.risk-toggle {
  display: inline-flex;
  margin-bottom: 24px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 3px;
  font-family: var(--mono);
  font-size: 12px;
}
.risk-toggle button {
  background: transparent;
  border: none;
  color: var(--fg-3);
  padding: 6px 14px;
  cursor: pointer;
  border-radius: 3px;
  font-family: inherit;
  font-size: inherit;
}
.risk-toggle button.active { background: var(--bg-3); color: var(--fg); }
.risk-toggle button:hover:not(.active) { color: var(--fg-2); }

.risk-note {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-3);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.risk-note::before {
  content: "→";
  color: var(--fg-4);
}

/* ============ PRICING ============ */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.plan {
  border: 1px solid var(--line);
  background: var(--bg-1);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.plan.featured {
  border-color: var(--amber);
  background: linear-gradient(180deg, oklch(0.82 0.14 78 / 0.06), transparent 50%), var(--bg-1);
}
.plan-badge {
  position: absolute;
  top: -10px;
  right: 24px;
  background: var(--amber);
  color: #1a1408;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.plan-name {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.plan-price {
  font-family: var(--mono);
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.025em;
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1;
}
.plan-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.plan-discount-pill {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--green);
  background: oklch(0.78 0.17 148 / 0.14);
  border: 1px solid oklch(0.78 0.17 148 / 0.35);
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-strike {
  font-size: 22px;
  color: var(--fg-4);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  font-weight: 400;
  margin-right: 4px;
}
.plan-now {
  color: var(--green);
}
.plan-price .per {
  font-size: 14px;
  color: var(--fg-3);
  font-weight: 400;
}
.plan-tag {
  font-size: 14px;
  color: var(--fg-2);
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan li {
  font-size: 14px;
  color: var(--fg-2);
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
  line-height: 1.5;
}
.plan li::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-top: 4px;
  background: var(--green);
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M2.5 7.2L5.7 10.4 11.5 4.6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M2.5 7.2L5.7 10.4 11.5 4.6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
}
.plan .btn-primary { margin-top: 8px; width: 100%; justify-content: center; }
.plan .btn-secondary { margin-top: 8px; width: 100%; justify-content: center; }

@media (max-width: 720px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ============ FAQ ============ */
.faq {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 22px;
  color: var(--fg-3);
  transition: transform 0.2s ease;
  line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .a {
  padding: 0 0 24px;
  color: var(--fg-2);
  max-width: 70ch;
  font-size: 15px;
  line-height: 1.6;
}

/* ============ FOOTER ============ */
footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.footer-grid .brand { margin-bottom: 16px; }
.footer-links {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-3);
}
.disclaimer {
  font-size: 12px;
  color: var(--fg-3);
  max-width: 80ch;
  line-height: 1.6;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-1);
  font-family: var(--mono);
}
.footer-legal {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-4);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============ FINAL CTA ============ */
.final-cta {
  text-align: center;
  padding: 120px 0;
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: -50% 0 auto 0;
  height: 200%;
  background: radial-gradient(ellipse at top, oklch(0.78 0.17 148 / 0.08), transparent 50%);
  pointer-events: none;
}
.final-cta h2 {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 auto 20px;
  max-width: 20ch;
  position: relative;
}
.final-cta p {
  color: var(--fg-2);
  font-size: 17px;
  margin: 0 auto 32px;
  max-width: 52ch;
  position: relative;
}
.final-cta .btn-primary { position: relative; }

/* Utility */
.divider-mono {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.divider-mono::before, .divider-mono::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
