:root {
  --black: #08080a;
  --white: #f4f2ed;
  --muted: rgba(244, 242, 237, .58);
  --line: rgba(244, 242, 237, .14);
  --violet: #8368ff;
  --orange: #ff781f;
  --acid: #a9d900;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--black);
  color: var(--white);
  font-family: Inter, system-ui, sans-serif;
}
a { color: inherit; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 62px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.site-header.scrolled {
  background: rgba(8, 8, 10, .82);
  border-color: rgba(244, 242, 237, .08);
  backdrop-filter: blur(14px);
}
.wordmark {
  font-family: Orbitron, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-decoration: none;
}
.header-link {
  font: 500 10px/1 'IBM Plex Mono', monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 106px 24px 82px;
  isolation: isolate;
  background: radial-gradient(85% 72% at 50% 44%, #17121f 0%, #0e0d12 34%, var(--black) 72%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
}
.hero-phone {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  height: min(58svh, 600px);
  aspect-ratio: 415 / 843;
  margin-top: 38px;
  filter: drop-shadow(0 36px 70px rgba(0,0,0,.58));
}
.phone-frame {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-screen,
.story-screen {
  position: absolute;
  z-index: 6;
  top: .8%;
  left: 2.1%;
  width: 95.8%;
  height: 98.4%;
  overflow: hidden;
  border-radius: 13%;
  background: #000;
}
.hero-screen {
  display: flex;
  align-items: center;
  justify-content: center;
}
.field-sphere {
  display: block;
  width: 92%;
  aspect-ratio: 1;
}
.hero-copy {
  position: relative;
  z-index: 3;
  width: min(950px, 100%);
  text-align: center;
}
.hero h1 {
  margin: 0;
  font-size: clamp(3.2rem, 6.2vw, 6.5rem);
  line-height: .92;
  letter-spacing: -.065em;
  text-wrap: balance;
}
.hero-subtext {
  position: absolute;
  left: 32px;
  bottom: 28px;
  z-index: 4;
  width: min(430px, calc(100vw - 64px));
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.hero-link {
  position: absolute;
  right: 32px;
  bottom: 31px;
  z-index: 4;
  font: 500 10px/1 'IBM Plex Mono', monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-underline-offset: 6px;
}

.story {
  position: relative;
  min-height: 500svh;
  background: var(--black);
}
.story-stage {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 100svh;
  pointer-events: none;
}
.story-phone {
  position: absolute;
  right: clamp(6vw, 10vw, 150px);
  top: 50%;
  height: min(79vh, 760px);
  aspect-ratio: 415 / 843;
  transform: translateY(-50%);
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.54));
}
.story-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.015);
  filter: blur(8px);
  transition: opacity .48s ease, transform .48s ease, filter .48s ease;
}
.story-image.active {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}
.story-steps {
  position: relative;
  z-index: 2;
  width: 54%;
  margin-top: -100svh;
}
.story-step {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 110px 6vw;
  opacity: .16;
  filter: blur(6px);
  transform: translateY(20px);
  transition: opacity .45s ease, filter .45s ease, transform .45s ease;
}
.story-step.active {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}
.story-step > div { max-width: 690px; }
.story-step h2 {
  margin: 0;
  font-size: clamp(3.7rem, 6.3vw, 7.4rem);
  line-height: .92;
  letter-spacing: -.06em;
  text-wrap: balance;
}
.story-step p {
  max-width: 510px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.55;
}
.story-step .support-note {
  max-width: 430px;
  margin-top: 18px;
  font: 400 10px/1.55 'IBM Plex Mono', monospace;
  letter-spacing: .04em;
}

.faq,
.download {
  position: relative;
  z-index: 3;
  scroll-margin-top: 62px;
  padding: 110px clamp(24px, 7vw, 110px);
}
.faq {
  display: grid;
  grid-template-columns: minmax(250px, .78fr) minmax(460px, 1.22fr);
  gap: clamp(64px, 10vw, 170px);
  background: var(--white);
  color: var(--black);
}
.faq h2 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(3.2rem, 5.7vw, 6.8rem);
  line-height: .92;
  letter-spacing: -.064em;
  text-wrap: balance;
}
.faq-list {
  border-top: 1px solid rgba(8, 8, 10, .32);
}
.faq details {
  border-bottom: 1px solid rgba(8, 8, 10, .24);
}
.faq summary {
  position: relative;
  list-style: none;
  padding: 28px 54px 28px 0;
  cursor: pointer;
  font-size: clamp(1.05rem, 1.45vw, 1.3rem);
  font-weight: 500;
  line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 2px;
  top: 50%;
  translate: 0 -50%;
  font: 400 24px/1 'IBM Plex Mono', monospace;
}
.faq details[open] summary::after { content: '−'; }
.faq details p {
  max-width: 650px;
  margin: -5px 64px 29px 0;
  color: rgba(8, 8, 10, .64);
  font-size: .98rem;
  line-height: 1.62;
}

.download {
  min-height: 82svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--black);
}
.download h2 {
  width: min(940px, 100%);
  margin: 0;
  font-size: clamp(3.5rem, 7vw, 7.8rem);
  line-height: .92;
  letter-spacing: -.065em;
  text-wrap: balance;
}
.store-mark { margin-top: 44px; opacity: .9; }
.store-mark img { display: block; width: 180px; height: auto; }
.download p {
  margin: 26px 0 0;
  color: var(--muted);
  font: 400 10px/1.5 'IBM Plex Mono', monospace;
  letter-spacing: .04em;
}

footer {
  min-height: 74px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
footer .wordmark { margin-right: auto; color: var(--white); }
footer a {
  font: 400 10px/1 'IBM Plex Mono', monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-underline-offset: 4px;
}

.reveal {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(24px);
  transition: opacity .6s ease, filter .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

@media (max-width: 820px) {
  .site-header { padding: 0 20px; }
  .hero { min-height: 840px; padding: 96px 20px 116px; }
  .hero-phone { height: min(50svh, 480px); margin-top: 28px; }
  .hero h1 { font-size: clamp(3.2rem, 14vw, 5.2rem); }
  .hero-subtext { left: 20px; bottom: 60px; width: calc(100vw - 40px); font-size: 12px; }
  .hero-link { right: 20px; bottom: 27px; }

  .story-stage { height: 64svh; top: 58px; }
  .story-phone { left: 50%; right: auto; top: 46%; height: min(55svh, 520px); transform: translate(-50%, -50%); }
  .story-steps { width: 100%; margin-top: -64svh; }
  .story-step { min-height: 100svh; align-items: flex-end; padding: 68svh 20px 52px; opacity: 1; filter: none; transform: none; }
  .story-step > div { width: 100%; padding-top: 28px; background: linear-gradient(to bottom, transparent, var(--black) 18%); }
  .story-step h2 { font-size: clamp(3.1rem, 14vw, 5rem); }
  .story-step p { margin-top: 18px; font-size: .96rem; }

  .faq, .download { padding: 94px 20px; }
  .faq { grid-template-columns: 1fr; gap: 58px; }
  .faq h2, .download h2 { font-size: clamp(3.2rem, 14vw, 5.4rem); }
  .faq summary { padding-block: 23px; padding-right: 44px; }
  .faq details p { margin-right: 28px; }
  footer { padding: 22px 20px; flex-wrap: wrap; }
  footer .wordmark { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; filter: none; transform: none; }
}
