/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #111111;
  --bg-mid:       #181818;
  --bg-card:      #1e1e1e;
  --bg-card2:     #242424;
  --gold:         #f59800;
  --gold-bright:  #ffac1a;
  --gold-dim:     rgba(245,152,0,0.15);
  --gold-border:  rgba(245,152,0,0.28);
  --text:         #ffffff;
  --text-dim:     rgba(255,255,255,0.55);
  --text-dimmer:  rgba(255,255,255,0.28);
  --radius-card:  16px;
  --radius-pill:  100px;
  --nav-height:   64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Nav ───────────────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(17,17,17,0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-app-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-dim);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ─── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 60px) 24px 100px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(245,152,0,0.08) 0%, transparent 65%),
    radial-gradient(ellipse 40% 30% at 80% 80%, rgba(245,152,0,0.04) 0%, transparent 60%);
  pointer-events: none;
}

/* Radar sweep arc */
.hero::after {
  content: "";
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  border-radius: 50%;
  border: 1px solid rgba(245,152,0,0.08);
  pointer-events: none;
}

.hero-content {
  max-width: 680px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-dim);
  margin-bottom: 12px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero .tagline-sub {
  font-size: 0.95rem;
  color: var(--text-dimmer);
  margin-bottom: 44px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: #0a0a0a;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  box-shadow: 0 4px 24px rgba(245,152,0,0.25);
  text-decoration: none;
}

.btn-download:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(245,152,0,0.35);
  text-decoration: none;
}

.btn-download svg { flex-shrink: 0; }

.hero-sub {
  margin-top: 18px;
  font-size: 0.78rem;
  color: var(--text-dimmer);
}

/* ─── Screenshots ───────────────────────────────────────────────────────────── */
.screenshot-section {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.phone-frame {
  width: 280px;
  height: 608px;
  border-radius: 44px;
  border: 2px solid rgba(255,255,255,0.10);
  background: #0a0a0a;
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(0,0,0,0.7),
    0 0 0 1px rgba(255,255,255,0.04),
    inset 0 0 0 1px rgba(255,255,255,0.06);
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── Device sections (iPad, CarPlay) ───────────────────────────────────────── */
.device-section {
  background: var(--bg);
  padding: 80px 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.device-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.device-section-header .device-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

.device-section-header h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.device-section-header p {
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 480px;
  margin: 0 auto;
}

/* iPad frames */
.ipad-frames {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.ipad-frame {
  width: 420px;
  max-width: 100%;
  border-radius: 20px;
  border: 2px solid rgba(255,255,255,0.12);
  background: #0a0a0a;
  overflow: hidden;
  box-shadow:
    0 24px 64px rgba(0,0,0,0.65),
    0 0 0 1px rgba(255,255,255,0.04),
    inset 0 0 0 1px rgba(255,255,255,0.06);
}

.ipad-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* CarPlay frame */
.carplay-frames {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.carplay-frame {
  width: 760px;
  max-width: 100%;
  aspect-ratio: 8 / 3;
  border-radius: 16px;
  border: 2px solid rgba(255,255,255,0.12);
  background: #0a0a0a;
  overflow: hidden;
  box-shadow:
    0 24px 64px rgba(0,0,0,0.65),
    0 0 0 1px rgba(255,255,255,0.04),
    inset 0 0 0 1px rgba(255,255,255,0.06);
  /* Subtle dashboard-style notch at top */
  position: relative;
}

.carplay-frame::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 0 0 6px 6px;
  z-index: 1;
  pointer-events: none;
}

.carplay-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── Features ──────────────────────────────────────────────────────────────── */
.features-section {
  background: var(--bg-mid);
  padding: 100px 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-dim);
  max-width: 500px;
  margin: 0 auto;
  font-size: 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-border);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 0.975rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.855rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ─── Divider line ───────────────────────────────────────────────────────────── */
.gold-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 30%, var(--gold) 70%, transparent 100%);
  opacity: 0.25;
  max-width: 200px;
  margin: 0 auto 56px;
}

/* ─── Footer ────────────────────────────────────────────────────────────────── */
footer {
  background: var(--bg);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 48px 40px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-dimmer);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-dim);
  text-decoration: none;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-dimmer);
}

/* ─── Legal pages ───────────────────────────────────────────────────────────── */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 60px) 24px 80px;
}

.legal-page h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.legal-page .effective {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-bottom: 48px;
}

.legal-page h2, .legal-page h3 {
  font-weight: 600;
  margin: 32px 0 10px;
  color: var(--gold);
}

.legal-page h2 { font-size: 1.1rem; }
.legal-page h3 { font-size: 1rem; }

.legal-page p, .legal-page li {
  font-size: 0.925rem;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-page ul, .legal-page ol {
  padding-left: 20px;
}

.legal-page li { margin-bottom: 6px; }

.legal-page a { color: var(--gold); }

/* ─── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  nav { padding: 0 20px; }
  .nav-links { gap: 18px; }
  .features-grid { grid-template-columns: 1fr; }
  footer { padding: 40px 20px; }
}
