@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Playfair+Display:wght@500;700&display=swap");

:root{
  --bg: #07080b;
  --panel: rgba(14, 15, 19, 0.62);
  --panel2: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.16);
  --stroke2: rgba(255, 255, 255, 0.10);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.65);
  --dim: rgba(255, 255, 255, 0.46);
  --shadow: 0 30px 80px rgba(0,0,0,0.62);
  --glow: 0 0 40px rgba(255,255,255,0.09);
}

*{ box-sizing:border-box; }
html, body { height: 100%; overflow-x: hidden; }
body{
  margin:0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.stage{
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  isolation: isolate;

  /* 👇 Put your mountain JPG here */
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.70), rgba(0,0,0,0.78)),
    url("/images/mountain.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.veil{
  position:absolute;
  inset:0;
  background:
    radial-gradient(1200px 600px at 50% 35%, rgba(255,255,255,0.06), transparent 60%),
    radial-gradient(900px 450px at 20% 20%, rgba(255,255,255,0.04), transparent 60%),
    radial-gradient(900px 450px at 80% 70%, rgba(255,255,255,0.035), transparent 60%);
  pointer-events:none;
  z-index: 0;
}

.card{
  width: min(980px, 100%);     /* ✅ respects .stage padding */
  justify-self: center;        /* ✅ explicit center for grid */
  margin-inline: auto;
  padding: clamp(26px, 4vw, 44px);
  border-radius: 28px;
  background: linear-gradient(180deg, var(--panel), rgba(9, 10, 14, 0.45));
  border: 1px solid var(--stroke2);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
  overflow: hidden;
}


.card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(800px 300px at 50% 0%, rgba(255,255,255,0.12), transparent 55%),
    radial-gradient(500px 200px at 10% 10%, rgba(255,255,255,0.08), transparent 60%),
    radial-gradient(500px 200px at 90% 90%, rgba(255,255,255,0.06), transparent 60%);
  pointer-events:none;
  z-index: 0;
}

.top, .countdown, .footer{ position: relative; z-index: 1; }

.top {
    align-items: center;
    justify-content: center;
    text-align: center;
}


.mark{
  display:flex;
  align-items:center;
  gap: 14px;
  opacity: 0.9;
  margin-bottom: 18px;
}
.mark .dot{
  width: 7px; height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  box-shadow: var(--glow);
}
.mark .line{
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.30), transparent);
}

.kicker{
  letter-spacing: 0.34em;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 10px 0;
}

.title{
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.02;
  margin: 0 0 10px 0;
  text-shadow: 0 12px 40px rgba(0,0,0,0.55);
}

.sub{
  max-width: 62ch;
  margin: 0 0 26px 0;
  color: var(--muted);
  font-weight: 300;
  font-size: clamp(14px, 2.1vw, 16px);
}

.countdown{
  display:flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(10px, 1.8vw, 16px);
  padding: 18px 14px 10px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--stroke2);
}

.unit{
  display:grid;
  gap: 10px;
  justify-items: center;
}

.sep{
  color: rgba(255,255,255,0.45);
  font-size: clamp(26px, 3.5vw, 40px);
  transform: translateY(-24px);
  text-shadow: 0 10px 30px rgba(0,0,0,0.55);
}

.digit{
  position: relative;
  width: clamp(78px, 12vw, 132px);
  height: clamp(82px, 12vw, 140px);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow:
    0 18px 55px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.10);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.digit .value{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(38px, 6vw, 64px);
  letter-spacing: 0.02em;
  text-shadow:
    0 10px 30px rgba(0,0,0,0.6),
    0 0 24px rgba(255,255,255,0.10);
}

.digit .shine{
  position:absolute;
  inset: -60% -40%;
  background: linear-gradient(
    120deg,
    transparent 35%,
    rgba(255,255,255,0.14) 50%,
    transparent 65%
  );
  transform: rotate(12deg) translateX(-30%);
  filter: blur(1px);
  opacity: 0.9;
  animation: sweep 7.5s ease-in-out infinite;
}

.digit .glow{
  position:absolute;
  inset: -20px;
  background: radial-gradient(closest-side, rgba(255,255,255,0.10), transparent 70%);
  opacity: 0.45;
  pointer-events:none;
}

.label{
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

.footer{
  display:flex;
  gap: 18px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.10);
  color: var(--dim);
  font-size: 13px;


    align-items: center;
    justify-content: center;
    text-align: center;

}

.release-strong{
  color: rgba(255,255,255,0.84);
  font-weight: 600;
}

.grain{
  position:absolute;
  inset:0;
  z-index: 2;
  pointer-events:none;
  opacity: 0.10;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

@keyframes sweep{
  0%, 20% { transform: rotate(12deg) translateX(-55%); opacity: 0; }
  35% { opacity: 0.9; }
  50% { transform: rotate(12deg) translateX(25%); opacity: 1; }
  70% { opacity: 0.35; }
  100%{ transform: rotate(12deg) translateX(55%); opacity: 0; }
}

/* Tick animation */
.tick{
  animation: tick 260ms ease;
}
@keyframes tick{
  0% { transform: translateY(0) rotateX(0deg); }
  40%{ transform: translateY(-2px) rotateX(12deg); }
  100%{ transform: translateY(0) rotateX(0deg); }
}

@media (max-width: 720px){
  .countdown{
    flex-wrap: nowrap;
    gap: 8px;
    padding: 14px 10px 8px;

    width: fit-content;     /* ✅ shrink to content */
    max-width: 100%;
    margin-inline: auto;    /* ✅ center the whole countdown block */
    overflow: visible;      /* ✅ prevents left-start scroll look */
  }

  .sep{ display:none; }

  .digit{
    width: clamp(60px, 18vw, 86px);
    height: clamp(64px, 18vw, 92px);
    border-radius: 16px;
  }

  .digit .value{
    font-size: clamp(28px, 8.5vw, 44px);
  }

  .label{
    font-size: 10px;
    letter-spacing: 0.14em;
  }

  .countdown{ 
    background: none;
    border: none;
  }

}


@media (max-width: 340px){
  .countdown{
    width: 100%;
    justify-content: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .countdown::-webkit-scrollbar{ height: 0; }
}
