:root {
  --bg: #090b0f;
  --panel: #11161d;
  --panel-2: #171d25;
  --text: #eef2f7;
  --muted: #a4afbd;
  --soft: #6f7a88;
  --line: #293241;
  --gold: #f3b83f;
  --gold-2: #d77a24;
  --teal: #2dd4bf;
  --red: #ef6461;
  --blue: #60a5fa;
  --shadow: 0 24px 70px rgba(0, 0, 0, .4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

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

.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;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 18px;
  border: 1px solid rgba(45, 212, 191, .35);
  border-radius: 8px;
  background: #0d2c29;
  color: #d7fffa;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity .2s ease, transform .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(9, 11, 15, .94);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(243, 184, 63, .55);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #111;
  font-family: Montserrat, sans-serif;
  font-weight: 900;
}

.brand strong {
  display: block;
  font-family: Montserrat, sans-serif;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  color: #d8dee8;
  font-family: Montserrat, sans-serif;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--gold);
}

.nav-cta,
.button,
.copy-card button,
.join-grid button,
.join-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.nav-cta {
  border: 0;
  padding: 10px 16px;
  background: var(--gold);
  color: #111;
  font-weight: 900;
}

.button {
  border: 1px solid transparent;
  padding: 14px 22px;
  font-family: Montserrat, sans-serif;
  font-size: .86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.button-primary {
  background: var(--gold);
  color: #111;
}

.button-secondary {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(17, 22, 29, .82);
  color: var(--text);
}

.button:hover,
.nav-cta:hover,
.join-grid button:hover,
.join-grid a:hover {
  transform: translateY(-2px);
}

.menu-button {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 120px 20px 96px;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 11, 15, .38), rgba(9, 11, 15, .92) 84%),
    linear-gradient(90deg, rgba(9, 11, 15, .68), rgba(9, 11, 15, .14)),
    url("highlights/wuerfelpark.png") center/cover;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--gold);
  font-family: Montserrat, sans-serif;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow span,
.pulse {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(45, 212, 191, .12);
}

.hero h1,
.section-heading h2,
.life-copy h2,
.faction-showcase h3,
.join h2 {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  line-height: .98;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 12ch;
  margin-inline: auto;
  overflow-wrap: anywhere;
  font-size: clamp(3.2rem, 10vw, 8.2rem);
}

.hero-copy {
  width: min(790px, 100%);
  margin: 24px auto 34px;
  color: #d4dbe5;
  font-size: clamp(1.05rem, 2.2vw, 1.42rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  color: var(--muted);
  animation: bounce 1.8s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

.status-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(1180px, calc(100% - 32px));
  margin: -48px auto 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.status-strip article {
  min-height: 104px;
  padding: 22px;
  background: rgba(17, 22, 29, .96);
}

.status-strip article:not(.copy-card) {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 14px;
  align-items: center;
}

.status-strip i {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(243, 184, 63, .25);
  border-radius: 8px;
  color: var(--gold);
  background: rgba(243, 184, 63, .08);
}

.status-strip span {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-strip strong {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.04rem;
}

.copy-card {
  padding: 0;
}

.copy-card button {
  width: 100%;
  height: 100%;
  min-height: 104px;
  justify-content: space-between;
  border: 0;
  padding: 22px;
  background: transparent;
  color: inherit;
  text-align: left;
}

.copy-card small {
  display: block;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.copy-card strong {
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 36px;
}

.section-heading.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading h2,
.life-copy h2,
.join h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  color: #ced6e1;
  font-size: 1.08rem;
}

.feature-band {
  padding-top: 34px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-grid article,
.timeline article,
.join-grid article {
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 8px;
  background: var(--panel);
}

.feature-grid article {
  padding: 28px;
  min-height: 244px;
}

.feature-grid i {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 8px;
  background: rgba(243, 184, 63, .1);
  color: var(--gold);
  font-size: 1.35rem;
}

.feature-grid article:nth-child(2n) i {
  background: rgba(45, 212, 191, .09);
  color: var(--teal);
}

.feature-grid article:nth-child(3n) i {
  background: rgba(96, 165, 250, .11);
  color: var(--blue);
}

.feature-grid h3,
.timeline h3,
.join-grid h3 {
  margin: 0 0 10px;
  font-family: Montserrat, sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
}

.feature-grid p,
.timeline p,
.join-grid p,
.footer p {
  margin: 0;
  color: var(--muted);
}

.life {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.life-copy p {
  color: #d0d8e2;
  font-size: 1.05rem;
}

.life-copy ul,
.faction-showcase ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.life-copy li {
  display: flex;
  gap: 12px;
  color: #dce3ec;
}

.life-copy li i {
  margin-top: 5px;
  color: var(--teal);
}

.city-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  min-height: 430px;
  background: var(--panel);
}

.city-panel img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

.city-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(9, 11, 15, .9));
}

.city-stats {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.city-stats span {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 8px;
  background: rgba(9, 11, 15, .75);
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.city-stats strong {
  display: block;
  color: var(--text);
  font-size: 1.35rem;
}

.factions {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: #0d1117;
  border-block: 1px solid rgba(255, 255, 255, .08);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.tab {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 8px;
  padding: 10px 15px;
  background: #0b0f14;
  color: #d4dce7;
  cursor: pointer;
  font-weight: 900;
}

.tab.active {
  border-color: rgba(243, 184, 63, .6);
  background: var(--gold);
  color: #101010;
}

.faction-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: stretch;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(17, 22, 29, .92);
}

.tag {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 6px 10px;
  border: 1px solid rgba(96, 165, 250, .35);
  border-radius: 8px;
  background: rgba(96, 165, 250, .1);
  color: #b8d6ff;
  font-family: Montserrat, sans-serif;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.faction-showcase h3 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.faction-showcase p:not(.tag) {
  color: #d3dae4;
  font-size: 1.05rem;
}

.faction-showcase li {
  color: #c6d0dd;
}

.faction-showcase li::before {
  content: "✓";
  margin-right: 10px;
  color: var(--gold);
  font-weight: 900;
}

.faction-showcase .button {
  margin-top: 28px;
}

.faction-showcase img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border-radius: 8px;
  object-fit: cover;
}

.roadmap {
  padding-bottom: 72px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.timeline article {
  padding: 24px;
}

.timeline span,
.join-grid span {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--gold);
  font-family: Montserrat, sans-serif;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.join {
  padding: 96px 16px;
  background:
    linear-gradient(180deg, rgba(9, 11, 15, .2), rgba(9, 11, 15, .9)),
    url("highlights/kino.png") center/cover;
}

.join-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.join-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.join-grid article {
  padding: 28px;
  background: rgba(9, 11, 15, .88);
}

.join-grid .featured {
  border-color: rgba(243, 184, 63, .46);
}

.join-grid strong {
  display: inline-flex;
  margin-top: 22px;
  padding: 8px 10px;
  border: 1px solid rgba(45, 212, 191, .28);
  border-radius: 8px;
  color: #b8fff6;
  font-size: .78rem;
  text-transform: uppercase;
}

.join-grid button,
.join-grid a {
  margin-top: 22px;
  border: 0;
  padding: 11px 14px;
  background: var(--gold);
  color: #111;
  font-weight: 900;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 42px clamp(18px, 4vw, 56px);
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: #07090c;
}

.footer p {
  max-width: 520px;
  margin-top: 14px;
  font-size: .9rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.social-links a {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 1.1rem;
  transition: color .2s, border-color .2s, transform .2s;
}

.social-links a:hover,
.social-links a:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.legal {
  padding-top: 72px;
}

.legal-standalone {
  min-height: calc(100vh - 220px);
  padding-top: 150px;
}

.legal .section-heading h1 {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  line-height: .98;
  text-transform: uppercase;
}

.legal-card {
  max-width: 680px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 8px;
  padding: 28px;
  background: var(--panel);
}

.legal-card h2 {
  margin: 0 0 18px;
  font-family: Montserrat, sans-serif;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}

.legal-card address {
  margin: 0 0 18px;
  color: #dce3ec;
  font-style: normal;
}

.legal-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

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

.legal-card a {
  color: var(--gold);
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  justify-content: flex-end;
  align-content: flex-start;
  color: var(--muted);
  font-weight: 800;
}

.footer-links button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}

.footer-links span {
  flex-basis: 100%;
  color: var(--soft);
  font-size: .82rem;
  text-align: right;
}

@media (max-width: 980px) {
  .nav-cta {
    display: none;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 12px 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    background: rgba(9, 11, 15, .98);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .status-strip,
  .feature-grid,
  .timeline,
  .join-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .intro-grid,
  .life,
  .faction-showcase {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    min-height: 70px;
    padding: 12px 14px;
  }

  .brand strong {
    font-size: 1rem;
  }

  .brand small {
    font-size: .64rem;
  }

  .hero {
    min-height: 88vh;
    padding-top: 104px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .status-strip,
  .feature-grid,
  .timeline,
  .join-grid,
  .city-stats {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }

  .status-strip article {
    min-height: auto;
  }

  .faction-showcase {
    padding: 20px;
  }

  .faction-showcase img,
  .city-panel img {
    min-height: 260px;
    height: 300px;
  }

  .footer {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-links span {
    text-align: left;
  }
}
