/* ============================================================
   Terra Nova — Age of Discovery — marketing site
   Palette matches Docs/PublisherPitchDeck.preview.html branding.
   ============================================================ */

/* ---------- self-hosted fonts (GDPR: no third-party requests) ----------
   Cinzel & Inter, SIL Open Font License 1.1 — licence texts in /fonts.
   Variable fonts: one file per subset covers weights 400-700.        */

@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/cinzel-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/cinzel-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ground:    #0a1420;   /* page background            */
  --ground-2:  #0d1826;   /* alternating section bg     */
  --panel:     #15263d;   /* cards / panels             */
  --panel-2:   #122036;
  --well:      #0e1c2f;
  --ink:       #ece3d0;   /* primary text               */
  --muted:     #8b9db4;   /* secondary text             */
  --line:      #27394f;   /* borders                    */
  --brass:     #c9a24b;   /* gold accent                */
  --brass-dim: #7d6531;
  --sea:       #5aab9e;   /* teal accent                */
  --amber:     #d3924a;

  --font-display: "Cinzel", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", "Segoe UI", system-ui, sans-serif;

  --wrap: 1180px;
  --wrap-narrow: 880px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--sea); text-decoration: none; }
a:hover { color: var(--ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: var(--wrap-narrow); }

/* screen-reader-only text (keeps a real <h1> in the DOM behind the logo) */
.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;
}

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; }

h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  letter-spacing: 0.02em;
  margin-bottom: 0.5em;
}

.section-kicker {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 14px;
}
.section-kicker::before {
  content: "";
  display: inline-block;
  width: 34px; height: 1px;
  background: var(--brass-dim);
  vertical-align: middle;
  margin-right: 12px;
}

.section-head { margin-bottom: 48px; }
.section-sub { color: var(--muted); max-width: 62ch; }
.lede { font-size: 1.12rem; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  padding: 14px 28px;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(180deg, #d9b25e, var(--brass));
  color: #16202e;
  box-shadow: 0 4px 18px rgba(201, 162, 75, 0.25);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(201, 162, 75, 0.4); color: #0a1420; }
.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(21, 38, 61, 0.4);
}
.btn-ghost:hover { border-color: var(--brass); color: var(--brass); }
.btn-small { padding: 9px 20px; font-size: 0.85rem; }
.btn-disabled { opacity: 0.45; cursor: not-allowed; pointer-events: auto; }
.btn-disabled:hover { transform: none; border-color: var(--line); color: var(--ink); }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 20, 32, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.nav.scrolled {
  background: rgba(10, 20, 32, 0.92);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark { width: 40px; height: 40px; }
.brand-logo { height: 52px; width: auto; }
.brand-text {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.3;
  display: flex;
  flex-direction: column;
}
.brand-text em {
  font-style: normal;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: 0.24em;
}
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover, .nav-links a.active { color: var(--brass); border-bottom-color: var(--brass); }

.lang-switch {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 7px 11px;
  line-height: 1;
  flex-shrink: 0;
}
.lang-switch:hover { color: var(--brass); border-color: var(--brass); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-burger span { width: 24px; height: 2px; background: var(--ink); transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.hero-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(10, 20, 32, 0) 0%, rgba(10, 20, 32, 0.55) 65%, rgba(10, 20, 32, 0.92) 100%),
    linear-gradient(180deg, rgba(10, 20, 32, 0.65) 0%, rgba(10, 20, 32, 0.15) 35%, rgba(10, 20, 32, 0.97) 100%);
}
.hero-content { position: relative; max-width: 860px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sea);
  border: 1px solid rgba(90, 171, 158, 0.35);
  background: rgba(90, 171, 158, 0.08);
  border-radius: 100px;
  padding: 8px 18px;
  margin-bottom: 34px;
}
.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--sea);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(90, 171, 158, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(90, 171, 158, 0); }
}

.hero-title { display: flex; justify-content: center; }
.hero-logo {
  width: min(460px, 76vw);
  height: auto;
  filter: drop-shadow(0 14px 44px rgba(0, 0, 0, 0.6));
}
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  color: var(--ink);
  letter-spacing: 0.04em;
  margin: 26px 0 18px;
}
.hero-pitch {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 36px;
  font-size: 1.02rem;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-meta {
  margin-top: 30px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-scroll {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  color: var(--brass);
  font-size: 1.3rem;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- numbers strip ---------- */
.numbers {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ground-2);
  padding: 44px 0;
}
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 18px;
  text-align: center;
}
.num strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  color: var(--brass);
  line-height: 1.1;
}
.num span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- overview ---------- */
.overview { padding: 110px 0 90px; text-align: center; }
.overview .section-kicker::before { display: none; }
.positioning {
  margin-top: 44px;
  padding: 30px 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: inline-block;
}
.positioning p {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--brass);
  max-width: 46ch;
}

/* ---------- feature showcase ---------- */
.features { padding: 40px 0 60px; }
.feature {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: 44px 0;
}
.feature-flip .feature-media { order: 2; }
.feature-flip .feature-copy  { order: 1; }

.feature-media {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.feature-media::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid rgba(201, 162, 75, 0.18);
  border-radius: 4px;
  pointer-events: none;
}
.feature-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.feature-copy h3 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.feature-index {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--sea);
  margin-bottom: 10px;
}
.feature-copy p { color: var(--muted); }
.feature-copy strong { color: var(--ink); }

.feature-hero {
  background: linear-gradient(180deg, rgba(21, 38, 61, 0.45), rgba(21, 38, 61, 0));
  border-top: 1px solid var(--line);
  border-radius: 6px;
  padding: 56px clamp(20px, 4vw, 48px);
}

/* ---------- secondary features ---------- */
.more-features { padding: 80px 0 100px; background: var(--ground-2); border-top: 1px solid var(--line); }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: linear-gradient(165deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 30px 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 75, 0.5);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.card-icon {
  width: 46px; height: 46px;
  border: 1px solid var(--brass-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg {
  width: 22px; height: 22px;
  fill: none;
  stroke: var(--brass);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h4 { font-size: 1.12rem; margin-bottom: 10px; letter-spacing: 0.02em; }
.card p { font-size: 0.94rem; color: var(--muted); }

/* ---------- media / gallery ---------- */
.media { padding: 100px 0; }
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.shot {
  display: block;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.35s ease; }
.shot:hover { border-color: var(--brass); transform: translateY(-3px); }
.shot:hover img { transform: scale(1.04); }

/* ---------- lightbox ---------- */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(6, 12, 20, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vmin;
}
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 28px;
  font-size: 2.2rem;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}
.lightbox-close:hover { color: var(--brass); }

/* ---------- world / nations ---------- */
.world { padding: 100px 0; background: var(--ground-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nations {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 50px;
}
.nations li {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--brass-dim);
  border-radius: 100px;
  padding: 10px 22px;
  background: rgba(201, 162, 75, 0.05);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.nations li:hover { background: rgba(201, 162, 75, 0.14); border-color: var(--brass); }
.world-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.wd h4 { color: var(--brass); font-size: 1.02rem; margin-bottom: 8px; letter-spacing: 0.04em; }
.wd p { font-size: 0.92rem; color: var(--muted); }

/* ---------- development ---------- */
.development { padding: 100px 0; }
.roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 14px;
}
.road-step {
  background: linear-gradient(165deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  border-radius: 4px;
  padding: 26px 24px;
}
.road-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sea);
}
.road-step h4 { margin: 10px 0 8px; font-size: 1.08rem; }
.road-step p { font-size: 0.92rem; color: var(--muted); }

/* ---------- feature status table ---------- */
.status { padding: 100px 0; background: var(--ground-2); border-top: 1px solid var(--line); }
.status-table {
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  background: var(--well);
}
.status-row {
  display: grid;
  grid-template-columns: 1fr 148px;
  gap: 18px;
  align-items: start;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(39, 57, 79, 0.55);
}
.status-row:last-child { border-bottom: none; }
.status-row h4 { font-size: 1rem; margin-bottom: 3px; letter-spacing: 0.02em; }
.status-row p { font-size: 0.87rem; color: var(--muted); margin: 0; }
.pill {
  justify-self: end;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
  white-space: nowrap;
  border: 1px solid;
}
.pill-in    { color: #7fc9a9; border-color: rgba(127, 201, 169, 0.45); background: rgba(127, 201, 169, 0.10); }
.pill-rough { color: var(--amber); border-color: rgba(211, 146, 74, 0.45); background: rgba(211, 146, 74, 0.10); }
.pill-not   { color: #c98b8b; border-color: rgba(201, 139, 139, 0.42); background: rgba(201, 139, 139, 0.09); }
.status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  margin-bottom: 26px;
  font-size: 0.85rem;
  color: var(--muted);
}
.status-legend span { display: flex; align-items: center; gap: 9px; }
.status-foot { margin-top: 22px; font-size: 0.88rem; color: var(--muted); }

/* ---------- creators ---------- */
.creators { padding: 100px 0; }
.creators-box {
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  border-radius: 4px;
  background: linear-gradient(165deg, var(--panel), var(--panel-2));
  padding: 34px clamp(22px, 4vw, 40px);
}
.creators-list { list-style: none; margin: 22px 0 26px; display: grid; gap: 12px; }
.creators-list li { position: relative; padding-left: 26px; color: var(--muted); font-size: 0.95rem; }
.creators-list li::before {
  content: "⚓";
  position: absolute;
  left: 0; top: 0;
  color: var(--brass);
  font-size: 0.9rem;
}
.creators-list strong { color: var(--ink); }

/* ---------- follow ---------- */
.follow {
  padding: 100px 0;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(90, 171, 158, 0.08), transparent 60%),
    var(--ground-2);
  border-top: 1px solid var(--line);
  text-align: center;
}
.follow .section-kicker::before { display: none; }
.follow .section-sub { margin: 0 auto; }
.follow-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
}

/* ---------- faq ---------- */
.faq { padding: 100px 0; }
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(165deg, var(--panel), var(--panel-2));
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 54px 20px 24px;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--brass);
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { padding: 0 24px 22px; color: var(--muted); font-size: 0.95rem; }

/* ---------- press ---------- */
.press { padding: 100px 0; background: var(--ground-2); border-top: 1px solid var(--line); }
.facts dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--well);
  padding: 10px 28px;
  margin-bottom: 34px;
}
.facts dl > div {
  display: flex;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(39, 57, 79, 0.6);
}
.facts dl > div:nth-last-child(-n+2) { border-bottom: none; }
.facts dt {
  flex: 0 0 96px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  padding-top: 3px;
}
.facts dd { font-size: 0.94rem; color: var(--ink); }
.fine { color: var(--muted); font-size: 0.85em; }
.boilerplate { color: var(--muted); font-size: 0.95rem; border-left: 3px solid var(--brass-dim); padding-left: 22px; }
.press-note { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.press-note h4 { font-size: 1.05rem; color: var(--brass); margin-bottom: 12px; letter-spacing: 0.03em; }
.press-note p { color: var(--muted); font-size: 0.94rem; margin-bottom: 13px; }
.press-note p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.footer-inner { display: flex; flex-direction: column; gap: 30px; }
.footer-brand { display: flex; gap: 22px; align-items: flex-start; max-width: 640px; flex-wrap: wrap; }
.footer-logo { height: 52px; width: auto; flex-shrink: 0; }
.footer-brand strong { font-family: var(--font-display); letter-spacing: 0.1em; }
.footer-brand p { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-links a:hover { color: var(--brass); }
.footer-fine { font-size: 0.76rem; color: rgba(139, 157, 180, 0.6); }

/* ---------- HTTPS warning banner (only appears if served over plain HTTP) ----------
   Pinned to the top so it can't be scrolled away — it reports a real
   misconfiguration. Its height is MEASURED at runtime by js/site-guard.js,
   which offsets the fixed nav and the page body accordingly, so the layout
   stays correct no matter how the text wraps. Don't hardcode heights here. */
#httpsWarning {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  background: #7a1f1f;
  border-bottom: 2px solid #d64545;
  color: #ffe9e9;
  padding: 12px 24px;
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: center;
}
#httpsWarning strong { display: block; letter-spacing: 0.06em; margin-bottom: 2px; }
#httpsWarning span { color: rgba(255, 233, 233, 0.85); }

/* ---------- legal pages (imprint / privacy) ---------- */
.legal-page { padding: 130px 0 90px; }
.legal-page .wrap { max-width: 760px; }
.legal-back {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}
.legal-back:hover { color: var(--brass); }
.legal-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}
.legal-page .legal-sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 40px; }
.legal-page h2 {
  font-size: 1.2rem;
  margin: 38px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--brass);
}
.legal-page h3 { font-size: 1rem; margin: 24px 0 8px; color: var(--ink); }
.legal-page p, .legal-page li { color: var(--muted); font-size: 0.95rem; }
.legal-page p { margin-bottom: 14px; }
.legal-page ul { margin: 0 0 16px 22px; }
.legal-page li { margin-bottom: 7px; }
.legal-page address { font-style: normal; color: var(--ink); line-height: 1.8; }
.legal-page strong { color: var(--ink); }
.todo {
  display: inline-block;
  background: rgba(211, 146, 74, 0.14);
  border: 1px dashed var(--amber);
  color: var(--amber);
  border-radius: 3px;
  padding: 1px 8px;
  font-size: 0.88em;
  font-weight: 600;
}
.legal-note {
  border-left: 3px solid var(--amber);
  background: rgba(211, 146, 74, 0.07);
  padding: 16px 20px;
  border-radius: 0 3px 3px 0;
  margin-bottom: 34px;
}
.legal-note p { margin: 0; font-size: 0.9rem; }

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .numbers-grid { grid-template-columns: repeat(5, 1fr); row-gap: 28px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 20, 32, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid rgba(39, 57, 79, 0.5); }
  .nav-burger { display: flex; }
  .nav-cta { display: none; }

  .feature, .feature-flip { grid-template-columns: 1fr; gap: 24px; padding: 34px 0; }
  .feature-flip .feature-media { order: 1; }
  .feature-flip .feature-copy  { order: 2; }
  .world-details, .roadmap { grid-template-columns: 1fr; }
  .facts dl { grid-template-columns: 1fr; }
  .facts dl > div:nth-last-child(-n+2) { border-bottom: 1px solid rgba(39, 57, 79, 0.6); }
  .facts dl > div:last-child { border-bottom: none; }
}

@media (max-width: 560px) {
  .numbers-grid { grid-template-columns: repeat(3, 1fr); }
  .cards, .gallery { grid-template-columns: 1fr; }
  .brand-logo { height: 38px; }
  .hero { padding-top: 100px; }
}
