/* === TYPOGRAPHY === */
:root {
  --bg-primary: #060B18;
  --bg-card: #0A1428;
  --bg-card-hover: #0D1A32;
  --accent-cyan: #00D4FF;
  --accent-cyan-dim: rgba(0, 212, 255, 0.12);
  --accent-purple: #7B61FF;
  --accent-purple-dim: rgba(123, 97, 255, 0.12);
  --accent-amber: #F59E0B;
  --accent-amber-dim: rgba(245, 158, 11, 0.12);
  --text-primary: #F0F4FF;
  --text-secondary: #8899AA;
  --text-muted: #4A5568;
  --border: rgba(255, 255, 255, 0.06);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* === NAV === */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(6, 11, 24, 0.85);
  backdrop-filter: blur(12px);
  z-index: 100;
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.nav-modes {
  display: flex;
  gap: 8px;
}

.mode-badge {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid;
}

.mode-analysis { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.mode-paper { border-color: var(--accent-purple); color: var(--accent-purple); }
.mode-auto { border-color: var(--accent-amber); color: var(--accent-amber); }

/* === HERO === */
.hero {
  padding: 96px 48px 80px;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero-lede {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 460px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}

.stat {
  padding: 0 32px 0 0;
}

.stat:first-child { padding-left: 0; }

.stat-value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  margin-right: 32px;
}

/* === WIDGET === */
.hero-widget {
  display: flex;
  justify-content: flex-end;
}

.widget-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  width: 340px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.widget-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.widget-live {
  font-size: 10px;
  font-weight: 600;
  color: #00D4FF;
  letter-spacing: 0.1em;
}

.widget-chart {
  margin-bottom: 20px;
}

.chart-svg {
  width: 100%;
  height: 100px;
}

.widget-modes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wmode {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.wmode-locked {
  border-color: rgba(0, 212, 255, 0.2);
  background: rgba(0, 212, 255, 0.04);
}

.wmode-icon {
  font-size: 8px;
  color: var(--text-muted);
  width: 16px;
  text-align: center;
}

.wmode-locked .wmode-icon { color: var(--accent-cyan); }

.wmode-info { flex: 1; }

.wmode-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.wmode-desc {
  font-size: 10px;
  color: var(--text-secondary);
}

.wmode-status {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.wmode-status.active {
  color: var(--accent-cyan);
}

.wmode-status.locked {
  color: var(--accent-amber);
}

/* === SECTIONS === */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 48px;
}

/* === MODES SECTION === */
.modes {
  padding: 96px 48px;
  background: var(--bg-primary);
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.mode-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  transition: border-color 0.2s;
}

.mode-card:hover { border-color: rgba(255,255,255,0.12); }
.mode-card-analysis:hover { border-color: rgba(0, 212, 255, 0.3); }
.mode-card-paper:hover { border-color: rgba(123, 97, 255, 0.3); }
.mode-card-auto:hover { border-color: rgba(245, 158, 11, 0.3); }

.mode-icon {
  margin-bottom: 20px;
}

.mode-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.mode-tag-cyan { background: var(--accent-cyan-dim); color: var(--accent-cyan); }
.mode-tag-purple { background: var(--accent-purple-dim); color: var(--accent-purple); }
.mode-tag-amber { background: var(--accent-amber-dim); color: var(--accent-amber); }

.mode-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.mode-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}

.mode-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mode-features li {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.mode-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.mode-card-analysis .mode-features li::before { background: rgba(0, 212, 255, 0.5); }
.mode-card-paper .mode-features li::before { background: rgba(123, 97, 255, 0.5); }
.mode-card-auto .mode-features li::before { background: rgba(245, 158, 11, 0.5); }

/* === CURRICULUM === */
.curriculum {
  padding: 96px 48px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.curriculum-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.curriculum-text h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.15;
}

.curriculum-text > p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 32px;
}

.curriculum-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-chip {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
  border: 1px solid rgba(0, 212, 255, 0.15);
  padding: 5px 12px;
  border-radius: 20px;
}

/* === SIGNAL CARD === */
.signal-card {
  background: var(--bg-primary);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 16px;
  padding: 24px;
}

.signal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.signal-ticker {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.signal-action {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 6px;
}

.signal-buy {
  background: rgba(0, 212, 255, 0.15);
  color: var(--accent-cyan);
}

.signal-signal {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.signal-label {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.signal-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
}

.signal-fill {
  height: 100%;
  background: var(--accent-cyan);
  border-radius: 4px;
}

.signal-pct {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-cyan);
  white-space: nowrap;
}

.signal-lesson {
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
}

.signal-lesson-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.signal-lesson-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-cyan);
}

.signal-context {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.signal-context-item {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.context-icon {
  color: rgba(0, 212, 255, 0.4);
  font-size: 6px;
  margin-top: 5px;
  flex-shrink: 0;
}

.signal-context-item em {
  color: var(--accent-cyan);
  font-style: normal;
  font-weight: 600;
}

/* === SAFETY === */
.safety {
  padding: 96px 48px;
  background: var(--bg-primary);
  text-align: center;
}

.safety-intro {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 56px;
  line-height: 1.65;
}

.safety-gates {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 64px;
  text-align: left;
}

.gate-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.gate-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--accent-amber);
  opacity: 0.3;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
}

.gate-card h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.gate-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.safety-quote {
  max-width: 560px;
  margin: 0 auto;
  border-left: 2px solid var(--accent-amber);
  padding-left: 24px;
  text-align: left;
}

.safety-quote p {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.02em;
  font-style: italic;
}

/* === CLOSING === */
.closing {
  padding: 120px 48px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  text-align: center;
}

.closing-inner {
  max-width: 640px;
  margin: 0 auto;
}

.closing-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
  border: 1px solid rgba(0, 212, 255, 0.2);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 32px;
}

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1.08;
  margin-bottom: 24px;
}

.closing > div > p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 48px;
}

.closing-modes {
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.closing-mode {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.closing-mode-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-cyan { background: var(--accent-cyan); }
.dot-purple { background: var(--accent-purple); }
.dot-amber { background: var(--accent-amber); }

/* === FOOTER === */
.footer {
  padding: 48px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.footer-legal p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 600px;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .nav { padding: 16px 24px; }
  .hero { padding: 60px 24px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-widget { justify-content: flex-start; }
  .widget-card { width: 100%; max-width: 400px; }
  .modes { padding: 60px 24px; }
  .modes-grid { grid-template-columns: 1fr; }
  .curriculum { padding: 60px 24px; }
  .curriculum-inner { grid-template-columns: 1fr; gap: 40px; }
  .safety { padding: 60px 24px; }
  .safety-gates { grid-template-columns: 1fr 1fr; }
  .closing { padding: 80px 24px; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 36px; }
  .safety-gates { grid-template-columns: 1fr; }
  .stat-value { font-size: 28px; }
  .stat-divider { height: 32px; }
  .footer { padding: 32px 24px; }
}