/* Orbit Screw: Bolt Puzzle — hero, features, download band, about, sticky bar, motion.
   Graphic language: concentric orbit rings and dotted trajectories. Mobile-first. */

.section {
  padding: 56px 0;
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.section__title { margin-bottom: 10px; }

.section__lede {
  font-size: 17px;
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 28px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 44px 0 56px;
  scroll-margin-top: var(--header-h);
}

/* Concentric orbit rings sitting behind the centred column. */
.hero__rings {
  position: absolute;
  top: -120px;
  left: 50%;
  width: 760px;
  height: 760px;
  transform: translateX(-50%);
  pointer-events: none;
  background:
    repeating-radial-gradient(circle at 50% 50%,
      rgba(109, 74, 200, 0.14) 0 1px,
      transparent 1px 58px);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 0%, rgba(0, 0, 0, 0.55) 55%, transparent 76%);
  mask-image: radial-gradient(circle at 50% 45%, #000 0%, rgba(0, 0, 0, 0.55) 55%, transparent 76%);
}

/* Dotted trajectory arc crossing the rings. */
.hero__rings::after {
  content: "";
  position: absolute;
  inset: 118px;
  border: 1px dashed rgba(23, 124, 122, 0.42);
  border-radius: 50%;
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  border: 1px solid var(--hairline);
  box-shadow: 0 16px 36px rgba(27, 32, 48, 0.18);
  margin-bottom: 20px;
}

.hero__title { margin-bottom: 14px; }

.hero__lede {
  font-size: 17px;
  color: var(--body);
  max-width: 44ch;
  margin-bottom: 26px;
}

.hero .store-row { width: 100%; max-width: 420px; }

.hero__note {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 32px;
}

.hero__art {
  margin: 0;
  width: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--surface);
  box-shadow: 0 22px 48px rgba(27, 32, 48, 0.16);
}

.hero__art img { width: 100%; }

/* ---------- Features ---------- */

.features { background: var(--surface); border-block: 1px solid var(--hairline); }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.feature-card {
  position: relative;
  padding: 24px 22px 6px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: var(--bone);
  transition: border-color 0.3s var(--ease-turn), box-shadow 0.3s var(--ease-turn), transform 0.3s var(--ease-turn);
}

.feature-card p { color: var(--body); font-size: 16px; }

.feature-card:hover {
  border-color: rgba(109, 74, 200, 0.42);
  box-shadow: 0 16px 34px rgba(27, 32, 48, 0.09);
  transform: translateY(-3px);
}

.feature-card:active { transform: translateY(0); border-color: rgba(109, 74, 200, 0.42); }

/* Bolt-head glyph: ring plus slot, turning like a screw on hover. */
.bolt-mark {
  position: relative;
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 50%;
  border: 2px solid var(--lilac);
  background: rgba(109, 74, 200, 0.09);
}

.bolt-mark::before,
.bolt-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--lilac-deep);
  transition: transform 0.55s var(--ease-turn);
}

.bolt-mark::before { width: 20px; height: 3px; border-radius: 2px; }
.bolt-mark::after { width: 3px; height: 20px; border-radius: 2px; }

.feature-card:hover .bolt-mark::before { transform: rotate(45deg); }
.feature-card:hover .bolt-mark::after { transform: rotate(45deg); }

/* ---------- Download band ---------- */

.download {
  background:
    radial-gradient(circle at 50% 0%, rgba(109, 74, 200, 0.38) 0%, transparent 62%),
    var(--night);
  color: var(--on-night-muted);
  padding: 64px 0;
}

.download__inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.download__title { color: var(--on-night); margin-bottom: 12px; }

.download__lede {
  font-size: 17px;
  color: var(--on-night-muted);
  max-width: 46ch;
  margin-bottom: 28px;
}

.download .store-row { width: 100%; max-width: 420px; margin-bottom: 0; }
.store-row--onDark .store-btn--live { box-shadow: 0 12px 30px rgba(5, 6, 14, 0.5); }

/* ---------- About ---------- */

.about__inner { max-width: 66ch; }
.about__body p { font-size: 17px; }
.about__body a { color: var(--lilac-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.about__body a:hover { color: var(--teal); }

/* ---------- Mobile sticky download bar ---------- */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(246, 244, 241, 0.96);
  border-top: 1px solid var(--hairline);
  backdrop-filter: blur(10px);
}

.sticky-cta[hidden] { display: none; }

.sticky-cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  border-radius: var(--radius-pill);
  background: var(--lilac);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}

.sticky-cta__btn:active { background: var(--lilac-deep); }

/* ---------- Motion: slow rotation unscrew reveal ---------- */

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(20px) rotate(-2deg);
  transition: opacity 0.7s var(--ease-turn), transform 0.7s var(--ease-turn);
}

.motion-ready .feature-card.reveal,
.motion-ready .hero__art.reveal,
.motion-ready .hero__icon.reveal {
  transform: translateY(24px) rotate(-5deg);
  transform-origin: 50% 120%;
}

.motion-ready .reveal.is-visible { opacity: 1; transform: none; }

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

  .motion-ready .reveal,
  .motion-ready .feature-card.reveal,
  .motion-ready .hero__art.reveal,
  .motion-ready .hero__icon.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .bolt-mark::before,
  .bolt-mark::after,
  .store-btn__slot::after { transition: none; }
}

/* ---------- Desktop enhancement ---------- */

@media (min-width: 768px) {
  .section { padding: 80px 0; }
  .section__lede { font-size: 18px; margin-bottom: 40px; }

  .hero { padding: 72px 0 88px; }
  .hero__rings { width: 1040px; height: 1040px; top: -180px; }
  .hero__icon { width: 112px; height: 112px; margin-bottom: 24px; }
  .hero__lede { font-size: 19px; max-width: 52ch; }
  .hero .store-row,
  .download .store-row { max-width: none; justify-content: center; }
  .hero__art { max-width: 900px; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .feature-card { padding: 28px 26px 10px; }

  .download { padding: 96px 0; }
  .download__lede { font-size: 19px; }

  .about__body p { font-size: 18px; }

  .sticky-cta { display: none; }
}

@media (min-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .hero__lede { max-width: 46ch; }
}
