/* Aviator Group coming-soon page.
   Brand colors from the existing mockup and site CSS.
   System font stack (Inter if present, otherwise Segoe UI / Helvetica / Arial). */

:root {
  --navy-0: #07111f;
  --navy-1: #0b1a33;
  --navy-2: #13294b;
  --navy-3: #1d3f6e;
  --text: #eef3fb;
  --muted: #c5d3ea;
  --footer: #7f93b6;
  --mint: #5ee0a0;
  --mint-hover: #74e8ad;
  --gold: #ffcf4a;
  --input-bg: #0e2240;
  --input-border: #3a5582;
  --card: rgba(11, 26, 51, 0.58);
  --card-border: rgba(255, 255, 255, 0.14);
}

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

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

html {
  color-scheme: dark;
  background: var(--navy-1);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse 90% 55% at 50% 115%, rgba(94, 224, 160, 0.16), transparent 58%),
    radial-gradient(ellipse 50% 36% at 86% -8%, rgba(29, 63, 110, 0.85), transparent 60%),
    radial-gradient(ellipse 42% 30% at 8% 0%, rgba(19, 41, 75, 0.9), transparent 62%),
    linear-gradient(165deg, #070f1c 0%, #0b1a33 38%, #13294b 72%, #17375c 100%);
  overflow-x: hidden;
}

/* ----- Decorative sky ----- */

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 65% at 50% 42%, transparent 40%, rgba(5, 10, 20, 0.45) 100%);
}

.horizon {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -18%;
  height: 42%;
  background:
    radial-gradient(ellipse 50% 36% at 50% 40%, rgba(255, 207, 74, 0.08), transparent 70%),
    radial-gradient(ellipse 80% 55% at 50% 70%, rgba(94, 224, 160, 0.14), transparent 70%);
  border-top: 1px solid rgba(94, 224, 160, 0.18);
  border-radius: 50% 50% 0 0;
}

.starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.star {
  fill: #eef3fb;
}

.star.o1 { opacity: 0.35; }
.star.o2 { opacity: 0.6; }
.star.o3 { opacity: 0.9; }

.twinkle {
  animation: twinkle 5.5s ease-in-out infinite;
}

.twinkle-d {
  animation: twinkle 7.5s ease-in-out 1.6s infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.95; }
}

.flight {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6%;
  width: 100%;
  height: 34vh;
  overflow: visible;
}

.trail-glow {
  fill: none;
  stroke: rgba(94, 224, 160, 0.28);
  stroke-width: 1.8;
  stroke-linecap: round;
  filter: blur(1.2px);
}

.trail-solid {
  fill: none;
  stroke: rgba(94, 224, 160, 0.35);
  stroke-width: 0.35;
  stroke-linecap: round;
}

.trail-dash {
  fill: none;
  stroke: #5ee0a0;
  stroke-width: 0.45;
  stroke-linecap: round;
  stroke-dasharray: 1.6 2.8;
  animation: dash-move 32s linear infinite;
}

@keyframes dash-move {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -120; }
}

.plane {
  position: absolute;
  width: 44px;
  height: 22px;
  left: 78%;
  bottom: 26%;
  filter: drop-shadow(0 0 8px rgba(94, 224, 160, 0.55));
  animation: bob 4.5s ease-in-out infinite;
  overflow: visible;
}

.plane-body {
  fill: #5ee0a0;
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0) rotate(-12deg); }
  50% { transform: translate(-50%, -6px) rotate(-10deg); }
}

/* ----- Content ----- */

.brand,
main,
footer {
  position: relative;
  z-index: 1;
}

.brand {
  padding: 28px 6vw 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text);
}

.mark {
  width: 30px;
  height: 30px;
  display: block;
  flex: 0 0 30px;
}

.mark-ring {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
}

.mark-ring-inner {
  fill: none;
  stroke: rgba(94, 224, 160, 0.7);
  stroke-width: 0.7;
  stroke-dasharray: 2.1 2.4;
}

.mark-plane {
  fill: var(--mint);
}

main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 6vw 36px;
}

.hero {
  width: min(720px, 100%);
  text-align: center;
}

.rule {
  width: 52px;
  height: 2px;
  margin: 0 auto 26px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--mint));
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(48px, 9vw, 92px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.96;
  color: var(--text);
}

.tagline {
  margin: 0 auto;
  max-width: 22em;
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.5;
  color: var(--muted);
  font-weight: 400;
}

.tagline-break {
  white-space: nowrap;
}

.waitlist {
  position: relative;
  margin: 36px auto 0;
  max-width: 460px;
  padding: 22px 22px 20px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  text-align: left;
}

.waitlist label {
  display: block;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  margin: 0 0 12px;
  color: var(--text);
}

.row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.waitlist input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
}

.waitlist input::placeholder {
  color: #8ea2c4;
}

.waitlist input:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(94, 224, 160, 0.22);
}

.waitlist button {
  flex: 0 0 auto;
  margin: 0;
  padding: 13px 20px;
  border: 0;
  border-radius: 10px;
  background: var(--mint);
  color: var(--navy-1);
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
}

.waitlist button:hover {
  background: var(--mint-hover);
}

.waitlist button:focus-visible,
.waitlist input:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.waitlist button:focus-visible {
  box-shadow: none;
}

.waitlist button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.waitlist .hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.waitlist-status {
  margin: 12px 0 0;
  min-height: 1.35em;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}

.waitlist-status.is-ok {
  color: var(--mint);
}

.waitlist-status.is-error {
  color: #ffb4b4;
}

.privacy-note {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--footer);
  font-weight: 400;
}

footer {
  text-align: center;
  padding: 16px 24px 28px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--footer);
}

footer p {
  margin: 0 auto;
  max-width: 60em;
  font-weight: 400;
}

@media (max-width: 640px) {
  .brand {
    padding: 22px 7vw 0;
  }

  .wordmark {
    font-size: 11px;
    letter-spacing: 0.14em;
  }

  .mark {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  main {
    padding: 20px 7vw 28px;
  }

  h1 {
    font-size: clamp(44px, 14vw, 64px);
  }

  .rule {
    margin-bottom: 22px;
  }

  .waitlist {
    margin-top: 28px;
    padding: 18px 16px 16px;
  }

  .row {
    flex-direction: column;
  }

  .waitlist button {
    width: 100%;
  }

  .tagline-break {
    display: block;
  }

  .plane {
    width: 36px;
    height: 18px;
    left: 76%;
    bottom: 24%;
  }

  .flight {
    height: 28vh;
    bottom: 10%;
  }

  footer {
    padding-bottom: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .twinkle,
  .twinkle-d,
  .trail-dash,
  .plane {
    animation: none;
  }

  .plane {
    transform: translate(-50%, 0) rotate(-12deg);
  }
}
