:root {
  /* Surfaces */
  --paper: #F5EFE4;
  --paper2: #EDE5D4;
  --paper3: #E3D9C3;
  --ink: #0F1530;
  --ink2: #161D3E;
  --ink3: #242C54;

  /* Graphite (warm neutrals) */
  --graphite05: #F2EDE3;
  --graphite10: #E3DDD0;
  --graphite20: #C9C3B6;
  --graphite30: #A8A396;
  --graphite40: #87827A;
  --graphite50: #6B6660;
  --graphite60: #504C47;
  --graphite70: #3A3733;
  --graphite80: #2A2724;
  --graphite90: #1A1816;

  /* Blue — primary */
  --blue: #4A72F5;
  --blue-deep: #2F4FD9;
  --blue-soft: #DCE4FB;
  --blue-dim: #1A2350;

  /* Amber — emphasis */
  --amber: #F5B642;
  --amber-deep: #D99A1F;
  --amber-soft: #F8E8C2;

  /* Sage — ok */
  --sage: #6BA88A;
  --sage-deep: #4A8067;
  --sage-soft: #D8E8DE;

  /* Foreground */
  --fg1: #0F1530;
  --fg2: #3A3F5C;
  --fg3: #6B6E85;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--fg1);
  line-height: 1.7;
  min-height: 100vh;
}

/* ===== Nav ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(245, 239, 228, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--paper3);
  z-index: 100;
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg1);
  text-decoration: none;
}

.logo-icon {
  display: flex;
  align-items: center;
}

.logo-ai {
  color: var(--blue);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--fg3);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--fg1);
}

/* ===== Container ===== */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Hero ===== */
.hero {
  padding-top: 9rem;
  padding-bottom: 3rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--amber-deep);
  background: var(--amber-soft);
  border: 1px solid var(--paper3);
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 3.25rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--ink);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--fg2);
  max-width: 540px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-deep);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--ink);
  color: var(--paper);
}

.btn-secondary:hover {
  background: var(--ink2);
  transform: translateY(-1px);
}

/* ===== Screenshots ===== */
.screenshots {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 0 5rem;
}

.phone-mockup {
  flex: 0 0 auto;
}

.phone-frame {
  width: 180px;
  height: 360px;
  background: var(--ink);
  border: 2px solid var(--ink3);
  border-radius: 28px;
  padding: 8px;
  position: relative;
  transition: transform 0.2s;
  box-shadow: 0 8px 32px rgba(15, 21, 48, 0.12), 0 2px 8px rgba(15, 21, 48, 0.08);
}

.phone-frame:hover {
  transform: translateY(-4px);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: var(--paper);
}

.placeholder-content {
  width: 100%;
  height: 100%;
  position: relative;
}

/* Map placeholder — warm paper with subtle "roads" */
.placeholder-map {
  width: 100%;
  height: 65%;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}

.placeholder-map::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 15%;
  width: 70%;
  height: 2px;
  background: var(--paper3);
  transform: rotate(-12deg);
}

.placeholder-map::after {
  content: '';
  position: absolute;
  top: 55%;
  left: 5%;
  width: 90%;
  height: 1.5px;
  background: var(--paper3);
  transform: rotate(6deg);
}

/* Route line on map */
.placeholder-map .route-line {
  position: absolute;
  top: 20%;
  left: 30%;
  width: 3px;
  height: 55%;
  background: var(--blue);
  border-radius: 2px;
  transform: rotate(8deg);
  opacity: 0.7;
}

.placeholder-map.nav-mode {
  height: 75%;
}

.placeholder-map.nav-mode::before {
  top: 35%;
  left: 42%;
  width: 3px;
  height: 50%;
  transform: none;
  background: var(--blue);
  opacity: 0.6;
  border-radius: 2px;
}

.placeholder-map.nav-mode::after {
  top: 65%;
  left: 43%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  transform: none;
  box-shadow: 0 0 8px rgba(245, 182, 66, 0.4);
}

/* Bottom sheet */
.placeholder-sheet {
  width: 100%;
  height: 35%;
  background: var(--paper2);
  border-top: 1px solid var(--paper3);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.placeholder-pill {
  width: 30px;
  height: 3px;
  background: var(--graphite20);
  border-radius: 2px;
  margin: 0 auto 4px;
}

.placeholder-line {
  height: 6px;
  background: var(--paper3);
  border-radius: 3px;
}

.placeholder-line.w80 { width: 80%; }
.placeholder-line.w60 { width: 60%; }
.placeholder-line.w40 { width: 40%; }

/* Nav header overlay */
.placeholder-nav-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.placeholder-turn {
  width: 24px;
  height: 24px;
  background: rgba(74, 114, 245, 0.25);
  border-radius: 6px;
}

.placeholder-turn-line {
  height: 5px;
  width: 60%;
  background: rgba(245, 239, 228, 0.2);
  border-radius: 3px;
}

/* Voice ring */
.placeholder-voice {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
}

.voice-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue-soft);
  border: 2px solid var(--blue);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 1; }
}

.placeholder-label {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: var(--fg3);
  font-weight: 500;
  letter-spacing: 0.02em;
  background: var(--paper);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ===== Sections ===== */
.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.section-sub {
  font-size: 1.05rem;
  color: var(--fg2);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* ===== Features ===== */
.features {
  padding: 4rem 0;
  border-top: 1px solid var(--paper3);
}

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

.feature-card {
  background: var(--paper2);
  border: 1px solid var(--paper3);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color 0.15s, transform 0.15s;
}

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

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

.feature-icon.blue { background: var(--blue-soft); }
.feature-icon.amber { background: var(--amber-soft); }
.feature-icon.sage { background: var(--sage-soft); }

.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--fg1);
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--fg2);
  line-height: 1.65;
}

/* ===== How It Works ===== */
.how-it-works {
  padding: 4rem 0;
  border-top: 1px solid var(--paper3);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 540px;
}

.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-number {
  flex: 0 0 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--amber);
}

.step-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--fg1);
}

.step-content p {
  font-size: 0.9rem;
  color: var(--fg2);
  line-height: 1.65;
}

/* ===== CTA ===== */
.cta-section {
  text-align: center;
  padding: 4rem 0 3rem;
  border-top: 1px solid var(--paper3);
}

.cta-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.cta-section p {
  color: var(--fg2);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* ===== Footer ===== */
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--paper3);
  text-align: center;
}

.footer-links {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--fg3);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--fg1);
}

.footer-sep {
  color: var(--paper3);
  margin: 0 0.25rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--fg3);
}

/* ===== Page styles (support, privacy) ===== */
.page {
  padding-top: 6rem;
  padding-bottom: 3rem;
}

.page h1 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.page .page-updated {
  color: var(--fg3);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.page h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--fg1);
}

.page p, .page li {
  color: var(--fg2);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.page ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.page li {
  margin-bottom: 0.4rem;
}

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

.support-card {
  background: var(--paper2);
  border: 1px solid var(--paper3);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}

.support-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--fg1);
}

.support-card p {
  margin-bottom: 0.5rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero {
    padding-top: 7rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .screenshots {
    gap: 0.75rem;
    padding: 1.5rem 0 3rem;
  }

  .phone-frame {
    width: 140px;
    height: 280px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .screenshots {
    flex-direction: column;
    align-items: center;
  }

  .nav-links {
    gap: 1rem;
  }
}
