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

:root {
  --bg-deep: #05101a;
  --bg-gradient-top: #0a243f;
  --text-main: #ffffff;
  --text-cyan: #22ffff;
  --text-muted: #b0c1d0;
  --btn-bg: #22ffff;
  --btn-text: #05101a;
  --panel-bg: #0a243f;
  --marker-blue: #1a86a8;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
  --header-height: 80px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text-main);
  background: linear-gradient(180deg, var(--bg-gradient-top) 0%, var(--bg-deep) 45%, var(--bg-deep) 100%);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: var(--text-cyan);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.85;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-text);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(34, 255, 255, 0.35);
  opacity: 1;
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 16, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(34, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: var(--header-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand-icon {
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--text-main);
}

.brand-tagline {
  font-weight: 700;
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text-cyan);
  opacity: 1;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 1px;
}

/* Hero */
.hero {
  padding: 4rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 900;
  color: var(--text-cyan);
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
  max-width: 28ch;
}

.hero-description {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 42ch;
  margin-bottom: 2rem;
}

/* Waitlist form */
.waitlist-form {
  max-width: 480px;
}

.waitlist-input-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.waitlist-input-row input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(176, 193, 208, 0.25);
  border-radius: 6px;
  background: rgba(5, 16, 26, 0.6);
  color: var(--text-main);
  font-family: var(--font);
  font-size: 0.95rem;
}

.waitlist-input-row input[type="email"]::placeholder {
  color: var(--text-muted);
}

.waitlist-input-row input[type="email"]:focus {
  outline: none;
  border-color: var(--text-cyan);
  box-shadow: 0 0 0 3px rgba(34, 255, 255, 0.15);
}

/* honeypot: moved off-screen rather than display:none so bots still "see" it */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile-container {
  margin-bottom: 0.75rem;
}

.turnstile-container:empty {
  display: none;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
}

.consent-label input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--text-cyan);
  width: 16px;
  height: 16px;
}

.consent-label a {
  text-decoration: underline;
}

.form-message {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  min-height: 1.4em;
}

.form-message.success {
  color: var(--text-cyan);
}

.form-message.error {
  color: #ff6b6b;
}

/* Dashboard panel */
.dashboard-panel {
  background: var(--bg-deep);
  border: 1px solid rgba(34, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(10, 36, 63, 0.5),
    0 24px 64px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(34, 255, 255, 0.06);
  position: relative;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--panel-bg);
  border-bottom: 1px solid rgba(34, 255, 255, 0.08);
}

.dashboard-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-cyan);
}

.dashboard-stats {
  display: flex;
  gap: 1.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dashboard-stats strong {
  color: var(--text-main);
  font-weight: 700;
}

.dashboard-body {
  display: flex;
  align-items: stretch;
}

.dashboard-map {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 280px;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(26, 134, 168, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(34, 255, 255, 0.06) 0%, transparent 40%),
    linear-gradient(160deg, #0a1a2e 0%, #05101a 100%);
  overflow: hidden;
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

.map-satellite {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(5, 16, 26, 0.2) 0%, rgba(5, 16, 26, 0.45) 100%);
}

.race-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.wind-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-main);
  font-family: monospace;
  padding: 0.3rem 0.5rem;
  background: rgba(5, 16, 26, 0.75);
  border: 1px solid rgba(34, 255, 255, 0.15);
  border-radius: 4px;
}

.dashboard-legend {
  width: 150px;
  flex-shrink: 0;
  padding: 0.65rem 0.6rem;
  background: rgba(10, 36, 63, 0.55);
  border-left: 1px solid rgba(34, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legend-title {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legend-list {
  list-style: none;
  counter-reset: rank;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.legend-list li {
  counter-increment: rank;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  line-height: 1.2;
}

.legend-list li::before {
  content: counter(rank);
  width: 0.9em;
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: right;
}

.legend-dot {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--c, var(--text-cyan));
  box-shadow: 0 0 6px var(--c, var(--text-cyan));
}

.legend-name {
  font-weight: 700;
  flex: 1;
}

.legend-speed {
  font-family: monospace;
  font-size: 0.62rem;
  color: var(--text-muted);
}

.progress-bar {
  height: 3px;
  background: rgba(176, 193, 208, 0.2);
  border-radius: 2px;
  margin-top: 0.35rem;
  overflow: hidden;
}

.progress-fill {
  width: 75%;
  height: 100%;
  background: var(--text-cyan);
  border-radius: 2px;
}

.dashboard-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: rgba(5, 16, 26, 0.95);
  border-top: 1px solid rgba(34, 255, 255, 0.08);
}

.map-controls {
  display: flex;
  gap: 0.25rem;
}

.map-controls button {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(176, 193, 208, 0.2);
  border-radius: 4px;
  background: var(--panel-bg);
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: default;
}

.playback-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(10, 36, 63, 0.6);
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
}

.play-btn {
  background: none;
  border: none;
  color: var(--text-cyan);
  font-size: 0.75rem;
  cursor: default;
  padding: 0;
}

.timeline {
  position: relative;
  flex: 1;
  height: 4px;
  background: rgba(176, 193, 208, 0.15);
  border-radius: 2px;
}

.timeline-progress {
  width: 34%;
  height: 100%;
  background: var(--text-cyan);
  border-radius: 2px;
}

/* highlighted clip selection on the timeline */
.clip-range {
  position: absolute;
  top: -3px;
  bottom: -3px;
  left: 42%;
  width: 22%;
  background: rgba(34, 255, 255, 0.18);
  border: 1px solid var(--text-cyan);
  border-radius: 3px;
}

.clip-range::before,
.clip-range::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 12px;
  background: var(--text-cyan);
  border-radius: 2px;
}

.clip-range::before { left: -2px; }
.clip-range::after { right: -2px; }

.share-clip {
  flex-shrink: 0;
  padding: 0.35rem 0.65rem;
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-cyan);
  background: rgba(34, 255, 255, 0.08);
  border: 1px solid rgba(34, 255, 255, 0.4);
  border-radius: 5px;
  cursor: default;
  white-space: nowrap;
}

.timecode {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-family: monospace;
  white-space: nowrap;
}

/* Features */
.features {
  padding: 4rem 0 5rem;
  border-top: 1px solid rgba(34, 255, 255, 0.06);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.feature-card {
  text-align: center;
}

.feature-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
  height: 64px;
  align-items: center;
}

.feature-icon svg {
  height: 48px;
  width: auto;
}

.feature-card h3 {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Pricing */
.pricing {
  padding: 3rem 0 4rem;
  text-align: center;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.section-lead {
  color: var(--text-muted);
  max-width: 50ch;
  margin: 0 auto 1.5rem;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(34, 255, 255, 0.06);
  text-align: center;
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: underline;
}

/* Privacy policy page */
.policy-page {
  padding: 3rem 0 4rem;
}

.policy-page h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.policy-page .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.policy-page h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  color: var(--text-cyan);
}

.policy-page p,
.policy-page li {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.policy-page ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.policy-page a {
  text-decoration: underline;
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nav-links,
  .site-header .btn-sm {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .site-header.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-deep);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(34, 255, 255, 0.08);
    gap: 1rem;
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .waitlist-input-row {
    flex-direction: column;
  }

  .dashboard-legend {
    width: 118px;
  }

  .share-clip {
    display: none;
  }

  .hero {
    padding-top: 2rem;
  }
}
