:root {
  color-scheme: dark;
  --bg: #050711;
  --panel: #0d1220;
  --text: #f6f7fb;
  --muted: #aeb5c7;
  --line: #252c3d;
  --gold: #ffd987;
  --blue: #8ebeff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Apple SD Gothic Neo", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--bg); color: var(--text); }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 86% -8%, rgba(255, 217, 135, 0.15), transparent 27rem),
    radial-gradient(circle at -8% 38%, rgba(87, 132, 218, 0.13), transparent 30rem),
    var(--bg);
}

a { color: inherit; }

.shell {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.topbar,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar { padding-bottom: 48px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 780;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 217, 135, 0.3);
  border-radius: 13px;
  color: var(--gold);
  background: linear-gradient(145deg, #171c2c, #080b14);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  font-size: 23px;
}

.back-link,
.inline-link,
.footer a {
  color: var(--muted);
  text-underline-offset: 4px;
}

.back-link { font-size: 14px; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 62px);
  line-height: 1;
  letter-spacing: -0.045em;
}

h2 {
  margin: 42px 0 10px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

p,
li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

strong { color: var(--text); }
ul { padding-left: 22px; }

.updated {
  margin: 13px 0 34px;
  color: var(--blue);
  font-size: 13px;
}

.notice {
  margin-top: 26px;
  padding: 17px 18px;
  border: 1px solid rgba(255, 217, 135, 0.3);
  border-radius: 15px;
  background: rgba(255, 217, 135, 0.065);
}

.notice p { margin: 0; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(230px, 0.92fr);
  align-items: center;
  gap: 44px;
  min-height: 520px;
}

.hero-copy > p:not(.eyebrow) { max-width: 560px; }

.hero-links {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
}

.primary-link { color: #050711; background: var(--text); }
.secondary-link { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.035); }

.moon-stage {
  display: grid;
  min-height: 360px;
  place-items: center;
  perspective: 700px;
}

.moon-disc {
  width: min(280px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.32) 0 2%, transparent 3%),
    radial-gradient(circle at 67% 57%, rgba(40,46,57,.27) 0 6%, transparent 7%),
    radial-gradient(circle at 42% 72%, rgba(42,47,56,.22) 0 8%, transparent 9%),
    radial-gradient(circle at 53% 41%, rgba(48,53,62,.18) 0 10%, transparent 11%),
    radial-gradient(circle at 40% 34%, #f8f7ef, #b9bdc4 68%, #777d88 100%);
  box-shadow: -24px 14px 70px rgba(72, 102, 180, .18), 18px -12px 90px rgba(255, 217, 135, .16);
  transform: rotate(-7deg);
}

.compact { margin-top: 54px; }
.home-heading { margin-top: 0; font-size: clamp(28px, 5vw, 42px); }

.lang-block + .lang-block {
  margin-top: 68px;
  padding-top: 68px;
  border-top: 1px solid var(--line);
}

.footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 680px) {
  .shell { width: calc(100% - 28px); max-width: 620px; padding-top: 18px; }
  .topbar { align-items: flex-start; padding-bottom: 34px; }
  .footer { align-items: flex-start; flex-direction: column; }
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 18px; }
  .moon-stage { min-height: 290px; grid-row: 1; }
  .hero-copy { grid-row: 2; }
}

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