/* Deep Space: War for Supremacy - beta landing page (one dark theme) */

/* ---------- Fonts: local files only, no third-party requests ---------- */
@font-face {
  font-family: "Oxanium";
  src: url("assets/fonts/Oxanium-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Oxanium";
  src: url("assets/fonts/Oxanium-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("assets/fonts/Barlow-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("assets/fonts/Barlow-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  --color-deep-ink: #061420;
  --color-main-text: #eaf5f8;
  --color-secondary-text: #b8d0d9;
  --color-hull: #d3dae5;
  --color-reading-cyan: #9be6f0;
  --color-mint: #a9ebd3;
  --color-mint-hover: #c2f2e2;
  --color-amber: #f1c87a;
  --color-glow-cyan: #5db8de;
  --color-panel-edge: rgba(155, 230, 240, 0.34);
  --color-glass: rgba(6, 23, 34, 0.82);
  --color-band: #071824;
  --color-focus: #d4f8ff;
  --color-header-bg: rgba(6, 20, 32, 0.92);
  --color-input-bg: rgba(6, 20, 32, 0.86);

  --font-display: "Oxanium", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;

  --page-gutter: max(16px, 5vw);
}

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-width: 0;
  background: var(--color-deep-ink);
  color: var(--color-main-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: break-word;
}

[id] {
  scroll-margin-top: 96px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
}

h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.02;
  text-wrap: balance;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--color-reading-cyan);
}

a:hover {
  color: var(--color-focus);
}

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

figure {
  margin: 0;
}

:focus-visible,
input:focus {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Honeypot: kept out of sight and out of the tab order; bots still fill it */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 22px;
  background: var(--color-mint);
  color: var(--color-deep-ink);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--color-reading-cyan);
}

/* Inline links inside running text: larger hit area without changing the line layout */
.text-link {
  padding-block: 12px;
  margin-block: -12px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--color-header-bg);
  border-bottom: 1px solid var(--color-panel-edge);
}

.site-header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  min-height: 64px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--color-main-text);
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-main-text);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--color-reading-cyan);
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 22px;
  background: var(--color-mint);
  color: var(--color-deep-ink);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
}

.btn-pill:hover {
  background: var(--color-mint-hover);
  color: var(--color-deep-ink);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 720px;
  padding: 72px 0 96px;
  background: var(--color-deep-ink);
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(90deg, rgba(6, 20, 32, 0.94) 0%, rgba(6, 20, 32, 0.6) 38%, rgba(6, 20, 32, 0) 62%),
    linear-gradient(0deg, rgba(6, 20, 32, 1) 0%, rgba(6, 20, 32, 0) 22%);
}

/* Same centred 1320px container and gutter as the header, so the left edges line up */
.hero-content {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-content > * {
  max-width: 580px;
}

.hero-lede {
  font-size: 21px;
  line-height: 1.45;
  color: var(--color-hull);
}

.fine-print {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-secondary-text);
}

/* ---------- Sign-up forms (hero and final call) ---------- */
.signup {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.signup-input {
  flex: 1 1 240px;
  min-width: 0;
  height: 58px;
  padding: 0 18px;
  border: 1px solid var(--color-glow-cyan);
  border-radius: 0;
  background: var(--color-input-bg);
  color: var(--color-main-text);
  font-family: var(--font-body);
  font-size: 17px;
}

.btn-submit {
  flex: 0 0 auto;
  height: 58px;
  min-height: 44px;
  padding: 0 30px;
  border: 0;
  border-radius: 29px;
  background: var(--color-mint);
  color: var(--color-deep-ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
}

.btn-submit:hover {
  background: var(--color-mint-hover);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

.form-status {
  flex: 1 1 100%;
  min-height: 24px;
  font-size: 15px;
  color: var(--color-secondary-text);
}

/* Empty status line: no height, no margin, no row gap (element stays in the DOM for role="status") */
.form-status:empty {
  min-height: 0;
  height: 0;
  margin: 0;
  padding: 0;
}

.signup:has(.form-status:empty) {
  row-gap: 0;
}

.form-status[data-state="error"] {
  color: var(--color-amber);
}

.form-status[data-state="ok"] {
  color: var(--color-mint);
}

/* ---------- Facts ---------- */
.facts {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-panel-edge);
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Scroll target for the "The game" link: header height (64px) plus 24px of air */
#game {
  scroll-margin-top: 88px;
}

.fact-value {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
}

.fact-label {
  font-size: 15px;
  color: var(--color-secondary-text);
}

/* ---------- Feature rows ---------- */
.features {
  max-width: 1320px;
  margin: 0 auto;
  padding: 112px var(--page-gutter) 0;
  display: flex;
  flex-direction: column;
  gap: 112px;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: center;
  gap: 40px 64px;
}

.feature > .shot-frame {
  grid-column: 1;
  grid-row: 1;
}

.feature > .feature-text {
  grid-column: 2;
  grid-row: 1;
}

.feature--flip > .shot-frame {
  grid-column: 2;
}

.feature--flip > .feature-text {
  grid-column: 1;
}

/* Same 3:2 split on both sides: the image column stays 3fr wherever it sits */
.feature--flip {
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
}

.feature-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-text p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-hull);
}

.shot-frame {
  min-width: 0;
  border: 1px solid var(--color-panel-edge);
}

.shot-link {
  display: block;
}

.shot-frame img {
  width: 100%;
  height: auto;
}

/* ---------- Gallery ---------- */
.more {
  max-width: 1320px;
  margin: 0 auto;
  padding: 112px var(--page-gutter) 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.more-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 24px;
}

.more-hint {
  font-size: 15px;
  color: var(--color-secondary-text);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 20px;
}

.tile {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tile img {
  width: 100%;
  height: auto;
  border: 1px solid var(--color-panel-edge);
}

.tile figcaption {
  font-size: 14px;
  color: var(--color-secondary-text);
}

/* ---------- Story ---------- */
.story {
  max-width: 1200px;
  margin: 0 auto;
  padding: 128px var(--page-gutter) 112px;
  display: flex;
  justify-content: center;
}

.story-inner {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.story-inner h2 {
  line-height: 1.1;
}

.story-inner p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-hull);
}

.signature {
  display: flex;
  align-items: center;
  gap: 16px;
}

.portrait {
  width: 88px;
  height: 88px;
  flex: none;
  border: 1px solid var(--color-panel-edge);
  border-radius: 50%;
  background: #ffffff;
  object-fit: cover;
}

.signature-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.signature-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--color-main-text);
}

.signature-role {
  font-size: 15px;
  color: var(--color-secondary-text);
}

/* ---------- How it works ---------- */
.how {
  background: var(--color-band);
  border-top: 1px solid var(--color-panel-edge);
  border-bottom: 1px solid var(--color-panel-edge);
}

.how-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px var(--page-gutter);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.how-head {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 20px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--color-panel-edge);
  background: var(--color-glass);
}

.step-no {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-amber);
}

.step h3 {
  font-size: 22px;
}

.step p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-secondary-text);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 1200px;
  margin: 0 auto;
  padding: 112px var(--page-gutter);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.faq > h2 {
  line-height: 1.1;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 40px 64px;
}

.faq-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item h3 {
  font-size: 20px;
}

.faq-item p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-secondary-text);
}

/* ---------- Final call ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--color-panel-edge);
  background: var(--color-deep-ink);
}

.cta-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
}

.cta-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% 40%;
}

.cta-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: linear-gradient(
    90deg,
    rgba(6, 20, 32, 0.95) 0%,
    rgba(6, 20, 32, 0.72) 45%,
    rgba(6, 20, 32, 0.2) 100%
  );
}

.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 112px var(--page-gutter);
}

.cta-content {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cta-content h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
}

.cta-lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-hull);
}

.cta-label {
  flex: 1 1 100%;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-panel-edge);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px var(--page-gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: var(--color-secondary-text);
}

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

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-contact {
  flex: 1 1 100%;
}

/* ---------- Lightbox (native dialog) ---------- */
dialog.lightbox {
  width: min(96vw, 1400px);
  max-width: 96vw;
  max-height: 94vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-main-text);
}

dialog.lightbox::backdrop {
  background: rgba(3, 10, 16, 0.88);
}

.lightbox-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--color-panel-edge);
  background: var(--color-band);
}

.lightbox-bar,
.lightbox-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.lightbox-count {
  font-size: 15px;
  color: var(--color-secondary-text);
}

.lightbox-figure {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.lightbox-figure picture {
  display: flex;
  justify-content: center;
}

.lightbox-figure img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(94vh - 190px);
  object-fit: contain;
}

.lightbox-figure figcaption {
  font-size: 16px;
  color: var(--color-hull);
}

.btn-ghost {
  min-width: 44px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--color-glow-cyan);
  border-radius: 0;
  background: transparent;
  color: var(--color-main-text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}

.btn-ghost:hover {
  border-color: var(--color-reading-cyan);
}

/* ---------- Legal pages (Impressum, Datenschutz) ---------- */
.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px var(--page-gutter) 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.draft-notice {
  padding: 14px 18px;
  border: 2px solid var(--color-amber);
  background: rgba(241, 200, 122, 0.1);
  color: var(--color-amber);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
}

.legal-main h2 {
  font-size: 22px;
  line-height: 1.2;
}

.legal-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-main p,
.legal-main li {
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-hull);
}

.legal-main ul {
  margin: 0;
  padding-left: 20px;
}

/* ---------- Responsive ---------- */
@media (min-width: 900px) {
  .gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 899.98px) {
  .feature {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Image first, text under it, on every row */
  .feature > .shot-frame,
  .feature > .feature-text,
  .feature--flip > .shot-frame,
  .feature--flip > .feature-text {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 759.98px) {
  /* Facts strip: 2 by 2 on phones */
  .facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Phones: top-to-bottom wash so the hero text sits on a dark field, not on the station */
  .hero-shade {
    background-image: linear-gradient(180deg, rgba(6, 20, 32, 0.62) 0%, rgba(6, 20, 32, 0.92) 100%);
  }

  .nav-link {
    display: none;
  }

  .site-nav {
    gap: 0;
  }

  .hero {
    min-height: 0;
    padding: 56px 0 72px;
  }
}
