/* ── Reset & Base ─────────────────────────────────── */
:root {
  --bg: #07080c;
  --surface: #0d0f15;
  --surface2: #111520;
  --border: rgba(245, 166, 35, 0.12);
  --accent: #f5a623;
  --accent-dim: rgba(245, 166, 35, 0.18);
  --accent-glow: rgba(245, 166, 35, 0.06);
  --text: #e4e1d8;
  --text-muted: #6b6860;
  --green: #3ecf8e;
  --red: #f06060;
  --green-dim: rgba(62, 207, 142, 0.12);
  --red-dim: rgba(240, 96, 96, 0.12);
  --font-display: 'Bebas Neue', 'Arial Black', sans-serif;
  --font-body: 'IBM Plex Sans', 'Helvetica Neue', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Nav ───────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 4rem;
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.brand-mark {
  font-size: 1rem;
  color: var(--accent);
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  color: var(--text);
}
.nav-tagline {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
  padding: 6rem 4rem 5rem;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 70% 40%, rgba(245,166,35,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border);
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
  margin-bottom: 2rem;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  line-height: 1.0;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: 1.05rem;
  color: #8a8880;
  line-height: 1.7;
  max-width: 44ch;
  margin-bottom: 3rem;
  font-weight: 300;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.stat { display: flex; flex-direction: column; }
.stat-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-weight: 400;
  max-width: 14ch;
}
.stat-divider {
  width: 1px;
  height: 3rem;
  background: var(--border);
}

/* ── Chart Frame ────────────────────────────────────── */
.chart-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.chart-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245,166,35,0.03) 0%, transparent 60%);
  pointer-events: none;
}
.chart-header {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.chart-ticker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}
.chart-price {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
}
.chart-change {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
}
.chart-change.up { color: var(--green); background: var(--green-dim); }
.chart-change.down { color: var(--red); background: var(--red-dim); }

/* Candlestick chart */
.candlestick-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 180px;
  padding: 0.5rem 0;
  position: relative;
}
.candle {
  flex: 1;
  border-radius: 1px;
  position: relative;
  animation: candleRise 2s ease-out forwards;
  opacity: 0;
}
.candle.green { background: var(--green); }
.candle.red { background: var(--red); }
.candle.short { height: 30%; }
.candle.medium { height: 55%; }
.candle.long { height: 85%; }
@keyframes candleRise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.c1 { animation-delay: 0.1s; }
.c2 { animation-delay: 0.2s; }
.c3 { animation-delay: 0.3s; }
.c4 { animation-delay: 0.4s; }
.c5 { animation-delay: 0.5s; }
.c6 { animation-delay: 0.6s; }
.c7 { animation-delay: 0.7s; }
.c8 { animation-delay: 0.8s; }
.c9 { animation-delay: 0.9s; }
.c10 { animation-delay: 1.0s; }
.c11 { animation-delay: 1.1s; }
.c12 { animation-delay: 1.2s; }
.c13 { animation-delay: 1.3s; }
.c14 { animation-delay: 1.4s; }
.c15 { animation-delay: 1.5s; }
.c16 { animation-delay: 1.6s; }
.c17 { animation-delay: 1.7s; }
.c18 { animation-delay: 1.8s; }

/* Alert */
.chart-alert {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.2rem;
  padding: 0.6rem 0.8rem;
  background: rgba(245, 166, 35, 0.06);
  border: 1px solid rgba(245, 166, 35, 0.2);
  border-radius: 3px;
  font-size: 0.72rem;
  color: #c8a050;
  font-family: var(--font-mono);
}
.alert-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ── Chart Section ────────────────────────────────── */
.chart-section {
  padding: 0 4rem 5rem;
}
.chart-section-inner { max-width: 1200px; }
.chart-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.portfolio-tiles {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.ptile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  flex: 1;
  min-width: 140px;
}
.ptile-ticker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}
.ptile-price {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}
.ptile-change {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  margin-left: auto;
}
.ptile-change.up { color: var(--green); }
.ptile-change.down { color: var(--red); }
.alert-strip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.alert-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  color: #8a8880;
}
.alert-item:last-child { border-bottom: none; }
.alert-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  background: var(--accent-dim);
  color: var(--accent);
  flex-shrink: 0;
}

/* ── Features ─────────────────────────────────────── */
.features {
  padding: 6rem 4rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 50%, var(--bg) 100%);
}
.features-header {
  max-width: 600px;
  margin: 0 auto 5rem;
  text-align: center;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.feature-card {
  background: var(--surface);
  padding: 2.5rem;
  transition: background 0.2s ease;
}
.feature-card:hover { background: var(--surface2); }
.feature-icon {
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0.85;
}
.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.8rem;
  letter-spacing: 0.01em;
}
.feature-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
}

/* ── How It Works ─────────────────────────────────── */
.howitworks {
  padding: 7rem 4rem;
  position: relative;
}
.howitworks::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(245,166,35,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.howitworks-header {
  text-align: center;
  margin-bottom: 5rem;
}
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
}
.step {
  flex: 1;
  text-align: center;
  padding: 0 2rem;
}
.step-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1.2rem;
  letter-spacing: 0.02em;
}
.step h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.8rem;
}
.step p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
}
.step-connector {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, var(--border), rgba(245,166,35,0.3), var(--border));
  margin-top: 2.5rem;
  flex-shrink: 0;
}

/* ── Outcomes ────────────────────────────────────── */
.outcomes {
  padding: 5rem 4rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.outcomes-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}
.outcome-card { text-align: center; }
.outcome-stat {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.8rem;
}
.outcome-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 300;
}

/* ── Closing ──────────────────────────────────────── */
.closing {
  padding: 8rem 4rem;
  text-align: center;
  position: relative;
}
.closing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 40% at 50% 50%, rgba(245,166,35,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.closing-inner { max-width: 680px; margin: 0 auto; }
.closing-statement {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 2rem;
}
.closing-tagline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Footer ────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-note {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Waitlist Form ─────────────────────────────────── */
.waitlist-form {
  display: flex;
  gap: 0;
  margin-top: 1.5rem;
  max-width: 480px;
}
.waitlist-email-input {
  flex: 1;
  padding: 0.75rem 1.1rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 3px 0 0 3px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}
.waitlist-email-input::placeholder { color: var(--text-muted); }
.waitlist-email-input:focus { border-color: rgba(245, 166, 35, 0.4); }
.waitlist-email-input.error { border-color: var(--red); }
.waitlist-submit {
  padding: 0.75rem 1.4rem;
  background: var(--accent);
  color: #07080c;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  border-radius: 0 3px 3px 0;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
  white-space: nowrap;
}
.waitlist-submit:hover { opacity: 0.85; }
.waitlist-submit:disabled { opacity: 0.4; cursor: not-allowed; }
.waitlist-msg {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  font-family: var(--font-mono);
}
.waitlist-msg.success { color: var(--green); }
.waitlist-msg.error   { color: var(--red); }
.waitlist-error {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: var(--red);
  font-family: var(--font-mono);
  min-height: 1em;
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero { padding: 3rem 1.5rem 4rem; }
  .chart-section { padding: 0 1.5rem 4rem; }
  .features { padding: 4rem 1.5rem; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .howitworks { padding: 4rem 1.5rem; }
  .steps { flex-direction: column; gap: 2rem; }
  .step-connector { width: 1px; height: 40px; margin: 0 auto; background: linear-gradient(180deg, var(--border), rgba(245,166,35,0.3), var(--border)); }
  .outcomes-inner { grid-template-columns: 1fr; gap: 2rem; }
  .closing { padding: 5rem 1.5rem; }
  .nav { padding: 1.2rem 1.5rem; }
  .footer { padding: 1.5rem; flex-direction: column; gap: 0.8rem; text-align: center; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .portfolio-tiles { flex-direction: column; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .chart-ticker, .chart-price, .chart-change { display: none; }
}