*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #08090c; --bg-card: #0d0f14; --bg-elevated: #12151c;
  --border: #1a1e28; --text: #e8eaf0; --text-dim: #6b7084; --text-muted: #3d4155;
  --accent: #00e599; --accent-dim: rgba(0,229,153,0.08); --accent-glow: rgba(0,229,153,0.15);
  --red: #ff4757; --amber: #ffb347; --indigo: #818cf8;
  --font-display: 'Outfit', sans-serif; --font-mono: 'DM Mono', monospace;
}
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font-display); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }

.grid-bg { position: fixed; inset: 0; z-index: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 60px 60px; opacity: 0.25; mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%); }
.glow-orb { position: fixed; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%); top: -200px; left: 50%; transform: translateX(-50%); z-index: 0; pointer-events: none; animation: orbPulse 8s ease-in-out infinite; }
@keyframes orbPulse { 0%, 100% { opacity: 0.4; transform: translateX(-50%) scale(1); } 50% { opacity: 0.7; transform: translateX(-50%) scale(1.15); } }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { position: relative; z-index: 1; }
.page { display: none; }
.page.active { display: block; }

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 20px 0; transition: background 0.3s, backdrop-filter 0.3s; }
nav.scrolled { background: rgba(8,9,12,0.85); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer; }
.logo-mark { width: 36px; height: 36px; }
.logo-mark svg { width: 100%; height: 100%; }
.logo-text { font-weight: 700; font-size: 1.15rem; color: var(--text); letter-spacing: -0.02em; }
.logo-text span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { color: var(--text-dim); text-decoration: none; font-size: 0.875rem; font-weight: 400; letter-spacing: 0.02em; transition: color 0.2s; cursor: pointer; }
.nav-links a:hover { color: var(--text); }
.nav-cta { padding: 8px 20px !important; background: var(--accent); color: var(--bg) !important; border-radius: 6px; font-weight: 600 !important; font-size: 0.8rem !important; letter-spacing: 0.04em; text-transform: uppercase; transition: transform 0.2s, box-shadow 0.2s; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px var(--accent-glow); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; }

/* HERO */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; }
.hero-content { max-width: 800px; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 28px; opacity: 0; animation: fadeUp 0.8s ease forwards 0.2s; }
.hero-tag::before { content: ''; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; animation: blink 2s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero h1 { font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.04em; margin-bottom: 24px; opacity: 0; animation: fadeUp 0.8s ease forwards 0.4s; }
.hero h1 .accent { color: var(--accent); }
.hero h1 .outline { -webkit-text-stroke: 1.5px var(--text-dim); color: transparent; }
.hero-sub { font-size: 1.15rem; color: var(--text-dim); max-width: 520px; line-height: 1.7; font-weight: 300; margin-bottom: 40px; opacity: 0; animation: fadeUp 0.8s ease forwards 0.6s; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.8s ease forwards 0.8s; }

/* BUTTONS */
.btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; background: var(--accent); color: var(--bg); border: none; border-radius: 8px; font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; cursor: pointer; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--accent-glow); }
.btn-secondary { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 8px; font-family: var(--font-display); font-weight: 500; font-size: 0.9rem; cursor: pointer; text-decoration: none; transition: border-color 0.2s, background 0.2s; }
.btn-secondary:hover { border-color: var(--text-dim); background: var(--bg-elevated); }

/* TICKER STRIP */
.ticker-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 16px 0; overflow: hidden; position: relative; z-index: 1; }
.ticker-track { display: flex; gap: 48px; animation: tickerScroll 30s linear infinite; width: max-content; }
.ticker-item { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-dim); }
.ticker-item .symbol { color: var(--text); font-weight: 500; }
.ticker-item .up { color: var(--accent); }
.ticker-item .down { color: var(--red); }
@keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* SECTION HELPERS */
.section-label { font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 20px; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 24px; }

/* PERF SUMMARY (home) */
.perf-summary { padding: 80px 0; }
.perf-banner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.perf-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; background: var(--accent-dim); border: 1px solid rgba(0,229,153,0.15); border-radius: 20px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); }
.perf-badge::before { content: ''; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.perf-summary-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-top: 32px; }
.perf-stat { background: var(--bg-card); padding: 32px 24px; text-align: center; }
.perf-stat-value { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 4px; }
.perf-stat-label { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-dim); letter-spacing: 0.1em; text-transform: uppercase; }

/* MINI CURVE */
.mini-curve { margin-top: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 24px 28px; }
.mini-curve-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.mini-curve-header h3 { font-size: 0.95rem; font-weight: 600; }
.mini-curve-header .tag { font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent); }
.mini-curve svg { width: 100%; display: block; }
.view-full-link { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 16px; padding: 10px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 8px; color: var(--text-dim); text-decoration: none; font-size: 0.8rem; font-weight: 500; transition: color 0.2s, border-color 0.2s; cursor: pointer; }
.view-full-link:hover { color: var(--accent); border-color: rgba(0,229,153,0.2); }

/* ABOUT */
.about { padding: 100px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.about-text p { color: var(--text-dim); font-size: 1.05rem; line-height: 1.8; font-weight: 300; margin-bottom: 20px; }
.about-principles { display: flex; flex-direction: column; gap: 1px; background: var(--border); border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.principle { background: var(--bg-card); padding: 28px 32px; display: flex; gap: 20px; align-items: flex-start; }
.principle-num { font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent); padding-top: 4px; flex-shrink: 0; }
.principle h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.principle p { font-size: 0.85rem; color: var(--text-dim); font-weight: 300; line-height: 1.6; }

/* MARKETS */
.markets { padding: 100px 0; }
.markets-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.market-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 36px 32px; transition: border-color 0.3s, transform 0.3s; position: relative; overflow: hidden; }
.market-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--accent); opacity: 0; transition: opacity 0.3s; }
.market-card:hover { border-color: rgba(0,229,153,0.2); transform: translateY(-4px); }
.market-card:hover::before { opacity: 1; }
.market-icon { font-size: 1.8rem; margin-bottom: 20px; }
.market-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.market-card p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.6; font-weight: 300; }

/* CTA */
.cta-section { padding: 100px 0; }
.cta-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 80px 60px; text-align: center; position: relative; overflow: hidden; }
.cta-box::before { content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%); width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%); opacity: 0.5; }
.cta-box h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 16px; position: relative; }
.cta-box p { color: var(--text-dim); font-size: 1.05rem; font-weight: 300; max-width: 480px; margin: 0 auto 36px; position: relative; }
.email-form { display: flex; gap: 8px; max-width: 440px; margin: 0 auto; position: relative; }
.email-form input { flex: 1; padding: 14px 20px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-family: var(--font-display); font-size: 0.9rem; outline: none; transition: border-color 0.2s; }
.email-form input::placeholder { color: var(--text-muted); }
.email-form input:focus { border-color: var(--accent); }

/* FOOTER */
footer { border-top: 1px solid var(--border); padding: 48px 0; position: relative; z-index: 1; }
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); font-family: var(--font-mono); }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { color: var(--text-dim); text-decoration: none; font-size: 0.8rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* ═══ PERFORMANCE PAGE ═══ */
.performance-page { padding: 120px 0 80px; }
.perf-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 24px; }
.kpi-card { background: var(--bg-card); padding: 28px 24px; text-align: center; }
.kpi-value { font-size: 1.8rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 2px; }
.kpi-label { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-dim); letter-spacing: 0.08em; text-transform: uppercase; }
.kpi-sub { font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; }

/* Equity chart */
.equity-chart { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 28px; margin-bottom: 24px; }
.equity-chart h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 20px; }
.equity-chart svg { width: 100%; display: block; }

/* Calendar */
.calendar-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 28px; margin-bottom: 24px; }
.calendar-section h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 20px; }
.cal-grid { display: grid; grid-template-columns: 40px repeat(5, 1fr); gap: 4px; max-width: 600px; }
.cal-header { font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-muted); text-align: center; padding: 4px; letter-spacing: 0.05em; }
.cal-week-label { font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-muted); display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; }
.cal-day { aspect-ratio: 1; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 0.65rem; font-weight: 500; transition: transform 0.15s; cursor: default; }
.cal-day:hover { transform: scale(1.1); }
.cal-day.win { background: rgba(0,229,153,0.15); color: var(--accent); border: 1px solid rgba(0,229,153,0.25); }
.cal-day.loss { background: rgba(255,71,87,0.12); color: var(--red); border: 1px solid rgba(255,71,87,0.2); }
.cal-day.empty { background: transparent; border: 1px solid var(--border); color: var(--text-muted); }
.cal-legend { display: flex; gap: 20px; margin-top: 16px; font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-dim); }
.cal-legend-item { display: flex; align-items: center; gap: 6px; }
.cal-legend-dot { width: 10px; height: 10px; border-radius: 3px; }
.cal-legend-dot.green { background: rgba(0,229,153,0.3); border: 1px solid rgba(0,229,153,0.4); }
.cal-legend-dot.red { background: rgba(255,71,87,0.2); border: 1px solid rgba(255,71,87,0.3); }

/* Day of week */
.dow-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 28px; margin-bottom: 24px; }
.dow-section h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 20px; }
.dow-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.dow-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 10px; padding: 20px 16px; text-align: center; position: relative; overflow: hidden; }
.dow-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.dow-card.positive::before { background: var(--accent); }
.dow-card.negative::before { background: var(--red); }
.dow-day { font-size: 0.85rem; font-weight: 600; margin-bottom: 12px; }
.dow-winrate { font-size: 1.5rem; font-weight: 700; margin-bottom: 2px; }
.dow-record { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-dim); }
.dow-bar-track { width: 100%; height: 4px; background: var(--border); border-radius: 2px; margin-top: 12px; overflow: hidden; }
.dow-bar-fill { height: 100%; border-radius: 2px; }

/* Instrument + metrics */
.instrument-section { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.instrument-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 28px; text-align: center; }
.instrument-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 20px; }
.instrument-ring { width: 160px; height: 160px; margin: 0 auto 16px; position: relative; }
.instrument-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.instrument-ring-label { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.instrument-ring-label .pct { font-size: 1.8rem; font-weight: 700; }
.instrument-ring-label .type { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-dim); }
.metrics-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.metrics-row:last-child { border-bottom: none; }
.metrics-label { color: var(--text-dim); }
.metrics-value { font-weight: 600; }

/* Tickers */
.ticker-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 28px; margin-bottom: 24px; }
.ticker-section h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 20px; }
.ticker-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ticker-col h4 { font-size: 0.8rem; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.ticker-col .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.ticker-col .dot.green { background: var(--accent); }
.ticker-col .dot.red { background: var(--red); }
.ticker-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 8px; margin-bottom: 4px; font-size: 0.85rem; }
.ticker-row.win { background: rgba(0,229,153,0.05); }
.ticker-row.loss { background: rgba(255,71,87,0.04); }
.ticker-name { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.ticker-type { font-family: var(--font-mono); font-size: 0.6rem; padding: 2px 8px; border-radius: 10px; font-weight: 400; }
.ticker-type.options { background: rgba(129,140,248,0.12); color: var(--indigo); }
.ticker-type.stock { background: rgba(52,211,153,0.1); color: var(--accent); }
.ticker-fills { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); }

/* Story */
.streak-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 28px; }
.streak-section h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 20px; }
.streak-timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.streak-card { border-radius: 10px; padding: 20px; border: 1px solid; }
.streak-card.red-phase { background: rgba(255,71,87,0.04); border-color: rgba(255,71,87,0.15); }
.streak-card.green-phase { background: rgba(0,229,153,0.04); border-color: rgba(0,229,153,0.15); }
.streak-card.blue-phase { background: rgba(129,140,248,0.04); border-color: rgba(129,140,248,0.15); }
.streak-card-title { font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; }
.streak-card.red-phase .streak-card-title { color: var(--red); }
.streak-card.green-phase .streak-card-title { color: var(--accent); }
.streak-card.blue-phase .streak-card-title { color: var(--indigo); }
.streak-card p { font-size: 0.8rem; color: var(--text-dim); line-height: 1.6; font-weight: 300; }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .perf-summary-grid { grid-template-columns: repeat(3, 1fr); }
  .perf-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dow-grid { grid-template-columns: repeat(3, 1fr); }
  .instrument-section { grid-template-columns: 1fr; }
  .ticker-two-col { grid-template-columns: 1fr; }
  .streak-timeline { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .markets-grid { grid-template-columns: 1fr 1fr; }
  .cta-box { padding: 60px 32px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .perf-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .markets-grid { grid-template-columns: 1fr; }
  .email-form { flex-direction: column; }
  .hero-actions { flex-direction: column; }
  .footer-content { flex-direction: column; gap: 20px; text-align: center; }
  .dow-grid { grid-template-columns: repeat(2, 1fr); }
}
