/* Fonts — self-hosted Rubik, same subset split as apps/app-client. */
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 400;
  src: url('assets/fonts/Rubik-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0400-04FF, U+2116;
  font-display: swap;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 400;
  src: url('assets/fonts/Rubik-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2122;
  font-display: swap;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 600;
  src: url('assets/fonts/Rubik-600-cyrillic.woff2') format('woff2');
  unicode-range: U+0400-04FF, U+2116;
  font-display: swap;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 600;
  src: url('assets/fonts/Rubik-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2122;
  font-display: swap;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 700;
  src: url('assets/fonts/Rubik-700-cyrillic.woff2') format('woff2');
  unicode-range: U+0400-04FF, U+2116;
  font-display: swap;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 700;
  src: url('assets/fonts/Rubik-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2122;
  font-display: swap;
}

/* Brand tokens — Umbra theme, same values as apps/app-client/assets/styles/themes.styl. */
:root {
  color-scheme: light dark;

  --surface-0: light-dark(#fefcfb, #140905);
  --surface-50: light-dark(#fcf9f8, #140905);
  --surface-200: light-dark(#f0e6e2, #312921);
  --surface-300: light-dark(#e1d2cb, #3d3429);
  --surface-500: light-dark(#8b7064, #83715d);
  --surface-700: light-dark(#553d33, #dbd4cc);
  --surface-950: light-dark(#140905, #fbfaf9);

  --primary: light-dark(#975235, #c86a41);
  --primary-hover: light-dark(#c86a41, #e7bfad);
  --on-primary: #fefcfb;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  font-family: 'Rubik', -apple-system, 'Segoe UI', sans-serif;
  color: var(--surface-950);
  background: var(--surface-0);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Two soft, slowly drifting blobs behind the content — brand colors, low opacity. */
.bg-decoration {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.bg-decoration::before,
.bg-decoration::after {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.28;
}

.bg-decoration::before {
  background: var(--primary);
  top: -140px;
  left: -120px;
  animation: float-blob-a 20s ease-in-out infinite;
}

.bg-decoration::after {
  background: var(--surface-300);
  bottom: -160px;
  right: -100px;
  animation: float-blob-b 24s ease-in-out infinite;
}

.bg-network {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

@keyframes float-blob-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(70px, 50px) scale(1.12); }
}

@keyframes float-blob-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -40px) scale(1.15); }
}

.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 40px 24px;
  text-align: center;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wordmark,
.hero,
.countdown,
.contact,
.footer {
  animation: fade-in-up 0.6s ease both;
}

.wordmark { animation-delay: 0s; }
.hero { animation-delay: 0.1s; }
.countdown { animation-delay: 0.2s; }
.contact { animation-delay: 0.3s; }
.footer { animation-delay: 0.4s; }

.wordmark {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface-200);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 45%, transparent);
  }
  70% {
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--primary) 0%, transparent);
  }
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 0%, transparent);
  }
}

.hero {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  line-height: 1.25;
  background: linear-gradient(135deg, var(--surface-950), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--surface-700);
}

.countdown {
  display: flex;
  gap: 16px;
}

.countdown-unit {
  min-width: 76px;
  padding: 16px 12px;
  border-radius: 14px;
  background: var(--surface-50);
  border: 1px solid var(--surface-200);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.countdown-unit:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 20%, transparent);
}

.countdown-value {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
}

.countdown-label {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--surface-500);
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.contact-label {
  font-size: 13px;
  color: var(--surface-500);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 35%, transparent);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cta:hover {
  transform: translateY(-2px);
  background: var(--primary-hover);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--primary) 45%, transparent);
}

.cta:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.cta-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer {
  font-size: 13px;
  color: var(--surface-500);
}

@media (max-width: 480px) {
  .countdown {
    gap: 8px;
  }

  .countdown-unit {
    min-width: 64px;
    padding: 12px 8px;
  }

  .bg-decoration::before,
  .bg-decoration::after {
    width: 320px;
    height: 320px;
  }
}

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