:root {
  color-scheme: dark;
  --background: #050505;
  --surface: #11110f;
  --text: #f7f4eb;
  --muted: #aaa7a0;
  --gold: #f1c94b;
  --line: rgba(247, 244, 235, 0.14);
  --wide: 1180px;
  --content: 760px;
}

* { box-sizing: border-box; }
html { background: var(--background); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--background);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  line-height: 1.55;
}
body::selection { color: #050505; background: var(--gold); }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; }
button, input { font: inherit; }

.wide-shell, .content-shell, .shell {
  width: min(calc(100% - 40px), var(--wide));
  margin-inline: auto;
}
.content-shell, .document, .shell { max-width: var(--content); }

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(rgba(5, 5, 5, 0.8), rgba(5, 5, 5, 0.18));
  backdrop-filter: blur(16px);
}
.header-inner, header:not(.site-header) {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 19px;
  font-weight: 750;
  text-decoration: none;
}
.brand img { border: 1px solid rgba(241, 201, 75, 0.26); border-radius: 8px; }
nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: rgba(247, 244, 235, 0.76);
  font-size: 14px;
}
nav a, .footer-links a { text-decoration: none; }
nav a:hover, .footer-links a:hover { color: var(--gold); }
.header-cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 17px;
  border: 1px solid rgba(247, 244, 235, 0.32);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.48);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(860px, 92svh);
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.hero-galaxy, .hero-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-galaxy {
  object-fit: cover;
  object-position: center 44%;
  filter: brightness(0.82) saturate(0.94);
  transform: scale(1.02);
}
.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.97) 0%, rgba(5, 5, 5, 0.74) 40%, rgba(5, 5, 5, 0.22) 72%, rgba(5, 5, 5, 0.38) 100%),
    linear-gradient(0deg, #050505 0%, transparent 24%, rgba(5, 5, 5, 0.42) 100%);
}
.hero-content { padding-top: 150px; padding-bottom: 112px; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1, h2, h3, p { letter-spacing: 0; }
h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(48px, 7.4vw, 92px);
  line-height: 0.98;
}
h2 { margin: 0; font-size: clamp(38px, 5vw, 64px); line-height: 1.04; }
h3 { font-size: 20px; line-height: 1.2; }
.hero-copy {
  max-width: 600px;
  margin: 24px 0 0;
  color: rgba(247, 244, 235, 0.78);
  font-size: clamp(18px, 2vw, 22px);
}
.waitlist-form {
  width: min(100%, 570px);
  margin-top: 32px;
}
.waitlist-form .formkit-fields {
  display: flex;
  gap: 10px;
  padding: 7px;
  border: 1px solid rgba(247, 244, 235, 0.24);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.76);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(14px);
}
.waitlist-form .formkit-field {
  display: flex;
  min-width: 0;
  flex: 1;
}
.waitlist-form input {
  min-width: 0;
  flex: 1;
  padding: 0 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}
.waitlist-form input::placeholder { color: #85827b; }
.waitlist-form button, .button {
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: #050505;
  font-weight: 760;
  cursor: pointer;
}
.waitlist-form button:hover, .button:hover { background: var(--gold); }
.waitlist-form button:focus-visible,
.button:focus-visible,
.header-cta:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.waitlist-form button[data-active] { color: transparent; cursor: wait; }
.waitlist-form .formkit-alert {
  margin: 0 0 8px;
  padding: 0;
  color: #f3a5a0;
  font-size: 12px;
  list-style: none;
}
.formkit-powered-by-convertkit-container { margin: 8px 0 0 15px; }
.formkit-powered-by-convertkit {
  color: #77746d;
  font-size: 10px;
  text-decoration: none;
}
.formkit-powered-by-convertkit:hover { color: #aaa69d; }
.form-note { margin: 6px 0 0; color: #8f8c84; font-size: 12px; }
.scroll-cue {
  position: absolute;
  right: 28px;
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(247, 244, 235, 0.62);
  font-size: 12px;
  text-decoration: none;
  text-transform: uppercase;
}

.story-section, .principles, .faq-section, .final-cta { padding: 128px 0; }
.story-section, .faq-section { background: #080808; }
.section-intro {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  margin: 72px 0 0;
  padding: 0;
  list-style: none;
}
.steps li { padding-top: 22px; border-top: 1px solid var(--line); }
.step-number {
  color: var(--gold);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
}
.steps h3 { margin: 36px 0 10px; }
.steps p, .principle-grid p, .feature-copy p, .final-cta > div > p, footer p { color: var(--muted); }

.feature {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(247, 244, 235, 0.08);
  background: #050505;
}
.feature:nth-of-type(even) { background: #090908; }
.feature-layout {
  display: grid;
  min-height: 820px;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 0.7fr);
  align-items: center;
  gap: clamp(50px, 9vw, 140px);
  padding: 100px 0;
}
.feature-layout.reverse { grid-template-columns: minmax(360px, 0.7fr) minmax(0, 0.82fr); }
.feature-layout.reverse .feature-copy { order: 2; }
.feature-copy p:not(.eyebrow) {
  max-width: 540px;
  margin: 24px 0 0;
  font-size: 19px;
}
.feature-copy .feature-detail { color: var(--text); font-size: 15px; font-weight: 700; }
.phone-stage {
  position: relative;
  width: min(100%, 390px);
  justify-self: center;
  aspect-ratio: 1206 / 2622;
  border: 7px solid #24242a;
  border-radius: 48px;
  background: #000;
  box-shadow: 0 38px 100px rgba(0, 0, 0, 0.55), 0 0 70px rgba(241, 201, 75, 0.06);
  overflow: hidden;
}
.phone-stage::before {
  position: absolute;
  z-index: 2;
  top: 11px;
  left: 50%;
  width: 31%;
  height: 3.1%;
  border-radius: 999px;
  background: #050505;
  transform: translateX(-50%);
  content: "";
}
.phone-stage img { width: 100%; height: 100%; object-fit: cover; }
.feature-galaxy::after {
  position: absolute;
  z-index: 0;
  right: -20%;
  bottom: -40%;
  width: 80%;
  aspect-ratio: 1;
  border: 1px solid rgba(241, 201, 75, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(241, 201, 75, 0.025), 0 0 0 180px rgba(241, 201, 75, 0.018);
  content: "";
}
.feature-layout > * { position: relative; z-index: 1; }

.principles { border-top: 1px solid var(--line); }
.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 64px;
}
.principle-grid article { padding: 22px 0; border-top: 1px solid var(--line); }
.principle-grid h3 { margin: 0 0 9px; }
.principle-grid p { margin: 0; font-size: 15px; }

.faq-list { margin-top: 54px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary {
  position: relative;
  padding: 24px 42px 24px 0;
  font-size: 18px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { position: absolute; top: 23px; right: 0; color: var(--gold); content: "+"; }
details[open] summary::after { content: "−"; }
details p { max-width: 650px; margin: -4px 0 24px; color: var(--muted); }

.final-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: #0b0a07;
}
.final-cta::before {
  position: absolute;
  top: 44%;
  left: 50%;
  width: 500px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(241, 201, 75, 0.08);
  box-shadow: 0 0 120px 80px rgba(241, 201, 75, 0.055);
  transform: translate(-50%, -50%);
  content: "";
  filter: blur(30px);
}
.final-cta .content-shell { position: relative; }
.final-cta > div > p:not(.eyebrow) { margin: 20px auto 0; font-size: 18px; }
.waitlist-form.centered { margin-inline: auto; }

footer { padding: 64px 0 42px; border-top: 1px solid var(--line); }
.footer-layout { display: grid; grid-template-columns: 1fr auto; gap: 36px; }
footer p { max-width: 360px; margin: 18px 0 0; font-size: 14px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-end;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}
.copyright { grid-column: 1 / -1; padding-top: 34px; border-top: 1px solid var(--line); }

.document { padding: 72px 0 110px; }
.document h1 { margin: 0 0 12px; font-size: clamp(42px, 7vw, 62px); line-height: 1.02; }
.updated { margin: 0 0 52px; color: var(--muted); }
.document h2 { margin: 48px 0 12px; font-size: 24px; line-height: 1.2; }
.document p, .document li { color: #cfccc4; }
.document ul { padding-left: 22px; }
.document .button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.actions { margin-top: 28px; }

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

@media (max-width: 820px) {
  nav { display: none; }
  .site-header {
    position: fixed;
    border-bottom-color: rgba(255, 255, 255, 0.06);
    background: rgba(5, 5, 5, 0.82);
  }
  .hero {
    min-height: 94svh;
    align-items: start;
  }
  .hero-galaxy {
    object-position: 50% 48%;
    filter: brightness(0.9) saturate(0.96);
    transform: scale(1.01);
  }
  .hero-shade {
    background:
      linear-gradient(180deg, #050505 5%, rgba(5, 5, 5, 0.96) 28%, rgba(5, 5, 5, 0.5) 58%, rgba(5, 5, 5, 0.9) 100%),
      linear-gradient(90deg, rgba(5, 5, 5, 0.28), transparent 50%, rgba(5, 5, 5, 0.2));
  }
  .hero-content {
    align-self: start;
    padding-top: 132px;
    padding-bottom: 96px;
  }
  .scroll-cue { display: none; }
  .steps, .principle-grid { grid-template-columns: 1fr; }
  .steps { gap: 0; margin-top: 52px; }
  .steps li {
    display: grid;
    grid-template-columns: 42px 1fr;
    column-gap: 12px;
    padding: 22px 0;
  }
  .steps li:last-child { border-bottom: 1px solid var(--line); }
  .steps .step-number { grid-row: 1 / 3; padding-top: 4px; }
  .steps h3 { margin: 0 0 7px; }
  .steps p { margin: 0; }
  .feature-layout, .feature-layout.reverse {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 80px 0 0;
  }
  .feature-layout.reverse .feature-copy { order: initial; }
  .phone-stage {
    width: 100%;
    height: min(128vw, 590px);
    aspect-ratio: auto;
    border-width: 1px 0 0;
    border-color: rgba(247, 244, 235, 0.13);
    border-radius: 0;
    box-shadow: none;
  }
  .phone-stage::before { display: none; }
  .phone-stage img { object-fit: cover; }
  .phone-stage-galaxy img { object-position: 50% 54%; }
  .phone-stage-habits img { object-position: 50% 17%; }
  .phone-stage-reveal img { object-position: 50% 47%; }
  .phone-stage-mission img { object-position: 50% 19%; }
  .phone-stage-reveal, .phone-stage-mission {
    width: min(100%, 430px);
    height: auto;
    aspect-ratio: 1206 / 2622;
  }
  .feature-galaxy::after { display: none; }
}

@media (max-width: 560px) {
  .wide-shell, .content-shell, .shell { width: min(calc(100% - 32px), var(--wide)); }
  .header-inner, header:not(.site-header) { min-height: 68px; }
  .brand { gap: 9px; font-size: 17px; }
  .brand img { width: 31px; height: 31px; }
  .header-cta { min-height: 40px; padding-inline: 14px; font-size: 13px; }
  .hero { min-height: 90svh; }
  .hero-content { padding-top: 112px; padding-bottom: 64px; }
  h1 { font-size: 44px; line-height: 0.98; }
  h2 { font-size: 36px; line-height: 1.05; }
  .eyebrow { margin-bottom: 11px; font-size: 12px; }
  .hero-copy { max-width: 345px; margin-top: 18px; font-size: 17px; line-height: 1.48; }
  .waitlist-form { margin-top: 24px; }
  .waitlist-form .formkit-fields { flex-direction: column; border-radius: 8px; background: rgba(5, 5, 5, 0.84); }
  .waitlist-form input { min-height: 48px; }
  .waitlist-form button { width: 100%; min-height: 52px; border-radius: 6px; }
  .formkit-powered-by-convertkit-container { margin-left: 8px; }
  .form-note { max-width: 330px; margin-top: 8px; line-height: 1.45; }
  .story-section, .principles, .faq-section, .final-cta { padding: 80px 0; }
  .story-section { padding-top: 44px; }
  .section-intro, .feature-copy p:not(.eyebrow), .final-cta > div > p:not(.eyebrow) {
    margin-top: 18px;
    font-size: 17px;
  }
  .feature-layout, .feature-layout.reverse { padding-top: 72px; }
  .feature-copy .feature-detail { font-size: 14px; line-height: 1.5; }
  .phone-stage {
    width: calc(100% + 32px);
    height: min(135vw, 540px);
    margin-inline: -16px;
  }
  .phone-stage-reveal, .phone-stage-mission {
    width: calc(100% + 32px);
    height: auto;
  }
  .principle-grid { gap: 0; margin-top: 44px; }
  .principle-grid article { padding: 20px 0; }
  .principle-grid article:last-child { border-bottom: 1px solid var(--line); }
  .faq-list { margin-top: 38px; }
  summary { padding-block: 21px; font-size: 16px; }
  summary::after { top: 20px; }
  .final-cta { text-align: left; }
  .waitlist-form.centered { margin-inline: 0; }
  footer { padding: 52px 0 34px; }
  .footer-layout { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 560px) and (max-height: 720px) {
  .hero-content { padding-top: 96px; padding-bottom: 32px; }
  h1 { font-size: 40px; }
  .hero-copy { margin-top: 14px; font-size: 16px; }
  .waitlist-form { margin-top: 18px; }
  .form-note { font-size: 11px; }
}

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