:root {
  --bg: #0a0f13;
  --teal: #0c91a7;
  --teal-soft: rgba(12, 145, 167, 0.16);
  --red: #ee2f39;
  --silver: #c9c6c5;
  --text: #f2f4f5;
  --text-dim: #9aa3a9;
  --card: rgba(13, 21, 27, 0.72);
  --card-border: rgba(255, 255, 255, 0.09);
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Space Grotesk", ui-monospace, "SF Mono", monospace;
}

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

html {
  height: 100%;
}

body {
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.page {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  isolation: isolate;
}

/* ---------- Hero background ---------- */

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("../assets/hero.jpg") center / cover no-repeat;
  animation: kenburns 40s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(6, 10, 13, 0.94) 0%, rgba(6, 10, 13, 0.82) 38%, rgba(6, 10, 13, 0.45) 68%, rgba(6, 10, 13, 0.62) 100%),
    linear-gradient(to top, rgba(6, 10, 13, 0.95) 0%, transparent 32%, transparent 82%, rgba(6, 10, 13, 0.55) 100%);
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 5vw, 4rem);
}

.brand-logo {
  height: clamp(56px, 8vw, 76px);
  width: auto;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: rgba(10, 15, 19, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(12, 145, 167, 0.55);
  animation: pulse 2.4s ease-out infinite;
}

/* ---------- Hero content ---------- */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem) clamp(1.25rem, 5vw, 4rem);
  max-width: 860px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--red);
}

.headline {
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45);
}

.headline .accent {
  color: var(--teal);
  position: relative;
  white-space: nowrap;
}

.headline .accent::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.06em;
  width: 100%;
  height: 0.09em;
  background: var(--red);
  transform: skewX(-12deg);
}

.subline {
  max-width: 56ch;
  margin-bottom: clamp(1.8rem, 4vw, 2.6rem);
  font-size: clamp(0.98rem, 1.6vw, 1.15rem);
  color: var(--text-dim);
}

/* ---------- Countdown ---------- */

.countdown {
  display: flex;
  align-items: stretch;
  gap: clamp(0.4rem, 1.4vw, 0.9rem);
}

.count-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: clamp(64px, 11vw, 104px);
  padding: clamp(0.7rem, 1.8vw, 1.1rem) clamp(0.5rem, 1.6vw, 1rem);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-top: 3px solid var(--teal);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.count-block:hover {
  transform: translateY(-3px);
  border-top-color: var(--red);
}

.count-value {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 4.6vw, 3.1rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--text);
}

.count-value.tick {
  animation: tick 0.4s ease;
}

.count-label {
  margin-top: 0.45rem;
  font-size: clamp(0.6rem, 1.1vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.count-sep {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--teal);
  padding-bottom: 1.1rem;
  animation: sepblink 2s steps(1) infinite;
}

.countdown.is-live .count-block:last-child {
  border-top-color: var(--red);
}

.countdown-message {
  margin-top: 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.04em;
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1.5rem;
  padding: 1.1rem clamp(1.25rem, 5vw, 4rem);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(6, 10, 13, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.copyright {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.credit {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.credit-logo {
  height: 18px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.credit-logo:hover {
  opacity: 1;
}

/* ---------- Entrance animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: reveal 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.eyebrow.reveal { animation-delay: 0.15s; }
.headline.reveal { animation-delay: 0.3s; }
.subline.reveal { animation-delay: 0.5s; }
.countdown.reveal { animation-delay: 0.7s; }

/* ---------- Keyframes ---------- */

@keyframes reveal {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.07); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(12, 145, 167, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(12, 145, 167, 0); }
  100% { box-shadow: 0 0 0 0 rgba(12, 145, 167, 0); }
}

@keyframes tick {
  0% { transform: translateY(-4px); opacity: 0.4; }
  100% { transform: none; opacity: 1; }
}

@keyframes sepblink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .hero-bg,
  .status-dot,
  .count-sep,
  .count-value.tick {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .count-block {
    transition: none;
  }
}

/* ---------- Small screens ---------- */

@media (max-width: 768px) {
  .hero-bg {
    background-position: 38% center;
  }
}

@media (max-width: 480px) {
  .countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .count-sep {
    display: none;
  }

  .count-block {
    min-width: 0;
    padding: 0.65rem 0.3rem;
  }

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