:root {
  --bg: #000000;
  --bg-deep: #050505;
  --ink: #f4f6f8;
  --ink-soft: #9aa6b2;
  --slate: #7a8a9a;
  --navy: #1a2a3a;
  --accent: #c5d0da;
  --surface: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.14);
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 55% at 20% 15%, rgba(40, 60, 80, 0.45), transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 80%, rgba(26, 42, 58, 0.55), transparent 50%),
    linear-gradient(165deg, #0c0c0c 0%, var(--bg) 45%, #000 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  animation: drift 18s ease-in-out infinite alternate;
}

.orb-a {
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  top: -10%;
  right: -8%;
  background: #2a3f55;
}

.orb-b {
  width: min(42vw, 360px);
  height: min(42vw, 360px);
  bottom: -12%;
  left: -10%;
  background: #1e3044;
  animation-delay: -6s;
  animation-duration: 22s;
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 65% at 50% 45%, black 20%, transparent 75%);
  animation: grid-shift 28s linear infinite;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  gap: 0;
}

.brand-logo {
  display: block;
  width: min(88vw, 520px);
  height: auto;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.headline {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.support {
  margin-top: 0.85rem;
  max-width: 28rem;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-soft);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

.countdown {
  margin-top: clamp(2rem, 5vw, 2.75rem);
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(0.65rem, 2.5vw, 1.25rem);
  padding: clamp(1rem, 3vw, 1.35rem) clamp(1.15rem, 3.5vw, 1.75rem);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 14px;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.34s both;
}

.unit {
  min-width: clamp(3.25rem, 12vw, 4.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 6vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  transition: transform 0.25s ease;
}

.value.tick {
  transform: translateY(-2px);
}

.label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}

.divider {
  width: 1px;
  align-self: stretch;
  background: var(--line);
  margin: 0.35rem 0;
}

.cta {
  margin-top: clamp(1.75rem, 4vw, 2.25rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.65rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #050505;
  text-decoration: none;
  background: var(--accent);
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.46s both;
}

.cta:hover {
  background: #e8eef4;
  transform: translateY(-1px);
}

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

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-24px, 18px) scale(1.06);
  }
}

@keyframes grid-shift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 64px 64px;
  }
}

@media (max-width: 480px) {
  .brand-logo {
    width: min(92vw, 420px);
  }

  .countdown {
    gap: 0.4rem;
    padding: 0.95rem 0.85rem;
  }

  .divider {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb,
  .grid,
  .brand-logo,
  .headline,
  .support,
  .countdown,
  .cta,
  .value {
    animation: none !important;
    transition: none !important;
  }
}
