/* ============================================================
   Intelligence Designed To Evolve — single-viewport landing
   ============================================================ */

/* ---------- Local display fallback ---------- */
@font-face {
  font-family: "Geist Pixel Circle";
  src: url("fonts/GeistPixel-Circle.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #8e8e8e;
  --nav-text: #2e2e2e;
  --pill-dark: #28282a;
  --sign-in-text: #c8c8c8;
  --nav-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  --trust-bg: #28282a;
  --trust-border: rgba(255, 255, 255, 0.4);
  --trust-text: #c4c2c3;
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "BubbledotICG-FinePos", "Geist Pixel Circle", monospace;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}

body {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

/* ============================================================
   Background video
   ============================================================ */
.bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000000;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
  /* Das Video zeigt einen Zahlenregen. Weichzeichnen macht die
     Ziffern unlesbar, die Farbwellen bleiben erhalten.
     scale() verdeckt die ausgefransten Ränder der Weichzeichnung. */
  filter: blur(7px) brightness(0.72) saturate(1.1);
  transform: scale(1.08);
}

/* Abdunkelung über dem Video — ohne sie treten die Ziffern
   im hellen oberen Bereich wieder durch */
.bg-scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.32) 38%,
    rgba(0, 0, 0, 0.5) 72%,
    rgba(0, 0, 0, 0.75) 100%
  );
}

/* ============================================================
   Page shell — 3 vertical regions in one viewport
   ============================================================ */
.page {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  padding: clamp(16px, 2.4vh, 28px) clamp(14px, 3vw, 32px);
}

.header,
.hero,
.stats,
.mobile-menu,
.menu-overlay {
  z-index: 1;
}

/* ============================================================
   1) Header
   ============================================================ */
.header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.8vw, 28px);
  width: 100%;
  max-width: 720px;
  animation: slideDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* --- Logo --- */
.logo {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: clamp(40px, 4.4vw, 46px);
  height: clamp(40px, 4.4vw, 46px);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: var(--nav-shadow);
  transition: transform 0.25s ease;
}

.logo:hover {
  transform: scale(1.04);
}

/* Discord-Guild-Icon füllt den Kreis formatfüllend */
.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* vor dem Laden kein Broken-Image-Symbol zeigen */
.logo img:not([src]) {
  visibility: hidden;
}

/* --- Nav pill --- */
.nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: clamp(44px, 5.2vw, 48px);
  max-width: 430px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: var(--nav-shadow);
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 clamp(8px, 1.2vw, 13px);
  color: var(--nav-text);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: -0.01em;
  white-space: nowrap;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.nav-link:hover {
  opacity: 0.75;
}

.nav-link.is-active {
  opacity: 1;
}

/* three 3x3 dots under the active label */
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #000000;
  transform: translateX(-50%);
  box-shadow: -5px 0 0 0 #000000, 5px 0 0 0 #000000;
}

/* --- Sign in --- */
.sign-in {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: clamp(44px, 5.2vw, 48px);
  padding: 0 clamp(16px, 2vw, 22px);
  border-radius: 999px;
  background: var(--pill-dark);
  color: var(--sign-in-text);
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: var(--nav-shadow);
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.sign-in:hover {
  background: #323234;
  color: #ffffff;
  transform: translateY(-1px);
}

/* --- Burger (mobile only) --- */
.burger {
  display: none;
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pill-dark);
  box-shadow: var(--nav-shadow);
}

.burger span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 1.5px;
  margin-left: -9px;
  border-radius: 2px;
  background: #ffffff;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease, background 0.3s ease;
}

.burger span:nth-child(1) {
  transform: translateY(-6.5px);
}

.burger span:nth-child(2) {
  transform: translateY(0);
}

.burger span:nth-child(3) {
  transform: translateY(6.5px);
}

.burger[aria-expanded="true"] {
  background: #ffffff;
}

.burger[aria-expanded="true"] span {
  background: #111111;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}

/* ============================================================
   2) Hero
   ============================================================ */
.hero {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 900px;
  text-align: center;
}

/* --- Trust row --- */
.trust {
  --trust-size: clamp(36px, 4.5vw, 42px);
  display: inline-flex;
  align-items: center;
  margin-bottom: clamp(16px, 2.5vh, 26px);
}

.avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--trust-size);
  height: var(--trust-size);
  padding: 5px;
  border: 1px solid var(--trust-border);
  border-radius: 50%;
  background: var(--trust-bg);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.avatar-inner {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffffff;
}

.avatar i {
  color: #111111;
  font-size: calc(var(--trust-size) * 0.34);
  line-height: 1;
}

/* Beliebig viele Partner: spätere Avatare überlappen die
   früheren, der letzte liegt über der Pille (z-index 3) */
.avatar {
  z-index: 1;
}

.avatar + .avatar {
  margin-left: calc(var(--trust-size) * -0.42);
}

.avatar.is-last {
  z-index: 4;
}

/* Wellenförmiges Anheben, unabhängig von der Anzahl */
.trust:hover .avatar {
  transform: translateY(-2px);
}

.trust:hover .avatar:nth-child(even) {
  transform: translateY(-4px);
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Fallback, wenn kein Bild geladen werden konnte */
.avatar-letter {
  color: #111111;
  font-size: calc(var(--trust-size) * 0.34);
  font-weight: 600;
  line-height: 1;
}

/* "+N weitere" — dunkel statt weiß, damit es als Zähler
   und nicht als weiterer Partner gelesen wird */
.avatar-more .avatar-inner {
  background: #3a3a3e;
}

.avatar-more .avatar-letter {
  color: #d8d8da;
  font-size: calc(var(--trust-size) * 0.3);
}

.trust-pill {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  height: var(--trust-size);
  margin-left: calc(var(--trust-size) * -0.42);
  padding-left: calc(var(--trust-size) * 0.58);
  padding-right: clamp(14px, 1.8vw, 18px);
  border: 1px solid var(--trust-border);
  border-radius: 999px;
  background: var(--trust-bg);
  color: var(--trust-text);
  font-weight: 500;
  font-size: clamp(12px, 1.4vw, 13.5px);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* --- Headline --- */
.headline {
  margin: 0;
  overflow: hidden;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 6.2vw, 80px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.headline .line {
  display: block;
}

/* the headline container itself does not reveal — only its lines do */
.headline.anim {
  opacity: 1;
  transform: none;
  filter: none;
  animation: none;
}

.headline.anim .line {
  opacity: 0;
  transform: translateY(14px);
  animation: headlineFade 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.headline.anim .line-1 {
  animation-delay: 0.12s;
}

.headline.anim .line-2 {
  animation-delay: 0.3s;
}

/* --- Subhead --- */
.subhead {
  max-width: min(500px, 92%);
  margin: clamp(12px, 2vh, 20px) 0 0;
  color: #d0d0d0;
  opacity: 0.8;
  font-weight: 400;
  font-size: clamp(calc(13.5px + 2pt), calc(1.55vw + 2pt), calc(16.5px + 2pt));
  line-height: 1.55;
}

/* --- CTA --- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(18px, 2.8vh, 30px);
  padding: clamp(11px, 1.6vh, 13px) clamp(22px, 3vw, 28px);
  border-radius: 999px;
  background: #ffffff;
  color: #000000;
  font-weight: 600;
  font-size: clamp(13.5px, 1.5vw, 14.5px);
  letter-spacing: -0.01em;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15),
    0 0 22px rgba(255, 255, 255, 0.32), 0 0 44px rgba(255, 255, 255, 0.12);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease;
}

.cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25),
    0 0 30px rgba(255, 255, 255, 0.45), 0 0 60px rgba(255, 255, 255, 0.2);
}

/* CTA uses the pulsed variant of the shared reveal */
.cta.anim {
  animation-name: revealPulse;
}

/* ============================================================
   3) Stats footer
   ============================================================ */
.stats {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 24px);
  width: 100%;
  max-width: 920px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.stat-icon {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 33px);
  line-height: 1.1;
}

.stat-value {
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.stat-label {
  color: var(--muted);
  font-weight: 400;
  font-size: clamp(11px, 1.2vw, 12.5px);
  letter-spacing: -0.01em;
}

/* ============================================================
   Shared entrance animation
   ============================================================ */
.anim {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  filter: blur(6px);
  animation: reveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes revealPulse {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    filter: blur(6px);
  }
  70% {
    opacity: 1;
    transform: translateY(0) scale(1.04);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes headlineFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   Teamliste — scrollende Unterseite
   ============================================================ */
body.page-team {
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
}

.bg--fixed {
  position: fixed;
}

/* Auf den scrollenden Unterseiten muss der Scrim nach unten hin
   deutlich dichter werden, damit die Karten lesbar bleiben */
.bg--fixed .bg-scrim {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.72) 45%,
    rgba(0, 0, 0, 0.92) 100%
  );
}

.page--scroll {
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: visible;
  padding-bottom: clamp(40px, 8vh, 80px);
}

.team {
  flex: 0 0 auto;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding-top: clamp(28px, 6vh, 60px);
}

.team-intro {
  text-align: center;
}

/* Seiten-Headline darf umbrechen — anders als die Hero-Zeile.
   Doppelte Klasse, damit die späteren .headline-Breakpoints
   diese Werte nicht überschreiben. */
.headline.headline--page {
  white-space: normal;
  overflow: visible;
  font-size: clamp(30px, 5.4vw, 62px);
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.team-intro .subhead {
  margin-left: auto;
  margin-right: auto;
  max-width: min(560px, 92%);
}

/* --- Statuszeile --- */
.team-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  margin: clamp(18px, 3vh, 28px) auto 0;
  padding: 9px 16px 9px 13px;
  border: 1px solid var(--trust-border);
  border-radius: 999px;
  background: var(--trust-bg);
  color: var(--trust-text);
  font-size: clamp(12px, 1.3vw, 13.5px);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-align: center;
}

.team-status-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8e8e8e;
  box-shadow: 0 0 0 3px rgba(142, 142, 142, 0.18);
}

.team-status[data-state="live"] .team-status-dot {
  background: #3ddc84;
  box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.18);
}

.team-status[data-state="pending"] .team-status-dot {
  background: #f0b23c;
  box-shadow: 0 0 0 3px rgba(240, 178, 60, 0.18);
}

.team-status[data-state="error"] .team-status-dot {
  background: #ef5f5f;
  box-shadow: 0 0 0 3px rgba(239, 95, 95, 0.18);
}

/* --- Gruppen --- */
.team-groups {
  margin-top: clamp(30px, 5vh, 52px);
}

.team-group + .team-group {
  margin-top: clamp(28px, 4.5vh, 46px);
}

.team-group-title {
  margin: 0 0 clamp(12px, 2vh, 18px);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(17px, 2.2vw, 24px);
  letter-spacing: -0.03em;
}

.role-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(10px, 1.6vw, 16px);
}

.role-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 15px 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(28, 28, 30, 0.66);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.25s ease, transform 0.25s ease,
    background 0.25s ease;
}

.role-card:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(38, 38, 42, 0.72);
  transform: translateY(-2px);
}

.role-card.is-empty {
  background: rgba(20, 20, 22, 0.5);
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.12);
}

.role-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.role-name {
  margin: 0;
  color: #ffffff;
  font-weight: 600;
  font-size: clamp(13.5px, 1.5vw, 15px);
  letter-spacing: -0.015em;
}

.role-count {
  flex: 0 0 auto;
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.role-empty {
  margin: 0;
  color: #6f6f72;
  font-size: 12.5px;
  font-style: italic;
}

.member-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.member {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.member-avatar {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: #1c1c1e;
}

.member-name {
  overflow: hidden;
  color: #d8d8d8;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================
   Developer — Profilkarte
   ============================================================ */
/* Karten auf 420px deckeln und mittig setzen — eine einzelne
   Karte soll nicht über die volle Seitenbreite laufen */
.dev-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 420px));
  justify-content: center;
  gap: clamp(16px, 2.4vw, 24px);
  margin-top: clamp(30px, 5vh, 52px);
}

.dev-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(24, 24, 27, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

.dev-banner {
  height: clamp(96px, 16vw, 132px);
  background: linear-gradient(120deg, #3a2a5c 0%, #1f2b4d 60%, #10131f 100%);
  background-size: cover;
  background-position: center;
}

.dev-banner.has-image {
  background-repeat: no-repeat;
}

.dev-avatar-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  margin: -46px 0 0 22px;
}

.dev-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(24, 24, 27, 0.95);
  background: #1c1c1e;
  display: block;
}

.dev-avatar-wrap.is-placeholder .dev-avatar {
  background: linear-gradient(135deg, #2a2a30, #17171a);
}

/* Avatar-Dekoration liegt als Ring über dem Bild */
.dev-decoration {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 116px;
  height: 116px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.dev-body {
  padding: 14px 22px 22px;
}

.dev-identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.dev-name {
  margin: 0;
  color: #ffffff;
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.dev-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  color: #e4e4e6;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.dev-tag-badge {
  width: 15px;
  height: 15px;
  border-radius: 3px;
}

.dev-handle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
}

.dev-role-badge {
  display: inline-block;
  margin-top: 11px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(88, 101, 242, 0.22);
  border: 1px solid rgba(88, 101, 242, 0.5);
  color: #c3caff;
  font-size: 12px;
  font-weight: 600;
}

.dev-bio {
  margin: 12px 0 0;
  color: #cfcfd2;
  font-size: 13.5px;
  line-height: 1.6;
}

.dev-section {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.dev-section-title {
  margin: 0 0 9px;
  color: #8e8e8e;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.dev-roles,
.dev-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dev-role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #dcdcde;
  font-size: 12px;
  font-weight: 500;
}

.dev-role-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8e8e8e;
}

.dev-role-more {
  padding-left: 10px;
  color: #8e8e8e;
  font-variant-numeric: tabular-nums;
}

.dev-stack-item {
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #c8c8ca;
  font-size: 12px;
  font-weight: 500;
}

.dev-meta {
  margin-top: 16px;
  color: #77777a;
  font-size: 12px;
}

.dev-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.dev-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #ffffff;
  color: #000000;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.dev-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
}

.dev-warning {
  margin: 14px 0 0;
  padding: 9px 12px;
  border: 1px solid rgba(240, 178, 60, 0.35);
  border-radius: 10px;
  background: rgba(240, 178, 60, 0.1);
  color: #e8c07a;
  font-size: 12px;
}

/* --- Credits --- */
.credits {
  margin-top: clamp(34px, 5.5vh, 56px);
}

.credit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(10px, 1.6vw, 16px);
}

.credit-card {
  padding: 16px 17px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(26, 26, 29, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.credit-title {
  margin: 0 0 7px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.credit-text {
  margin: 0;
  color: #a9a9ac;
  font-size: 12.5px;
  line-height: 1.55;
}

/* --- Fußzeile --- */
.team-footer {
  width: 100%;
  max-width: 1040px;
  margin: clamp(34px, 6vh, 60px) auto 0;
  text-align: center;
}

.team-footer p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(12.5px, 1.3vw, 14px);
}

.team-footer a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 720px) {
  .role-list {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .headline.headline--page {
    letter-spacing: -0.07em;
  }
}

/* ============================================================
   Beitreten-Fenster (Servercode)
   ============================================================ */
.join-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: overlayIn 0.25s ease both;
}

.join-modal {
  position: fixed;
  z-index: 80;
  top: 50%;
  left: 50%;
  width: min(calc(100% - 32px), 400px);
  padding: 26px 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: #17171a;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.6);
  text-align: center;
  transform: translate(-50%, -50%);
  animation: joinIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes joinIn {
  from {
    opacity: 0;
    transform: translate(-50%, -46%) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.join-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #8e8e8e;
  font-size: 22px;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease;
}

.join-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.join-title {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 4vw, 28px);
  letter-spacing: -0.04em;
}

.join-text {
  margin: 8px 0 20px;
  color: #a9a9ac;
  font-size: 13.5px;
  line-height: 1.55;
}

.join-code-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.join-code {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 13px 14px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: clamp(17px, 4.4vw, 21px);
  font-weight: 600;
  letter-spacing: 0.09em;
  user-select: all;
  overflow-wrap: anywhere;
}

.join-copy {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  border-radius: 13px;
  background: #ffffff;
  color: #000000;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.join-copy:hover {
  transform: translateY(-1px);
}

.join-copy.is-done {
  background: #3ddc84;
  color: #06301a;
}

.join-hint {
  min-height: 17px;
  margin: 11px 0 0;
  color: #8e8e8e;
  font-size: 12px;
}

.join-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
  padding: 13px 18px;
  border-radius: 999px;
  background: #5865f2;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.join-discord:hover {
  background: #4752c4;
  transform: translateY(-1px);
}

/* Auf sehr schmalen Geräten wird die Zeile sonst zu eng */
@media (max-width: 360px) {
  .join-code-row {
    flex-wrap: wrap;
  }

  .join-copy {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }
}

/* ============================================================
   Mobile menu
   ============================================================ */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: overlayIn 0.28s ease both;
}

@keyframes overlayIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.mobile-menu {
  position: fixed;
  z-index: 50;
  top: calc(clamp(16px, 2.4vh, 28px) + 48px + 14px);
  left: 50%;
  width: min(calc(100% - 28px), 420px);
  transform: translateX(-50%);
  padding: 22px 18px 20px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  transform-origin: top center;
  animation: menuIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
}

.mobile-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 12px 18px;
  border-radius: 16px;
  color: var(--nav-text);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  opacity: 0;
  animation: linkIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.mobile-link:nth-child(1) {
  animation-delay: 0.06s;
}
.mobile-link:nth-child(2) {
  animation-delay: 0.12s;
}
.mobile-link:nth-child(3) {
  animation-delay: 0.18s;
}
.mobile-link:nth-child(4) {
  animation-delay: 0.24s;
}

.mobile-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #000000;
  transform: translateX(-50%);
  box-shadow: -5px 0 0 0 #000000, 5px 0 0 0 #000000;
}

.mobile-sign-in {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
  padding: 15px 20px;
  border-radius: 999px;
  background: var(--pill-dark);
  color: var(--sign-in-text);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  opacity: 0;
  animation: linkIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

@keyframes linkIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.menu-open {
  overflow: hidden;
}

/* keep the logo + burger X crisp above the overlay while the menu is open */
body.menu-open .header {
  z-index: 60;
}

/* ============================================================
   Breakpoints
   ============================================================ */
@media (max-width: 720px) {
  .nav,
  .sign-in {
    display: none;
  }

  .burger {
    display: block;
  }

  .header {
    justify-content: space-between;
    max-width: none;
  }

  .logo {
    width: 48px;
    height: 48px;
  }

  .headline {
    letter-spacing: -0.08em;
    line-height: 1.05;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(14px, 3vw, 22px) clamp(12px, 4vw, 24px);
  }
}

@media (max-width: 420px) {
  .trust {
    --trust-size: 34px;
  }

  .trust-pill {
    font-size: 12px;
  }

  .headline {
    letter-spacing: -0.09em;
    line-height: 1.04;
  }
}

@media (max-height: 700px) {
  .trust {
    margin-bottom: clamp(10px, 1.6vh, 16px);
  }

  .subhead {
    margin-top: clamp(8px, 1.4vh, 14px);
    line-height: 1.45;
  }

  .cta {
    margin-top: clamp(12px, 1.8vh, 20px);
  }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .anim,
  .headline.anim .line,
  .mobile-link,
  .mobile-sign-in,
  .header {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .headline {
    color: #ffffff;
  }
}
