/* ---------- Base ---------- */
:root {
  --card-bg: rgba(18, 18, 22, 0.7);
  --card-border: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.7);
  --muted-2: rgba(255, 255, 255, 0.55);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    "Noto Sans",
    "Helvetica Neue",
    sans-serif;
  color: var(--text);
  background: #0b0b10;
  overflow-x: hidden;
}

/* ---------- Background ---------- */
.bg {
  position: fixed;
  inset: 0;
  background-image: url("assets/bg.webp"); /* <-- CHANGE THIS */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.02);
  filter: saturate(1.05);
  z-index: -2;
}

.overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      1200px 800px at 20% 15%,
      rgba(0, 0, 0, 0.25),
      rgba(0, 0, 0, 0.55)
    ),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.65));
  z-index: -1;
}

/* ---------- Layout ---------- */
.wrap {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
}

.card {
  width: min(920px, 100%);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: clamp(18px, 3.5vw, 38px);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.logo {
  display: grid;
  place-items: center;
  width: 84px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.06);
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  opacity: 0.85;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 22px;
  max-width: 65ch;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
}

/* ---------- Countdown ---------- */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 16px);
  margin: 18px 0 22px;
}

.timebox {
  padding: 16px 14px;
  border-radius: 18px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
}

.num {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.label {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Form ---------- */
.form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 6px;
}

input {
  height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  outline: none;
  font-size: 15px;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

input:focus {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

button {
  height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: #0b0b10;
  font-weight: 800;
  cursor: pointer;
}

button:active {
  transform: translateY(1px);
}

.fineprint {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--muted-2);
  font-size: 13px;
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0);
}
a:hover {
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

.copy {
  color: var(--muted-2);
  font-size: 13px;
}

/* ---------- Accessibility helpers ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 720px) {
  .top {
    flex-direction: column;
    align-items: flex-start;
  }
  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .form {
    grid-template-columns: 1fr;
  }
  button {
    width: 100%;
  }
}
