@font-face {
  font-family: "Christmas";
  src: url("ChristmasChocho.woff2") format("woff2"),
    url("ChristmasChocho.woff") format("woff");
  font-display: swap;
}

:root {
  --bg: #080b0d;
  --panel: rgba(13, 18, 20, 0.82);
  --panel-strong: rgba(10, 14, 16, 0.94);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f7faf7;
  --muted: #b7c3bc;
  --red: #e73535;
  --green: #2fb95d;
  --mint: #baf3ce;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(90deg, rgba(8, 11, 13, 0.72) 0%, rgba(8, 11, 13, 0.34) 48%, rgba(8, 11, 13, 0.68) 100%),
    linear-gradient(180deg, rgba(8, 11, 13, 0.08), rgba(8, 11, 13, 0.9) 72%),
    url("../images/hero-background.jpg") center top / cover no-repeat,
    var(--bg);
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 100vh;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 52% 30%, rgba(255, 255, 255, 0.08), transparent 24%),
    radial-gradient(circle at 80% 18%, rgba(47, 185, 93, 0.08), transparent 28%);
  z-index: -1;
}

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

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 12, 0.96);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a,
.nav-toggle {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--muted);
  font: inherit;
  background: transparent;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.07);
}

.nav-toggle {
  display: none;
  color: var(--text);
  cursor: pointer;
}

.hero {
  width: min(1120px, calc(100% - 32px));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 42px;
  padding: 72px 0 54px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--mint);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  margin-bottom: 18px;
  font-size: clamp(3.2rem, 8vw, 7.3rem);
  line-height: 0.9;
}

.hero-title-accent,
.countdown-value {
  font-family: Christmas, Inter, sans-serif;
  font-weight: 400;
  color: transparent;
  background: linear-gradient(90deg, #ff4747, #ffffff 45%, #45df74);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 20px;
  border: 1px solid var(--line);
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.32);
}

.button-primary {
  border: 0;
  background: linear-gradient(135deg, var(--red), var(--green));
  color: white;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.vote-popup {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: min(340px, calc(100vw - 36px));
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(9, 13, 15, 0.96);
  box-shadow: var(--shadow);
}

.vote-popup.is-hidden {
  display: none;
}

.vote-popup .eyebrow {
  margin-bottom: 10px;
}

.vote-popup strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.vote-popup p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.vote-popup .button {
  width: 100%;
}

.vote-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
}

.status-announcement {
  position: sticky;
  top: 0;
  z-index: 35;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(90deg, rgba(231, 53, 53, 0.95), rgba(47, 185, 93, 0.88)),
    #111;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

.status-announcement-inner {
  width: min(1120px, calc(100% - 32px));
  min-height: 88px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
}

.status-announcement-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  color: white;
  font-size: 1.45rem;
  font-weight: 900;
}

.status-announcement-copy .eyebrow,
.status-announcement-copy p,
.status-announcement-copy strong {
  margin-bottom: 0;
}

.status-announcement-copy .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.status-announcement-copy strong {
  display: block;
  color: white;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
}

.status-announcement-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.45;
}

.status-announcement-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-announcement .button-primary {
  min-height: 42px;
  background: rgba(255, 255, 255, 0.96);
  color: #111;
}

.status-announcement-close {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(0, 0, 0, 0.14);
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.hero-art {
  justify-self: center;
  width: min(370px, 76vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02)),
    rgba(7, 10, 12, 0.66);
  box-shadow: var(--shadow);
}

.hero-art img {
  width: 78%;
  border-radius: 50%;
  filter: drop-shadow(0 26px 46px rgba(0, 0, 0, 0.5));
}

.section {
  padding: 80px 0;
}

.section-dark {
  background: rgba(0, 0, 0, 0.58);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.section-heading p {
  color: var(--muted);
  line-height: 1.7;
}

.stats,
.feature-grid,
.dashboard-grid,
.steps,
.commands-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stat,
.feature,
.step,
.command,
.dashboard-card,
.legal-card,
.not-found-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
}

.stat {
  padding: 24px;
}

.stat strong {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(2rem, 5vw, 4rem);
}

.stat span,
.feature p,
.dashboard-card p {
  color: var(--muted);
}

.status-badge-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
}

.status-badge-card h2 {
  margin-bottom: 8px;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.status-badge-card p:not(.eyebrow) {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.status-badge-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.service-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 310px;
  max-width: 100%;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.service-status-pill strong,
.service-status-pill span {
  display: block;
}

.service-status-pill strong {
  color: white;
  font-size: 0.98rem;
}

.service-status-pill span[data-status-detail] {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.service-status-dot {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #9ca3af;
  box-shadow: 0 0 0 5px rgba(156, 163, 175, 0.14);
}

.service-status-pill.is-online .service-status-dot {
  background: #23c56e;
  box-shadow: 0 0 0 5px rgba(35, 197, 110, 0.16);
}

.service-status-pill.is-degraded {
  border-color: rgba(245, 158, 11, 0.48);
  background: rgba(245, 158, 11, 0.12);
}

.service-status-pill.is-degraded .service-status-dot {
  background: #f59e0b;
  box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.18);
}

.service-status-pill.is-unknown .service-status-dot {
  background: #e73535;
  box-shadow: 0 0 0 5px rgba(231, 53, 53, 0.16);
}

.dashboard-card .service-status-pill {
  margin: 12px 0 18px;
}

.feature,
.step,
.command,
.dashboard-card {
  padding: 24px;
}

.step span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--green));
  font-weight: 900;
}

.command code {
  display: inline-block;
  margin-bottom: 12px;
  color: white;
  font-size: 1.1rem;
  font-weight: 900;
}

.step p,
.command p {
  color: var(--muted);
  line-height: 1.65;
}

.feature img,
.dashboard-card img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin-bottom: 18px;
}

.countdown-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 28px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.countdown-value {
  font-size: clamp(3.6rem, 10vw, 8.5rem);
  line-height: 0.9;
  text-align: right;
}

.countdown-label {
  color: var(--muted);
  line-height: 1.7;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.faq-list a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-hero {
  padding: 88px 0 40px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.legal-tabs {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 10px;
}

.legal-tabs a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}

.legal-tabs a[aria-current="page"] {
  color: white;
  border-color: rgba(255, 255, 255, 0.26);
}

.legal-card {
  padding: clamp(24px, 5vw, 54px);
}

.legal-card h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2;
}

.legal-card h3 {
  margin-top: 34px;
}

.legal-card p {
  color: var(--muted);
  line-height: 1.8;
}

.legal-card a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.dashboard-page,
.not-found-page {
  padding: 88px 0;
  min-height: 68vh;
}

.not-found-card {
  max-width: 680px;
  padding: clamp(28px, 5vw, 56px);
}

.footer {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.82);
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: var(--muted);
}

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

.footer a:hover {
  color: white;
}

.snow {
  display: none;
}

.snow span {
  position: absolute;
  top: -8vh;
  color: rgba(255, 255, 255, 0.74);
  animation: fall linear infinite;
}

.snow span:nth-child(1) { left: 7%; animation-duration: 12s; animation-delay: 0s; }
.snow span:nth-child(2) { left: 19%; animation-duration: 15s; animation-delay: 2s; }
.snow span:nth-child(3) { left: 31%; animation-duration: 11s; animation-delay: 4s; }
.snow span:nth-child(4) { left: 48%; animation-duration: 16s; animation-delay: 1s; }
.snow span:nth-child(5) { left: 61%; animation-duration: 13s; animation-delay: 5s; }
.snow span:nth-child(6) { left: 76%; animation-duration: 17s; animation-delay: 3s; }
.snow span:nth-child(7) { left: 89%; animation-duration: 12s; animation-delay: 6s; }

@keyframes fall {
  to {
    transform: translate3d(34px, 112vh, 0) rotate(180deg);
  }
}

@media (max-width: 820px) {
  .nav {
    flex-wrap: wrap;
    min-height: 70px;
    padding: 12px 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 8px;
  }

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

  .nav-links a {
    border-color: var(--line);
  }

  .hero,
  .countdown-panel,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
    text-align: center;
  }

  .actions {
    justify-content: center;
  }

  .hero-art {
    order: -1;
    width: min(280px, 72vw);
  }

  .stats,
  .feature-grid,
  .dashboard-grid,
  .steps,
  .commands-grid {
    grid-template-columns: 1fr;
  }

  .status-badge-card,
  .status-badge-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .vote-popup {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
  }

  .status-announcement-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .status-announcement-icon {
    display: none;
  }

  .status-announcement-actions {
    flex-wrap: wrap;
  }

  .countdown-value {
    text-align: left;
  }

  .legal-tabs {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

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