:root {
  --bg: #0d0e11;
  --surface: #16181d;
  --surface-high: #20232a;
  --outline: #2c3038;
  --text: #f3f4f6;
  --muted: #9ba1ac;
  --run: #ffd60a;
  --station: #4cc9f0;
  --roxzone: #b388ff;
  --brand: #f5822a;
  --radius: 22px;
  --max: 1120px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 14, 17, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(44, 48, 56, 0.6);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.logo:hover { text-decoration: none; }
.logo img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.95rem; font-weight: 500; white-space: nowrap; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links .btn { color: #111; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  background: var(--run);
  color: #111;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.small { padding: 8px 16px; font-size: 0.9rem; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--outline); }
.btn.ghost:hover { background: var(--surface); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 72px; }
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(255, 214, 10, 0.16), transparent 60%);
  pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; position: relative; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -0.04em; margin: 0 0 22px; font-weight: 800; }
h1 .accent { color: var(--run); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; margin: 0 0 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 22px; font-size: 0.9rem; color: var(--muted); }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 440px; }

/* Device frames */
.watch {
  width: 300px;
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 18px;
  background: linear-gradient(145deg, #3a3e46, #15171b 55%, #2a2d33);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
  position: relative;
  flex: none;
}
.watch::before, .watch::after {
  content: "";
  position: absolute;
  right: -10px;
  width: 12px;
  height: 34px;
  border-radius: 4px;
  background: #2a2d33;
}
.watch::before { top: 26%; }
.watch::after { bottom: 26%; }
.watch img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #000; }
.watch.sm { width: 210px; padding: 13px; }
.watch.mono img { image-rendering: pixelated; }

.phone {
  width: 250px;
  border-radius: 38px;
  padding: 10px;
  background: #1d2026;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
  flex: none;
}
.phone img { border-radius: 30px; width: 100%; aspect-ratio: 1179 / 2556; object-fit: cover; object-position: top; }

.hero-visual .phone { position: absolute; right: 0; top: 0; transform: rotate(6deg); opacity: 0.95; }
.hero-visual .watch { position: relative; z-index: 2; margin-right: 120px; margin-top: 80px; }

/* Sections */
section { padding: 96px 0; }
section.alt { background: linear-gradient(180deg, transparent, rgba(22, 24, 29, 0.8) 15%, rgba(22, 24, 29, 0.8) 85%, transparent); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 16px; font-weight: 800; }
.section-lead { color: var(--muted); font-size: 1.1rem; max-width: 42em; margin: 0 0 48px; }

/* Race format strip */
.race {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.leg { display: flex; flex-direction: column; gap: 6px; }
.seg { border-radius: 10px; padding: 10px 12px; font-size: 0.8rem; font-weight: 700; line-height: 1.25; }
.seg small { display: block; font-weight: 500; opacity: 0.75; font-size: 0.72rem; }
.seg.run { background: rgba(255, 214, 10, 0.14); color: var(--run); }
.seg.rox { background: rgba(179, 136, 255, 0.14); color: var(--roxzone); padding: 5px 12px; font-size: 0.7rem; }
.seg.station { background: rgba(76, 201, 240, 0.14); color: var(--station); }
.legend { display: flex; flex-wrap: wrap; gap: 22px; color: var(--muted); font-size: 0.9rem; }
.legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; background: currentColor; vertical-align: 1px; }
.legend .l-run::before { background: var(--run); }
.legend .l-rox::before { background: var(--roxzone); }
.legend .l-station::before { background: var(--station); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); padding: 28px; position: relative; }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 214, 10, 0.14);
  color: var(--run);
  font-weight: 800;
  margin-bottom: 18px;
}
.step h3 { margin: 0 0 8px; font-size: 1.15rem; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--muted); font-size: 0.96rem; }
kbd {
  font-family: inherit;
  font-size: 0.8em;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--surface-high);
  border: 1px solid var(--outline);
  color: var(--text);
}

/* Case study */
#case-study { padding-top: 0; }
.case-map { margin: 0 0 40px; background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); padding: 28px 28px 20px; }
.case-map svg { display: block; width: 100%; height: auto; font-family: inherit; }
.case-map figcaption { max-width: none; text-align: left; margin-top: 12px; font-size: 0.85rem; }
.case-map .track { fill: none; stroke: rgba(255, 214, 10, 0.18); stroke-width: 30; stroke-linejoin: round; }
.case-map .rox { fill: rgba(179, 136, 255, 0.2); }
.case-map .rox-label { fill: var(--roxzone); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-anchor: middle; }
.case-map .stations rect { fill: var(--surface-high); stroke: var(--outline); }
.case-map .stations text { fill: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }
.case-map .dir path { fill: none; stroke: var(--run); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.case-map .gate { stroke: var(--muted); stroke-width: 2; }
.case-map .gate-label { fill: var(--text); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-anchor: middle; }
.case-map .gate-label.start { text-anchor: start; }
.case-map .exit { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.case-map .lap-line { stroke: var(--run); stroke-width: 5; stroke-linecap: round; }
.case-map .lap-badge { fill: var(--run); }
.case-map .lap-badge-text { fill: #111; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-anchor: middle; }

.case-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; counter-reset: step; margin-bottom: 20px; }
.case-steps strong { color: var(--text); }
.case-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 0.92rem; }
.case-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 0 8px 8px 0; }
.case-table td { padding: 8px 8px 8px 0; border-top: 1px solid var(--outline); }
.case-table td:nth-child(3) { color: var(--run); font-weight: 800; }
.case-table th:last-child, .case-table td:last-child { text-align: right; padding-right: 0; }

.case-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.settings-card, .tip { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); padding: 28px; }
.tip { border-left: 4px solid var(--run); }
.settings-card h3, .tip h3 { margin: 0 0 8px; font-size: 1.15rem; letter-spacing: -0.01em; }
.settings-card p, .tip p, .tip li { color: var(--muted); font-size: 0.96rem; }
.settings-card p, .tip p { margin: 0 0 12px; }
.tip p:last-child, .settings-card .note { margin: 0; }
.tip ol { margin: 0 0 12px; padding-left: 1.3em; }
.tip li { margin-bottom: 4px; }
.tip strong { color: var(--text); }
.settings-card dl { margin: 0 0 16px; }
.settings-card dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--outline); }
.settings-card dt { color: var(--text); }
.settings-card dd { margin: 0; font-weight: 800; color: var(--run); font-variant-numeric: tabular-nums; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; justify-items: center; }
.gallery figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.gallery .watch { width: 100%; max-width: 230px; padding: 13px; }
figcaption { text-align: center; color: var(--muted); font-size: 0.92rem; max-width: 16em; }
figcaption strong { display: block; color: var(--text); font-size: 1rem; margin-bottom: 2px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); padding: 28px; }
.feature .dot { width: 12px; height: 12px; border-radius: 50%; margin-bottom: 18px; background: var(--run); box-shadow: 0 0 18px currentColor; color: var(--run); }
.feature .dot.station { background: var(--station); color: var(--station); }
.feature .dot.rox { background: var(--roxzone); color: var(--roxzone); }
.feature .dot.brand { background: var(--brand); color: var(--brand); }
.feature h3 { margin: 0 0 8px; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* Companion */
.companion .wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.phones { display: flex; gap: 20px; justify-content: center; }
.phones .phone { width: 220px; }
.phones .phone:nth-child(2) { margin-top: 60px; }
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(179, 136, 255, 0.16);
  color: var(--roxzone);
  margin-bottom: 16px;
}
.checklist { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.checklist li { padding-left: 30px; position: relative; color: var(--muted); }
.checklist li strong { color: var(--text); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 14px; height: 8px; border-left: 3px solid var(--run); border-bottom: 3px solid var(--run); transform: rotate(-45deg); }

/* Download */
.stores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.store {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 28px;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
a.store:hover { text-decoration: none; border-color: var(--run); transform: translateY(-2px); }
.store .store-icon { width: 44px; height: 44px; margin-bottom: 12px; color: var(--text); }
.store .kind { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.store .name { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
.store .desc { color: var(--muted); font-size: 0.95rem; }
.store .status { margin-top: 12px; font-weight: 700; font-size: 0.9rem; color: var(--run); }
.store.soon { opacity: 0.6; }
.store.soon .status { color: var(--muted); }
.devices { margin-top: 28px; color: var(--muted); font-size: 0.92rem; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
details { background: var(--surface); border: 1px solid var(--outline); border-radius: 16px; padding: 0 24px; }
summary { cursor: pointer; padding: 20px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--run); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 20px; color: var(--muted); }

/* Contact */
.contact-card {
  background: linear-gradient(135deg, rgba(255, 214, 10, 0.12), rgba(76, 201, 240, 0.08) 60%, rgba(179, 136, 255, 0.1));
  border: 1px solid var(--outline);
  border-radius: 28px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}
.contact-card h2 { margin-bottom: 12px; }
.contact-card p { color: var(--muted); margin: 0; }
.contact-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.contact-actions .mail { font-size: 1.15rem; font-weight: 700; color: var(--text); }

/* Footer */
footer { border-top: 1px solid var(--outline); padding: 40px 0 56px; color: var(--muted); font-size: 0.88rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
footer nav { display: flex; gap: 22px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
.disclaimer { max-width: 40em; margin: 0; }

/* Legal page */
.legal { padding: 72px 0 96px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal h2 { font-size: 1.4rem; margin: 44px 0 12px; letter-spacing: -0.01em; }
.legal p, .legal li { color: #c9cdd4; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 8px; }
.legal .updated { color: var(--muted); margin-bottom: 32px; }
.summary-box { background: var(--surface); border: 1px solid var(--outline); border-left: 4px solid var(--run); border-radius: 14px; padding: 20px 24px; margin: 28px 0; }
.summary-box p { margin: 0; color: var(--text); }

/* Responsive */
@media (max-width: 980px) {
  .nav-links { gap: 18px; }
  .nav-links a[href="#contact"] { display: none; }
  .hero .wrap, .companion .wrap, .contact-card { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
  .hero-visual { min-height: 400px; }
  .steps, .gallery { grid-template-columns: repeat(2, 1fr); }
  .features, .stores { grid-template-columns: 1fr 1fr; }
  .race { grid-template-columns: repeat(4, 1fr); }
  .companion .phones { order: 2; }
}
@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  section { padding: 72px 0; }
  .steps, .features, .stores, .case-steps, .case-bottom { grid-template-columns: 1fr; }
  .case-map { padding: 16px 12px 14px; }
  .gallery { gap: 36px 16px; }
  .race { grid-template-columns: repeat(2, 1fr); }
  .hero-visual .watch { width: 240px; margin-right: 90px; }
  .hero-visual .phone { width: 190px; }
  .phones .phone { width: 46%; }
  .contact-card { padding: 32px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .store { transition: none; }
}
