/* ==========================================================================
   Star Hunter Crew — site styles
   Clean rebuild of the Claude Design export. Palette, fonts, logo and the
   "Join the Crew" section preserved from the original.
   ========================================================================== */

@import url("../fonts/fonts.css");

:root {
  /* Palette (from the design export) */
  --navy-900: #050f20;
  --navy-800: #0a1729;
  --navy-700: #0c1d3c;
  --navy-card: #10213f;
  --navy-card-2: #142a4d;
  --border: rgba(143, 168, 204, 0.18);
  --border-strong: rgba(143, 168, 204, 0.30);

  --ink-100: #eaf3ff; /* headings / bright text */
  --ink-200: #bcd2ee; /* body text */
  --ink-300: #8fa8cc; /* muted text */

  --green: #8fe36b;
  --green-soft: #b6f097;
  --orange: #ff8a3c;
  --orange-deep: #f26419;

  --font-head: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, sans-serif;

  --radius: 18px;
  --radius-lg: 26px;
  --maxw: 1120px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.55);
}

/* --- Reset / base ------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-200);
  background: var(--navy-700);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  color: var(--ink-100);
  line-height: 1.1;
  margin: 0;
  font-weight: 600;
}

p {
  margin: 0;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Sky background layer ---------------------------------------------- */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 700px at 78% -6%, rgba(90, 200, 160, 0.16), transparent 60%),
    radial-gradient(900px 600px at 12% 8%, rgba(60, 110, 210, 0.14), transparent 62%),
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-700) 40%, var(--navy-900) 100%);
}

/* subtle star texture */
.sky::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.4px 1.4px at 20% 30%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1.2px 1.2px at 65% 15%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.6px 1.6px at 85% 42%, rgba(190, 210, 238, 0.9), transparent),
    radial-gradient(1px 1px at 42% 62%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.3px 1.3px at 12% 78%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.1px 1.1px at 73% 82%, rgba(190, 210, 238, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 33% 8%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 90% 70%, rgba(255, 255, 255, 0.6), transparent);
  background-repeat: no-repeat;
  opacity: 0.9;
}

/* --- Layout ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}

section {
  padding-block: 68px;
}

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--green);
  margin-bottom: 12px;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.72em 1.4em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  color: #2a1400;
  background: linear-gradient(180deg, var(--orange) 0%, var(--orange-deep) 100%);
  box-shadow: 0 10px 24px -10px rgba(242, 100, 25, 0.8);
}

.btn-primary:hover {
  box-shadow: 0 14px 28px -10px rgba(242, 100, 25, 0.9);
}

.btn-ghost {
  color: var(--ink-100);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
}

.btn-ghost .play {
  display: inline-grid;
  place-items: center;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  background: var(--green);
  color: var(--navy-800);
  font-size: 0.7em;
}

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
  background: rgba(8, 18, 34, 0.55);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--ink-100);
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.brand .accent {
  color: var(--green);
}

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

.nav a.navlink {
  color: var(--ink-200);
  font-weight: 700;
  font-size: 0.95rem;
}

.nav a.navlink:hover {
  color: var(--ink-100);
  text-decoration: none;
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  text-align: center;
  padding-top: 46px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--green-soft);
  background: rgba(143, 227, 107, 0.10);
  border: 1px solid rgba(143, 227, 107, 0.28);
  padding: 0.42em 0.95em;
  border-radius: 999px;
}

.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.hero-logo {
  width: 150px;
  height: 150px;
  margin: 26px auto 22px;
  filter: drop-shadow(0 12px 34px rgba(90, 200, 160, 0.28));
}

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4rem);
  letter-spacing: -0.01em;
}

.hero h1 .accent {
  color: var(--orange);
}

.hero .lead {
  max-width: 560px;
  margin: 20px auto 0;
  font-size: 1.12rem;
  color: var(--ink-200);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 30px;
}

.hero .micro {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--ink-300);
}

/* --- Cards / mission ---------------------------------------------------- */
.card {
  background: linear-gradient(180deg, var(--navy-card-2) 0%, var(--navy-card) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.mission-card {
  position: relative;
  padding: 30px 26px 28px;
}

.step-badge {
  position: absolute;
  top: -18px;
  left: 26px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 600;
  color: #2a1400;
  background: linear-gradient(180deg, var(--orange) 0%, var(--orange-deep) 100%);
  box-shadow: 0 8px 18px -8px rgba(242, 100, 25, 0.9);
}

.mission-card .icon {
  font-size: 1.7rem;
  margin: 6px 0 14px;
}

.mission-card h3 {
  font-size: 1.22rem;
  margin-bottom: 8px;
}

.mission-card p {
  color: var(--ink-300);
  font-size: 0.98rem;
}

/* --- Inside the app ----------------------------------------------------- */
.app-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  align-items: center;
}

.app-copy h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  margin-bottom: 14px;
}

.app-copy > p {
  color: var(--ink-200);
  margin-bottom: 22px;
}

.feature {
  display: flex;
  gap: 14px;
  padding: 16px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 12px;
}

.feature .fic {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(143, 227, 107, 0.10);
  border: 1px solid rgba(143, 227, 107, 0.22);
  font-size: 1.15rem;
}

.feature h3 {
  font-size: 1.02rem;
  margin-bottom: 3px;
}

.feature p {
  font-size: 0.92rem;
  color: var(--ink-300);
}

/* Phone mockup — styled to match the Star Hunter Crew app */
.phone {
  justify-self: center;
  width: 300px;
  aspect-ratio: 300 / 620;
  border-radius: 46px;
  padding: 11px;
  background: linear-gradient(180deg, #263c60, #0b1830);
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.75);
  position: relative;
}

.phone-screen {
  height: 100%;
  border-radius: 36px;
  background:
    radial-gradient(150px 110px at 72% 10%, rgba(90, 200, 160, 0.16), transparent),
    linear-gradient(180deg, #0d2044 0%, #0a1830 60%, #0a162c 100%);
  border: 1px solid rgba(143, 168, 204, 0.14);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.dynamic-island {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 21px;
  border-radius: 999px;
  background: #05070d;
  z-index: 6;
}

/* Status bar */
.statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px 4px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink-100);
  font-size: 0.72rem;
}
.statusbar .icons { display: flex; align-items: center; gap: 5px; }
.statusbar .bars {
  display: inline-block; width: 15px; height: 10px;
  background:
    linear-gradient(#eaf3ff, #eaf3ff) 0 100%/2px 40% no-repeat,
    linear-gradient(#eaf3ff, #eaf3ff) 4.5px 100%/2px 60% no-repeat,
    linear-gradient(#eaf3ff, #eaf3ff) 9px 100%/2px 80% no-repeat,
    linear-gradient(#eaf3ff, #eaf3ff) 13.5px 100%/2px 100% no-repeat;
}
.statusbar .batt {
  width: 18px; height: 10px; border: 1px solid var(--ink-200);
  border-radius: 3px; position: relative;
}
.statusbar .batt::before {
  content: ""; position: absolute; top: 1.5px; left: 1.5px; bottom: 1.5px;
  width: 70%; background: #eaf3ff; border-radius: 1px;
}
.statusbar .batt::after {
  content: ""; position: absolute; right: -3px; top: 3px;
  width: 2px; height: 4px; background: var(--ink-200); border-radius: 0 2px 2px 0;
}

/* Shared app bits */
.app-head { display: flex; align-items: center; justify-content: space-between; }
.app-head h4 {
  font-family: var(--font-head); font-weight: 600; color: var(--ink-100);
  font-size: 0.98rem; margin: 0;
}
.tag-live {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-body); font-weight: 800; font-size: 0.56rem; letter-spacing: 0.08em;
  color: #0b2a12; background: var(--green); padding: 3px 8px; border-radius: 999px;
}
.tag-live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #0b2a12; }
.app-sub { font-size: 0.62rem; color: var(--ink-300); margin-top: 3px; }

/* Sky map screen */
.starmap {
  flex: 1; margin-top: 8px; border-radius: 16px; position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #0e2247, #070f22);
  border: 1px solid rgba(143, 168, 204, 0.12);
}
.point-chip {
  position: absolute; top: 8px; right: 8px; font-size: 0.54rem; font-weight: 700;
  color: var(--ink-100); background: rgba(8, 18, 34, 0.8);
  border: 1px solid var(--border-strong); padding: 3px 7px; border-radius: 999px;
}
.orion-label { position: absolute; left: 10px; bottom: 8px; line-height: 1.25; }
.orion-label strong {
  display: block; font-family: var(--font-head); font-weight: 600;
  color: var(--green); font-size: 0.74rem;
}
.orion-label span { font-size: 0.55rem; color: var(--ink-300); }
.constellation .stars circle { fill: #eaf3ff; filter: drop-shadow(0 0 2px rgba(234, 243, 255, 0.85)); }
.constellation .line { stroke: #8fe36b; stroke-width: 1; fill: none; opacity: 0.4; }

.mission-strip {
  display: flex; align-items: center; gap: 9px; margin-top: 8px;
  padding: 9px 11px; border-radius: 13px;
  background: linear-gradient(180deg, rgba(255, 138, 60, 0.18), rgba(242, 100, 25, 0.10));
  border: 1px solid rgba(255, 138, 60, 0.4);
}
.mission-strip .ic {
  flex: none; width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 8px; background: linear-gradient(180deg, var(--orange), var(--orange-deep)); font-size: 0.8rem;
}
.mission-strip strong {
  display: block; font-family: var(--font-head); font-weight: 600; color: var(--ink-100); font-size: 0.72rem;
}
.mission-strip span { font-size: 0.57rem; color: var(--ink-200); }
.mission-strip .chev { margin-left: auto; color: var(--ink-300); font-size: 1rem; }

/* Star detail screen */
.back-row { font-size: 0.66rem; color: var(--ink-200); font-weight: 700; }
.star-hero { display: grid; place-items: center; margin: 4px 0 2px; }
.star-name {
  text-align: center; font-family: var(--font-head); font-weight: 600;
  color: var(--ink-100); font-size: 1.15rem;
}
.star-tagline { text-align: center; font-size: 0.6rem; color: var(--ink-300); margin-bottom: 8px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.stat { border-radius: 11px; padding: 8px 3px; text-align: center; border: 1px solid; }
.stat b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.72rem; }
.stat small { font-size: 0.46rem; letter-spacing: 0.05em; color: var(--ink-300); }
.stat.green { background: rgba(143, 227, 107, 0.10); border-color: rgba(143, 227, 107, 0.3); }
.stat.green b { color: var(--green); }
.stat.orange { background: rgba(255, 138, 60, 0.12); border-color: rgba(255, 138, 60, 0.35); }
.stat.orange b { color: var(--orange); font-size: 0.6rem; line-height: 1.05; }
.stat.blue { background: rgba(59, 111, 212, 0.14); border-color: rgba(90, 130, 220, 0.4); }
.stat.blue b { color: #9fc0ff; }
.story-card {
  margin-top: 8px; border-radius: 13px; padding: 9px 10px;
  background: rgba(143, 227, 107, 0.07); border: 1px solid rgba(143, 227, 107, 0.22);
}
.story-card .sc-head { display: flex; align-items: center; justify-content: space-between; }
.story-card .sc-head strong { font-family: var(--font-head); font-weight: 600; color: var(--green); font-size: 0.64rem; }
.story-card .listen {
  font-size: 0.52rem; font-weight: 700; color: #0b2a12; background: var(--green);
  padding: 2px 7px; border-radius: 999px;
}
.story-card p {
  font-size: 0.57rem; line-height: 1.45; color: var(--ink-200); margin: 5px 0 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.mark-btn {
  margin-top: 8px; text-align: center; font-family: var(--font-head); font-weight: 600;
  font-size: 0.72rem; color: #0b2a12; background: linear-gradient(180deg, #a6ee86, #8fe36b);
  padding: 9px; border-radius: 12px;
}

/* Bottom tab bar */
.tabbar { display: flex; border-top: 1px solid rgba(143, 168, 204, 0.14); padding: 6px 6px 9px; }
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 0.5rem; font-weight: 700; color: var(--ink-300);
}
.tab .ti { font-size: 0.92rem; opacity: 0.75; }
.tab.active { color: var(--green); }
.tab.active .ti { opacity: 1; }

/* Missions screen */
.ring {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--green) 144deg, rgba(143, 168, 204, 0.22) 0);
}
.ring span {
  width: 27px; height: 27px; border-radius: 50%; background: #0c1d3c; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 600; font-size: 0.56rem; color: var(--green);
}
.miss-list { display: flex; flex-direction: column; gap: 6px; margin-top: 9px; }
.miss-row {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 12px;
  border: 1px solid rgba(143, 168, 204, 0.14); background: rgba(255, 255, 255, 0.02);
}
.miss-row .mi {
  flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  font-size: 0.82rem; background: rgba(143, 168, 204, 0.12);
}
.miss-row div { flex: 1; }
.miss-row strong { display: block; font-family: var(--font-head); font-weight: 600; color: var(--ink-100); font-size: 0.7rem; }
.miss-row small { font-size: 0.55rem; color: var(--ink-300); }
.miss-row .chk { color: var(--green); font-size: 0.85rem; }
.miss-row.done { background: rgba(143, 227, 107, 0.10); border-color: rgba(143, 227, 107, 0.3); }
.miss-row.done .mi { background: rgba(143, 227, 107, 0.2); }
.miss-row.streak { background: linear-gradient(180deg, rgba(143, 227, 107, 0.14), rgba(143, 227, 107, 0.04)); border-color: rgba(143, 227, 107, 0.35); }

/* Crew / profile screen */
.crew-top { text-align: center; }
.app-icon {
  width: 54px; height: 54px; border-radius: 15px; margin: 2px auto 8px; display: grid; place-items: center;
  font-size: 1.5rem; background: linear-gradient(180deg, var(--orange), var(--orange-deep));
  box-shadow: 0 8px 18px -8px rgba(242, 100, 25, 0.8);
}
.crew-name { font-family: var(--font-head); font-weight: 600; color: var(--ink-100); font-size: 1.05rem; }
.level-pill {
  display: inline-block; margin-top: 5px; font-size: 0.56rem; font-weight: 700; color: var(--green);
  background: rgba(143, 227, 107, 0.12); border: 1px solid rgba(143, 227, 107, 0.3); padding: 3px 10px; border-radius: 999px;
}
.xp-card {
  margin-top: 10px; padding: 9px 11px; border-radius: 12px;
  border: 1px solid rgba(143, 168, 204, 0.16); background: rgba(255, 255, 255, 0.02);
}
.xp-top { display: flex; justify-content: space-between; font-size: 0.6rem; }
.xp-top b { font-family: var(--font-head); color: var(--ink-100); }
.xp-top span { color: var(--ink-300); }
.xp-bar { height: 7px; border-radius: 999px; background: rgba(143, 168, 204, 0.2); margin-top: 6px; overflow: hidden; }
.xp-bar i { display: block; height: 100%; width: 68%; background: linear-gradient(90deg, #8fe36b, #b6f097); }
.crew-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.crew-stats .cs {
  border-radius: 11px; padding: 8px 3px; text-align: center;
  border: 1px solid rgba(143, 168, 204, 0.16); background: rgba(255, 255, 255, 0.02);
}
.crew-stats .cs b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; color: var(--ink-100); }
.crew-stats .cs.g b { color: var(--green); }
.crew-stats .cs.o b { color: var(--orange); }
.crew-stats .cs small { font-size: 0.44rem; letter-spacing: 0.03em; color: var(--ink-300); }
.badge-head { font-family: var(--font-head); font-weight: 600; color: var(--ink-100); font-size: 0.68rem; margin: 10px 0 5px; }
.badge-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.badge-grid .bg {
  aspect-ratio: 1; border-radius: 9px; display: grid; place-items: center; font-size: 0.82rem;
  background: rgba(143, 168, 204, 0.1); border: 1px solid rgba(143, 168, 204, 0.18);
}
.badge-grid .bg.lock { opacity: 0.4; }

/* Welcome / onboarding screen */
.welcome { text-align: center; justify-content: center; }
.welcome img.wlogo { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 8px; }
.welcome .eyebrow-sm {
  font-family: var(--font-head); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green); font-size: 0.56rem;
}
.welcome h4 { font-family: var(--font-head); font-weight: 600; color: var(--ink-100); font-size: 1.15rem; margin: 5px 0 6px; line-height: 1.1; }
.welcome .wsub { font-size: 0.6rem; color: var(--ink-300); line-height: 1.45; }
.name-label { text-align: left; font-size: 0.5rem; letter-spacing: 0.08em; color: var(--ink-300); font-weight: 700; margin: 13px 0 4px; }
.name-input {
  display: flex; align-items: center; gap: 7px; padding: 9px 11px; border-radius: 12px;
  background: rgba(6, 14, 28, 0.6); border: 1px solid var(--green);
  font-family: var(--font-head); font-weight: 600; color: var(--ink-100); font-size: 0.8rem;
}
.start-btn {
  margin-top: 12px; text-align: center; font-family: var(--font-head); font-weight: 600; font-size: 0.82rem;
  color: #2a1400; background: linear-gradient(180deg, var(--orange), var(--orange-deep));
  padding: 11px; border-radius: 14px; box-shadow: 0 10px 22px -10px rgba(242, 100, 25, 0.8);
}
.grownup-link { margin-top: 11px; font-size: 0.58rem; color: var(--ink-300); }
.grownup-link b { color: var(--green); font-weight: 700; }

/* --- For grown-ups ------------------------------------------------------ */
.grownups {
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 14px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink-100);
  font-weight: 700;
  font-size: 1rem;
}

.checklist .check {
  flex: none;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(143, 227, 107, 0.16);
  color: var(--green);
  font-size: 0.8rem;
  margin-top: 1px;
}

.scene {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* --- Join / signup ------------------------------------------------------ */
.join {
  text-align: center;
  padding: 52px 30px 46px;
  max-width: 760px;
  margin-inline: auto;
  background:
    radial-gradient(420px 200px at 50% 0%, rgba(143, 227, 107, 0.12), transparent 70%),
    linear-gradient(180deg, var(--navy-card-2) 0%, var(--navy-card) 100%);
}

.join .rocket {
  font-size: 2rem;
}

.join h2 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  margin: 10px 0 10px;
}

.join p.blurb {
  max-width: 480px;
  margin: 0 auto 24px;
  color: var(--ink-200);
}

.signup-form {
  display: flex;
  gap: 10px;
  max-width: 470px;
  margin: 0 auto;
}

.signup-form input[type="email"] {
  flex: 1;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink-100);
  background: rgba(6, 14, 28, 0.7);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.8em 1.2em;
}

.signup-form input[type="email"]::placeholder {
  color: var(--ink-300);
}

.signup-form input[type="email"]:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(143, 227, 107, 0.18);
}

/* Honeypot — hidden from humans, visible to naive bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--ink-300);
  max-width: 440px;
  margin-inline: auto;
}

.spam-note {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--ink-300);
}

.form-status {
  margin-top: 16px;
  font-weight: 700;
  min-height: 1.4em;
}

.form-status.success {
  color: var(--green);
}

.form-status.error {
  color: #ff9c8a;
}

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(5, 12, 24, 0.55);
  padding-block: 30px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
  align-items: center;
  justify-content: space-between;
}

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

.foot-brand img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
}

.foot-brand .name {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink-100);
}

.foot-brand .url {
  font-size: 0.85rem;
  color: var(--ink-300);
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.foot-nav a {
  color: var(--ink-200);
  font-weight: 700;
  font-size: 0.92rem;
}

.copyright {
  width: 100%;
  color: var(--ink-300);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 4px;
}

/* --- Legal / privacy page ---------------------------------------------- */
.legal {
  max-width: 760px;
  margin-inline: auto;
  padding-block: 40px;
}

.legal h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--ink-300);
  margin-bottom: 30px;
}

.legal h2 {
  font-size: 1.3rem;
  margin: 30px 0 10px;
}

.legal p,
.legal li {
  color: var(--ink-200);
}

.legal ul {
  padding-left: 1.2em;
  display: grid;
  gap: 6px;
}

.legal a {
  text-decoration: underline;
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 860px) {
  .mission-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .app-split,
  .grownups {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .grownups {
    padding: 30px 24px;
  }

  .app-copy {
    order: 2;
  }

  .phone {
    order: 1;
  }

  .nav .navlink {
    display: none;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .signup-form {
    flex-direction: column;
  }

  .signup-form .btn {
    justify-content: center;
  }

  section {
    padding-block: 52px;
  }
}

/* --- Animations (restored from the original design) --------------------- */
@keyframes shc-twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50%      { opacity: 1;    transform: scale(1.15); }
}
@keyframes shc-shoot {
  0%        { transform: translate(0, 0) rotate(20deg); opacity: 0; }
  8%        { opacity: 1; }
  22%       { opacity: 1; }
  40%, 100% { transform: translate(560px, 200px) rotate(20deg); opacity: 0; }
}
@keyframes shc-aurora {
  0%, 100% { transform: translate(0, 0) scale(1);        opacity: 0.55; }
  50%      { transform: translate(-20px, 18px) scale(1.12); opacity: 0.8; }
}
@keyframes shc-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-16px); }
}
@keyframes shc-bob-soft {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
@keyframes shc-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(143, 227, 107, 0.45); }
  50%      { box-shadow: 0 0 0 12px rgba(143, 227, 107, 0); }
}
/* One shared keyframe; each screen is staggered by animation-delay so the five
   app screens cycle one after another with a short cross-fade. */
@keyframes shc-cycle {
  0%   { opacity: 0; }
  3%   { opacity: 1; }
  20%  { opacity: 1; }
  23%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Aurora drift layer (over the static sky gradient) */
.sky .aurora {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 60vw;
  height: 60vh;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 200, 160, 0.20), transparent 62%);
  filter: blur(8px);
  animation: shc-aurora 16s ease-in-out infinite;
  pointer-events: none;
}

/* Dynamically generated twinkling stars (stars.js) */
.starfield {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.starfield .star {
  position: absolute;
  border-radius: 50%;
  background: #ffffff;
  animation: shc-twinkle var(--dur, 4s) ease-in-out infinite var(--delay, 0s);
}

/* Shooting stars */
.shooting-star {
  position: absolute;
  width: 120px;
  height: 2px;
  /* Bright head on the leading (right) edge, tail fading behind it. */
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95));
  border-radius: 2px;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
  opacity: 0;
  transform: rotate(20deg);
  animation: shc-shoot 9s ease-in infinite;
  pointer-events: none;
}
.shooting-star::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.9);
  transform: translate(50%, -50%);
}
.shooting-star.s1 { top: 12%; left: 6%;  animation-delay: 2.5s; }
.shooting-star.s2 { top: 28%; left: 22%; width: 90px; animation-delay: 6s; }
.shooting-star.s3 { top: 8%;  left: 44%; width: 70px; animation-delay: 9.5s; }

/* ISS — a slow, occasional fly-by across the background sky */
@keyframes shc-iss {
  0%   { transform: translate(-12vw, 0) rotate(-4deg); opacity: 0; }
  3%   { opacity: 0.85; }
  28%  { opacity: 0.85; }
  32%  { transform: translate(112vw, 36px) rotate(-4deg); opacity: 0; }
  100% { transform: translate(112vw, 36px) rotate(-4deg); opacity: 0; }
}
@keyframes shc-iss-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.15; }
}
.iss {
  position: absolute;
  top: 13%;
  left: 0;
  width: 44px;
  height: auto;
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(180, 210, 255, 0.75));
  animation: shc-iss 64s linear infinite;
  animation-delay: 14s;
  pointer-events: none;
}
.iss .beacon { animation: shc-iss-blink 1.6s ease-in-out infinite; }

/* Gentle float on the hero logo and phone */
.hero-logo { animation: shc-bob 6s ease-in-out infinite; }
.phone     { animation: shc-bob-soft 7s ease-in-out infinite; }

/* Pulse on the "live" indicators */
.pill .dot, .tag-live { animation: shc-pulse 2.2s ease-out infinite; }

/* Twinkle on the inline SVG stars (phone + illustration) */
.tw {
  transform-box: fill-box;
  transform-origin: center;
  animation: shc-twinkle 4s ease-in-out infinite;
}
.tw:nth-of-type(2) { animation-duration: 3.2s; animation-delay: 0.4s; }
.tw:nth-of-type(3) { animation-duration: 4.6s; animation-delay: 0.8s; }
.tw:nth-of-type(4) { animation-duration: 3.8s; animation-delay: 0.2s; }
.tw:nth-of-type(5) { animation-duration: 5s;   animation-delay: 1s; }
.tw:nth-of-type(6) { animation-duration: 4.2s; animation-delay: 0.6s; }

/* Phone: cycle through the five app screens */
.screens { position: relative; flex: 1; overflow: hidden; }
.screen {
  position: absolute;
  inset: 0;
  padding: 6px 14px 4px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: shc-cycle 30s ease-in-out infinite;
}
.screen-a { animation-delay: 0s; }
.screen-b { animation-delay: 6s; }
.screen-c { animation-delay: 12s; }
.screen-d { animation-delay: 18s; }
.screen-e { animation-delay: 24s; }

/* Tab bar sits at the bottom of a screen and bleeds to the edges */
.screen .tabbar { margin: auto -14px -4px; }

/* Respect reduced motion — mirror the original's blanket override */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .screen { opacity: 0; }
  .screen-a { opacity: 1; }
}
