:root {
  color-scheme: dark;
  --bg: #090d12;
  --bg-strong: #101b22;
  --ink: #eef6ed;
  --muted: #aab8b2;
  --line: rgba(205, 224, 215, 0.16);
  --panel: rgba(15, 24, 30, 0.86);
  --panel-soft: rgba(21, 33, 40, 0.74);
  --green: #58d6a6;
  --green-dark: #b9f7c8;
  --blue: #72a6ff;
  --coral: #ff8a68;
  --gold: #f4c95d;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
  --radius: 8px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html[data-lang="en"] .zh,
html[data-lang="zh"] .en {
  display: none !important;
}

html[data-lang="zh"] .zh {
  display: revert !important;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(88, 214, 166, 0.14), transparent 28rem),
    radial-gradient(circle at 88% 22%, rgba(114, 166, 255, 0.16), transparent 32rem),
    linear-gradient(180deg, #080b12 0%, #0d1418 48%, #111814 100%),
    var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

img,
svg {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(205, 224, 215, 0.12);
  background: rgba(8, 12, 17, 0.82);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 22px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #06110f;
  background: conic-gradient(from 220deg, var(--green), var(--gold), var(--blue), var(--green));
  box-shadow: 0 8px 28px rgba(88, 214, 166, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.94rem;
  color: var(--muted);
}

.nav-links a {
  color: var(--muted);
}

.nav-links .nav-cta {
  color: #06110f;
  background: var(--green-dark);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
}

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

.language-setting {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.language-setting button {
  appearance: none;
  min-width: 42px;
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 760;
}

.language-setting button[aria-pressed="true"] {
  color: #06110f;
  background: var(--green-dark);
}

.section,
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: 22px;
}

.hero {
  position: relative;
  min-height: min(820px, calc(100vh - 65px));
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.52;
  background-image:
    radial-gradient(circle, rgba(238, 246, 237, 0.2) 1px, transparent 1.5px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  align-items: center;
  gap: 38px;
  min-height: inherit;
  padding-top: 44px;
  padding-bottom: 72px;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 620px;
  text-align: left;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px 10px;
  border: 1px solid rgba(185, 247, 200, 0.2);
  border-radius: 999px;
  background: rgba(185, 247, 200, 0.08);
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 760;
}

.hero h1 {
  margin: 0;
  font-size: 6rem;
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 620px;
  margin: 24px 0 0;
  color: #d9e6df;
  font-size: 1.34rem;
  line-height: 1.45;
}

.hero-zh {
  max-width: 760px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 32px;
}

.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid rgba(185, 247, 200, 0.72);
  border-radius: 8px;
  font: inherit;
  font-weight: 780;
  text-align: center;
  cursor: pointer;
}

.button.primary {
  color: #06110f;
  background: var(--green-dark);
  box-shadow: 0 16px 38px rgba(88, 214, 166, 0.22);
}

.button.secondary {
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.06);
}

.button.is-pending {
  cursor: default;
}

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 0.9rem;
}

.proof-strip span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.astro-console {
  position: relative;
  z-index: 2;
  min-height: 560px;
}

.starfield {
  position: absolute;
  inset: 0 0 88px;
  border: 1px solid rgba(205, 224, 215, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 28%, rgba(88, 214, 166, 0.16), transparent 9rem),
    radial-gradient(circle at 72% 58%, rgba(114, 166, 255, 0.16), transparent 10rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.starfield::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(244, 201, 93, 0.18);
  border-radius: 50%;
}

.starfield::after {
  content: "";
  position: absolute;
  inset: 88px 76px;
  border: 1px dashed rgba(205, 224, 215, 0.18);
  border-radius: 50%;
}

.star,
.route {
  position: absolute;
  display: block;
}

.star {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(205, 224, 215, 0.44);
  box-shadow: 0 0 0 5px rgba(205, 224, 215, 0.04);
}

.star.lit {
  background: var(--gold);
  box-shadow: 0 0 22px rgba(244, 201, 93, 0.78), 0 0 0 6px rgba(244, 201, 93, 0.12);
}

.s1 { left: 23%; top: 20%; }
.s2 { left: 38%; top: 32%; }
.s3 { left: 54%; top: 22%; }
.s4 { left: 66%; top: 40%; }
.s5 { left: 78%; top: 62%; }
.s6 { left: 48%; top: 68%; }
.s7 { left: 26%; top: 62%; }
.s8 { left: 58%; top: 52%; }

.route {
  width: 22%;
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(244, 201, 93, 0.55), rgba(88, 214, 166, 0.05));
}

.r1 { left: 24%; top: 22%; transform: rotate(28deg); }
.r2 { left: 40%; top: 34%; transform: rotate(16deg); }
.r3 { left: 50%; top: 68%; transform: rotate(-44deg); }

.constellation-card {
  position: absolute;
  width: 184px;
  padding: 14px;
  border: 1px solid rgba(205, 224, 215, 0.14);
  border-radius: 8px;
  background: rgba(6, 11, 16, 0.7);
  backdrop-filter: blur(14px);
}

.constellation-card span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 760;
  text-transform: uppercase;
}

.constellation-card strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
}

.card-a {
  top: 36px;
  right: 34px;
}

.card-b {
  left: 34px;
  bottom: 34px;
}

.compass-dial {
  position: absolute;
  right: 36px;
  bottom: 0;
  width: 220px;
  aspect-ratio: 1;
  border: 1px solid rgba(205, 224, 215, 0.18);
  border-radius: 50%;
  background:
    conic-gradient(from 150deg, rgba(88, 214, 166, 0.18), rgba(244, 201, 93, 0.18), rgba(114, 166, 255, 0.16), rgba(255, 138, 104, 0.14), rgba(88, 214, 166, 0.18)),
    rgba(7, 13, 18, 0.92);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
}

.compass-dial::before,
.compass-dial::after {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(238, 246, 237, 0.18);
  border-radius: 50%;
}

.compass-dial::after {
  inset: 58px;
  border-style: dashed;
}

.dial-label {
  position: absolute;
  color: #dbe9e2;
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.north { top: 14px; left: 50%; transform: translateX(-50%); }
.east { right: 12px; top: 50%; transform: translateY(-50%); }
.south { bottom: 14px; left: 50%; transform: translateX(-50%); }
.west { left: 18px; top: 50%; transform: translateY(-50%); }

.needle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 82px;
  transform: translate(-50%, -88%) rotate(36deg);
  transform-origin: bottom center;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), var(--coral));
  box-shadow: 0 0 22px rgba(244, 201, 93, 0.36);
}

.dial-core {
  position: absolute;
  inset: 92px;
  border-radius: 50%;
  background: var(--green-dark);
  box-shadow: 0 0 28px rgba(185, 247, 200, 0.4);
}

.section {
  padding-top: 78px;
  padding-bottom: 78px;
}

.section.compact {
  padding-top: 48px;
  padding-bottom: 48px;
}

.section-header {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--ink);
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 3.1rem;
  line-height: 1.04;
}

h3 {
  margin: 0 0 9px;
  font-size: 1.08rem;
  line-height: 1.28;
}

p {
  margin: 0 0 1rem;
}

.lead {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.08rem;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.quote-panel,
.table-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
}

.card {
  padding: 22px;
}

.card .num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  border-radius: 8px;
  color: #06110f;
  background: var(--green);
  font-weight: 800;
}

.card.blue .num {
  background: var(--blue);
}

.card.coral .num {
  background: var(--coral);
}

.card.gold .num {
  background: var(--gold);
}

.card p,
.table-card p,
.faq-answer,
.muted {
  color: var(--muted);
}

.card h2,
.timeline-item h2 {
  font-size: 1.14rem;
  line-height: 1.28;
}

.band {
  background: rgba(255, 255, 255, 0.035);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
}

.check {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #06110f;
  background: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
}

.quote-panel {
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(88, 214, 166, 0.09), rgba(114, 166, 255, 0.08)),
    rgba(12, 21, 26, 0.94);
}

.quote-panel strong {
  color: var(--ink);
}

.constellation-section {
  position: relative;
}

.feature-orbit {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-orbit article {
  position: relative;
  padding: 26px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--panel);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
}

.orbit-dot {
  display: block;
  width: 14px;
  height: 14px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(205, 224, 215, 0.42);
  box-shadow: 0 0 0 8px rgba(205, 224, 215, 0.05);
}

.orbit-dot.lit {
  background: var(--gold);
  box-shadow: 0 0 22px rgba(244, 201, 93, 0.72), 0 0 0 8px rgba(244, 201, 93, 0.1);
}

.table-card {
  overflow: hidden;
}

.compare-row {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.compare-row:first-child {
  border-top: 0;
}

.compare-cell {
  padding: 18px;
  border-left: 1px solid var(--line);
}

.compare-cell:first-child {
  border-left: 0;
  font-weight: 760;
}

.compare-head {
  background: var(--bg-strong);
  font-size: 0.92rem;
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.faq-item h2,
.faq-item h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  line-height: 1.3;
}

.page-hero {
  padding: 82px 22px 54px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 18% 20%, rgba(88, 214, 166, 0.12), transparent 30rem),
    linear-gradient(180deg, rgba(8, 12, 17, 0.92), rgba(13, 20, 24, 1)),
    var(--bg);
}

.page-hero-inner {
  max-width: 920px;
  margin: 0 auto;
}

.page-hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: 4.4rem;
  line-height: 1;
}

.page-hero p {
  max-width: 760px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.12rem;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  gap: 8px;
  padding: 22px;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
}

.date {
  color: var(--coral);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.first-card-hero {
  background:
    radial-gradient(circle at 82% 22%, rgba(244, 201, 93, 0.16), transparent 26rem),
    radial-gradient(circle at 20% 20%, rgba(88, 214, 166, 0.14), transparent 30rem),
    linear-gradient(180deg, rgba(8, 12, 17, 0.94), rgba(13, 20, 24, 1)),
    var(--bg);
}

.first-card-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.68fr);
  align-items: center;
  gap: 34px;
  max-width: var(--max);
}

.starter-card-preview {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(185, 247, 200, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(88, 214, 166, 0.14), rgba(114, 166, 255, 0.08)),
    rgba(8, 14, 18, 0.9);
  box-shadow: var(--shadow);
}

.starter-action-panel {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(185, 247, 200, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(88, 214, 166, 0.14), rgba(114, 166, 255, 0.08)),
    rgba(8, 14, 18, 0.9);
  box-shadow: var(--shadow);
}

.starter-action-panel::before {
  content: "";
  position: absolute;
  inset: 18px 18px auto auto;
  width: 12px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 24px rgba(244, 201, 93, 0.8);
}

.starter-action-panel ol {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: first-card-steps;
}

.starter-action-panel li {
  position: relative;
  min-height: 52px;
  padding-left: 52px;
  color: var(--muted);
}

.starter-action-panel li::before {
  counter-increment: first-card-steps;
  content: counter(first-card-steps);
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #06110f;
  background: var(--green);
  font-size: 0.9rem;
  font-weight: 840;
}

.starter-action-panel li:nth-child(2)::before {
  background: var(--blue);
}

.starter-action-panel li:nth-child(3)::before {
  background: var(--coral);
}

.starter-action-panel strong,
.starter-action-panel span {
  display: block;
}

.starter-action-panel strong {
  color: var(--ink);
  font-size: 1.02rem;
}

.starter-action-panel span {
  margin-top: 3px;
  font-size: 0.92rem;
}

.share-fallback-hint {
  display: none;
  max-width: 560px;
  margin-top: 14px;
  color: var(--gold);
  font-size: 0.92rem;
}

.share-fallback-hint.is-visible {
  display: block;
}

.starter-card-preview::before {
  content: "";
  position: absolute;
  inset: 18px 18px auto auto;
  width: 12px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 24px rgba(244, 201, 93, 0.8);
}

.starter-card-label {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(244, 201, 93, 0.12);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.starter-card-preview h2 {
  font-size: 1.82rem;
  line-height: 1.08;
}

.starter-card-preview p {
  color: var(--muted);
}

.starter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.starter-tags span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #dbe9e2;
  font-size: 0.78rem;
  font-weight: 760;
}

.first-card-sample {
  max-width: 860px;
}

.first-card-sample h2 {
  margin-bottom: 20px;
}

.first-card-sample .language-pair {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025)),
    var(--panel);
}

.first-card-sample p {
  color: #d7e5dd;
  font-size: 1.08rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #05080c;
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 22px;
}

.site-footer a,
.site-footer .brand {
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
}

.language-pair {
  display: grid;
  gap: 8px;
}

.language-pair .zh {
  color: #3c4e49;
}

.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.article-toc {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.article-toc a {
  color: var(--muted);
  font-size: 0.94rem;
}

.article-body {
  display: grid;
  gap: 44px;
  max-width: 820px;
}

.article-body h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
}

.article-body p {
  color: #dbe8e1;
}

.article-list {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
  padding-left: 1.2rem;
  color: #dbe8e1;
}

.small {
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-actions {
    width: 100%;
    align-items: flex-start;
    justify-content: space-between;
  }

  .language-setting {
    flex: 0 0 auto;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: 720px;
    padding-top: 44px;
  }

  .hero-copy {
    max-width: 760px;
    text-align: center;
  }

  .hero-subtitle {
    margin-right: auto;
    margin-left: auto;
  }

  .cta-row,
  .proof-strip {
    justify-content: center;
  }

  .astro-console {
    width: min(100%, 620px);
    min-height: 440px;
    margin: 0 auto;
  }

  .hero h1 {
    font-size: 4.8rem;
  }

  .hero-subtitle {
    font-size: 1.22rem;
  }

  h2,
  .page-hero h1 {
    font-size: 2.6rem;
  }

  .grid.three,
  .grid.two,
  .feature-orbit,
  .first-card-hero-inner,
  .article-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .article-toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .starter-card-preview {
    max-width: 560px;
  }

  .compare-row {
    grid-template-columns: 1fr;
  }

  .compare-cell {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .compare-cell:first-child {
    border-top: 0;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .section,
  .page-hero {
    padding-inline: 18px;
  }

  .section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .hero-inner {
    padding-inline: 18px;
    min-height: 760px;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .hero-subtitle {
    font-size: 1.08rem;
  }

  h2,
  .page-hero h1 {
    font-size: 2.12rem;
  }

  .cta-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .astro-console {
    min-height: 390px;
  }

  .starfield {
    inset: 0 0 72px;
  }

  .constellation-card {
    width: 150px;
    padding: 11px;
  }

  .card-a {
    top: 22px;
    right: 18px;
  }

  .card-b {
    left: 18px;
    bottom: 24px;
  }

  .compass-dial {
    right: 18px;
    width: 168px;
  }

  .nav-actions {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .nav-links {
    gap: 12px;
  }
}
