:root {
  --bg: #030813;
  --bg-soft: #071532;
  --bg-card: #0e2146;
  --text: #f4f7ff;
  --muted: #aeb9d8;
  --ink: #101a34;
  --light-surface: #e5eaf4;
  --line: rgba(180, 200, 255, 0.24);
  --blue: #5a77ff;
  --blue-soft: #7ea1ff;
  --container: min(1200px, 92vw);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Work Sans", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(75rem 45rem at 100% -10%, #1a2d5f 0%, transparent 45%),
    radial-gradient(55rem 35rem at -10% 10%, #132857 0%, transparent 40%),
    var(--bg);
  line-height: 1.35;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  letter-spacing: -0.03em;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 20% 18%, rgba(130, 163, 255, 0.18), transparent 34%);
  z-index: -1;
}

.topbar {
  width: var(--container);
  margin: 1rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  text-decoration: none;
}

.brand-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.55rem;
}

.brand-text {
  font-family: "Work Sans", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header-support {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  color: #cad8ff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.52rem 0.9rem;
  background: rgba(17, 38, 88, 0.35);
}

main {
  width: 100%;
  padding-bottom: 2rem;
}

.block-dark,
.block-light {
  width: var(--container);
  margin: 1.05rem auto;
  border-radius: 2rem;
  padding: clamp(1.6rem, 4vw, 3.3rem);
  overflow: clip;
}

.block-dark {
  background:
    radial-gradient(45rem 26rem at 80% -10%, rgba(103, 144, 255, 0.2), transparent 56%),
    linear-gradient(160deg, #081533 0%, #07102b 70%);
  border: 1px solid var(--line);
}

.block-light {
  color: var(--ink);
  background: linear-gradient(170deg, #edf1f8 0%, #e2e8f3 90%);
  border: 1px solid #d1dae9;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: #90abff;
  margin-bottom: 0.8rem;
}

.eyebrow.dark {
  color: #4569d7;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.7rem;
  align-items: center;
  min-height: 40rem;
  background: transparent;
  border: none;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 6.1vw, 5rem);
  line-height: 0.98;
}

.hero-copy h1 span {
  color: #9cb6ff;
}

.hero-copy p {
  margin-top: 1rem;
  max-width: 51ch;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.26rem);
}

.store-row {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
}

.store-row.center {
  justify-content: center;
}

.store-btn {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  background: #040507;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.74rem 1rem;
  font-weight: 600;
  font-size: 0.94rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.store-btn .icon {
  width: 1.16rem;
  height: 1.16rem;
}

.store-btn .icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.store-btn.apple .icon svg {
  fill: #fff;
}

.store-btn.play {
  background: #070809;
  border-color: #222934;
}

.store-btn.disabled {
  opacity: 0.98;
  cursor: not-allowed;
}

.hero-stack {
  position: relative;
  height: min(44rem, 78vh);
}

.shot {
  position: absolute;
  width: min(19rem, 40vw);
  border-radius: 2.3rem;
  box-shadow: 0 35px 65px rgba(2, 5, 18, 0.55);
  border: 1px solid rgba(217, 228, 255, 0.08);
}

.hero-stack .home {
  left: -2%;
  top: 20%;
  transform: rotate(-8deg);
  z-index: 1;
}

.hero-stack .lower {
  left: 24%;
  top: 2%;
  transform: rotate(1.8deg);
  z-index: 3;
}

.hero-stack .insights {
  right: -4%;
  bottom: 8%;
  transform: rotate(7deg);
  z-index: 2;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  align-items: center;
}

.feature-copy h2 {
  font-size: clamp(1.75rem, 4.8vw, 3.4rem);
}

.feature-copy p {
  margin-top: 0.9rem;
  font-size: 1.08rem;
  max-width: 50ch;
}

.block-dark .feature-copy p {
  color: var(--muted);
}

.feature-copy ul {
  margin: 1rem 0 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.48rem;
}

.composition {
  position: relative;
  min-height: clamp(24rem, 54vw, 41rem);
}

.composition .shot {
  width: min(20.4rem, 42vw);
}

.composition .base {
  left: 4%;
  top: 9%;
  transform: rotate(-5deg);
  z-index: 1;
}

.composition .overlay {
  right: 1%;
  top: 2%;
  transform: rotate(6deg);
  z-index: 2;
}

.insights-comp {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(23rem, 50vw, 40rem);
}

.insights-comp .insights-main {
  position: relative;
  width: min(22rem, 50vw);
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  transform: rotate(-2deg);
  z-index: 1;
}

.workout-comp .left {
  left: 0;
  top: 2%;
  transform: rotate(-4deg);
  z-index: 1;
}

.workout-comp .right {
  right: -1%;
  top: 9%;
  transform: rotate(4deg);
  z-index: 2;
}

.final-cta {
  text-align: center;
}

.final-cta h2 {
  font-size: clamp(1.95rem, 5vw, 3.5rem);
}

.final-cta p {
  margin-top: 0.8rem;
  color: var(--muted);
}

.support h2 {
  font-size: clamp(1.7rem, 4.6vw, 2.9rem);
}

.support p {
  margin-top: 0.8rem;
  font-size: 1.06rem;
}

.support a {
  color: #365fd1;
  font-weight: 700;
}

.hero,
.feature,
.final-cta,
.support {
  animation: rise 620ms ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .hero,
  .feature {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-stack,
  .composition {
    min-height: 36rem;
    height: 36rem;
  }

  .hero-stack .home {
    left: 0;
  }

  .hero-stack .lower {
    left: 28%;
  }

  .hero-stack .insights {
    right: 0;
  }
}

@media (max-width: 720px) {
  .topbar {
    margin-top: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
  }

  .header-support {
    width: 100%;
    text-align: center;
  }

  .store-row .store-btn {
    width: 100%;
  }

  .hero-stack,
  .composition {
    min-height: 31rem;
    height: 31rem;
  }

  .shot,
  .composition .shot {
    width: min(14rem, 48vw);
    border-radius: 1.6rem;
  }

  .hero-stack .lower {
    left: 24%;
  }

  .block-dark,
  .block-light {
    border-radius: 1.5rem;
    padding: 1.4rem;
  }
}
