@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-Variable.ttf") format("truetype-variations");
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-Variable.ttf") format("truetype-variations");
  font-weight: 500 700;
  font-display: swap;
}

:root {
  --bg: #0a0e13;
  --surface: #121820;
  --surface-low: #0f151c;
  --border: #212b36;
  --border-low: #1d2733;
  --text: #f2f5f7;
  --text-muted: #8a97a3;
  --text-faint: #54606b;
  --accent: #2fe6d8;
  --on-accent: #06181a;
  --accent-dim: rgba(47, 230, 216, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Background graticule texture, echoes the app's map screen */
.graticule {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--border-low) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-low) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
}

/* Nav */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.2px;
  text-decoration: none;
  color: var(--text);
}

.chevron {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.chevron polygon {
  fill: var(--accent);
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover {
  color: var(--text);
}

/* Hero */
.hero {
  padding: 72px 0 56px;
  text-align: center;
}

.hero .chevron-big {
  width: 56px;
  height: 56px;
  margin: 0 auto 28px;
  display: block;
}

.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.08;
  margin: 0 0 20px;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero p.sub {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 36px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 0 0 1px rgba(47, 230, 216, 0.4), 0 8px 24px -8px rgba(47, 230, 216, 0.5);
}

.btn-primary:hover {
  background: #4eefe2;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--text-faint);
}

.release-meta {
  color: var(--text-faint);
  font-size: 13px;
  visibility: hidden;
}

.release-meta.ready {
  visibility: visible;
}

.other-downloads {
  margin-top: 6px;
}

.other-downloads a {
  color: var(--text-faint);
  font-size: 13px;
}

.install-note {
  max-width: 480px;
  margin: 28px auto 0;
  padding: 12px 16px;
  border: 1px solid var(--border-low);
  background: var(--surface-low);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 13px;
}

/* Section headings */
.section {
  padding: 64px 0;
  border-top: 1px solid var(--border-low);
}

.section-head {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 44px;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.6px;
  margin: 0 0 12px;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 22px;
}

.step-num {
  font-family: "JetBrains Mono", monospace;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.2px;
}

.step p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

/* Showcase phone mockup */
.showcase {
  display: flex;
  justify-content: center;
}

.phone {
  width: 300px;
  border-radius: 34px;
  border: 1px solid var(--border);
  background: var(--surface-low);
  padding: 14px;
  box-shadow: 0 30px 80px -30px rgba(47, 230, 216, 0.15), 0 20px 60px -20px rgba(0, 0, 0, 0.6);
}

.phone-screen {
  background: var(--bg);
  border-radius: 22px;
  padding: 18px 16px;
  position: relative;
  overflow: hidden;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-faint);
  font-size: 10px;
  font-family: "JetBrains Mono", monospace;
  margin-bottom: 14px;
}

.gps-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
}

.gps-bars {
  display: flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 8px;
}

.gps-bars span {
  width: 2.5px;
  background: var(--accent);
  border-radius: 1px;
}

.gps-bars span:nth-child(1) { height: 35%; }
.gps-bars span:nth-child(2) { height: 60%; }
.gps-bars span:nth-child(3) { height: 85%; }
.gps-bars span:nth-child(4) { height: 100%; }

.hero-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.hero-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 12px 14px;
}

.tile-label {
  color: var(--text-faint);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.tile-value {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.5px;
}

.tile-unit {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 2px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.mini-tile {
  background: var(--surface);
  border: 1px solid var(--border-low);
  border-radius: 10px;
  padding: 8px;
}

.mini-tile .tile-label {
  font-size: 7.5px;
  margin-bottom: 4px;
}

.mini-tile .tile-value {
  font-size: 13px;
}

.map-strip {
  position: relative;
  height: 92px;
  border-radius: 12px;
  border: 1px solid var(--border-low);
  background-image:
    linear-gradient(var(--border-low) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-low) 1px, transparent 1px);
  background-size: 16px 16px;
  overflow: hidden;
}

.flight-path {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 50%;
  border-top: 2px dashed rgba(47, 230, 216, 0.35);
}

.flight-path.flown {
  right: 46%;
  border-top: 2px solid var(--accent);
}

.dot {
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-faint);
  transform: translate(-50%, -50%);
}

.dot.dep { left: 14%; }
.dot.arr { left: 86%; }

.plane-marker {
  position: absolute;
  top: 50%;
  left: 54%;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%) rotate(90deg);
}

.plane-marker polygon {
  fill: var(--accent);
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
}

.feature h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.1px;
  color: var(--accent);
}

.feature p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-low);
  padding: 32px 0 48px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 13px;
}

.footer-row a {
  color: var(--text-faint);
}

.footer-row a:hover {
  color: var(--text-muted);
}

.footer-credit {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-low);
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 760px) {
  .steps,
  .features {
    grid-template-columns: 1fr;
  }
}
