@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* ── Variables ──────────────────────────────────────────── */
:root {
  --bg:          #080c18;
  --bg-card:     rgba(12, 18, 38, 0.85);
  --blue:        #2c5ff5;
  --blue-light:  #5580ff;
  --blue-subtle: rgba(44, 95, 245, 0.15);
  --border:      rgba(255, 255, 255, 0.07);
  --border-blue: rgba(85, 128, 255, 0.25);
  --silver:      #d4dcf0;
  --silver-dim:  rgba(212, 220, 240, 0.65);
  --white:       #f5f7ff;
  --radius:      12px;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  font-family: 'DM Sans', sans-serif;
  color: var(--white);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Canvas starfield ───────────────────────────────────── */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Subtle background gradient ─────────────────────────── */
.nebula {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.nebula-1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(44,95,245,0.1) 0%, transparent 70%);
  top: -150px; left: -150px;
}
.nebula-2 {
  width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(44,95,245,0.08) 0%, transparent 70%);
  bottom: -100px; right: -100px;
}
.nebula-3 {
  display: none;
}

/* ── Layout container ───────────────────────────────────── */
.container {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3.5rem 2rem 2.5rem;
  max-width: 720px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2rem;
  animation: page-in 0.9s cubic-bezier(.22,1,.36,1) both;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Logo ───────────────────────────────────────────────── */
.logo-wrap {
  position: relative;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-halo {
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44,95,245,0.18) 0%, transparent 65%);
  animation: halo-breathe 5s ease-in-out infinite;
}

/* Hide spinning ring */
.logo-ring { display: none; }

@keyframes halo-breathe {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

.logo {
  width: 130px;
  height: 130px;
  border-radius: 18px;
  object-fit: cover;
  position: relative;
  z-index: 1;
  border: 1px solid var(--border-blue);
  box-shadow:
    0 2px 20px rgba(0,0,0,0.5),
    0 0 40px rgba(44,95,245,0.15);
}

/* ── Brand ──────────────────────────────────────────────── */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.brand-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 8vw, 4.4rem);
  letter-spacing: 0.22em;
  line-height: 1;
  color: var(--white);
  background: linear-gradient(160deg, #ffffff 30%, #8aaaff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-sub {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: clamp(0.6rem, 2vw, 0.75rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--silver-dim);
}

/* ── Divider ────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 380px;
}
.divider--sm { max-width: 240px; }

.divider-beam {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-blue), transparent);
}

.divider-core {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-light);
  opacity: 0.8;
}

/* ── Tagline ────────────────────────────────────────────── */
.tagline {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(0.9rem, 2.8vw, 1.1rem);
  color: var(--silver);
  letter-spacing: 0.04em;
}

/* ── Countdown ──────────────────────────────────────────── */
.countdown-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.section-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--silver-dim);
}

.countdown {
  display: flex;
  gap: clamp(0.5rem, 2vw, 1.4rem);
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.time-card {
  position: relative;
  padding: clamp(0.5rem, 1.5vw, 0.8rem) clamp(0.7rem, 2vw, 1.1rem);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top-color: var(--border-blue);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  box-shadow:
    0 4px 24px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.time-value {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 3.5vw, 2.1rem);
  color: var(--white);
  line-height: 1;
  display: block;
  min-width: 2ch;
  text-align: center;
}

.time-value.flip {
  animation: digit-flip 0.22s ease;
}

@keyframes digit-flip {
  0%   { transform: translateY(-5px); opacity: 0.3; }
  100% { transform: translateY(0);    opacity: 1; }
}

.time-unit {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-dim);
}

.time-sep {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--blue-light);
  line-height: 1;
  margin-bottom: 18px;
  opacity: 0.7;
  animation: sep-blink 1s step-end infinite;
}

@keyframes sep-blink {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 0.15; }
}

/* ── Social ─────────────────────────────────────────────── */
.social-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.social-icons {
  display: flex;
  gap: 0.85rem;
}

.social-link {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--silver);
  text-decoration: none;
  transition: transform 0.25s ease,
              border-color 0.25s ease,
              color 0.25s ease,
              box-shadow 0.25s ease;
  overflow: hidden;
}

.social-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-subtle) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.social-link svg {
  width: 21px;
  height: 21px;
  position: relative;
  z-index: 1;
}

.social-link:hover {
  transform: translateY(-4px);
  border-color: var(--border-blue);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(44,95,245,0.25);
}

.social-link:hover .social-bg { opacity: 1; }

/* ── Footer ─────────────────────────────────────────────── */
.page-footer {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--silver-dim);
  opacity: 0.6;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 500px) {
  .logo-wrap, .logo { width: 110px; height: 110px; }
  .logo { border-radius: 14px; }
  .social-icons { gap: 0.65rem; }
  .social-link { width: 46px; height: 46px; border-radius: 10px; }
  .social-link svg { width: 19px; height: 19px; }
  .countdown { gap: 0.3rem; }
}
