:root {
  color-scheme: dark;
  --ink: #f6f0d7;
  --muted: #c7c3aa;
  --forest-950: #07130f;
  --forest-900: #0b1d16;
  --forest-800: #123326;
  --forest-700: #1c4b36;
  --gold-300: #f0d889;
  --gold-400: #d9b85f;
  --gold-500: #b99036;
  --line: rgba(240, 216, 137, 0.22);
  --panel: rgba(12, 35, 26, 0.86);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 280px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 12%, rgba(185, 144, 54, 0.14), transparent 28rem),
    radial-gradient(circle at 12% 38%, rgba(28, 75, 54, 0.42), transparent 32rem),
    linear-gradient(145deg, var(--forest-950), #081a13 50%, #06110d);
  line-height: 1.65;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.17;
  background-image:
    linear-gradient(rgba(240, 216, 137, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 216, 137, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

a {
  color: var(--gold-300);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

a:hover {
  color: #fff0b7;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold-300);
  outline-offset: 4px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 50;
  padding: 0.7rem 1rem;
  color: var(--forest-950);
  background: var(--gold-300);
  border-radius: 999px;
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(240, 216, 137, 0.12);
  background: rgba(7, 19, 15, 0.9);
  backdrop-filter: blur(16px);
}

.header-inner,
.page-shell,
.footer-inner {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--gold-400);
  color: var(--gold-300);
  background: linear-gradient(145deg, var(--forest-700), var(--forest-950));
  border-radius: 14px 14px 14px 5px;
  box-shadow: inset 0 0 20px rgba(240, 216, 137, 0.08);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 1.02rem;
  letter-spacing: 0.08em;
}

.brand-copy small {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav > a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.site-nav > a:hover {
  color: var(--ink);
}

.app-switcher {
  position: relative;
}

.app-switcher summary {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold-300);
  cursor: pointer;
  list-style: none;
  font-size: 0.88rem;
  font-weight: 700;
}

.app-switcher summary::-webkit-details-marker {
  display: none;
}

.switcher-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  min-width: 230px;
  padding: 0.55rem;
  border: 1px solid var(--line);
  background: #0b2118;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.switcher-menu a,
.switcher-menu span {
  display: block;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  text-decoration: none;
}

.switcher-menu a:hover {
  background: rgba(240, 216, 137, 0.08);
}

.switcher-menu span {
  color: var(--muted);
  font-size: 0.82rem;
}

.page-shell {
  padding: 4.5rem 0 5rem;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  min-height: 540px;
  gap: 3rem;
  overflow: hidden;
  border: 1px solid var(--line);
  padding: clamp(2rem, 5vw, 4.5rem);
  background:
    linear-gradient(135deg, rgba(18, 51, 38, 0.95), rgba(7, 19, 15, 0.82)),
    var(--forest-900);
  border-radius: 34px 34px 34px 10px;
  box-shadow: var(--shadow);
}

.hero::after {
  position: absolute;
  right: -8rem;
  bottom: -11rem;
  width: 29rem;
  height: 29rem;
  content: "";
  border: 1px solid rgba(240, 216, 137, 0.22);
  border-radius: 50%;
  box-shadow:
    0 0 0 3rem rgba(240, 216, 137, 0.025),
    0 0 0 7rem rgba(240, 216, 137, 0.02);
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--gold-300);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: #fff9e8;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
}

h1 {
  max-width: 760px;
  margin-bottom: 1.2rem;
  font-size: clamp(3rem, 8vw, 6.5rem);
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.4rem;
}

.lead {
  max-width: 690px;
  margin: 0;
  color: #ddd9c1;
  font-size: clamp(1.06rem, 2vw, 1.3rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--gold-400);
  color: #142319;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(185, 144, 54, 0.18);
  text-decoration: none;
  font-weight: 800;
}

.button.secondary {
  color: var(--gold-300);
  background: transparent;
  box-shadow: none;
}

.world-orbit {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 360px);
  aspect-ratio: 1;
  place-items: center;
  margin-inline: auto;
  border: 1px solid rgba(240, 216, 137, 0.35);
  border-radius: 50%;
  box-shadow:
    inset 0 0 70px rgba(185, 144, 54, 0.08),
    0 0 80px rgba(185, 144, 54, 0.08);
}

.world-orbit::before,
.world-orbit::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(240, 216, 137, 0.18);
  border-radius: 50%;
}

.world-orbit::before {
  inset: 13%;
}

.world-orbit::after {
  inset: 27%;
}

.world-core {
  display: grid;
  width: 37%;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--gold-400);
  color: var(--gold-300);
  background: radial-gradient(circle at 35% 30%, #285c43, #0a2118 70%);
  border-radius: 48% 52% 56% 44%;
  box-shadow: 0 0 36px rgba(240, 216, 137, 0.14);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 700;
}

.orb {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--gold-300);
  background: var(--forest-900);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(240, 216, 137, 0.35);
}

.orb.one {
  top: 13%;
  right: 21%;
}

.orb.two {
  bottom: 18%;
  left: 11%;
  width: 12px;
  height: 12px;
}

.orb.three {
  top: 42%;
  left: -2%;
  width: 9px;
  height: 9px;
}

.section {
  padding: clamp(4rem, 9vw, 7rem) 0 0;
  scroll-margin-top: 90px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading p:last-child {
  color: var(--muted);
  font-size: 1.06rem;
}

.feature-grid,
.policy-grid,
.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius) var(--radius) var(--radius) 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.card p,
.card li {
  color: var(--muted);
}

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

.number {
  display: inline-grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  margin-bottom: 1rem;
  color: var(--gold-300);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-weight: 800;
}

.notice {
  margin-top: 2rem;
  padding: 1.2rem 1.35rem;
  border-left: 4px solid var(--gold-400);
  color: var(--muted);
  background: rgba(240, 216, 137, 0.07);
  border-radius: 0 14px 14px 0;
}

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

.support-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: clamp(1.8rem, 5vw, 3rem);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(18, 51, 38, 0.96), rgba(7, 19, 15, 0.9));
  border-radius: 26px 26px 26px 8px;
}

.support-panel p {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid rgba(240, 216, 137, 0.12);
  color: var(--muted);
  background: rgba(4, 13, 9, 0.8);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 110px;
  gap: 1rem;
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.document-shell {
  width: min(880px, calc(100% - 2rem));
  margin-inline: auto;
  padding: 4rem 0 6rem;
}

.document-header {
  padding: clamp(1.8rem, 6vw, 3.5rem);
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 28px 28px 28px 8px;
  box-shadow: var(--shadow);
}

.document-header h1 {
  font-size: clamp(2.6rem, 7vw, 4.9rem);
}

.document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.5rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.document-content {
  padding-top: 2.5rem;
}

.document-content section {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(240, 216, 137, 0.13);
  scroll-margin-top: 90px;
}

.document-content h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.document-content p,
.document-content li {
  color: #d2ceb6;
}

.document-content li + li {
  margin-top: 0.5rem;
}

.plain-list {
  padding-left: 1.2rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--line);
  color: var(--gold-300);
  background: rgba(240, 216, 137, 0.06);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 850px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .world-orbit {
    width: min(78vw, 330px);
  }

  .feature-grid,
  .policy-grid,
  .status-grid {
    grid-template-columns: 1fr;
  }

  .support-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .page-shell,
  .footer-inner,
  .document-shell {
    width: min(100% - 1.2rem, 1120px);
  }

  .header-inner {
    min-height: 64px;
  }

  .brand-copy small,
  .site-nav > a {
    display: none;
  }

  .app-switcher summary {
    padding: 0.5rem 0.75rem;
  }

  .page-shell {
    padding-top: 1rem;
  }

  .hero {
    padding: 1.5rem;
    border-radius: 22px 22px 22px 8px;
  }

  h1 {
    font-size: clamp(2.7rem, 17vw, 4.4rem);
  }

  .button-row,
  .button {
    width: 100%;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 1.5rem;
  }
}

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