:root {
  --bg: #050403;
  --bg-2: #0b0907;
  --panel: rgba(8, 7, 6, 0.72);
  --panel-strong: rgba(10, 8, 6, 0.92);
  --gold-1: #fff198;
  --gold-2: #fee367;
  --gold-3: #e8a223;
  --gold-4: #975705;
  --gold-5: #563003;
  --cream: #f8efdc;
  --muted: #a89d8c;
  --crimson: #8a1f26;
  --shadow: rgba(0, 0, 0, 0.66);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--cream);
  background: var(--bg);
  font-family: "Rajdhani", system-ui, sans-serif;
  overflow-x: hidden;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 64px) 20px;
  overflow: hidden;
}

.hero__background,
.hero__vignette,
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: -4;
  pointer-events: none;
}

.hero__vignette {
  z-index: -3;
  background:
    radial-gradient(circle at 50% 38%, rgba(232, 162, 35, .13), transparent 28%),
    linear-gradient(to bottom, rgba(0,0,0,.36), rgba(0,0,0,.56) 46%, rgba(0,0,0,.86)),
    radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,.55) 78%, rgba(0,0,0,.9) 100%);
}

.hero__grain {
  z-index: -2;
  opacity: .12;
  background-image:
    repeating-radial-gradient(circle at 15% 30%, rgba(255,255,255,.15) 0 1px, transparent 1px 4px),
    repeating-radial-gradient(circle at 80% 70%, rgba(255,255,255,.08) 0 1px, transparent 1px 5px);
  mix-blend-mode: soft-light;
}

.countdown-panel {
  width: min(940px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(22px, 3vw, 36px) clamp(18px, 4vw, 44px) clamp(24px, 4vw, 42px);
  border: 1px solid rgba(232, 162, 35, .24);
  background:
    linear-gradient(180deg, rgba(10,8,6,.58), rgba(5,4,3,.76)),
    radial-gradient(circle at 50% 0%, rgba(232,162,35,.12), transparent 36%);
  box-shadow:
    0 28px 90px rgba(0,0,0,.48),
    inset 0 1px 0 rgba(255,241,152,.11),
    inset 0 -1px 0 rgba(151,87,5,.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
}

.countdown-panel::before,
.countdown-panel::after {
  content: "";
  position: absolute;
  width: 84px;
  height: 1px;
  top: -1px;
  background: linear-gradient(90deg, transparent, var(--gold-3));
}

.countdown-panel::before { left: 8%; }
.countdown-panel::after { right: 8%; transform: scaleX(-1); }

.crest {
  width: clamp(118px, 15vw, 170px);
  height: auto;
  margin: -8px 0 4px;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.48)) drop-shadow(0 0 26px rgba(232,162,35,.08));
  animation: crestFloat 6s ease-in-out infinite;
}

.eyebrow {
  margin: 2px 0 8px;
  color: var(--gold-2);
  font-size: clamp(.72rem, 1.2vw, .9rem);
  font-weight: 700;
  letter-spacing: .34em;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(232,162,35,.18);
}

h1 {
  margin: 0;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.8rem, 5vw, 3.7rem);
  font-weight: 700;
  letter-spacing: .07em;
  line-height: 1.04;
  color: #fff7d5;
  text-shadow: 0 4px 24px rgba(0,0,0,.72);
}

.subtitle {
  margin: 12px 0 0;
  max-width: 650px;
  color: #b9ad9b;
  font-size: clamp(.92rem, 1.7vw, 1.08rem);
  font-weight: 500;
  letter-spacing: .06em;
}

.ornament {
  display: grid;
  grid-template-columns: minmax(42px, 140px) 60px minmax(42px, 140px);
  align-items: center;
  gap: 10px;
  margin: 22px 0 20px;
  width: min(360px, 74%);
}

.ornament span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,162,35,.7));
}

.ornament span:last-child { transform: scaleX(-1); }

.ornament i {
  width: 8px;
  height: 8px;
  justify-self: center;
  border: 1px solid var(--gold-3);
  transform: rotate(45deg);
  box-shadow: 0 0 15px rgba(232,162,35,.38);
}

.timer {
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.6vw, 14px);
}

.time-card {
  position: relative;
  min-height: clamp(104px, 14vw, 132px);
  display: grid;
  place-content: center;
  gap: 4px;
  padding: 14px 8px 12px;
  border: 1px solid rgba(232,162,35,.2);
  background:
    linear-gradient(180deg, rgba(20,16,12,.93), rgba(7,6,5,.95)),
    radial-gradient(circle at 50% 0, rgba(254,227,103,.07), transparent 70%);
  box-shadow:
    0 12px 34px rgba(0,0,0,.38),
    inset 0 1px 0 rgba(255,241,152,.08);
  overflow: hidden;
}

.time-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-5), var(--gold-2), var(--gold-5));
  opacity: .9;
}

.time-card::after {
  content: "";
  position: absolute;
  inset: 52% 10px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent);
}

.time-card strong {
  position: relative;
  z-index: 1;
  font-family: "Rajdhani", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.55rem, 7vw, 4.6rem);
  font-weight: 700;
  line-height: .88;
  letter-spacing: .02em;
  color: #f4f1ea;
  text-shadow: 0 3px 0 #15110d, 0 0 24px rgba(255,241,152,.08);
}

.time-card span {
  position: relative;
  z-index: 1;
  color: var(--gold-3);
  font-size: clamp(.68rem, 1.4vw, .86rem);
  font-weight: 700;
  letter-spacing: .22em;
}

.launch-line {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.launch-line__bar {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,162,35,.42));
}

.launch-line__bar:last-of-type { transform: scaleX(-1); }

.launch-line p {
  margin: 0;
  color: #bda05d;
  font-size: clamp(.68rem, 1.2vw, .8rem);
  font-weight: 700;
  letter-spacing: .17em;
  white-space: nowrap;
}

.footer-copy {
  margin: 18px 0 0;
  color: #817566;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(.64rem, 1.2vw, .78rem);
  font-weight: 600;
  letter-spacing: .34em;
}

.embers {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ember {
  position: absolute;
  bottom: -10px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #f6b83d;
  box-shadow: 0 0 8px rgba(246,184,61,.75);
  opacity: 0;
  animation: rise var(--duration) linear var(--delay) infinite;
}

@keyframes rise {
  0% { transform: translate3d(0,0,0) scale(.65); opacity: 0; }
  12% { opacity: .55; }
  78% { opacity: .18; }
  100% { transform: translate3d(var(--drift), -105vh, 0) scale(1.25); opacity: 0; }
}

@keyframes breathe {
  from { transform: scale(1.03); }
  to { transform: scale(1.075); }
}

@keyframes crestFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@media (max-width: 640px) {
  .hero { padding: 16px 12px; }
  .countdown-panel { padding: 20px 12px 24px; }
  .timer { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 430px; }
  .time-card { min-height: 96px; }
  .launch-line { grid-template-columns: 1fr; gap: 10px; }
  .launch-line__bar { display: none; }
  .launch-line p { white-space: normal; line-height: 1.5; }
  .footer-copy { letter-spacing: .2em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
