:root {
  --ink: #030712;
  --ink-deep: #010409;
  --navy: #2c2285;
  --indigo: #4f46e5;
  --teal: #14b8a6;
  --ice: #67e8f9;
  --mist: #94a3b8;
  --paper: #f8fafc;
  --orange: #f59e0b;
  --orange-deep: #d97706;
  --font: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --content: 42rem;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

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

body {
  font-family: var(--font);
  color: var(--paper);
  background: var(--ink-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* —— Hero —— */

.hero {
  --hero-pos-x: 100%;
  --hero-pos-y: 50%;
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background-color: var(--ink-deep);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-pos-x) var(--hero-pos-y);
}

#flight-flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(1, 4, 9, 0.94) 0%,
      rgba(1, 4, 9, 0.88) 28%,
      rgba(3, 7, 18, 0.55) 52%,
      rgba(3, 7, 18, 0.22) 72%,
      rgba(3, 7, 18, 0.12) 100%
    ),
    linear-gradient(
      180deg,
      rgba(1, 4, 9, 0.45) 0%,
      transparent 18%,
      transparent 72%,
      rgba(1, 4, 9, 0.55) 100%
    ),
    radial-gradient(ellipse 70% 60% at 18% 45%, rgba(44, 34, 133, 0.28), transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100%, 72rem);
  margin: 0 auto;
  padding: clamp(1.5rem, 3.5vw, 2.75rem) var(--pad) clamp(2.5rem, 6vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.75rem, 4vw, 2.75rem);
}

.hero-brand {
  max-width: min(100%, 22rem);
}

.logo {
  width: min(100%, 20rem);
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45));
}

.hero-copy {
  max-width: var(--content);
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.hero-copy h1 {
  margin: 0 0 1rem;
  max-width: 12em;
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 0.55em;
}

.headline-block {
  display: block;
}

.lead {
  margin: 0 0 1.35rem;
  max-width: 36rem;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  font-weight: 400;
  line-height: 1.55;
  color: #e2e8f0;
}

.points {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.points li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #cbd5e1;
}

.points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 1px;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.cta-note {
  flex: 1 1 100%;
  margin: 0.15rem 0 0;
  max-width: 28rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #cbd5e1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.875rem;
  padding: 0.75rem 1.35rem;
  border-radius: 0.4rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease,
    box-shadow 0.15s ease;
}

.btn-primary {
  color: #111827;
  background: var(--orange);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.22);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--orange-deep);
  color: #fff;
  outline: none;
}

.btn-primary:focus-visible {
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.45);
}

.btn-ghost {
  color: #e2e8f0;
  background: transparent;
  border-color: rgba(148, 163, 184, 0.35);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: rgba(103, 232, 249, 0.45);
  color: #fff;
  outline: none;
}

.btn-ghost:focus-visible {
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.35);
}

button.btn {
  cursor: pointer;
}

/* —— Register interest dialog —— */

.interest-dialog {
  width: min(100% - 1.5rem, 34rem);
  max-height: min(92vh, 44rem);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.65rem;
  background:
    radial-gradient(520px 220px at 0% 0%, rgba(44, 34, 133, 0.35), transparent 55%),
    linear-gradient(165deg, #0b1224 0%, #030712 55%, #010409 100%);
  color: var(--paper);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.interest-dialog::backdrop {
  background: rgba(1, 4, 9, 0.72);
  backdrop-filter: blur(4px);
}

.interest-panel {
  display: flex;
  flex-direction: column;
  max-height: min(92vh, 44rem);
  overflow: auto;
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.interest-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.interest-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.interest-header h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #fff;
}

.interest-intro {
  margin: 0;
  max-width: 34ch;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--mist);
}

.interest-close {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  margin: -0.25rem -0.25rem 0 0;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 0.4rem;
  background: rgba(15, 23, 42, 0.45);
  color: #e2e8f0;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.interest-close:hover,
.interest-close:focus-visible {
  border-color: rgba(103, 232, 249, 0.45);
  color: #fff;
  outline: none;
}

.interest-form {
  position: relative;
  display: grid;
  gap: 0.95rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field-label,
.focus-field legend {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #cbd5e1;
}

.focus-field {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0.55rem;
}

.interest-form input[type='text'],
.interest-form input[type='email'],
.interest-form select {
  width: 100%;
  min-height: 2.65rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 0.4rem;
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc;
  font-family: inherit;
  font-size: 0.95rem;
}

.interest-form input::placeholder {
  color: #64748b;
}

.interest-form select {
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #94a3b8 50%),
    linear-gradient(135deg, #94a3b8 50%, transparent 50%);
  background-position: calc(100% - 1.1rem) 50%, calc(100% - 0.7rem) 50%;
  background-size: 0.4rem 0.4rem, 0.4rem 0.4rem;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

.interest-form input:focus-visible,
.interest-form select:focus-visible {
  outline: none;
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22);
}

.focus-options {
  display: grid;
  gap: 0.5rem;
}

.focus-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.65rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.4rem;
  background: rgba(15, 23, 42, 0.5);
  cursor: pointer;
  font-size: 0.92rem;
  color: #e2e8f0;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.focus-option:hover {
  border-color: rgba(148, 163, 184, 0.4);
}

.focus-option:has(input:checked) {
  border-color: rgba(245, 158, 11, 0.7);
  background: rgba(245, 158, 11, 0.08);
}

.focus-option input {
  accent-color: var(--orange);
  width: 1rem;
  height: 1rem;
}

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

.turnstile-widget {
  min-height: 0;
}

.form-status {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
}

.form-status.is-error {
  color: #fca5a5;
}

.form-status.is-pending {
  color: var(--mist);
}

.interest-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.interest-success {
  display: grid;
  gap: 0.75rem;
  padding: clamp(1.75rem, 4vw, 2.5rem) 0.5rem;
  text-align: center;
  place-items: center;
}

.interest-success[hidden],
.interest-form[hidden],
.interest-header[hidden] {
  display: none;
}

.interest-success h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #fff;
}

.interest-success p {
  margin: 0 0 0.5rem;
  color: var(--mist);
  line-height: 1.45;
}

.interest-success .btn {
  justify-self: center;
}

/* —— Responsive —— */

@media (max-width: 960px) {
  .hero-copy h1 {
    max-width: 13em;
  }
}

@media (max-width: 768px) {
  .field-row {
    grid-template-columns: 1fr;
  }

  .interest-actions {
    flex-direction: column-reverse;
  }

  .interest-actions .btn {
    width: 100%;
  }

  .hero {
    --hero-pos-x: 70%;
    --hero-pos-y: 35%;
  }

  .hero-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(1, 4, 9, 0.35) 0%,
        rgba(1, 4, 9, 0.55) 38%,
        rgba(1, 4, 9, 0.88) 68%,
        rgba(1, 4, 9, 0.94) 100%
      ),
      linear-gradient(
        90deg,
        rgba(1, 4, 9, 0.72) 0%,
        rgba(1, 4, 9, 0.4) 48%,
        rgba(1, 4, 9, 0.18) 100%
      );
  }

  .hero-inner {
    justify-content: flex-end;
    padding-bottom: clamp(2rem, 8vw, 3rem);
  }

  .hero-copy h1,
  .lead,
  .points li {
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.65);
  }

  .actions {
    width: 100%;
  }

  .btn {
    flex: 1 1 12rem;
    min-height: 3rem;
  }
}

@media (max-width: 480px) {
  .hero {
    --hero-pos-x: 74%;
    --hero-pos-y: 30%;
  }

  .hero-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(1, 4, 9, 0.3) 0%,
        rgba(1, 4, 9, 0.5) 32%,
        rgba(1, 4, 9, 0.9) 66%,
        rgba(1, 4, 9, 0.96) 100%
      ),
      linear-gradient(
        90deg,
        rgba(1, 4, 9, 0.7) 0%,
        rgba(1, 4, 9, 0.35) 55%,
        rgba(1, 4, 9, 0.15) 100%
      );
  }

  .logo {
    width: min(100%, 16.5rem);
  }

  .btn {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .focus-option {
    transition: none;
  }
}
