:root {
  color-scheme: dark;
  --bg: #061119;
  --bg-soft: #0b1720;
  --surface: #132330;
  --surface-2: #f4f7f8;
  --text: #f9fafb;
  --muted: #b7c1ca;
  --ink: #0a0d14;
  --orange: #f97316;
  --orange-2: #fdba74;
  --blue: #6eb7ff;
  --line: rgba(255, 255, 255, 0.13);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 5vw, 64px);
  background: rgba(6, 17, 25, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand img {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.28);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  line-height: 1.05;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 14px;
}

nav a:hover {
  color: var(--text);
}

.hero {
  position: relative;
  min-height: 96vh;
  display: grid;
  align-items: end;
  padding: 128px clamp(18px, 5vw, 64px) 72px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 82% 22%, rgba(253, 186, 116, 0.24), transparent 28%),
    radial-gradient(circle at 12% 76%, rgba(110, 183, 255, 0.2), transparent 26%),
    linear-gradient(135deg, #061119 0%, #0b1720 48%, #2a170d 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

.hero__copy {
  width: min(820px, 100%);
  padding-bottom: 18px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange-2);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(64px, 15vw, 172px);
  line-height: 0.82;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.15;
}

.lead {
  width: min(690px, 100%);
  margin-bottom: 28px;
  color: #e7edf2;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
}

.hero__actions,
.signup__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.button--primary {
  background: var(--orange);
  color: #120801;
  box-shadow: 0 18px 48px rgba(249, 115, 22, 0.24);
}

.button--primary:hover {
  background: #fb923c;
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.hero__scene {
  position: absolute;
  inset: 80px 0 0;
  z-index: -1;
  pointer-events: none;
}

.phone {
  position: absolute;
  top: 12%;
  right: clamp(20px, 10vw, 150px);
  width: min(330px, 42vw);
  min-width: 230px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  background: rgba(11, 23, 32, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.screen-stack {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.mini-screen {
  position: absolute;
  width: clamp(160px, 18vw, 240px);
  min-height: 250px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  background: rgba(11, 23, 32, 0.5);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
}

.mini-screen--one {
  top: 18%;
  right: clamp(280px, 34vw, 520px);
  transform: rotate(-7deg);
}

.mini-screen--two {
  top: 37%;
  right: clamp(34px, 9vw, 170px);
  transform: rotate(6deg);
}

.mini-screen--three {
  top: 9%;
  right: clamp(120px, 21vw, 340px);
  transform: rotate(3deg);
}

.mini-screen__tag {
  display: inline-flex;
  margin-bottom: 18px;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(253, 186, 116, 0.14);
  color: var(--orange-2);
  font-size: 12px;
  font-weight: 800;
}

.mini-screen strong,
.mini-screen small {
  display: block;
}

.mini-screen strong {
  color: var(--text);
  font-size: 26px;
  line-height: 1.05;
}

.mini-screen small {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.35;
}

.mini-option {
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.mini-option.is-active {
  border-color: rgba(249, 115, 22, 0.42);
  background: rgba(249, 115, 22, 0.14);
  color: var(--orange-2);
}

.mini-rings {
  display: flex;
  gap: 8px;
  margin-top: 28px;
}

.mini-rings i {
  width: 42px;
  aspect-ratio: 1;
  border: 9px solid rgba(110, 183, 255, 0.28);
  border-top-color: var(--blue);
  border-radius: 50%;
}

.mini-bars {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 68px;
  margin-top: 24px;
}

.mini-bars i {
  flex: 1;
  min-width: 18px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(to top, var(--orange), var(--orange-2));
}

.mini-bars i:nth-child(1) { height: 42%; }
.mini-bars i:nth-child(2) { height: 72%; }
.mini-bars i:nth-child(3) { height: 56%; }
.mini-bars i:nth-child(4) { height: 92%; }

.phone__status,
.phone__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.phone__status strong,
.phone__row strong {
  color: var(--orange-2);
}

.phone__workout {
  margin: 18px 0;
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(145deg, #132330, #2a170d);
}

.phone__workout h2 {
  margin: 10px 0 8px;
  font-size: 26px;
}

.phone__workout p {
  color: var(--muted);
  line-height: 1.45;
}

.pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(110, 183, 255, 0.14);
  color: #9fd0ff;
  font-size: 12px;
  font-weight: 800;
}

.progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
}

.count-flow {
  position: absolute;
  right: clamp(20px, 7vw, 112px);
  bottom: 7%;
  display: grid;
  grid-template-columns: repeat(4, minmax(78px, 1fr));
  gap: 10px;
  width: min(560px, 58vw);
}

.count-step {
  display: grid;
  align-content: center;
  place-items: center;
  min-height: 124px;
  padding: 14px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(11, 23, 32, 0.54);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.count-step span {
  display: block;
  color: rgba(253, 186, 116, 0.88);
  font-size: clamp(50px, 6vw, 88px);
  font-weight: 900;
  line-height: 0.9;
}

.count-step strong {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-size: clamp(12px, 1.4vw, 16px);
  line-height: 1.15;
  text-align: center;
}

.count-step:nth-child(even) span {
  color: rgba(110, 183, 255, 0.82);
}

.metrics,
.section,
.band,
footer {
  padding-left: clamp(18px, 5vw, 64px);
  padding-right: clamp(18px, 5vw, 64px);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.metrics article {
  padding: 28px;
  background: var(--bg);
}

.metrics strong {
  display: block;
  font-size: clamp(34px, 6vw, 70px);
  line-height: 1;
}

.metrics span {
  color: var(--muted);
}

.section {
  padding-top: 108px;
  padding-bottom: 108px;
}

.section__intro {
  width: min(720px, 100%);
  margin-bottom: 42px;
}

.section__intro p,
.band__copy p,
.steps p,
.feature-grid p,
.form-note {
  color: var(--muted);
  line-height: 1.55;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.steps article,
.feature-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--bg-soft);
}

.steps span {
  display: block;
  margin-bottom: 34px;
  color: var(--blue);
  font-size: 72px;
  line-height: 0.86;
  font-weight: 900;
}

.band {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  padding-top: 92px;
  padding-bottom: 92px;
  background: var(--surface-2);
  color: var(--ink);
}

.band .eyebrow {
  color: #c2410c;
}

.band__copy p,
.feature-grid p {
  color: #4b5563;
}

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

.feature-grid article {
  background: #ffffff;
  border-color: #dde5e8;
}

.feature-grid img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin-bottom: 26px;
}

.beta {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(280px, 1.15fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
}

.signup {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
}

.signup label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

input {
  flex: 1 1 260px;
  min-height: 50px;
  width: 100%;
  border: 1px solid #344655;
  border-radius: 8px;
  padding: 0 16px;
  background: #0f202c;
  color: var(--text);
  font: inherit;
}

input:focus {
  outline: 2px solid rgba(249, 115, 22, 0.42);
  outline-offset: 2px;
}

.form-note {
  min-height: 24px;
  margin: 14px 0 0;
  font-size: 14px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 30px;
  padding-bottom: 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer span {
  color: var(--text);
  font-weight: 800;
}

@media (max-width: 860px) {
  .topbar {
    position: absolute;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: 92vh;
    padding-top: 112px;
  }

  .phone {
    top: 12%;
    right: -34px;
    opacity: 0.64;
  }

  .mini-screen {
    opacity: 0.42;
  }

  .mini-screen--one {
    right: 48%;
  }

  .mini-screen--three {
    right: 24%;
  }

  .count-flow {
    right: clamp(18px, 5vw, 64px);
    left: clamp(18px, 5vw, 64px);
    bottom: 26px;
    width: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    opacity: 0.9;
  }

  .count-step {
    min-height: 98px;
    padding: 10px 6px;
  }

  .metrics,
  .steps,
  .band,
  .feature-grid,
  .beta {
    grid-template-columns: 1fr;
  }

  .band,
  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }
}

@media (max-width: 560px) {
  .hero__actions .button,
  .signup__row .button {
    width: 100%;
  }

  .phone {
    width: 238px;
    min-width: 0;
    padding: 16px;
  }

  .screen-stack {
    display: none;
  }

  .count-flow {
    display: none;
  }

  .metrics article,
  .steps article,
  .feature-grid article,
  .signup {
    padding: 20px;
  }

  footer {
    flex-direction: column;
  }
}
