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

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html,
body {
  margin: 0;
  min-height: 100dvh;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: #080e16;
}

img {
  display: block;
  max-width: none;
}

/* ── Background video ── */

.page {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.bg__video,
.bg__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.bg__video {
  display: block;
}

.bg__poster {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
}

.bg__video.is-fallback + .bg__poster,
.bg.no-video .bg__poster {
  opacity: 1;
}

.bg__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--overlay-top) 0%,
    var(--overlay-mid) 45%,
    var(--overlay-bottom) 100%
  );
}

/* ── Content ── */

.shell {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: clamp(24px, 5vw, 48px);
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(32px, 8vh, 80px) 0;
}

/* stagger reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 1s var(--ease-out) forwards;
}

.reveal--1 { animation-delay: 0.1s; }
.reveal--2 { animation-delay: 0.22s; }
.reveal--3 { animation-delay: 0.34s; }
.reveal--4 { animation-delay: 0.46s; }
.reveal--5 { animation-delay: 0.58s; }
.reveal--6 { animation-delay: 0.7s; }

.company {
  margin: 0 0 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 10vw, 4.5rem);
  font-weight: 300;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  line-height: 1.1;
}

.status {
  margin: 0 0 40px;
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-muted);
}

/* ── Countdown — glass strip ── */

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 28px);
  padding: clamp(20px, 4vw, 28px) clamp(24px, 5vw, 40px);
  margin-bottom: 28px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.unit {
  min-width: 56px;
}

.sep {
  width: 1px;
  height: 36px;
  background: var(--glass-border);
  flex-shrink: 0;
}

.num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease-out);
}

.num.is-tick {
  animation: tick 0.5s var(--ease-out);
}

.label {
  display: block;
  margin-top: 8px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.meta {
  margin: 0 0 32px;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* ── Notify — Apple pill ── */

.notify {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  width: min(100%, 400px);
}

.notify input {
  flex: 1 1 200px;
  min-width: 0;
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  background: var(--glass-strong);
  color: var(--text);
  font-size: 0.9375rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.notify input::placeholder {
  color: var(--text-faint);
}

.notify input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.16);
}

.notify button {
  height: 44px;
  padding: 0 22px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--text);
  color: #0a0a0a;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), opacity 0.2s var(--ease);
}

.notify button:hover {
  opacity: 0.92;
}

.notify button:active {
  transform: scale(0.98);
}

.notify button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.notify__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.notify__status {
  flex: 1 1 100%;
  margin: 4px 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  text-align: center;
}

.notify__status.is-success {
  color: rgba(255, 255, 255, 0.88);
}

.notify__status.is-error {
  color: #ffb4b4;
}

.notify__status.is-pending {
  color: var(--text-faint);
}

/* ── Footer ── */

.footer {
  text-align: center;
  padding-top: 24px;
  font-size: 0.75rem;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

/* ── Motion ── */

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tick {
  0% { opacity: 0.4; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .bg__video {
    display: none;
  }

  .bg__poster {
    opacity: 1;
  }

  .reveal,
  .num.is-tick {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 480px) {
  .sep {
    display: none;
  }

  .countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 20px 16px;
  }

  .unit {
    min-width: 0;
  }
}