:root {
  --primary: #0c1232;
  --primary-mid: #111a3e;
  --accent: #fcb500;
  --accent-soft: rgba(252, 181, 0, 0.15);
  --white: #ffffff;
  --white-90: rgba(255, 255, 255, 0.92);
  --white-60: rgba(255, 255, 255, 0.6);
  --white-35: rgba(255, 255, 255, 0.35);
  --white-12: rgba(255, 255, 255, 0.07);
}

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

html { font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--primary);
  color: var(--white);
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
}

/* ---- Layout ---- */

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

/* ---- Background ---- */

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

.bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: bgZoom 25s ease-in-out infinite alternate;
  transform-origin: center center;
}

.bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(12, 18, 50, 0.85) 0%,
      rgba(12, 18, 50, 0.68) 40%,
      rgba(12, 18, 50, 0.82) 100%
    );
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ---- Header ---- */

.header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(16px, 2.5vh, 28px) clamp(24px, 4vw, 60px);
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 34px;
  height: 34px;
  background: var(--accent);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  color: var(--primary);
}

.logo-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---- Main ---- */

.main {
  position: relative;
  z-index: 10;
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(24px, 4vw, 60px);
}

.content {
  max-width: 620px;
  width: 100%;
}

/* ---- Typography ---- */

.label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--accent);
  margin-bottom: 16px;
}

.title {
  font-size: clamp(30px, 4.2vw, 50px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--white);
  margin-bottom: 12px;
}

.subtitle {
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.7;
  color: var(--white-60);
  margin-bottom: clamp(20px, 3vh, 36px);
  max-width: 520px;
}

/* ---- Countdown ---- */

.countdown {
  display: flex;
  align-items: baseline;
  gap: 0;
  margin-bottom: clamp(14px, 2vh, 24px);
}

.unit {
  text-align: center;
  width: clamp(64px, 9vw, 100px);
}

.unit-value {
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: transform 0.2s ease;
}

.unit-value.tick {
  transform: scale(1.06);
}

.unit-label {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--white-35);
}

.countdown .sep {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 300;
  color: var(--white-35);
  width: 20px;
  text-align: center;
  padding-bottom: 18px;
}

.countdown-done {
  display: none;
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 18px;
}

/* ---- Availability ---- */

.eta {
  font-size: clamp(13px, 1.2vw, 16px);
  color: var(--white-35);
  margin-bottom: clamp(14px, 2vh, 24px);
  padding-left: 2px;
}

.eta span {
  color: var(--white-60);
  font-weight: 500;
}

/* ---- Buttons ---- */

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary);
}

.btn-primary:hover {
  background: #ffc21a;
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--white-12);
  color: var(--white-90);
  border: 1px solid rgba(255,255,255,0.1);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-1px);
}

.btn i {
  font-size: 13px;
}

/* ---- Footer ---- */

.footer {
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  padding: clamp(12px, 1.8vh, 22px) clamp(24px, 4vw, 60px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-left {
  font-size: 12px;
  color: var(--white-35);
  line-height: 1.6;
}

.footer-left a {
  color: var(--white-60);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-left a:hover {
  color: var(--accent);
}

.footer-right {
  font-size: 11px;
  color: var(--white-35);
}

/* ---- Entrance ---- */

.header,
.content,
.footer {
  opacity: 0;
  animation: enter 0.7s ease-out forwards;
}

.content { animation-delay: 0.15s; }
.footer  { animation-delay: 0.3s; }

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

@keyframes bgZoom {
  0%   { transform: scale(1); }
  100% { transform: scale(1.1); }
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
  .header {
    padding: 14px 20px;
  }

  .header-status {
    font-size: 10px;
  }

  .main {
    padding: 0 20px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 20px;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 12px 16px;
  }

  .logo-mark {
    width: 30px;
    height: 30px;
    font-size: 14px;
    border-radius: 7px;
  }

  .logo-name {
    font-size: 15px;
  }

  .header-status span {
    display: none;
  }

  .main {
    padding: 0 16px;
  }

  .label {
    font-size: 10px;
    margin-bottom: 10px;
    letter-spacing: 2px;
  }

  .title {
    font-size: 22px;
    margin-bottom: 8px;
  }

  .subtitle {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 16px;
  }

  .countdown {
    gap: 6px;
    margin-bottom: 8px;
  }

  .unit {
    min-width: 52px;
  }

  .unit-value {
    font-size: 26px;
  }

  .unit-label {
    font-size: 8px;
    margin-top: 4px;
  }

  .countdown .sep {
    font-size: 20px;
  }

  .eta {
    font-size: 11px;
    margin-bottom: 14px;
  }

  .actions {
    gap: 8px;
  }

  .btn {
    padding: 10px 18px;
    font-size: 12px;
  }

  .footer {
    padding: 10px 16px;
  }

  .footer-left {
    font-size: 11px;
  }

  .footer-right {
    font-size: 10px;
  }
}

@media (max-height: 650px) {
  .header {
    padding: 8px 20px;
  }

  .label {
    margin-bottom: 8px;
    font-size: 10px;
  }

  .title {
    font-size: clamp(20px, 3vw, 30px);
    margin-bottom: 6px;
  }

  .subtitle {
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.5;
  }

  .countdown {
    margin-bottom: 6px;
  }

  .unit-value {
    font-size: clamp(24px, 3.5vw, 36px);
  }

  .eta {
    margin-bottom: 12px;
    font-size: 11px;
  }

  .btn {
    padding: 8px 18px;
    font-size: 12px;
  }

  .footer {
    padding: 6px 20px;
  }
}

@media (max-height: 520px) {
  .subtitle {
    display: none;
  }

  .eta {
    margin-bottom: 8px;
  }

  .btn {
    padding: 7px 14px;
    font-size: 11px;
  }
}
