/* ==========================================================================
   BADERNA — Dark Steel & Spectral Teal Stylesheet
   Follows DESIGN.md with sections (h), (i), (j) overriding earlier palette.
   Near-black surfaces, spectral teal primary accent, restrained ember sparks.
   ========================================================================== */

:root {
  /* Surfaces (pulled from hero.png, wordmark.png, accord.png, pvp.png, races.png) */
  --bg-void: #070909;
  --bg-abyss: #0b0f10;
  --surface-iron: #101516;
  --surface-steel: #161d1f;
  --surface-hover: #1c2527;

  /* Borders & forged steel edges */
  --border-steel: #243032;
  --border-edge: #36474a;
  --border-subtle: #1a2325;

  /* Text (all >= 4.9:1 WCAG AA; primary & secondary >= 7:1 AAA on dark surfaces) */
  --text-primary: #dce3e2;
  --text-secondary: #98a7a6;
  --text-muted: #829291;
  --text-on-teal: #050909;

  /* Spectral teal (primary accent) & small ember counterpoint */
  --accent-teal: #34d6c6;
  --accent-teal-bright: #60ede0;
  --accent-teal-dim: #1c7c73;
  --accent-ember: #e0863b;
  --accent-ember-dim: rgba(224, 134, 59, 0.34);

  /* Subtle glows */
  --glow-teal-faint: rgba(52, 214, 198, 0.1);
  --glow-teal-soft: rgba(52, 214, 198, 0.2);
  --glow-teal-strong: rgba(52, 214, 198, 0.38);
  --glow-ember-faint: rgba(224, 134, 59, 0.16);

  /* Typography */
  --font-display: "Cinzel", Georgia, "Times New Roman", serif;
  --font-body: "Alegreya Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Layout & spacing */
  --container-max: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-py: clamp(4rem, 8vw, 6.25rem);
  --header-h: 4.25rem;
  --radius-xs: 2px;
  --radius-sm: 3px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-void);
  color: var(--text-primary);
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background-color: var(--bg-void);
  background-image:
    radial-gradient(ellipse 90% 40% at 50% 0%, rgba(28, 124, 115, 0.08), transparent 70%);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 1vw + 0.9rem, 1.125rem);
  line-height: 1.6;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

a {
  color: var(--accent-teal);
  text-decoration-color: rgba(52, 214, 198, 0.45);
  text-underline-offset: 0.22em;
  transition: color 180ms ease, text-decoration-color 180ms ease, text-shadow 180ms ease;
}

a:hover {
  color: var(--accent-teal-bright);
  text-decoration-color: var(--accent-teal-bright);
}

:focus-visible {
  outline: 2px solid var(--accent-teal);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

::selection {
  background: rgba(52, 214, 198, 0.28);
  color: var(--text-primary);
}

/* Accessibility utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -4rem;
  left: 1rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--accent-teal);
  color: var(--text-on-teal);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.75);
  transition: top 140ms ease;
}

.skip-link:focus {
  top: 1rem;
}

/* Layout containers */
.container {
  width: min(100% - (var(--gutter) * 2), var(--container-max));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--section-py);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

/* Subtle alternating ground tone for visual cadence */
.section-facts,
.section-download {
  background: linear-gradient(
    to bottom,
    rgba(11, 15, 16, 0.55) 0%,
    rgba(11, 15, 16, 0.92) 50%,
    rgba(11, 15, 16, 0.55) 100%
  );
}

/* Shared typography patterns */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  color: var(--accent-teal);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: linear-gradient(to right, var(--accent-ember), var(--accent-teal));
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 3.2vw, 2.65rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.section-lead {
  margin-top: 1rem;
  max-width: 54ch;
  color: var(--text-secondary);
  font-size: clamp(1.0625rem, 1.2vw, 1.2rem);
  line-height: 1.55;
}

.section-header-compact {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.inline-link {
  font-weight: 500;
}

.inline-link:hover {
  text-shadow: 0 0 12px var(--glow-teal-soft);
}

/* ==========================================================================
   Sticky Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 9, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-steel);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding-block: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--accent-teal-bright);
}

.brand-emblem {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-steel);
  background: var(--bg-void);
  object-fit: cover;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.brand:hover .brand-emblem {
  border-color: var(--accent-teal);
  box-shadow: 0 0 14px var(--glow-teal-soft);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

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

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 1.85rem);
  list-style: none;
  padding: 0;
}

.nav-list a {
  display: inline-block;
  padding-block: 0.35rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--text-primary);
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after {
  transform: scaleX(1);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
}

.lang-switch a {
  display: inline-block;
  padding: 0.3rem 0.38rem;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
}

.lang-switch a::after {
  content: "";
  position: absolute;
  left: 0.38rem;
  right: 0.38rem;
  bottom: 0.05rem;
  height: 1px;
  background: var(--accent-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.lang-switch a:hover,
.lang-switch a:focus-visible {
  color: var(--text-primary);
}

.lang-switch a:hover::after,
.lang-switch a:focus-visible::after {
  transform: scaleX(1);
}

.lang-switch a[aria-current="page"] {
  color: var(--accent-teal);
}

.lang-switch a[aria-current="page"]::after {
  transform: scaleX(1);
}

.lang-sep {
  color: var(--border-edge);
  font-size: 0.75rem;
  user-select: none;
}

/* ==========================================================================
   Buttons (Forged Steel & Spectral Teal)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.btn-primary {
  background: linear-gradient(180deg, #3ce0d0 0%, #26b7a9 100%);
  color: var(--text-on-teal);
  border-color: rgba(128, 245, 234, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 22px rgba(52, 214, 198, 0.2),
    0 6px 18px rgba(0, 0, 0, 0.45);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #58eee0 0%, #34cbbd 100%);
  color: var(--text-on-teal);
  border-color: #9bf9f0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 0 30px var(--glow-teal-strong),
    0 8px 22px rgba(0, 0, 0, 0.55);
  transform: translateY(-1px);
}

.btn-primary:active {
  background: #23a89b;
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(16, 21, 22, 0.88);
  color: var(--text-primary);
  border-color: var(--border-edge);
  box-shadow:
    inset 0 1px 0 rgba(220, 227, 226, 0.08),
    0 4px 14px rgba(0, 0, 0, 0.4);
}

.btn-secondary:hover {
  background: var(--surface-steel);
  color: var(--text-primary);
  border-color: var(--accent-teal);
  box-shadow:
    inset 0 1px 0 rgba(96, 237, 224, 0.14),
    0 0 22px var(--glow-teal-soft),
    0 6px 18px rgba(0, 0, 0, 0.5);
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-header {
  padding: 0.58rem 1.05rem;
  font-size: 0.8125rem;
  background: rgba(16, 21, 22, 0.92);
  color: var(--accent-teal);
  border-color: rgba(52, 214, 198, 0.48);
  flex-shrink: 0;
}

.btn-header:hover {
  background: rgba(52, 214, 198, 0.14);
  color: var(--accent-teal-bright);
  border-color: var(--accent-teal-bright);
  box-shadow: 0 0 18px var(--glow-teal-soft);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   1. Hero (Full-Bleed Fortress, Upper-Left Headline Block)
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(36rem, 86vh, 56rem);
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  background-color: var(--bg-void);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Keeps the fortress tower & spectral teal beacon prominent on the right */
  object-position: 74% 30%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    /* Dark upper-left pocket reinforcing negative space behind the wordmark & copy */
    radial-gradient(
      ellipse 64% 72% at 20% 30%,
      rgba(7, 9, 9, 0.78) 0%,
      rgba(7, 9, 9, 0.42) 56%,
      rgba(7, 9, 9, 0) 100%
    ),
    /* Left-to-right readability veil that leaves the right fortress crisp */
    linear-gradient(
      105deg,
      rgba(7, 9, 9, 0.76) 0%,
      rgba(7, 9, 9, 0.44) 40%,
      rgba(7, 9, 9, 0.06) 68%,
      rgba(7, 9, 9, 0.2) 100%
    ),
    /* Top edge & bottom bleed dissolving cleanly into --bg-void */
    linear-gradient(
      to bottom,
      rgba(7, 9, 9, 0.52) 0%,
      rgba(7, 9, 9, 0.05) 18%,
      rgba(7, 9, 9, 0.08) 64%,
      rgba(7, 9, 9, 0.84) 90%,
      var(--bg-void) 100%
    );
}

.hero-container {
  position: relative;
  padding-top: clamp(3.25rem, 9vh, 6.75rem);
  padding-bottom: clamp(4.5rem, 12vh, 8.5rem);
}

.hero-content {
  max-width: 34rem;
}

.hero-title {
  margin-bottom: 1.15rem;
}

/* Seamlessly melts wordmark.png's near-black backdrop into the dark upper-left sky.
   Keeping hero-media and hero-container in the same stacking context lets lighten
   composite directly over hero.jpg, while the inner img mask feathers the perimeter. */
.wordmark-wrap {
  display: block;
  width: min(100%, 31rem);
  margin-left: -0.35rem;
  mix-blend-mode: lighten;
}

.hero-wordmark {
  width: 100%;
  height: auto;
  /* Crush the image's smoky backdrop to black so the lighten blend hides it. */
  filter: contrast(1.55) brightness(0.82);
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-composite: intersect;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.3vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  text-shadow:
    0 2px 18px rgba(0, 0, 0, 0.9),
    0 0 24px rgba(52, 214, 198, 0.16);
}

.hero-lead {
  margin-top: 0.85rem;
  max-width: 38ch;
  color: var(--text-secondary);
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
  line-height: 1.5;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

/* ==========================================================================
   Cracked-Steel Section Dividers (Pure CSS)
   ========================================================================== */
.steel-divider {
  position: relative;
  width: min(100% - (var(--gutter) * 2), var(--container-max));
  height: 2rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Primary forged-steel fracture seam */
.steel-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--border-steel) 16%,
    var(--border-edge) 42%,
    rgba(52, 214, 198, 0.55) 48.5%,
    transparent 50%,
    rgba(52, 214, 198, 0.55) 51.5%,
    var(--border-edge) 58%,
    var(--border-steel) 84%,
    transparent 100%
  );
}

/* Secondary staggered steel hairline with a subtle ember spark pinpoint */
.steel-divider::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  top: calc(50% + 5px);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(36, 48, 50, 0.65) 26%,
    rgba(54, 71, 74, 0.45) 56%,
    rgba(224, 134, 59, 0.65) 61%,
    rgba(36, 48, 50, 0.4) 68%,
    transparent 100%
  );
}

/* Centered split blackened-steel shard with a spectral teal rift */
.steel-divider-rift {
  position: relative;
  z-index: 1;
  width: 2.25rem;
  height: 1.25rem;
  background: radial-gradient(
    ellipse 32% 72% at 50% 50%,
    rgba(52, 214, 198, 0.95) 0%,
    rgba(52, 214, 198, 0.35) 45%,
    transparent 100%
  );
}

.steel-divider-rift::before,
.steel-divider-rift::after {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  width: 12px;
  background: linear-gradient(155deg, #2d3c3f 0%, #121819 60%, #090d0e 100%);
  box-shadow: inset 0 0 0 1px rgba(96, 237, 224, 0.25);
}

.steel-divider-rift::before {
  left: 2px;
  clip-path: polygon(0 50%, 100% 0, 82% 52%, 100% 100%);
}

.steel-divider-rift::after {
  right: 2px;
  clip-path: polygon(0 0, 100% 50%, 0 100%, 18% 48%);
}

/* ==========================================================================
   Framed Artwork (Painterly Perimeter Vignette, No Body Text Overlay)
   ========================================================================== */
.art-frame {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-steel);
  background: var(--bg-void);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.62);
}

.art-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow:
    inset 0 0 54px 16px rgba(7, 9, 9, 0.78),
    inset 0 1px 0 rgba(220, 227, 226, 0.08);
}

.art-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ==========================================================================
   2. The World
   ========================================================================== */
.idea-header {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

.idea-prose {
  max-width: 60ch;
}

.idea-prose p {
  color: var(--text-secondary);
  font-size: clamp(1.0625rem, 1.1vw, 1.175rem);
  line-height: 1.65;
}

.idea-prose p + p {
  margin-top: 1rem;
}

.art-frame-wide {
  width: 100%;
}

.races-media {
  position: relative;
}

.races-media::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 19%;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(7, 9, 9, 0) 0%,
    rgba(7, 9, 9, 0.28) 20%,
    rgba(7, 9, 9, 0.42) 48%,
    rgba(7, 9, 9, 0.46) 100%
  );
}

.races-badge {
  position: absolute;
  top: 52%;
  left: 90%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: max-content;
  max-width: 18%;
  padding: clamp(0.16rem, 0.4vw, 0.28rem) clamp(0.26rem, 0.8vw, 0.62rem);
  background: rgba(7, 9, 9, 0.84);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(52, 214, 198, 0.55);
  border-radius: var(--radius-xs);
  color: var(--accent-teal);
  font-family: var(--font-body);
  font-size: clamp(0.45rem, 0.32rem + 0.55vw, 0.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: clamp(0.08em, 0.12vw, 0.14em);
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 0 10px var(--glow-teal-soft);
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.72),
    0 0 14px var(--glow-teal-soft),
    inset 0 0 10px var(--glow-teal-faint);
}

/* ==========================================================================
   2b. Choose Your People
   ========================================================================== */
.peoples-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  list-style: none;
  padding: 0;
}

.peoples-grid .step-card {
  padding: 1.35rem 1.6rem 1.45rem;
}

/* ==========================================================================
   3. Server Facts
   ========================================================================== */
.facts-top {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.highlight-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.highlight-item {
  padding: 0.85rem 0.9rem;
  background: var(--surface-iron);
  border: 1px solid var(--border-steel);
  border-top-color: var(--border-edge);
  border-radius: var(--radius-xs);
}

.highlight-item dt {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.highlight-item dd {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: lining-nums tabular-nums;
}

.highlight-item dd.is-teal {
  color: var(--accent-teal);
}

.highlight-item dd.is-ember {
  color: var(--accent-ember);
}

/* Server facts ledger table */
.tables-grid {
  max-width: 48rem;
  margin-inline: auto;
}

.ledger-slab {
  display: flex;
  flex-direction: column;
  background: var(--surface-iron);
  border: 1px solid var(--border-steel);
  border-top-color: var(--border-edge);
  border-radius: var(--radius-xs);
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.36);
}

.ledger-header {
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, #1a2325 0%, var(--surface-steel) 100%);
  border-bottom: 1px solid var(--border-steel);
}

.ledger-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  flex: 1;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table thead th {
  padding: 0.75rem 1.25rem;
  background: #131a1c;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--border-edge);
}

.data-table tbody tr {
  background: var(--surface-iron);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 140ms ease;
}

.data-table tbody tr:nth-child(even) {
  background: #0d1213;
}

.data-table tbody tr:last-child {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: var(--surface-hover);
}

.data-table tbody th,
.data-table tbody td {
  padding: 0.8rem 1.25rem;
  font-size: 1rem;
  line-height: 1.4;
}

.data-table tbody th {
  font-weight: 500;
  color: var(--text-primary);
}

.data-table td.num,
.data-table th.num {
  text-align: right;
  white-space: nowrap;
}

.data-table tbody td.num {
  font-weight: 700;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--text-primary);
}

.data-table tbody td.accent-teal {
  color: var(--accent-teal);
}

.data-table tbody td.accent-ember {
  color: var(--accent-ember);
}

/* ==========================================================================
   4. How to Join
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
}

.step-card {
  position: relative;
  padding: 1.75rem 1.6rem 1.85rem;
  background: linear-gradient(180deg, #13191b 0%, var(--surface-iron) 100%);
  border: 1px solid var(--border-steel);
  border-top-color: var(--border-edge);
  border-radius: var(--radius-sm);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.step-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 1.6rem;
  width: 2.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-teal), transparent);
}

.step-card:hover {
  border-color: rgba(52, 214, 198, 0.42);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 24px var(--glow-teal-faint);
}

.step-num {
  display: block;
  margin-bottom: 0.8rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--accent-teal);
  text-shadow: 0 0 18px var(--glow-teal-soft);
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}

.step-body {
  margin-top: 0.65rem;
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.55;
}

/* ==========================================================================
   5. Download
   ========================================================================== */
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: linear-gradient(180deg, #141b1d 0%, var(--surface-iron) 100%);
  border: 1px solid var(--border-steel);
  border-top-color: var(--border-edge);
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.download-card:hover {
  border-color: rgba(52, 214, 198, 0.45);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.52), 0 0 28px var(--glow-teal-faint);
}

.download-card-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.os-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  color: var(--accent-teal);
  background: var(--bg-abyss);
  border: 1px solid var(--border-edge);
  border-radius: var(--radius-xs);
  box-shadow: inset 0 0 14px rgba(52, 214, 198, 0.08);
}

.download-platform {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
}

.platform-tag {
  display: inline-block;
  padding: 0.16rem 0.55rem;
  background: var(--surface-steel);
  border: 1px solid var(--border-edge);
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.download-sub {
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.download-meta {
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.file-size {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  font-weight: 600;
}

.download-card .btn {
  margin-top: auto;
}

/* ==========================================================================
   6. The Accord (Rules)
   ========================================================================== */
.accord-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4.5vw, 3.75rem);
  align-items: center;
}

.accord-list {
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border-steel);
}

.accord-clause {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding-block: 1.2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.accord-clause:last-child {
  border-bottom-color: var(--border-steel);
}

.clause-num {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-teal);
  text-shadow: 0 0 14px var(--glow-teal-soft);
}

.clause-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.clause-text strong {
  color: var(--text-primary);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
}

.clause-text span {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.5;
}

/* ==========================================================================
   7. Footer
   ========================================================================== */
.site-footer {
  background: #050707;
  border-top: 1px solid var(--border-steel);
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-seal {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
}

.footer-emblem {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-steel);
  background: var(--bg-void);
  box-shadow: 0 0 24px rgba(52, 214, 198, 0.12);
}

.footer-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-primary);
}

.footer-tagline {
  margin-top: 0.15rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.5rem;
}

.footer-nav a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--accent-teal);
}

.footer-legal {
  max-width: 58ch;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

/* ==========================================================================
   Responsive Breakpoints (360px through 1920px+)
   ========================================================================== */
@media (max-width: 960px) {
  :root {
    --header-h: 6.75rem;
  }

  .header-inner {
    flex-wrap: wrap;
    row-gap: 0.35rem;
    padding-block: 0.6rem;
  }

  .site-nav {
    order: 3;
    width: 100%;
    padding-top: 0.4rem;
    border-top: 1px solid var(--border-subtle);
  }

  .nav-list {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
  }

  .nav-list a {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
  }

  .lang-switch {
    margin-left: auto;
  }

  .idea-header,
  .facts-top,
  .accord-grid {
    grid-template-columns: 1fr;
  }

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

  .steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .download-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 34rem;
  }

  .hero-bg {
    object-position: 78% 18%;
  }

  .hero-scrim {
    background:
      linear-gradient(
        to bottom,
        rgba(7, 9, 9, 0.84) 0%,
        rgba(7, 9, 9, 0.72) 52%,
        rgba(7, 9, 9, 0.62) 78%,
        var(--bg-void) 100%
      );
  }

  .hero-container {
    padding-top: 2.75rem;
    padding-bottom: 3.75rem;
  }

  .wordmark-wrap {
    margin-left: -0.15rem;
  }

  .highlight-strip {
    grid-template-columns: 1fr;
  }

  .accord-clause {
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 560px) {
  :root {
    --header-h: 8.5rem;
  }

  .header-inner {
    column-gap: 0.5rem;
  }

  .lang-switch {
    order: 4;
    width: 100%;
    margin-left: 0;
    justify-content: center;
    padding-top: 0.2rem;
  }

  .lang-switch a {
    font-size: 0.78rem;
    padding: 0.25rem 0.45rem;
  }

  .peoples-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .btn-header {
    padding: 0.5rem 0.78rem;
    font-size: 0.75rem;
  }

  .brand-name {
    font-size: 0.95rem;
    letter-spacing: 0.11em;
  }

  .data-table thead th,
  .data-table tbody th,
  .data-table tbody td {
    padding: 0.7rem 0.9rem;
  }
}

@media (min-width: 1600px) {
  .hero {
    min-height: clamp(44rem, 88vh, 58rem);
  }

  .hero-bg {
    object-position: center 32%;
  }
}

/* ==========================================================================
   Reduced Motion Preference
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .btn:hover,
  .btn:active {
    transform: none;
  }
}

/* The World: ring artwork behind the heading area (decorative). */
.section-idea {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.section-idea::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: min(100%, 78rem);
  height: min(34rem, 70vw);
  background: url("img/ring.jpg") right center / cover no-repeat;
  opacity: 0.62;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 34%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 34%);
  mask-composite: intersect;
}

@media (max-width: 720px) {
  .section-idea::before {
    opacity: 0.4;
    height: 22rem;
  }
}
