body {
  background:
    radial-gradient(900px 500px at 75% 20%, rgba(61, 220, 132, 0.10), transparent 60%),
    var(--bg);
  min-height: 100vh;
}
html[data-theme="light"] body {
  background:
    radial-gradient(900px 500px at 75% 20%, rgba(61, 220, 132, 0.14), transparent 60%),
    var(--bg);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding: 22px 24px;
}
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-cta { padding: 10px 18px; font-size: 14px; }

main { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
  min-height: calc(100vh - 90px);
  padding: 20px 0 60px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
  font-weight: 800;
}
.hero h1 span { color: var(--muted); }
.sub { font-size: 19px; color: var(--muted); margin: 0 0 32px; }

/* Phone */
.hero-visual { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: 320px;
  height: 600px;
  border-radius: 48px;
  background: var(--bg-2);
  border: 10px solid #1d2128;
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
}
html[data-theme="light"] .phone {
  border-color: #d9dde3;
  box-shadow: 0 40px 80px rgba(20, 30, 50, 0.18);
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-12px) rotate(-1.5deg); }
}
.phone-notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 26px; border-radius: 20px; background: #000; z-index: 3;
}
.phone-map { position: absolute; inset: 0 0 auto 0; width: 100%; height: 420px; }

.route {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 1.8s ease forwards;
}
.r-fast { stroke: var(--fast); opacity: 0.85; animation-delay: 0.1s; }
.r-mid { stroke: var(--mid); opacity: 0.9; animation-delay: 0.35s; }
.r-safe { stroke: var(--safe); stroke-width: 7; animation-delay: 0.6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.route-card {
  position: absolute; left: 14px; right: 14px; bottom: 74px;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--card);
  border: 1.5px solid var(--safe);
  border-radius: 18px;
  box-shadow: var(--glow);
}
.shield { width: 34px; height: 34px; color: var(--safe); }
.shield svg { width: 100%; height: 100%; }
.rc-main { display: flex; flex-direction: column; flex: 1; }
.rc-main strong { font-size: 17px; }
.rc-main span { font-size: 13px; color: var(--muted); }
.rc-time { font-weight: 600; font-size: 17px; }

.chips {
  position: absolute; left: 14px; right: 14px; bottom: 22px;
  display: flex; gap: 8px;
}
.chip {
  flex: 1; text-align: center; font-size: 12px; font-weight: 600;
  padding: 10px 6px; border-radius: 12px; background: var(--card-2);
  border: 1px solid var(--line);
}
.c-mid { color: var(--mid); }
.c-fast { color: var(--fast); }

/* Tiles */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 20px 0 100px;
}
.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.tile:hover { transform: translateY(-4px); border-color: var(--muted); }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }
.tile-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
}
.tile-icon svg { width: 22px; height: 22px; }
.t-safe { color: var(--safe); background: rgba(61, 220, 132, 0.12); }
.t-mid { color: var(--mid); background: rgba(245, 184, 61, 0.12); }
.t-fast { color: var(--fast); background: rgba(239, 83, 80, 0.12); }
.t-blue { color: #4c8dff; background: rgba(76, 141, 255, 0.12); }
.tile-score { font-size: 15px; color: var(--muted); }
.tile-score b { font-size: 34px; color: var(--text); letter-spacing: -0.02em; }
.tile-bars { display: flex; gap: 6px; height: 40px; align-items: flex-end; }
.tile-bars i {
  flex: 1; height: 100%; border-radius: 6px;
  background: linear-gradient(to top, rgba(245, 184, 61, 0.2), var(--mid));
}
.tile-bars i.off { background: var(--card-2); }
.tile-pill {
  align-self: flex-start;
  font-weight: 600; font-size: 15px;
  padding: 10px 14px; border-radius: 999px;
  background: var(--card-2); border: 1px solid var(--line);
}

/* Closer */
.closer {
  text-align: center;
  padding: 60px 0 120px;
}
.closer h2 {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.03em;
  margin: 0 0 28px;
}

.foot {
  max-width: 1160px; margin: 0 auto; padding: 28px 24px;
  display: flex; justify-content: space-between;
  color: var(--muted); font-size: 13px;
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; min-height: auto; padding-top: 30px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .nav-cta { display: none; }
}
@media (max-width: 520px) {
  .tiles { grid-template-columns: 1fr; }
  .phone { width: 290px; height: 560px; }
}

/* Stage 1 skin */
.hero h1 { font-weight: 800; letter-spacing: -0.03em; }
.tile { border: none; border-radius: 26px; }
.tile-icon .ic { width: 24px; height: 24px; }
.tile-icon { border-radius: 16px; width: 50px; height: 50px; }
.t-blue { color: var(--blue); background: color-mix(in srgb, var(--blue) 15%, transparent); }
.chip, .tile-pill { border: none; }
.phone { border-color: #16181b; }
.route-card { border-width: 2px; border-radius: 20px; }
.nav-cta { border: none; }
.btn .ic { width: 18px; height: 18px; }

.tiles { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } }
