@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;600;700&display=swap");

:root {
  --white: #ffffff;
  --blue-900: #0b2447;
  --blue-700: #1f4bbd;
  --blue-500: #2d6bff;
  --blue-300: #7aa5ff;
  --silver-200: #e4e8f0;
  --silver-400: #c6ceda;
  --silver-600: #8a96a7;
  --shadow: 0 24px 60px rgba(11, 36, 71, 0.18);
}

/* Base layout */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--blue-900);
  background-color: #f3f7ff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow-x: hidden;
}

/* Animated background */
body::before {
  content: "";
  position: fixed;
  inset: -10% -20% -10% -20%;
  background: linear-gradient(120deg, #f3f7ff 0%, #dbe6ff 45%, #f9fbff 100%);
  background-size: 200% 200%;
  animation: gradientShift 16s ease infinite;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(
      rgba(45, 107, 255, 0.08) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(45, 107, 255, 0.08) 1px, transparent 1px);
  background-size: 90px 90px;
  opacity: 0.5;
  z-index: 0;
}

/* Card layout */
.page {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.card {
  width: min(720px, 100%);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 24px;
  border: 1px solid rgba(45, 107, 255, 0.16);
  box-shadow: var(--shadow);
  padding: 32px 24px;
  display: grid;
  gap: 28px;
}

@supports (backdrop-filter: blur(10px)) {
  .card {
    backdrop-filter: blur(10px);
  }
}

.logo-block {
  text-align: center;
}

.logo-mark {
  width: 64px;
  height: auto;
  margin: 0 auto 10px;
  display: block;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tagline {
  margin: 8px 0 0;
  color: var(--silver-600);
  font-size: 0.95rem;
}

.message-block {
  text-align: center;
}

h1 {
  margin: 0;
  font-size: 2.1rem;
  font-weight: 700;
}

.message {
  margin: 14px 0 10px;
  color: var(--blue-900);
  font-size: 1.05rem;
  line-height: 1.6;
}

.launch {
  margin: 0;
  color: var(--blue-700);
  font-weight: 600;
}

/* Progress and actions */
.progress-block {
  display: grid;
  gap: 12px;
}

.progress-text {
  font-weight: 600;
  color: var(--blue-900);
}

.progress-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: var(--silver-200);
  overflow: hidden;
  position: relative;
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-300));
  transition: width 1.4s ease;
}

.actions {
  display: grid;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(45, 107, 255, 0.3);
  color: var(--blue-900);
  text-decoration: none;
  font-weight: 600;
  background: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: var(--blue-500);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(31, 75, 189, 0.18);
  background: linear-gradient(120deg, #ffffff 0%, #eef3ff 100%);
}

.btn:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}

/* Form */
.notify label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
}

.input-row {
  display: grid;
  gap: 10px;
}

input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--silver-400);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="email"].input-error {
  border-color: #d44848;
  box-shadow: 0 0 0 3px rgba(212, 72, 72, 0.15);
}

button[type="submit"] {
  padding: 12px 16px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(120deg, var(--blue-500), var(--blue-700));
  color: var(--white);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(45, 107, 255, 0.25);
}

.form-message {
  margin: 10px 0 0;
  font-size: 0.95rem;
  color: var(--blue-700);
  min-height: 1.2em;
}

.form-message.error {
  color: #c93a3a;
}

/* Footer and animations */
.footer {
  text-align: center;
  color: var(--silver-600);
  font-size: 0.9rem;
  display: grid;
  gap: 8px;
}

.footer-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.footer-links a {
  color: var(--blue-700);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}

.fade {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.9s ease forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

.delay-5 {
  animation-delay: 0.5s;
}

.delay-6 {
  animation-delay: 0.6s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@media (min-width: 700px) {
  .card {
    padding: 42px 48px;
    gap: 32px;
  }

  h1 {
    font-size: 2.6rem;
  }

  .logo {
    font-size: 1.8rem;
  }

  .actions {
    grid-template-columns: repeat(3, 1fr);
  }

  .input-row {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .fade {
    opacity: 1;
    transform: none;
  }
}
