@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

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

:root {
  --bg: #f2f0eb;
  --surface: rgba(255,255,255,0.78);
  --surface-hover: rgba(255,255,255,0.96);
  --border: rgba(0,0,0,0.07);
  --border-bright: rgba(0,0,0,0.13);
  --shadow: 0 2px 24px rgba(0,0,0,0.07), 0 0 0 1px rgba(0,0,0,0.05);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.06);
  --text: #1d1d1f;
  --text-secondary: rgba(29,29,31,0.50);
  --accent: #e8470a;
  --accent2: #f4a228;
}

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

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
  padding: 40px 20px;
}

/* ── Orbs ── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: drift 22s ease-in-out infinite;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,71,10,0.08) 0%, transparent 70%);
  top: -150px; left: -150px;
}
.orb-2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(244,162,40,0.07) 0%, transparent 70%);
  bottom: -100px; right: -80px;
  animation-delay: -8s;
}

@keyframes drift {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%       { transform: translate(30px,-25px) scale(1.04); }
  66%       { transform: translate(-18px,18px) scale(0.97); }
}

/* ── Canvas ── */
#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* ── Wrapper ── */
.wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeUp 1.1s cubic-bezier(0.22,1,0.36,1) both;
}

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

/* ── Eyebrow ── */
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.22,1,0.36,1) 0.15s both;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before, .eyebrow::after {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--accent);
  opacity: 0.45;
}

/* ── Title ── */
.title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(40px, 9vw, 80px);
  font-weight: 400;
  line-height: 1.04;
  text-align: center;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 10px;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.22,1,0.36,1) 0.28s both;
}
.title em { font-style: italic; color: var(--accent); }

/* ── Subtitle ── */
.subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  text-align: center;
  font-weight: 300;
  margin-bottom: 28px;
  line-height: 1.6;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.22,1,0.36,1) 0.42s both;
}
.subtitle strong { color: var(--text); font-weight: 400; }

/* ── Date pill ── */
.date-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: 100px;
  padding: 6px 16px 6px 12px;
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 44px;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.22,1,0.36,1) 0.42s both;
  box-shadow: var(--shadow);
}
.date-pill svg { width: 14px; height: 14px; opacity: 0.5; flex-shrink: 0; }
.date-pill span { color: var(--text); font-weight: 400; }

/* ── Countdown grid ── */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  width: 100%;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.22,1,0.36,1) 0.56s both;
}

.unit {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: clamp(20px,4vw,32px) 10px clamp(16px,3vw,24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: box-shadow .35s, transform .35s, background .35s;
  box-shadow: var(--shadow);
  cursor: default;
}
.unit:hover {
  background: var(--surface-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.unit::after {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
}
.unit.highlight {
  border-color: rgba(232,71,10,0.18);
  background: rgba(255,255,255,0.88);
}
.unit.highlight::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(232,71,10,0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* ── Numbers ── */
.number-wrap {
  height: clamp(52px,10vw,70px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
}
.number {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(36px,7vw,60px);
  font-weight: 400;
  line-height: 1;
  color: var(--text);
  display: block;
}
.unit.highlight .number { color: var(--accent); }

.number.flip-out {
  transform: translateY(-110%);
  opacity: 0;
  transition: transform .22s cubic-bezier(0.4,0,1,1), opacity .18s;
}
.number.flip-in {
  transform: translateY(110%);
  opacity: 0;
  transition: none;
}
.number.flip-in.active {
  transform: translateY(0);
  opacity: 1;
  transition: transform .32s cubic-bezier(0.22,1,0.36,1), opacity .28s;
}

.label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.unit.highlight .label { color: rgba(232,71,10,0.6); }

/* ── Progress ── */
.progress-section {
  width: 100%;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.22,1,0.36,1) 0.70s both;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 9px;
  font-size: 12px;
  color: var(--text-secondary);
}
.progress-meta span:last-child { color: var(--accent); font-weight: 500; }
.progress-track {
  width: 100%; height: 5px;
  background: rgba(0,0,0,0.07);
  border-radius: 100px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 100px;
  transition: width 1.6s cubic-bezier(0.22,1,0.36,1);
}

/* ── Footer badges ── */
.footer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.22,1,0.36,1) 0.84s both;
}
.badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 14px;
  font-size: 12px;
  color: var(--text-secondary);
  box-shadow: var(--shadow);
  white-space: nowrap;
}
.badge svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ── Responsive ── */
@media (max-width: 680px) {
  body { padding: 32px 16px; }
  .countdown { gap: 10px; }
  .date-pill { font-size: 11.5px; margin-bottom: 32px; }
  .subtitle { font-size: 14px; margin-bottom: 22px; }
}
@media (max-width: 480px) {
  body { padding: 40px 14px 32px; justify-content: flex-start; }
  .countdown { grid-template-columns: repeat(2,1fr); gap: 10px; margin-bottom: 24px; }
  .unit { border-radius: 18px; }
  .number-wrap { height: 56px; }
  .number { font-size: 38px; }
  .eyebrow { font-size: 10px; }
  .badge { font-size: 11px; padding: 6px 11px; }
  .progress-section { margin-bottom: 24px; }
}
@media (max-width: 340px) {
  .number { font-size: 30px; }
  .number-wrap { height: 44px; }
}
