:root {
  --bg-deep: #020712;
  --bg-mid: #0a1f44;
  --bg-light: #13386e;
  --line: rgba(125, 178, 255, 0.2);
  --glass: rgba(7, 21, 47, 0.64);
  --glass-strong: rgba(4, 13, 30, 0.75);
  --text-main: #eef4ff;
  --text-muted: #a9bddb;
  --action-1: #2cc7ff;
  --action-2: #1f56cd;
  --success: #7cf7ca;
  --danger: #ff8ca4;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(1200px 720px at 58% 22%, rgba(73, 173, 255, 0.27), transparent 66%),
    radial-gradient(1000px 600px at 15% 82%, rgba(12, 85, 212, 0.27), transparent 70%),
    linear-gradient(150deg, #01040b 0%, var(--bg-mid) 52%, #01050f 100%);
  padding: 28px 18px;
  overflow-x: hidden;
}

.background-glow {
  position: fixed;
  inset: -22vh -12vw;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 20%, rgba(58, 149, 255, 0.23), transparent 40%),
    radial-gradient(circle at 82% 78%, rgba(49, 157, 255, 0.18), transparent 44%),
    radial-gradient(circle at 75% 9%, rgba(35, 82, 207, 0.35), transparent 30%);
  filter: blur(10px);
}

.background-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 140px 140px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 100%);
}

.shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(8, 24, 53, 0.64), rgba(3, 10, 24, 0.71));
  border: 1px solid rgba(160, 199, 255, 0.18);
  border-radius: 20px;
  backdrop-filter: blur(6px);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 20px 34px;
  background: linear-gradient(180deg, rgba(21, 44, 81, 0.35), rgba(3, 12, 27, 0.5));
  border-bottom: 1px solid rgba(151, 201, 255, 0.14);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  display: block;
  width: clamp(190px, 24vw, 330px);
  height: auto;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

.hero,
.footer {
  padding-inline: clamp(18px, 4vw, 64px);
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  padding-top: clamp(34px, 7vw, 74px);
  padding-bottom: clamp(26px, 5vw, 56px);
  border-bottom: 1px solid rgba(166, 207, 255, 0.15);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 5rem);
  line-height: 1.04;
  letter-spacing: 0.01em;
}

.lead {
  margin: 18px 0 30px;
  color: #d0e1f8;
  font-size: clamp(1.04rem, 2.5vw, 2.05rem);
  line-height: 1.4;
}

.signup {
  display: grid;
  grid-template-columns: 1fr auto;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(125deg, rgba(10, 21, 43, 0.94), rgba(3, 11, 28, 0.94));
  border: 1px solid rgba(99, 172, 255, 0.28);
  max-width: 680px;
}

.signup input {
  border: 0;
  padding: 18px 20px;
  background: transparent;
  color: #e8f3ff;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  outline: none;
}

.signup input::placeholder {
  color: #93a7c7;
}

.signup button {
  border: 0;
  border-left: 1px solid rgba(197, 233, 255, 0.3);
  background: linear-gradient(180deg, var(--action-1), var(--action-2));
  color: #eff7ff;
  font-weight: 700;
  font-size: clamp(1.2rem, 2.2vw, 1.85rem);
  padding: 14px 28px;
  min-width: 170px;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease;
}

.signup button:hover,
.signup button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.signup button:disabled {
  cursor: not-allowed;
  opacity: 0.75;
  transform: none;
  filter: none;
}

.helper {
  margin: 20px 0 0;
  color: #9ab4d8;
  font-size: clamp(0.95rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  max-width: 44ch;
}

.feedback {
  min-height: 1.4em;
  margin: 10px 0 0;
  color: var(--success);
  font-size: 0.96rem;
}

.feedback.error {
  color: var(--danger);
}

.app-card {
  justify-self: center;
  text-align: center;
}

.app-icon {
  width: clamp(200px, 28vw, 350px);
  aspect-ratio: 1 / 1;
  border-radius: 26%;
  overflow: hidden;
  display: block;
  border: 1px solid rgba(216, 247, 255, 0.4);
  background:
    radial-gradient(circle at 30% 8%, rgba(190, 244, 255, 0.95), transparent 29%),
    linear-gradient(180deg, rgba(57, 164, 236, 0.38), rgba(15, 48, 99, 0.85)),
    linear-gradient(135deg, rgba(1, 12, 34, 0.8), rgba(11, 83, 153, 0.5));
  box-shadow: inset 0 0 26px rgba(198, 238, 255, 0.2), 0 18px 42px rgba(3, 8, 19, 0.6);
  position: relative;
}

.app-icon-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
  padding-bottom: 24px;
  color: #9db2d3;
  font-size: clamp(0.84rem, 1.5vw, 1.1rem);
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(8px);
  animation: rise 700ms ease forwards;
}

.reveal-delay-1 {
  animation-delay: 50ms;
}

.reveal-delay-2 {
  animation-delay: 170ms;
}

.reveal-delay-3 {
  animation-delay: 300ms;
}

.reveal-delay-4 {
  animation-delay: 420ms;
}

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

@media (max-width: 920px) {
  .topbar {
    justify-content: center;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy {
    display: grid;
    justify-items: center;
  }

  .helper {
    max-width: 56ch;
  }

  .app-card {
    margin-top: 8px;
  }
}

@media (max-width: 620px) {
  body {
    padding: 10px;
  }

  .shell {
    border-radius: 16px;
  }

  .topbar {
    padding: 16px;
  }

  .brand-logo {
    width: min(74vw, 270px);
  }

  .signup {
    grid-template-columns: 1fr;
  }

  .signup button {
    min-width: 0;
    border-left: 0;
    border-top: 1px solid rgba(197, 233, 255, 0.3);
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }
}
