:root {
  --bg-1: 225 80% 7%;
  --accent: 260 100% 60%;
  --glass: rgba(255, 255, 255, 0.06);
  --muted: rgba(255, 255, 255, 0.75);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  background: radial-gradient(
      1200px 700px at 10% 10%,
      hsl(220 80% 14%) 0%,
      transparent 20%
    ),
    radial-gradient(
      1000px 600px at 90% 80%,
      hsl(280 70% 12%) 0%,
      transparent 18%
    ),
    linear-gradient(180deg, hsl(226 45% 10%), hsl(235 35% 6%));
  color: #fff;

  /* ✅ Fix: make it scrollable, not locked */
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;

  padding: 16px;
  box-sizing: border-box;
}

.bg-shape {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
  opacity: 0.6;
  background: conic-gradient(
    from 180deg at 50% 50%,
    rgba(131, 58, 180, 0.25),
    rgba(58, 123, 213, 0.18),
    rgba(0, 210, 255, 0.08)
  );
  animation: drift 25s linear infinite;
  transform: translateZ(0);
}
@keyframes drift {
  from {
    transform: rotate(0deg) translateY(0);
  }
  to {
    transform: rotate(360deg) translateY(-20px);
  }
}

.card {
  position: relative;
  z-index: 2;
  max-width: 980px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  padding: 36px;
  border-radius: var(--radius);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.02)
  );
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  opacity: 0;
  transform: translateY(10px) scale(0.996);
  animation: enter 0.6s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}
@keyframes enter {
  to {
    opacity: 1;
    transform: none;
  }
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    hsl(var(--accent) / 0.95),
    rgba(58, 123, 213, 0.95)
  );
  box-shadow: 0 6px 24px rgba(58, 123, 213, 0.12),
              0 1px 0 rgba(255, 255, 255, 0.04);
  animation: float 4s ease-in-out infinite;

  /* Image-specific properties */
  object-fit: cover;
  object-position: center;
  display: block;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-6px) rotate(3deg);
  }
  100% {
    transform: translateY(0) rotate(-3deg);
  }
}
h1 {
  font-size: 28px;
  margin: 0;
  letter-spacing: -0.02em;
}
p.lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.features {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.pill {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.02)
  );
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.panel {
  padding: 18px;
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid rgba(255, 255, 255, 0.03);
}
.countdown {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.countdown .block {
  flex: 1;
  background: var(--glass);
  padding: 14px;
  border-radius: 10px;
  text-align: center;
}
.countdown .num {
  font-size: 18px;
  font-weight: 700;
}
.countdown .label {
  font-size: 12px;
  color: var(--muted);
}

form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
input[type="email"] {
  flex: 1;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: #fff;
  font-size: 14px;
  min-width: 0;
}
button {
  padding: 12px 16px;
  border-radius: 10px;
  border: 0;
  background: linear-gradient(
    90deg,
    hsl(var(--accent) / 0.95),
    rgba(58, 123, 213, 0.95)
  );
  font-weight: 700;
  cursor: pointer;
}
button:active {
  transform: translateY(1px);
}

.meta {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.socials {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
footer {
  grid-column: 1/-1;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  text-align: center;
}
.powered a {
  color: inherit;
  text-decoration: underline;
}

/* ✅ Responsive tweaks */
@media (min-width: 901px) {
  body {
    align-items: center; /* only center vertically on desktop */
    padding: 48px;
  }
}
@media (max-width: 900px) {
  .card {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 28px;
  }
  .logo {
    width: 56px;
    height: 56px;
  }
}
@media (max-width: 600px) {
  body {
    padding: 24px;
  }
  h1 {
    font-size: 22px;
    line-height: 1.3;
  }
  p.lead {
    font-size: 14px;
  }
  .countdown {
    gap: 8px;
  }
  .countdown .block {
    flex: 1 1 45%;
    padding: 10px;
  }
  .countdown .num {
    font-size: 16px;
  }
  form {
    flex-direction: column;
  }
  form input,
  form button {
    width: 100%;
  }
  footer {
    font-size: 12px;
    line-height: 1.4;
  }
  .logo {
    width: 48px;
    height: 48px;
  }
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.6),
    rgba(255, 255, 255, 0.02)
  );
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.6);
  display: flex;
  gap: 10px;
  align-items: center;
}
.hidden {
  display: none;
}
.muted {
  color: var(--muted);
}
