@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --bg: #091124;
  --bg-soft: #101d38;
  --surface: rgba(9, 17, 36, 0.82);
  --surface-soft: rgba(18, 31, 61, 0.78);
  --card: rgba(15, 26, 50, 0.88);
  --card-light: rgba(240, 246, 255, 0.08);
  --ink: #eff5ff;
  --muted: #a6b4d3;
  --line: rgba(170, 194, 238, 0.16);
  --accent: #f5b942;
  --accent-strong: #ff8f3f;
  --accent-cool: #66d7ff;
  --accent-soft: rgba(245, 185, 66, 0.16);
  --success: #8cf0a9;
  --danger: #ff9c88;
  --font-body: "Space Grotesk", "Segoe UI", sans-serif;
  --font-heading: "Fraunces", Georgia, serif;
  --shadow: 0 28px 60px rgba(3, 8, 20, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top left, rgba(102, 215, 255, 0.14), transparent 30%),
    radial-gradient(circle at top right, rgba(245, 185, 66, 0.14), transparent 24%),
    linear-gradient(180deg, #0a1224 0%, #07101d 50%, #0a1429 100%);
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px),
    radial-gradient(circle at 60% 70%, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px);
  background-size: 220px 220px, 300px 300px, 260px 260px;
  opacity: 0.55;
  pointer-events: none;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
}

.skip-link:focus {
  left: 1rem;
  z-index: 20;
  background: #fff;
  color: #000;
  padding: 0.8rem 1rem;
  border-radius: 999px;
}

.container {
  width: min(1180px, calc(100vw - 2rem));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero {
  padding: clamp(1.5rem, 4vw, 2.4rem) 0 2rem;
}

.hero__shell {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.95fr);
  gap: 1.5rem;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
  background:
    radial-gradient(circle at top, rgba(245, 185, 66, 0.12), transparent 30%),
    linear-gradient(160deg, rgba(15, 26, 50, 0.92), rgba(8, 15, 29, 0.92));
  overflow: hidden;
}

.hero__shell::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  pointer-events: none;
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-cool);
  text-decoration: none;
  font-weight: 600;
}

.eyebrow {
  margin: 0 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.78rem;
  color: var(--accent);
}

.eyebrow--soft {
  color: #ffe6b5;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  line-height: 1.03;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  max-width: 11ch;
}

h2 {
  font-size: clamp(1.85rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

p {
  line-height: 1.7;
  color: var(--muted);
}

.hero__lead {
  max-width: 58ch;
  font-size: 1.12rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.5rem 0;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cta:hover {
  transform: translateY(-2px);
}

.cta--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #1d1301;
  box-shadow: 0 14px 30px rgba(255, 143, 63, 0.28);
}

.cta--secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.14);
}

.cta--small {
  padding: 0.75rem 1rem;
}

.hero__panel-list,
.build-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero__panel {
  padding: 1.35rem;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(244, 177, 64, 0.18), rgba(102, 215, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}

.hero__panel h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  margin-bottom: 0.9rem;
}

.hero__panel-list {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.2rem;
}

.hero__panel-list li,
.build-checklist li {
  position: relative;
  padding-left: 1.4rem;
  color: #f4f8ff;
}

.hero__panel-list li::before,
.build-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(245, 185, 66, 0.14);
}

.hero__baseline {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 1rem;
}

.hero__baseline-label,
.mini-card__label,
.spotlight__label,
.panel-card__header p {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  padding: clamp(1.8rem, 5vw, 3.8rem) 0;
}

.section--soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-heading {
  max-width: 70ch;
  margin-bottom: 1.8rem;
}

.section-heading p:last-child {
  margin-bottom: 0;
}

.intro-strip {
  padding-top: 0.4rem;
}

.intro-strip__grid,
.reflection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.mini-card,
.panel-card,
.spotlight,
.moon-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(15, 26, 50, 0.88), rgba(10, 17, 32, 0.92));
  box-shadow: var(--shadow);
}

.mini-card,
.panel-card,
.spotlight {
  padding: 1.25rem;
}

.mini-card h2,
.mini-card h3 {
  margin-bottom: 0.45rem;
}

.explore-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.filter-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.filter-btn.is-active {
  background: linear-gradient(135deg, rgba(245, 185, 66, 0.26), rgba(255, 143, 63, 0.18));
  border-color: rgba(245, 185, 66, 0.5);
  color: #fff8ea;
}

.explore-layout,
.compare-grid,
.build-layout,
.teacher-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.95fr);
  gap: 1rem;
  align-items: start;
}

.moon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 0.9rem;
}

.moon-card {
  width: 100%;
  padding: 1rem;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.moon-card:hover,
.moon-card.is-selected {
  transform: translateY(-3px);
  border-color: rgba(245, 185, 66, 0.5);
  background: linear-gradient(180deg, rgba(26, 40, 72, 0.96), rgba(11, 20, 38, 0.96));
}

.moon-card__topline,
.spotlight__chips,
.fact-card__eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.08);
  color: #f1f6ff;
}

.chip--accent {
  background: rgba(245, 185, 66, 0.18);
  color: #ffe9bc;
}

.moon-card h3,
.spotlight h3 {
  margin: 0.65rem 0 0.45rem;
}

.moon-card p:last-child,
.spotlight p:last-child {
  margin-bottom: 0;
}

.spotlight__stats,
.summary-list,
.calc-results {
  display: grid;
  gap: 0.85rem;
}

.spotlight__stats div,
.summary-list div,
.calc-results div {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

dt {
  color: #dce6ff;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

dd {
  margin: 0;
  color: #fffdf8;
  font-weight: 700;
}

.panel-card__header {
  margin-bottom: 1rem;
}

.panel-card__header h3 {
  margin-bottom: 0.35rem;
}

.compare-toggle-row {
  margin-bottom: 1rem;
}

.lineup,
.orbit-spread {
  display: grid;
  gap: 0.85rem;
}

.lineup-row,
.orbit-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 95px;
  align-items: center;
  gap: 0.75rem;
}

.lineup-bar,
.orbit-bar-track {
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
}

.lineup-bar__fill,
.orbit-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

.orbit-bar {
  background: linear-gradient(90deg, var(--accent-cool), #5f97ff);
}

.lineup-row.is-selected .lineup-bar__fill,
.orbit-row.is-selected .orbit-bar {
  box-shadow: 0 0 0 3px rgba(245, 185, 66, 0.18);
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.fact-card {
  padding: 1.1rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(17, 30, 56, 0.95), rgba(10, 19, 35, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.fact-card h3 {
  margin: 0.5rem 0;
  font-size: 1.15rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.85rem 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

th {
  color: #fdf0c7;
  font-size: 0.9rem;
}

td {
  color: #eff5ff;
}

.lab-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}

.moon-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
  padding: 1.35rem 1.45rem;
}

.moon-workbench__copy h3 {
  margin-bottom: 0.45rem;
}

.moon-workbench__copy p:last-child {
  margin-bottom: 0;
}

.moon-workbench__control {
  max-width: 360px;
}

.moon-workbench__control select {
  min-height: 3.4rem;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.calculator-card {
  display: grid;
  gap: 1rem;
}

.calculator-card__selected {
  padding: 1rem 1.05rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(245, 185, 66, 0.16), rgba(102, 215, 255, 0.08));
  border: 1px solid rgba(245, 185, 66, 0.24);
}

.calculator-card__selected h3 {
  margin-top: 0.25rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.calculator-card .form-row + .form-row {
  margin-top: 0.25rem;
}

.travel-mode-label {
  color: #f5f8ff;
  font-weight: 600;
}

.travel-mode-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.travel-pill {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.8rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.travel-pill:hover {
  transform: translateY(-2px);
}

.travel-pill.is-active {
  background: linear-gradient(135deg, rgba(245, 185, 66, 0.26), rgba(255, 143, 63, 0.18));
  border-color: rgba(245, 185, 66, 0.5);
  color: #fff8ea;
}

.travel-pill:focus-visible {
  outline: 2px solid rgba(102, 215, 255, 0.9);
  outline-offset: 2px;
}

label {
  color: #f5f8ff;
  font-weight: 600;
}

input,
select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  padding: 0.85rem 0.95rem;
  font: inherit;
}

.feedback {
  min-height: 1.5rem;
  margin: 0;
  font-weight: 700;
}

.feedback.is-good {
  color: var(--success);
}

.feedback.is-bad {
  color: var(--danger);
}

.build-card {
  min-height: 100%;
}

.build-layout {
  gap: 1rem;
}

.build-brief {
  display: grid;
  gap: 1rem;
}

.build-brief__hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: start;
}

.build-brief__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.build-brief__stats div {
  padding: 0.9rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer {
  padding: 0 0 2.5rem;
}

.footer__content {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(8, 14, 27, 0.85);
}

@media (max-width: 1080px) {
  .compare-grid,
  .build-layout,
  .moon-workbench,
  .teacher-grid,
  .hero__shell,
  .explore-layout {
    grid-template-columns: 1fr;
  }

  .lab-grid,
  .fact-grid,
  .intro-strip__grid,
  .reflection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .moon-workbench__control {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100vw - 1rem, 100%);
  }

  .hero__actions,
  .explore-toolbar,
  .footer__content {
    flex-direction: column;
    align-items: stretch;
  }

  .lineup-row,
  .orbit-row {
    grid-template-columns: 1fr;
  }

  .lab-grid,
  .fact-grid,
  .intro-strip__grid,
  .reflection-grid,
  .build-brief__stats {
    grid-template-columns: 1fr;
  }

  .footer__content {
    align-items: flex-start;
  }
}