:root {
  color-scheme: dark;
  --bg: #06070c;
  --surface: #0d121a;
  --surface-soft: #111b25;
  --text: #effff8;
  --muted: #91aaa6;
  --line: #213745;
  --accent: #00f5a0;
  --accent-strong: #00d7ff;
  --accent-warm: #ff3f81;
  --accent-cool: #f4ff5c;
  --grid: rgba(0, 215, 255, 0.08);
  --shadow: 0 24px 70px rgba(0, 245, 160, 0.12);
  --radius: 8px;
  --max-width: 1180px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eef4f1;
  --surface: #ffffff;
  --surface-soft: #e3ece8;
  --text: #0b1118;
  --muted: #526760;
  --line: #c4d9d3;
  --accent: #00b67a;
  --accent-strong: #007d9f;
  --accent-warm: #e93573;
  --accent-cool: #c8cf19;
  --grid: rgba(0, 125, 159, 0.11);
  --shadow: 0 22px 58px rgba(0, 80, 90, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(135deg, rgba(0, 245, 160, 0.07), transparent 34%),
    var(--bg);
  background-attachment: fixed;
  background-size: 44px 44px, 44px 44px, auto, auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.026) 0,
    rgba(255, 255, 255, 0.026) 1px,
    transparent 1px,
    transparent 7px
  );
  mix-blend-mode: screen;
}

body > * {
  position: relative;
  z-index: 1;
}

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

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

button,
input {
  font: inherit;
}

.site-header,
.section,
.site-footer {
  width: min(calc(100% - 32px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 72px;
  margin-top: 16px;
  padding: 12px 14px 12px 18px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(0, 245, 160, 0.05), 0 18px 40px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #07120d;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 950;
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 42%, transparent);
}

.main-nav,
.header-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.main-nav {
  justify-content: center;
  gap: 26px;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.site-footer a:hover {
  color: var(--accent-strong);
}

.header-actions {
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-weight: 850;
  cursor: pointer;
}

.button {
  color: #07120d;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border: 1px solid transparent;
  box-shadow: 0 16px 34px color-mix(in srgb, var(--accent) 25%, transparent);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 46px color-mix(in srgb, var(--accent-strong) 32%, transparent);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--line);
  box-shadow: none;
}

.icon-button,
.menu-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: inset 0 0 18px rgba(0, 215, 255, 0.04);
}

.icon-button {
  position: relative;
}

.sun-icon,
.moon-icon {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transition: opacity 180ms ease, transform 180ms ease;
}

.sun-icon {
  background: var(--accent-cool);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent-cool) 22%, transparent);
}

.moon-icon {
  opacity: 0;
  transform: translateX(4px);
  background: var(--text);
  box-shadow: -6px 0 0 0 var(--surface-soft);
}

:root[data-theme="dark"] .sun-icon {
  opacity: 0;
  transform: translateX(-4px);
}

:root[data-theme="dark"] .moon-icon {
  opacity: 1;
  transform: translateX(0);
}

.menu-button {
  display: none;
  gap: 4px;
}

.menu-button span {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: 0;
}

.section-heading p,
.imprint-card p,
.legal-card p {
  color: var(--muted);
}

.access-button,
.imprint-card,
.legal-card,
.dialog-card {
  position: relative;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.access-button::before,
.imprint-card::before,
.legal-card::before,
.dialog-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--accent), var(--accent-strong), var(--accent-warm));
}

.section {
  padding: clamp(64px, 9vw, 98px) 0;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading h1,
.section-heading h2 {
  font-size: clamp(2.1rem, 4.5vw, 4rem);
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.access-button {
  min-height: 220px;
  padding: 26px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.access-button:hover,
.access-button:focus-visible {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent), 0 24px 58px rgba(0, 0, 0, 0.22);
}

.access-button span {
  display: block;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.access-button strong {
  display: block;
  margin-top: 58px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1;
}

.password-dialog {
  width: min(calc(100% - 32px), 480px);
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
}

.password-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.dialog-card {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.dialog-card h2 {
  margin: 0;
  line-height: 1.1;
}

.dialog-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 750;
}

.dialog-card input {
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
}

.dialog-card input:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-strong) 18%, transparent);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.dialog-status {
  min-height: 24px;
  margin: 0;
  color: var(--accent-strong);
  font-weight: 850;
}

.imprint-section {
  padding-top: 36px;
}

.imprint-card,
.legal-card {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 34px);
}

.imprint-card p,
.legal-card p {
  margin: 0 0 18px;
}

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

.imprint-card strong,
.legal-card strong,
.legal-card h2 {
  color: var(--text);
}

.legal-card h2 {
  margin: 30px 0 10px;
  font-size: 1.25rem;
}

.imprint-card a,
.legal-card a {
  color: var(--accent-strong);
  overflow-wrap: anywhere;
}

.site-footer {
  justify-content: space-between;
  gap: 14px;
  padding: 30px 0 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

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

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .access-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  .main-nav {
    position: fixed;
    top: 96px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 11px 8px;
  }

  .menu-button {
    display: grid;
  }

  .access-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    width: min(calc(100% - 20px), var(--max-width));
    min-height: 66px;
    margin-top: 10px;
  }

  .brand span:last-child {
    display: none;
  }

  .section,
  .site-footer {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .access-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
