:root {
  color-scheme: dark;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
  --accent: #00d4ff;
  --background: #07090b;
  --foreground: #f6f8fa;
  --muted: #aeb8c2;
  --line: rgb(255 255 255 / 18%);
  --radius: 4px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--foreground);
  background: var(--background);
}

button,
a {
  color: inherit;
}

a {
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--radius);
}

.landing {
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  grid-template-rows: auto 1fr auto;
}

.background,
.background-shade {
  position: fixed;
  z-index: 0;
  inset: -32px;
  pointer-events: none;
}

.background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px);
  transform: scale(1.06);
}

.background-shade {
  background:
    radial-gradient(circle at center, rgb(7 9 11 / 18%) 0%, rgb(7 9 11 / 56%) 72%),
    linear-gradient(180deg, rgb(7 9 11 / 30%), rgb(7 9 11 / 70%));
}

.site-header,
.site-footer,
.countdown-shell {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  justify-content: flex-end;
  padding: clamp(20px, 4vw, 44px);
}

.language-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.language-control button {
  min-width: 36px;
  min-height: 36px;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: inherit;
  background: transparent;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.language-control button[aria-pressed="true"] {
  border-color: var(--line);
  color: var(--foreground);
  background: rgb(255 255 255 / 7%);
}

.countdown-shell {
  display: grid;
  place-items: center;
  padding: 24px;
}

.countdown-card {
  display: grid;
  justify-items: center;
  width: min(920px, 100%);
  text-align: center;
}

.brand {
  display: grid;
  justify-items: center;
  gap: 13px;
}

.brand img {
  display: block;
  width: clamp(72px, 8vw, 96px);
  height: auto;
}

.brand span,
.compact-brand span {
  font-weight: 720;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.brand span {
  padding-left: 0.3em;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.eyebrow {
  margin: clamp(42px, 7vh, 72px) 0 20px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.28em;
}

.countdown-values {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  width: 100%;
}

.countdown-unit {
  display: grid;
  justify-items: center;
  min-width: 0;
}

.countdown-unit strong,
.countdown-complete {
  font-size: clamp(2.5rem, 8vw, 5.6rem);
  font-weight: 390;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
  line-height: 1;
}

.countdown-unit span {
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(0.54rem, 1vw, 0.68rem);
  letter-spacing: 0.18em;
}

.countdown-separator {
  padding-top: 0.04em;
  color: rgb(255 255 255 / 42%);
  font-size: clamp(2.5rem, 8vw, 5.6rem);
  font-weight: 220;
  line-height: 1;
}

.countdown-complete {
  margin: 0;
}

.site-footer {
  padding: 24px clamp(20px, 4vw, 44px) clamp(24px, 4vw, 40px);
  text-align: center;
}

.site-footer a,
.legal-footer a {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

.legal-page {
  min-height: 100svh;
}

.legal-header,
.legal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
}

.compact-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.compact-brand img {
  display: block;
  width: 32px;
  height: auto;
}

.compact-brand span {
  padding-left: 0.3em;
  font-size: 0.82rem;
}

.legal-shell {
  width: min(720px, calc(100% - 40px));
  margin: clamp(44px, 8vw, 96px) auto;
}

.legal-shell .eyebrow {
  margin-top: 0;
}

.legal-shell h1 {
  max-width: 14ch;
  margin: 0 0 64px;
  font-size: clamp(2.4rem, 8vw, 5rem);
  font-weight: 430;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.legal-shell section {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.legal-shell h2 {
  margin: 0 0 24px;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-shell p,
.legal-shell address {
  color: #ced5dc;
  font-size: 0.96rem;
  font-style: normal;
  line-height: 1.75;
}

.legal-shell a {
  color: var(--foreground);
}

.legal-footer {
  justify-content: flex-start;
  padding-bottom: 44px;
}

.not-found {
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
}

.not-found-shell {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  padding: 24px;
  text-align: center;
}

.not-found-code {
  margin: 48px 0 0;
  font-size: clamp(4rem, 16vw, 10rem);
  font-weight: 300;
  line-height: 1;
}

@media (max-width: 700px) {
  .site-header {
    padding: 18px 20px;
  }

  .countdown-shell {
    padding: 16px;
  }

  .eyebrow {
    margin-top: clamp(34px, 7vh, 56px);
  }

  .countdown-unit strong,
  .countdown-separator {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .countdown-unit span {
    margin-top: 10px;
    font-size: clamp(0.42rem, 2.4vw, 0.58rem);
    letter-spacing: 0.1em;
  }

  .site-footer {
    padding: 18px 20px 24px;
  }

  .legal-header {
    width: calc(100% - 32px);
  }

  .legal-shell {
    width: calc(100% - 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
