:root {
  --bg: #060a14;
  --fg: #ffffff;
  --muted: rgba(198, 216, 244, 0.72);
  --accent: #8fbce8; /* refined Argentine celeste */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-num: "Space Grotesk", var(--font);
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  overflow: hidden;
}

/* --- Background flag canvas --- */
#flag {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  z-index: 0;
  /* Push the flag video back so the logo + countdown lead. */
  filter: brightness(0.46) saturate(0.9) blur(1px);
  transform: scale(1.04);
  transform-origin: center;
}

/* Darkening + vignette overlay so foreground stays readable and premium */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(110% 80% at 50% 34%, rgba(6, 10, 20, 0.34) 0%, rgba(6, 10, 20, 0.72) 66%, rgba(6, 10, 20, 0.94) 100%),
    linear-gradient(180deg, rgba(6, 10, 20, 0.66) 0%, rgba(6, 10, 20, 0.3) 42%, rgba(6, 10, 20, 0.88) 100%);
}

/* --- Foreground --- */
.content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: clamp(30px, 6vh, 56px);
}

/* Staggered entrance */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes reveal {
  to { opacity: 1; transform: none; }
}

/* --- Logo --- */
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.6vw, 16px);
  color: #fff;
  filter: drop-shadow(0 12px 34px rgba(0, 0, 0, 0.55));
}
.logo-mark { width: clamp(273px, 47vw, 494px); height: auto; }
.logo-word {
  font-weight: 800;
  font-size: clamp(1.4rem, 4.5vw, 2.3rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.5em;
  font-size: clamp(0.66rem, 2.2vw, 0.82rem);
  font-weight: 700;
  color: var(--accent);
  padding-left: 0.5em; /* offset trailing tracking */
}

.headline {
  font-weight: 800;
  font-size: clamp(1.7rem, 6vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.06;
  max-width: 16ch;
  background: linear-gradient(180deg, #ffffff 0%, #d7e6fb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 30px rgba(0, 0, 0, 0.55));
}

/* --- Countdown (delicate) --- */
.countdown {
  display: flex;
  align-items: flex-start;
  gap: clamp(17px, 4.6vw, 40px);
  margin-top: 4px;
}

.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: clamp(36px, 8.5vw, 50px);
}

.num {
  font-family: var(--font-num);
  font-weight: 400;
  font-size: clamp(1.28rem, 4vw, 2.16rem);
  line-height: 1;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffffff 0%, #d3e2f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  will-change: transform, filter, opacity;
}
.num.pop {
  animation: numIn 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes numIn {
  0%   { opacity: 0; transform: translateY(0.22em); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.label {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: clamp(0.44rem, 1.15vw, 0.52rem);
  font-weight: 600;
  color: rgba(196, 216, 244, 0.5);
  padding-left: 0.3em;
}

.launched {
  margin-top: 10px;
  font-size: clamp(1.3rem, 4vw, 1.9rem);
  font-weight: 800;
}

@media (max-width: 420px) {
  .countdown { gap: clamp(14px, 4.5vw, 20px); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .unit::after { animation: none; }
  .num.pop { animation: none; }
}
