:root {
  --bg: #020308;
  --bg-soft: #050814;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --accent: #e5f2ff;
  --accent-strong: #ffffff;
  --badge-bg: rgba(15, 23, 42, 0.85);
  --badge-border: rgba(148, 163, 184, 0.6);
  --input-bg: rgba(15, 23, 42, 0.9);
  --input-border: rgba(148, 163, 184, 0.7);
  --button-bg: #f9fafb;
  --button-text: #020617;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -10%, #0b1220 0, #020617 40%, #000 100%);
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text',
    'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 15%, #020617 0, #020308 40%, #000 100%),
    radial-gradient(circle at 50% 120%, rgba(15, 23, 42, 0.65), transparent 70%);
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem 2.5rem;
}

.hero__content {
  max-width: 780px;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1.1rem;
  margin-bottom: 1.75rem;
  border-radius: 999px;
  border: 1px solid var(--badge-border);
  background: linear-gradient(120deg, rgba(30, 64, 175, 0.6), rgba(15, 23, 42, 0.8));
  color: var(--accent-strong);
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero__title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.9rem, 4.6vw + 1.5rem, 4.2rem);
  line-height: 1.1;
  font-weight: 500;
}

.hero__title-accent {
  display: block;
  margin-top: 0.25rem;
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(90deg, #f9fafb, #e0f2fe, #bfdbfe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__title-accent-serif {
  font-family: 'Instrument Serif', ui-serif, Georgia, 'Times New Roman', serif;
  font-style: italic;
}

.hero__subtitle {
  margin: 0 0 2rem;
  color: rgba(156, 163, 175, 0.9);
  font-size: 0.98rem;
  max-width: 480px;
  margin-inline: auto;
}

.hero__form {
  display: inline-flex;
  align-items: stretch;
  border-radius: 999px;
  padding: 0.18rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(148, 163, 184, 0.28), transparent 60%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.9));
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.95),
    0 0 0 1px rgba(148, 163, 184, 0.35);
  backdrop-filter: blur(22px);
}

.hero__input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  padding: 0.85rem 1.25rem;
  border-radius: 999px 0 0 999px;
  background: rgba(15, 23, 42, 0.95);
  color: var(--accent-strong);
  font-size: 0.95rem;
  outline: none;
  border: 1px solid transparent;
}

.hero__input::placeholder {
  color: rgba(148, 163, 184, 0.8);
}

.hero__input:focus-visible {
  border-color: rgba(59, 130, 246, 0.7);
}

.hero__button {
  border: none;
  padding: 0 1.6rem;
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-text);
  font-weight: 500;
  font-size: 0.96rem;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 1),
    0 16px 40px rgba(15, 23, 42, 0.9);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease,
    color 180ms ease;
}

.hero__button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 1),
    0 20px 50px rgba(15, 23, 42, 0.95);
  background: #ffffff;
}

.hero__button:active {
  transform: translateY(0);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.9);
}

.hero__footer {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  align-items: center;
  color: rgba(148, 163, 184, 0.8);
  font-size: 0.75rem;
}

.hero__footer .dot {
  opacity: 0.7;
}

.hero__footer .link {
  color: inherit;
  text-decoration: none;
}

.hero__footer .link:hover {
  text-decoration: underline;
}

.starfield {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
  transition: transform 0.25s ease-out;
}

.starfield::before,
.starfield::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 0 0 #fff;
  opacity: 0.75;
}

/* A bunch of stars laid out via box-shadows */
.starfield--far::before {
  top: 10%;
  left: 20%;
  box-shadow:
    40vw 5vh 0 0 rgba(255, 255, 255, 0.4),
    10vw 20vh 0 0 rgba(255, 255, 255, 0.3),
    70vw 30vh 0 0 rgba(255, 255, 255, 0.45),
    25vw 40vh 0 0 rgba(255, 255, 255, 0.35),
    60vw 18vh 0 0 rgba(255, 255, 255, 0.4),
    85vw 12vh 0 0 rgba(255, 255, 255, 0.55),
    15vw 55vh 0 0 rgba(255, 255, 255, 0.35),
    50vw 50vh 0 0 rgba(255, 255, 255, 0.45);
}

.starfield--far::after {
  top: 60%;
  left: 70%;
  box-shadow:
    5vw 10vh 0 0 rgba(255, 255, 255, 0.3),
    25vw 15vh 0 0 rgba(255, 255, 255, 0.35),
    45vw 30vh 0 0 rgba(255, 255, 255, 0.4),
    65vw 45vh 0 0 rgba(255, 255, 255, 0.35),
    85vw 35vh 0 0 rgba(255, 255, 255, 0.4);
}

.starfield--near::before {
  top: 20%;
  left: 40%;
  width: 2.5px;
  height: 2.5px;
  box-shadow:
    10vw 5vh 0 0 rgba(255, 255, 255, 0.8),
    35vw 18vh 0 0 rgba(255, 255, 255, 0.7),
    65vw 8vh 0 0 rgba(255, 255, 255, 0.8),
    80vw 25vh 0 0 rgba(255, 255, 255, 0.7),
    50vw 35vh 0 0 rgba(255, 255, 255, 0.8);
}

.starfield--near::after {
  top: 55%;
  left: 15%;
  width: 3px;
  height: 3px;
  box-shadow:
    15vw 15vh 0 0 rgba(255, 255, 255, 0.85),
    30vw 25vh 0 0 rgba(255, 255, 255, 0.75),
    55vw 20vh 0 0 rgba(255, 255, 255, 0.8),
    75vw 40vh 0 0 rgba(255, 255, 255, 0.9);
}

.horizon-glow {
  position: absolute;
  left: 50%;
  bottom: -8vh;
  width: 140vw;
  height: 55vh;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 40%, rgba(56, 189, 248, 0.35), transparent 60%),
    radial-gradient(circle at 50% 5%, rgba(59, 130, 246, 0.9), transparent 65%);
  filter: blur(14px);
  opacity: 1;
}

.horizon-glow::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -40vh;
  transform: translateX(-50%);
  width: 150vw;
  height: 150vw;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 25%, rgba(15, 23, 42, 0) 0, rgba(15, 23, 42, 0) 32%, rgba(15, 23, 42, 0.95) 60%, #000 88%),
    radial-gradient(circle at 50% 18%, rgba(248, 250, 252, 0.98) 0, rgba(148, 197, 253, 0.95) 12%, rgba(56, 189, 248, 0.45) 34%, transparent 65%);
  filter: blur(8px);
  opacity: 1;
}

@media (max-width: 640px) {
  .hero {
    padding-top: 4.5rem;
  }

  .hero__form {
    width: 100%;
    max-width: 100%;
  }

  .hero__input {
    flex: 1;
  }

  .hero__button {
    padding-inline: 1.1rem;
  }

  .hero__footer {
    flex-wrap: wrap;
    row-gap: 0.15rem;
    text-align: center;
    padding-inline: 1rem;
  }
}
