:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #edf1e9;
  background: #10130f;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --ink: #edf1e9;
  --muted: #8b9485;
  --line: #2a3028;
  --lime: #c8ff32;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(200, 255, 50, .07), transparent 25rem),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    #10130f;
  background-size: auto, 64px 64px, 64px 64px, auto;
}

a { color: inherit; }
.site-header, main, footer { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.025em;
  text-decoration: none;
}

.brand img { border-radius: 8px; }
.status, .connected, .window-footer span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.status { color: var(--muted); font-size: 12px; }

.status i, .connected i, .window-footer i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(200, 255, 50, .55);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(520px, 1.2fr);
  gap: clamp(52px, 8vw, 112px);
  align-items: center;
  min-height: 690px;
  padding: 90px 0 110px;
}

.eyebrow {
  margin: 0 0 25px;
  color: var(--lime);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 650px;
  margin-bottom: 27px;
  font-size: clamp(50px, 6.2vw, 86px);
  font-weight: 680;
  line-height: .94;
  letter-spacing: -.065em;
}

.lede {
  max-width: 530px;
  margin-bottom: 24px;
  color: #a7afa1;
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions { margin-bottom: 28px; }

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--lime);
  border-radius: 8px;
  color: #10130f;
  background: var(--lime);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .04em;
  text-decoration: none;
  transition: background-color .15s ease, transform .15s ease;
}

.download-link:hover { background: #d7ff67; transform: translateY(-1px); }
.download-link:focus-visible { outline: 2px solid #edf1e9; outline-offset: 3px; }
.download-link span { font-size: 15px; }

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  color: #757e70;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.platforms span:not(:last-child)::after { margin-left: 18px; color: #40483d; content: "/"; }

.ride-window {
  position: relative;
  overflow: hidden;
  border: 1px solid #343b31;
  border-radius: 17px;
  background: #151914;
  box-shadow: 0 40px 100px rgba(0,0,0,.32);
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
}

.ride-window::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px rgba(255,255,255,.035);
  pointer-events: none;
  content: "";
}

.window-bar, .window-footer, .ride-heading, .interval-copy { display: flex; align-items: center; justify-content: space-between; }

.window-bar {
  min-height: 62px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: #181c17;
}

.window-brand { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; }
.window-brand img { border-radius: 5px; }

.connected {
  color: #7f887a;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ride-heading { padding: 28px 28px 20px; }
.ride-heading div { display: grid; gap: 3px; }
.ride-heading span, .metric span { color: #737c6e; font-size: 8px; font-weight: 750; letter-spacing: .13em; }
.ride-heading strong { font-size: 18px; }
.ride-heading time { color: #91998d; font-size: 13px; font-variant-numeric: tabular-nums; }

.metrics { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 8px; padding: 0 28px; }

.metric {
  padding: 16px;
  border: 1px solid #2c322a;
  border-radius: 10px;
  background: #191d18;
}

.metric strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1;
  letter-spacing: -.045em;
}

.metric small { color: #71796c; font-size: 10px; letter-spacing: 0; }
.primary-metric { border-color: #526629; background: #1d2418; }
.primary-metric span, .primary-metric strong { color: var(--lime); }

.interval-copy {
  padding: 24px 30px 10px;
  color: #747d6f;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.interval-copy strong { color: var(--ink); font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

.workout {
  display: flex;
  align-items: end;
  gap: 3px;
  height: 112px;
  margin: 0 28px 25px;
  padding-top: 12px;
  border-bottom: 1px solid #35402f;
}

.workout i {
  width: var(--w);
  height: var(--h);
  border-radius: 3px 3px 0 0;
  background: #48523f;
  opacity: .58;
}

.workout i.done { background: #738548; }
.workout i.active { background: var(--lime); opacity: .9; }

.window-footer {
  min-height: 52px;
  padding: 0 28px;
  border-top: 1px solid var(--line);
  color: #687162;
  background: #171b16;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.principles { padding: 100px 0 120px; border-top: 1px solid var(--line); }

.principles h2 {
  max-width: 760px;
  margin-bottom: 72px;
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 620;
  line-height: 1.06;
  letter-spacing: -.05em;
}

.principle-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.principle-list article { border-top: 1px solid #3a4236; padding-top: 16px; }
.principle-list article > span { color: var(--lime); font-size: 10px; font-weight: 700; }
.principle-list h3 { margin: 38px 0 12px; font-size: 19px; font-weight: 650; }
.principle-list p { max-width: 310px; margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

footer {
  display: flex;
  justify-content: space-between;
  padding: 30px 0 48px;
  border-top: 1px solid var(--line);
  color: #687062;
  font-size: 11px;
}

footer span:first-child { color: #9da596; font-weight: 700; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 75px 0 95px; }
  .hero-copy { max-width: 680px; }
  .ride-window { width: min(680px, 100%); transform: none; }
}

@media (max-width: 620px) {
  .site-header, main, footer { width: min(100% - 32px, 1180px); }
  .site-header { min-height: 78px; }
  .status { font-size: 10px; }
  .hero { gap: 48px; padding: 58px 0 76px; }
  h1 { font-size: clamp(44px, 14vw, 66px); }
  .lede { font-size: 16px; }
  .platforms { gap: 8px 13px; }
  .platforms span:not(:last-child)::after { margin-left: 13px; }
  .window-bar { min-height: 54px; padding: 0 16px; }
  .connected { font-size: 0; }
  .connected i { width: 7px; height: 7px; }
  .ride-heading { padding: 22px 18px 16px; }
  .metrics { grid-template-columns: 1fr 1fr; padding: 0 18px; }
  .primary-metric { grid-column: 1 / -1; }
  .metric strong { font-size: 30px; }
  .interval-copy { padding: 22px 20px 9px; }
  .workout { height: 92px; margin: 0 18px 20px; }
  .window-footer { padding: 0 18px; }
  .principles { padding: 78px 0 88px; }
  .principles h2 { margin-bottom: 52px; }
  .principle-list { grid-template-columns: 1fr; gap: 42px; }
  .principle-list h3 { margin-top: 24px; }
  footer { gap: 20px; }
  footer span:last-child { text-align: right; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
