:root {
  color-scheme: dark;
  --ink: #f7f8fb;
  --muted: #9ca5b5;
  --blue: #76bfff;
  --electric: #3c8dff;
  --gold: #f5d76e;
  --night: #05070d;
  --panel: rgba(15, 20, 31, 0.78);
  --line: rgba(255, 255, 255, 0.13);
  --soft-line: rgba(255, 255, 255, 0.08);
  --shadow: 0 36px 90px rgba(0, 0, 0, 0.55);
  --display: "SF Pro Display", "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
  background: var(--night);
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  font-family: var(--body);
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 8%, rgba(48, 105, 179, 0.22), transparent 27rem),
    radial-gradient(circle at 10% 46%, rgba(89, 56, 145, 0.12), transparent 34rem),
    linear-gradient(180deg, #060911 0%, #05070d 50%, #07090e 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.8) 0 1px, transparent 1.2px),
    radial-gradient(circle, rgba(118,191,255,.75) 0 1px, transparent 1.4px);
  background-position: 0 0, 37px 41px;
  background-size: 83px 83px, 131px 131px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

a { color: inherit; }
img { max-width: 100%; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: #05070d;
  background: white;
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-shell {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  position: relative;
}

.topbar {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 96px;
  border-bottom: 1px solid var(--soft-line);
}

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

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  box-shadow: 0 0 26px rgba(60, 141, 255, 0.22);
}

.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.brand-name b { color: var(--blue); }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  position: relative;
  color: #c7ced9;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.nav .nav-play {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border: 1px solid rgba(118,191,255,.28);
  border-radius: 999px;
  color: #07111e;
  background: linear-gradient(135deg, #fff, #b9dcff);
}

.nav .nav-play::after { display: none; }

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 1px;
  background: var(--blue);
  transition: right .25s ease;
}

.nav a:hover::after,
.nav a:focus-visible::after { right: 0; }

.hero {
  position: relative;
  overflow: clip;
  min-height: min(860px, calc(100vh - 96px));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
  padding: 72px 0 100px;
}

.hero::after {
  content: "";
  position: absolute;
  width: 46vw;
  height: 46vw;
  right: -23vw;
  top: -20vw;
  border: 1px solid rgba(118, 191, 255, 0.08);
  border-radius: 50%;
  box-shadow: inset 0 0 120px rgba(50, 111, 187, 0.06);
}

.eyebrow,
.section-kicker {
  margin: 0 0 24px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow span {
  width: 24px;
  height: 1px;
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue);
}

.hero-copy h1,
.section h2,
.final-cta h2,
.page h1 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: -.065em;
}

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(66px, 8.4vw, 120px);
  line-height: .84;
}

.hero-copy h1 em,
.final-cta h2 em {
  font-style: normal;
  font-weight: 500;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.68);
}

.hero-lede {
  max-width: 630px;
  margin: 34px 0 0;
  color: #aeb7c6;
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.65;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 14px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #d9e0ea;
  background: rgba(255,255,255,.045);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.button:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.34); }

.button.primary {
  color: #06101f;
  border-color: transparent;
  background: linear-gradient(135deg, #fff 0%, #bddfff 100%);
  box-shadow: 0 14px 40px rgba(70, 150, 230, .18);
}

.button.primary:hover { background: white; box-shadow: 0 18px 50px rgba(70, 150, 230, .28); }

.trust-row {
  display: flex;
  gap: 0;
  margin-top: 52px;
}

.trust-row div {
  display: grid;
  gap: 4px;
  min-width: 130px;
  padding-right: 28px;
  margin-right: 28px;
  border-right: 1px solid var(--line);
}

.trust-row div:last-child { border: 0; margin: 0; padding: 0; }
.trust-row strong { font-size: 14px; }
.trust-row span { color: var(--muted); font-size: 11px; }

.hero-visual {
  position: relative;
  min-height: 670px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  z-index: -2;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(69, 134, 216, .24), rgba(15, 29, 52, .08) 48%, transparent 70%);
  filter: blur(6px);
}

.orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(132, 187, 242, .16);
  border-radius: 50%;
  transform: rotate(-28deg);
}

.orbit::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  top: 11%;
  left: 20%;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 18px 5px rgba(90, 173, 255, .6);
}

.orbit-one { width: 560px; height: 350px; }
.orbit-two { width: 680px; height: 430px; opacity: .55; transform: rotate(34deg); }

.phone {
  position: relative;
  overflow: hidden;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 42px;
  background: linear-gradient(145deg, #6e7784, #11151c 16%, #05070a 74%, #4a525d);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.1);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 35px;
}

.phone-speaker {
  position: absolute;
  z-index: 2;
  top: 15px;
  left: 50%;
  width: 82px;
  height: 22px;
  border-radius: 999px;
  background: #020306;
  transform: translateX(-50%);
}

.phone-hero {
  width: min(100%, 330px);
  transform: perspective(1200px) rotateY(-8deg) rotateX(2deg);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: perspective(1200px) rotateY(-8deg) rotateX(2deg) translateY(0); }
  50% { transform: perspective(1200px) rotateY(-8deg) rotateX(2deg) translateY(-12px); }
}

.floating-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background: rgba(12, 17, 27, .8);
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  backdrop-filter: blur(16px);
}

.daily-card { top: 30%; left: -2%; }
.streak-card { right: -1%; bottom: 25%; }
.floating-card small { display: block; margin-bottom: 3px; color: var(--muted); font-size: 8px; letter-spacing: .14em; }
.floating-card strong { font-family: var(--display); font-size: 13px; }
.mini-icon { color: var(--gold); font-size: 22px; }
.streak-card > strong { color: var(--gold); font-size: 26px; }
.streak-card span { color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .12em; line-height: 1.35; }

.signal-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
  color: #717b8a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  white-space: nowrap;
}

.signal-strip i { color: var(--gold); font-style: normal; }

.section { padding: 140px 0; }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, .5fr);
  gap: 70px;
  align-items: end;
  margin-bottom: 60px;
}

.section h2,
.final-cta h2 { font-size: clamp(50px, 6.7vw, 88px); line-height: .96; }
.section-heading > p,
.experience-copy > p,
.achievement-copy > p,
.final-cta > p:not(.section-kicker) { color: var(--muted); font-size: 17px; line-height: 1.65; }

.mission-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.mission-card {
  position: relative;
  isolation: isolate;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background-position: center;
  background-size: cover;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  transition: transform .35s ease, border-color .35s ease;
}

.mission-card:hover { transform: translateY(-7px); border-color: rgba(255,255,255,.36); }
.mission-card::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(to bottom, rgba(4,7,13,.16), rgba(4,7,13,.42) 48%, #080b12 96%); }
.mission-card::after { content: ""; position: absolute; z-index: -1; inset: 0; box-shadow: inset 0 0 70px rgba(0,0,0,.34); }
.mission-card.stargazer { background-image: url("assets/bg-stargazer.png"); }
.mission-card.moonwalk { background-image: url("assets/bg-moonwalk.png"); }
.mission-card.deep-space { background-image: url("assets/bg-deep-space.png"); }
.mission-card.black-hole { background-image: url("assets/bg-black-hole.png"); }
.mission-number { align-self: flex-end; color: rgba(255,255,255,.48); font-family: var(--display); font-size: 12px; letter-spacing: .12em; }
.mission-content span { color: var(--gold); font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.mission-content h3 { margin: 9px 0 7px; font-family: var(--display); font-size: 28px; letter-spacing: -.04em; }
.mission-content p { margin: 0; color: #a9b1bd; font-size: 13px; line-height: 1.5; }

.experience-section {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(440px, 1.14fr);
  gap: clamp(50px, 8vw, 120px);
  align-items: center;
}

.experience-copy > p { max-width: 580px; margin: 28px 0 0; }

.feature-list { margin-top: 44px; border-top: 1px solid var(--line); }
.feature-list article { display: grid; grid-template-columns: 34px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.feature-list article > span { color: var(--blue); font-size: 10px; font-weight: 700; }
.feature-list h3 { margin: 0 0 5px; font-family: var(--display); font-size: 17px; }
.feature-list p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

.phone-gallery {
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  background: radial-gradient(circle at center, rgba(48, 109, 184, .18), transparent 62%);
}

.phone-gallery .phone { width: min(47%, 300px); }
.phone-game { z-index: 2; transform: rotate(-4deg) translateX(24px); }
.phone-record { z-index: 1; transform: rotate(5deg) translateX(-24px) translateY(28px); }

.achievement-section {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(450px, 1.28fr);
  gap: 80px;
  align-items: center;
  border-top: 1px solid var(--soft-line);
}

.achievement-copy > p { max-width: 520px; margin-top: 28px; }

.badge-orbit {
  position: relative;
  min-height: 420px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  padding: 20px;
}

.badge-orbit::before {
  content: "";
  position: absolute;
  inset: 15% 0;
  border: 1px solid rgba(118, 191, 255, .14);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.badge-orbit img {
  position: relative;
  width: 145px;
  filter: drop-shadow(0 20px 24px rgba(0,0,0,.48));
  transition: transform .3s ease, filter .3s ease;
}

.badge-orbit img:hover { z-index: 5; transform: translateY(-10px) scale(1.05); filter: drop-shadow(0 24px 34px rgba(34,107,196,.38)); }
.badge-orbit img:nth-child(1) { grid-column: 1 / span 2; transform: translateY(60px); }
.badge-orbit img:nth-child(2) { grid-column: 2 / span 2; transform: translateY(-80px); }
.badge-orbit img:nth-child(3) { grid-column: 3 / span 2; transform: translateY(55px); }
.badge-orbit img:nth-child(4) { grid-column: 4 / span 2; transform: translateY(-70px); }
.badge-orbit img:nth-child(5) { grid-column: 5 / span 2; transform: translateY(55px); }

.final-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 150px 24px 170px;
  border-top: 1px solid var(--soft-line);
}

.final-cta::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: linear-gradient(rgba(5,7,13,.58), #05070d 90%), url("assets/bg-orbit.png") center 30% / cover;
  opacity: .7;
}

.planet-glow { position: absolute; z-index: -1; width: 700px; height: 250px; bottom: -190px; border-radius: 50%; background: white; box-shadow: 0 -20px 90px 34px rgba(90, 163, 242, .44); }
.final-cta > p:not(.section-kicker) { max-width: 590px; margin: 28px auto 32px; }

.footer {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 32px;
  padding: 34px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.footer p { margin: 0; }
.footer nav { display: flex; gap: 20px; }
.footer a { text-decoration: none; }
.footer a:hover { color: white; }
.footer-brand .brand-name { color: var(--ink); font-size: 16px; }
.footer-brand img { width: 34px; height: 34px; }

/* Support and privacy pages */
.page { min-height: calc(100vh - 180px); padding: 80px 0 120px; }
.page h1 { margin-bottom: 44px; font-size: clamp(52px, 7vw, 86px); }
.page-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 1000px; }
.panel { padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: 0 18px 50px rgba(0,0,0,.2); backdrop-filter: blur(18px); }
.panel h2 { margin: 0 0 12px; font-family: var(--display); font-size: 22px; letter-spacing: -.03em; }
.panel p, .panel li { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.panel a { color: var(--blue); }

@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr) 350px; gap: 40px; }
  .hero-copy h1 { font-size: clamp(62px, 9vw, 92px); }
  .hero-visual { min-height: 580px; }
  .phone-hero { width: 280px; }
  .orbit-one { width: 450px; height: 290px; }
  .orbit-two { width: 520px; height: 350px; }
  .daily-card { left: -5%; }
  .mission-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mission-card { min-height: 480px; }
  .experience-section, .achievement-section { grid-template-columns: 1fr; }
  .experience-copy { max-width: 720px; }
  .achievement-copy { max-width: 680px; }
  .footer { grid-template-columns: 1fr auto auto; }
  .footer p { display: none; }
}

@media (max-width: 760px) {
  .site-shell { width: min(100% - 28px, 620px); }
  .topbar { min-height: 78px; }
  .brand img { width: 36px; height: 36px; }
  .brand-name { font-size: 17px; }
  .nav { gap: 15px; }
  .nav a { font-size: 12px; }
  .nav a:nth-child(1),
  .nav a:nth-child(2) { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 30px; padding: 76px 0 90px; }
  .hero-copy { text-align: center; }
  .eyebrow { justify-content: center; }
  .hero-copy h1 { font-size: clamp(58px, 18vw, 86px); }
  .hero-lede { margin-left: auto; margin-right: auto; font-size: 16px; }
  .cta-row, .trust-row { justify-content: center; }
  .trust-row div { min-width: 0; padding-right: 14px; margin-right: 14px; }
  .trust-row span { display: none; }
  .hero-visual { min-height: 590px; overflow: hidden; }
  .phone-hero { width: 270px; }
  .orbit-one { width: 390px; height: 250px; }
  .orbit-two { width: 470px; height: 310px; }
  .daily-card { left: 0; top: 30%; }
  .streak-card { right: 0; }
  .signal-strip { overflow: hidden; justify-content: center; }
  .signal-strip span:nth-of-type(even), .signal-strip i:nth-of-type(even) { display: none; }
  .section { padding: 100px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; }
  .section h2, .final-cta h2 { font-size: clamp(46px, 13vw, 70px); }
  .mission-grid { grid-template-columns: 1fr 1fr; }
  .mission-card { min-height: 370px; padding: 18px; }
  .experience-section { gap: 50px; }
  .phone-gallery { min-height: 560px; }
  .phone-gallery .phone { width: min(49%, 260px); }
  .phone-game { transform: rotate(-3deg) translateX(13px); }
  .phone-record { transform: rotate(4deg) translateX(-13px) translateY(22px); }
  .badge-orbit { min-height: 340px; padding: 0; }
  .badge-orbit img { width: 120px; }
  .badge-orbit img:nth-child(1) { transform: translateY(45px); }
  .badge-orbit img:nth-child(2) { transform: translateY(-60px); }
  .badge-orbit img:nth-child(3) { transform: translateY(42px); }
  .badge-orbit img:nth-child(4) { transform: translateY(-52px); }
  .badge-orbit img:nth-child(5) { transform: translateY(40px); }
  .final-cta { padding: 110px 10px 140px; }
  .footer { grid-template-columns: 1fr auto; gap: 20px; }
  .footer small { grid-column: 1 / -1; }
  .page-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .site-shell { width: calc(100% - 22px); }
  .nav a:nth-child(3) { display: none; }
  .nav .nav-play { min-height: 36px; padding: 8px 13px; }
  .button { width: 100%; }
  .trust-row { margin-top: 36px; }
  .hero-visual { min-height: 540px; }
  .phone-hero { width: 245px; }
  .floating-card { padding: 10px 12px; }
  .daily-card { left: -4px; }
  .streak-card { right: -4px; }
  .mission-grid { grid-template-columns: 1fr; }
  .mission-card { min-height: 480px; }
  .phone-gallery { min-height: 490px; }
  .phone-gallery .phone { width: 52%; }
  .badge-orbit { min-height: 300px; margin: 0 -10px; }
  .badge-orbit img { width: 95px; }
  .footer nav { gap: 12px; }
}

@media (max-width: 390px) {
  .site-shell { width: calc(100% - 18px); }
  .topbar { gap: 10px; }
  .brand { gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  .brand-name { font-size: 15px; }
  .hero { padding-top: 58px; }
  .hero-copy h1 { font-size: clamp(52px, 17vw, 68px); }
  .trust-row div { font-size: 12px; }
  .hero-visual { min-height: 500px; }
  .phone-hero { width: 230px; }
  .daily-card { display: none; }
  .streak-card { bottom: 18%; }
}

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