/* FitnessOS landing page
   Ported from the Claude Design prototype "FitnessOS Landing.dc.html".
   Every colour, size and spacing value below is taken verbatim from the
   prototype's inline styles; the media queries are additions, since the
   prototype was authored at desktop width only. */

:root {
  --bg: #050806;
  --on-bg: #f4f7f4;
  --primary: #00ff40;
  --primary-hover: #7dffa0;
  --on-primary: #04110a;
  --surface: #0a0f0b;
  --outline: #1f2622;
  --outline-neutral: #27272a;
  --text-muted: #a1a1aa;
  --text-body: #c5cbc6;
  --text-dim: #71717a;
  --gutter: 80px;
}

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

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--on-bg);
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body { overflow-x: hidden; }

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

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

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

@keyframes fos-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes fos-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 60;
  padding: 10px 18px; border-radius: 999px;
  background: var(--primary); color: var(--on-primary);
  font-size: 13px; font-weight: 800;
  transition: top .15s ease;
}
.skip-link:focus { top: 16px; color: var(--on-primary); }

.page { min-height: 100vh; background: var(--bg); overflow-x: hidden; }

/* ---------------------------------------------------------------- nav */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  background: linear-gradient(to bottom, rgba(5, 8, 6, .85), rgba(5, 8, 6, 0));
  backdrop-filter: blur(6px);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark {
  width: 32px; height: 32px; color: var(--primary);
  display: grid; place-items: center; overflow: hidden;
}
.brand__mark svg { width: 32px; height: 32px; }
.brand__name { font-weight: 800; font-size: 18px; letter-spacing: -.01em; color: var(--on-bg); }
.brand__name em { color: var(--primary); font-style: normal; }
a.brand:hover .brand__name { color: var(--on-bg); }

.nav__links {
  display: flex; align-items: center; gap: 28px;
  font-size: 13px; font-weight: 600; color: var(--text-muted);
}
.nav__link { color: var(--text-muted); }
.nav__link:hover { color: #ffffff; }

/* ------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 999px;
  font-weight: 800; text-transform: uppercase; letter-spacing: .12em;
  transition: box-shadow .2s ease, background-color .2s ease;
}
.btn .material-symbols-outlined { font-size: 20px; }

.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { color: var(--on-primary); }

.btn--ghost {
  border: 1px solid rgba(0, 255, 64, .55);
  color: var(--primary);
  background: rgba(0, 255, 64, .04);
}
.btn--ghost:hover { background: rgba(0, 255, 64, .12); box-shadow: 0 0 22px rgba(0, 255, 64, .3); }

/* nav CTA */
.btn--nav {
  gap: 8px; padding: 10px 18px; font-size: 12px;
  box-shadow: 0 0 18px rgba(0, 255, 64, .45);
}
.btn--nav:hover { box-shadow: 0 0 28px rgba(0, 255, 64, .7); }

/* hero store buttons */
.btn--hero { padding: 14px 22px; font-size: 13px; }
.btn--hero.btn--primary { box-shadow: 0 0 24px rgba(0, 255, 64, .45); }
.btn--hero.btn--primary:hover { box-shadow: 0 0 36px rgba(0, 255, 64, .75); }

/* footer store buttons */
.btn--footer { padding: 12px 18px; font-size: 12px; }
.btn--footer .material-symbols-outlined { font-size: 18px; }
.btn--footer.btn--primary { box-shadow: 0 0 18px rgba(0, 255, 64, .4); }
.btn--footer.btn--primary:hover { box-shadow: 0 0 30px rgba(0, 255, 64, .7); }

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative; min-height: 100vh;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  padding: 120px 40px 80px var(--gutter);
  gap: 24px; overflow: hidden; background: var(--bg);
}

.hero__canvas { position: absolute; inset: 0; z-index: 0; }
.hero__canvas canvas { display: block; }

.hero__copy {
  position: relative; z-index: 2; max-width: 600px;
  animation: fos-rise .9s ease-out both;
}
@media (prefers-reduced-motion: reduce) { .hero__copy { animation: none; } }

.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: .22em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 24px;
}
.hero__badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 10px var(--primary);
  animation: fos-pulse 1.8s ease-in-out infinite;
}

.hero__title {
  margin: 0;
  font-size: clamp(44px, 5.6vw, 84px);
  line-height: .98; font-weight: 800; letter-spacing: -.035em;
  text-wrap: pretty;
}
.hero__title em {
  color: var(--primary); font-style: normal;
  text-shadow: 0 0 24px rgba(0, 255, 64, .55);
}

.hero__lede {
  margin: 28px 0 0; font-size: 18px; line-height: 1.55;
  color: var(--text-body); max-width: 460px; text-wrap: pretty;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero__points {
  display: flex; gap: 28px; margin-top: 44px;
  font-size: 12px; color: var(--text-dim); font-weight: 600; letter-spacing: .04em;
}

/* Empty right-hand column: reserves the space the 3D figure occupies so the
   copy never overlaps it. */
.hero__stage { position: relative; z-index: 2; height: 100%; min-height: 420px; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 10px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--text-dim); font-weight: 700;
}
.hero__scroll:hover { color: var(--on-bg); }
.hero__scroll .material-symbols-outlined { font-size: 20px; color: var(--primary); }

/* ----------------------------------------------------------- tutorials */

.section-eyebrow {
  margin: 0 0 12px; font-size: 11px; font-weight: 800;
  letter-spacing: .22em; text-transform: uppercase; color: var(--primary);
}

.tutorials {
  padding: 96px 0 72px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.tutorials__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 var(--gutter); margin-bottom: 32px; gap: 24px;
}
.tutorials__title {
  margin: 0; font-size: 40px; font-weight: 800;
  letter-spacing: -.03em; line-height: 1.05;
}

.rail-controls { display: flex; gap: 10px; flex: 0 0 auto; }
.rail-btn {
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--outline-neutral); background: var(--surface);
  color: var(--on-bg); display: grid; place-items: center; cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.rail-btn:hover { border-color: var(--primary); color: var(--primary); }
.rail-btn:disabled { opacity: .35; cursor: default; }
.rail-btn:disabled:hover { border-color: var(--outline-neutral); color: var(--on-bg); }

.rail {
  display: flex; gap: 20px; overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gutter); scroll-padding-right: var(--gutter);
  padding: 0 var(--gutter) 8px;
}

.video-card {
  flex: 0 0 520px; scroll-snap-align: start;
  border-radius: 24px; border: 1px solid var(--outline);
  background: var(--surface); overflow: hidden;
  transition: border-color .2s ease;
}
.video-card:hover, .video-card:focus-within { border-color: rgba(0, 255, 64, .5); }

.video-card__frame {
  position: relative; aspect-ratio: 16/9;
  background: linear-gradient(135deg, #0d2008, #050806);
  display: grid; place-items: center;
}
.video-card__frame video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  background: #050806;
}

/* The designed poster art: grid backdrop + neon play button. It sits on top of
   the <video> until the viewer starts playback. */
.video-card__poster {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  border: 0; padding: 0; margin: 0; width: 100%; cursor: pointer;
  background: linear-gradient(135deg, #0d2008, #050806);
  transition: opacity .25s ease;
}
.video-card__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 255, 64, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 64, .07) 1px, transparent 1px);
  background-size: 28px 28px;
}
.video-card__play {
  position: relative; width: 64px; height: 64px; border-radius: 999px;
  background: var(--primary); display: grid; place-items: center;
  color: var(--on-primary); box-shadow: 0 0 30px rgba(0, 255, 64, .55);
  transition: transform .2s ease, box-shadow .2s ease;
}
.video-card__play .material-symbols-outlined { font-size: 32px; }
.video-card__poster:hover .video-card__play {
  transform: scale(1.06); box-shadow: 0 0 42px rgba(0, 255, 64, .75);
}
.video-card.is-playing .video-card__poster { opacity: 0; pointer-events: none; }

.video-card__length {
  position: absolute; bottom: 12px; right: 14px;
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  background: rgba(0, 0, 0, .6); padding: 3px 8px; border-radius: 6px;
}
.video-card__length:empty { display: none; }

.video-card__body { padding: 18px 20px 20px; }
.video-card__tag {
  margin: 0 0 6px; font-size: 10px; font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase; color: var(--primary);
}
.video-card__title { margin: 0 0 6px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.video-card__desc { margin: 0; font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* ---------------------------------------------------- features + about */

.features {
  padding: 72px var(--gutter) 96px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.features__title {
  margin: 0 0 36px; font-size: 40px; font-weight: 800;
  letter-spacing: -.03em; line-height: 1.05;
}

.features__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.feature {
  border-radius: 20px; border: 1px solid var(--outline);
  background: var(--surface); padding: 22px;
  transition: border-color .2s ease;
}
.feature:hover { border-color: rgba(0, 255, 64, .5); }
.feature .material-symbols-outlined {
  color: var(--primary); font-size: 26px;
  text-shadow: 0 0 14px rgba(0, 255, 64, .5);
}
.feature h3 { margin: 14px 0 6px; font-size: 16px; font-weight: 700; }
.feature p { margin: 0; font-size: 14px; color: var(--text-muted); line-height: 1.5; }

.about { align-self: start; position: sticky; top: 120px; }
.about__title {
  margin: 0 0 20px; font-size: 28px; font-weight: 800;
  letter-spacing: -.02em; line-height: 1.15;
}
.about p {
  margin: 0 0 16px; font-size: 16px; color: var(--text-body);
  line-height: 1.6; text-wrap: pretty;
}
.about p + p { margin-bottom: 28px; }
.about__cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.about__cta .material-symbols-outlined { font-size: 18px; }

/* -------------------------------------------------------------- footer */

.footer {
  border-top: 1px solid rgba(0, 255, 64, .2);
  background: linear-gradient(to bottom, #050806, #0a1a0c);
  padding: 72px var(--gutter) 40px;
}

.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 56px;
}

.footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer__blurb {
  margin: 0 0 22px; font-size: 14px; color: var(--text-muted);
  max-width: 320px; line-height: 1.55;
}
.footer__stores { display: flex; flex-wrap: wrap; gap: 10px; }

.footer__col { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer__col-title {
  margin: 0 0 4px; font-size: 11px; font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase; color: var(--text-dim);
}
.footer__col a { color: var(--text-body); }
.footer__col a:hover { color: var(--primary); }

.footer__legal {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .06);
  font-size: 12px; color: var(--text-dim);
}

/* --------------------------------------------------------- responsive */

@media (max-width: 1180px) {
  :root { --gutter: 48px; }
  .features { grid-template-columns: 1fr; gap: 56px; }
  .about { position: static; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  :root { --gutter: 24px; }

  .nav { padding: 14px 24px; }
  .nav__links { gap: 18px; }
  .nav__links .nav__link { display: none; }

  .hero {
    grid-template-columns: 1fr;
    padding: 132px 24px 96px;
    align-content: center;
    min-height: 100svh;
  }
  /* The figure renders centred behind the copy at this width, so the copy gets
     a soft scrim to stay readable over it. */
  .hero__copy::before {
    content: ''; position: absolute; inset: -40px -24px;
    z-index: -1; pointer-events: none;
    background: radial-gradient(ellipse at 30% 45%, rgba(5, 8, 6, .92) 0%, rgba(5, 8, 6, .78) 45%, rgba(5, 8, 6, 0) 78%);
  }
  .hero__stage { display: none; }
  .hero__lede { font-size: 17px; }
  .hero__points { gap: 18px; flex-wrap: wrap; margin-top: 32px; }

  .tutorials { padding: 72px 0 56px; }
  .tutorials__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .tutorials__title, .features__title { font-size: 32px; }
  .video-card { flex-basis: min(84vw, 520px); }

  .features { padding: 56px 24px 72px; gap: 48px; }
  .features__grid { grid-template-columns: 1fr; }

  .footer { padding: 56px 24px 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__legal { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 560px) {
  .hero { padding: 120px 20px 88px; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .tutorials__title, .features__title { font-size: 28px; }
  .about__title { font-size: 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__stores .btn { flex: 1 1 100%; justify-content: center; }
}
