/* ── HERO ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 48px 80px;
  z-index: 1;
  overflow: hidden;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0;
  animation: fade-up 0.6s ease forwards;
}

.hero-headline {
  font-family: var(--font-body);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 55%;
  margin-bottom: 32px;
  opacity: 0;
  animation: fade-up 0.6s 0.1s ease forwards;
}

.hero-headline em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}

.hero-sub {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 48px;
  opacity: 0;
  animation: fade-up 0.6s 0.2s ease forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  opacity: 0;
  animation: fade-up 0.6s 0.3s ease forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #0A0A0C;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 3px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-primary:hover {
  background: #d4ff26;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200,255,0,0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 14px 0;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
}

.btn-secondary:hover { color: var(--text-primary); }

.btn-secondary .arrow { transition: transform 0.15s; }
.btn-secondary:hover .arrow { transform: translateX(4px); }

/* ── LIVE TICKER ────────────────────────────────────────── */
.live-ticker {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  opacity: 0;
  animation: fade-in 0.8s 0.5s ease forwards;
}

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

.ticker-label {
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--live);
  letter-spacing: 0.1em;
}

.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--live);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

.ticker-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.ticker-row {
  display: grid;
  grid-template-columns: 24px 32px 1fr auto 20px;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-display);
  font-size: 12px;
  transition: background 0.2s;
}

.ticker-row:last-child { border-bottom: none; }
.ticker-row:hover { background: var(--bg-elevated); }

.ticker-pos { color: var(--text-muted); font-size: 11px; }
.ticker-code { color: var(--text-primary); font-weight: 500; }
.ticker-team-bar {
  width: 3px;
  height: 18px;
  border-radius: 2px;
  flex-shrink: 0;
}
.ticker-team-col {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}
.ticker-team-col span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ticker-gap { color: var(--text-secondary); text-align: right; font-size: 11px; white-space: nowrap; }
.ticker-compound {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 2px;
  font-size: 9px;
  font-weight: 500;
  justify-self: end;
}

.ticker-flag {
  padding: 8px 14px;
  background: rgba(200,255,0,0.06);
  border-top: 1px solid rgba(200,255,0,0.15);
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.05em;
  animation: flag-slide 3s ease-in-out infinite alternate;
}

@keyframes flag-slide {
  0%   { opacity: 0.7; }
  100% { opacity: 1; }
}

/* ── SECTION COMMONS ───────────────────────────────────── */
section {
  position: relative;
  z-index: 1;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-body);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.section-body {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 520px;
}

/* ── DIVIDER ───────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 0;
}

/* ── STAT STRIP ────────────────────────────────────────── */
.stat-strip {
  padding: 64px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.stat-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-subtle);
}

.stat-cell {
  background: var(--bg-base);
  padding: 32px 40px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-number span { color: var(--accent); }
.stat-label { font-size: 13px; color: var(--text-muted); letter-spacing: 0.05em; }

/* ── HOW IT WORKS ──────────────────────────────────────── */
.how {
  padding: 120px 0;
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 80px;
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.2s;
}

.step:first-child { padding-top: 0; }
.step:last-child { border-bottom: none; }

.step-num {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  padding-top: 4px;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
  transition: color 0.2s;
}

.step.active .step-title { color: var(--accent); }
.step.active .step-num { color: var(--accent); }

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  display: none;
}
.step.active .step-desc { display: block; }

/* Visualization panel */
.how-viz {
  position: sticky;
  top: 100px;
}

.viz-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.viz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.viz-title {
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.viz-dots {
  display: flex;
  gap: 5px;
}

.viz-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
}

/* Lap chart mock */
.lap-chart-mock {
  padding: 20px 16px 12px;
}

.chart-lines {
  position: relative;
  height: 140px;
  margin-bottom: 8px;
}

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

.chart-x-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 9px;
  color: var(--text-muted);
}

/* Strategy card mock */
.strategy-mock {
  margin: 0 16px 16px;
  background: var(--bg-elevated);
  border: 1px solid rgba(200,255,0,0.2);
  border-left: 3px solid var(--accent);
  border-radius: 3px;
  padding: 12px;
  animation: card-appear 0.4s ease forwards;
}

@keyframes card-appear {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.strategy-mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.strategy-mock-type {
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.1em;
  font-weight: 500;
}

.strategy-mock-meta {
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--text-muted);
}

.strategy-mock-body {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── FEATURES ──────────────────────────────────────────── */
.features {
  padding: 120px 0;
  background: var(--bg-panel);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  margin-top: 80px;
}

.feature-card {
  background: var(--bg-panel);
  padding: 40px;
  transition: background 0.2s;
}

.feature-card:hover { background: var(--bg-elevated); }

.feature-icon {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 16px;
}

.feature-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.feature-tag {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--accent-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── DASHBOARD PREVIEW ─────────────────────────────────── */
.preview {
  padding: 120px 0;
}

.preview-window {
  margin-top: 64px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,0.6);
}

.preview-bar {
  height: 40px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
}

.preview-circle {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.preview-url {
  flex: 1;
  text-align: center;
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--text-muted);
}

.preview-inner {
  padding: 0;
  background: var(--bg-base);
}

/* Simulated dashboard inside preview */
.dash-sim {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto;
  gap: 1px;
  background: var(--border-subtle);
  min-height: 400px;
}

.dash-panel {
  background: var(--bg-panel);
  padding: 16px;
}

.dash-panel-hdr {
  font-family: var(--font-display);
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* Lap times bars */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 80px;
}

.bar {
  flex: 1;
  border-radius: 1px 1px 0 0;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.bar:hover { opacity: 1; }

/* Position chart */
.pos-line {
  display: flex;
  align-items: center;
  gap: 0;
  height: 60px;
  position: relative;
}

/* Mini timing */
.mini-timing { display: flex; flex-direction: column; gap: 6px; }
.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 11px;
  padding: 5px 8px;
  background: var(--bg-elevated);
  border-radius: 2px;
}
.mini-row-pos { color: var(--text-muted); width: 20px; }
.mini-row-code { color: var(--text-primary); font-weight: 500; }
.mini-row-gap { color: var(--text-secondary); font-size: 10px; }
.mini-row-compound {
  width: 16px; height: 16px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 600;
}

/* ── VIEWS SECTION ─────────────────────────────────────── */
.views {
  padding: 120px 0;
  background: var(--bg-panel);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.views-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 48px;
  background: var(--bg-elevated);
  border-radius: 4px;
  padding: 4px;
  width: fit-content;
  margin-top: 40px;
}

.views-tab {
  padding: 8px 20px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--text-secondary);
  border: none;
  background: none;
}

.views-tab.active {
  background: var(--bg-panel);
  color: var(--text-primary);
}

.views-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.views-text-block {}

.views-feature-list {
  list-style: none;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.views-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.check {
  width: 18px; height: 18px;
  background: rgba(200,255,0,0.1);
  border: 1px solid rgba(200,255,0,0.3);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 10px;
  color: var(--accent);
}

.views-mock {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.stint-mock {
  padding: 20px;
}

.stint-axis-label {
  font-family: var(--font-display);
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
}

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

.stint-driver {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--text-secondary);
  width: 28px;
  flex-shrink: 0;
}

.stint-bars {
  flex: 1;
  display: flex;
  gap: 2px;
  height: 26px;
}

.stint-bar {
  height: 100%;
  border-radius: 2px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 500;
  overflow: hidden;
  white-space: nowrap;
}

/* ── CTA ───────────────────────────────────────────────── */
.cta {
  padding: 160px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200,255,0,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.cta-headline {
  font-family: var(--font-body);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 700px;
  margin: 0 auto 24px;
}

.cta-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 440px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.cta-domain {
  margin-top: 32px;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* ── EARLY ACCESS MODAL ───────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 90%;
  max-width: 540px;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal-content {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.15s;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 0;
}

.modal-body iframe {
  width: 100%;
  height: 520px;
  border: none;
  display: block;
}

/* ── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE (homepage) ─────────────────────────────── */
@media (max-width: 1024px) {
  .hero { padding: 100px 24px 80px; }
  .live-ticker { display: none; }
  .hero-headline { max-width: 100%; }
  .stat-strip-inner { grid-template-columns: repeat(2,1fr); }
  .section-inner { padding: 0 24px; }
  .how-grid { grid-template-columns: 1fr; gap: 48px; }
  .how-viz { position: static; }
  .features-grid { grid-template-columns: 1fr; }
  .views-content { grid-template-columns: 1fr; }
  .dash-sim { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-headline { font-size: 40px; }
  .stat-strip-inner { grid-template-columns: 1fr 1fr; }
  .stat-cell { padding: 24px; }
  .stat-number { font-size: 36px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
