:root {
  color-scheme: dark;
  --bg: #0A0F20;
  --panel-border: #525D80;
  --panel-fill: rgba(255,255,255,0.05);
  --hot: #3B82F6;
  --hot-dim: #1D4ED8;
  --cool: #22D3EE;
  --text: #EAF2FF;
  --muted: #7C8CB5;
}

* { box-sizing: border-box; }

/* Custom scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--hot) transparent;
}
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background-color: var(--hot);
  background-image: linear-gradient(180deg, var(--hot), var(--cool));
  background-clip: padding-box;
  border: 2px solid transparent;
  border-radius: 999px;
}
*::-webkit-scrollbar-thumb:hover {
  background-image: linear-gradient(180deg, var(--cool), var(--hot));
}
*::-webkit-scrollbar-corner {
  background: transparent;
}

html {
  font-size: 108%;
}
@media (min-width: 1600px) {
  html { font-size: 122%; }
}
@media (min-width: 2200px) {
  html { font-size: 132%; }
}

html, body { height: 100%; }

body {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }

/* Ambient background glow, shared across every page */
.scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.glow {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.32;
  will-change: transform;
}
.glow-a { background: var(--hot); top: -20vmax; left: -15vmax; animation: drift-a 18s ease-in-out infinite; }
.glow-b { background: var(--cool); bottom: -22vmax; right: -18vmax; animation: drift-b 22s ease-in-out infinite; }
@keyframes drift-a { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(4vmax, 3vmax); } }
@keyframes drift-b { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-3vmax, -4vmax); } }

/* Top navigation */
.nav {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  width: calc(100% - 32px);
  max-width: 1080px;
  margin: clamp(10px, 2vh, 16px) auto 0;
  padding: clamp(12px, 2.5vh, 18px) clamp(18px, 4vw, 32px);
  background: var(--panel-fill);
  border: 2px solid var(--panel-border);
  border-radius: 20px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
.nav-logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: clamp(1.2rem, 3vh, 1.5rem);
  letter-spacing: 0.02em;
  text-decoration: none;
  background: linear-gradient(100deg, var(--hot) 10%, var(--cool) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 26px);
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.15s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-cta {
  padding: 9px 18px !important;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--hot), var(--hot-dim));
  color: var(--text) !important;
  font-weight: 700 !important;
}

/* Shared page scaffold */
main.page {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(6px, 2vh, 20px) clamp(20px, 5vw, 40px);
  overflow-y: auto;
  min-height: 0;
}

.eyebrow {
  margin: 0 0 8px;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-title {
  margin: 0 0 12px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.page-lede {
  max-width: 60ch;
  margin: 0 0 clamp(20px, 4vh, 32px);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.check-list {
  list-style: none;
  margin: 0 0 clamp(20px, 4vh, 32px);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}
.check-mark {
  color: var(--cool);
  font-weight: 700;
  flex-shrink: 0;
}

/* Glass panel, the base surface for cards */
.panel {
  position: relative;
  background: var(--panel-fill);
  border: 2px solid var(--panel-border);
  border-radius: 16px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 15px 26px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  color: var(--text);
  background: linear-gradient(135deg, var(--hot), var(--hot-dim));
  box-shadow: 0 10px 24px rgba(59,130,246,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(59,130,246,0.45); }
.btn-primary:active { transform: translateY(1px); box-shadow: 0 6px 16px rgba(59,130,246,0.35); }
.btn-ghost {
  color: var(--text);
  background: transparent;
  border: 2px solid var(--panel-border);
}
.btn-ghost:hover { border-color: #7C86A7; transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--cool); outline-offset: 3px; }

/* Card grids, used by team + server pages */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.card {
  padding: 18px 20px;
  position: relative;
}
.card-dashed {
  border-style: solid;
  border-color: #606B8D;
  background: rgba(255,255,255,0.02);
}
/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: calc(100% - 32px);
  max-width: 1080px;
  margin: 0 auto clamp(10px, 2vh, 16px);
  padding: clamp(10px, 2vh, 16px) clamp(18px, 4vw, 32px);
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--panel-fill);
  border: 2px solid var(--panel-border);
  border-radius: 18px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
.site-footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.site-footer a:hover { color: var(--text); }

/* Homepage hero */
.hero {
  text-align: center;
  margin-top: clamp(24px, 8vh, 72px);
}
.hero .page-lede { margin-left: auto; margin-right: auto; }
.hero-logo {
  display: block;
  max-height: clamp(50px, 12vh, 96px);
  width: auto;
  margin: 0 auto 8px;
}
.hero-heading {
  margin: 0 0 12px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  background: linear-gradient(100deg, var(--hot) 10%, var(--cool) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cool);
  box-shadow: 0 0 8px var(--cool);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.55; }
}

/* Feature cards on homepage */
.feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  background: linear-gradient(135deg, rgba(59,130,246,0.25), rgba(34,211,238,0.2));
  border: 2px solid var(--panel-border);
  font-size: 1rem;
}
.card h3 {
  margin: 0 0 6px;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1rem;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}
.card a.card-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cool);
  text-decoration: none;
}
.card a.card-link:hover { text-decoration: underline; }

.section {
  margin-top: clamp(20px, 4vh, 32px);
}

/* Onepager homepage: sections stack top-down instead of centering */
main.page.page-onepager {
  justify-content: flex-start;
}
.anchor-section {
  margin-top: clamp(56px, 10vh, 96px);
  padding-top: clamp(20px, 4vh, 32px);
  border-top: 1px solid var(--panel-border);
}
.section-title {
  margin: 0 0 12px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.3rem, 4vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
}

/* Placeholder avatar for team cards */
.avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  margin-bottom: 10px;
}

/* Server cards */
.server-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 22px 20px;
  text-align: center;
}
.server-card-head {
  position: absolute;
  top: -2px;
  left: -1px;
}
.server-card-head .status-pill {
  margin: 0;
  border-radius: 16px 0 10px 0;
  border-top: none;
  border-left: none;
}
.server-title {
  margin: 0 0 18px;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 2px solid var(--panel-border);
  color: var(--muted);
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status-pill.status-online {
  color: var(--cool);
  background: rgba(34,211,238,0.08);
}
.status-pill.status-planned {
  color: var(--hot);
  background: rgba(59,130,246,0.08);
}

.server-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.info-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
}
.info-label {
  color: var(--muted);
}
.info-value {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  color: var(--text);
  text-align: right;
  word-break: break-all;
}

.server-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: auto;
}
.server-actions .btn {
  flex: 1;
  min-width: 0;
  padding: 11px 10px;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-disabled {
  opacity: 0.45;
  pointer-events: none;
}
.copy-btn {
  cursor: pointer;
}

/* Coming soon page */
.coming-soon {
  text-align: center;
}

/* Long-form legal text (Datenschutz etc.) */
.legal {
  max-width: 70ch;
}
.legal h2 {
  margin: clamp(28px, 4vh, 40px) 0 12px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.legal h2:first-child { margin-top: 0; }
.legal h3 {
  margin: 20px 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.legal p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.legal ul {
  margin: 0 0 12px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.legal li { margin-bottom: 4px; }
.legal a { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .glow, .live-dot { animation: none; }
}
