/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Heebo', sans-serif;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.7;
  background-color: #0a051e;
  overflow-x: hidden;
}

/* ===== BACKGROUND ===== */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("images/aurora-background.jpg") center / cover no-repeat fixed;
}
.page-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(10, 5, 30, 0.88);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin-bottom: 16px; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 700; margin-bottom: 12px; }
h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
p  { margin-bottom: 12px; color: rgba(255,255,255,0.75); }
.text-muted { color: rgba(255,255,255,0.5); }
.text-white { color: #fff; }
strong, b { font-weight: 600; color: #fff; }

/* ===== LAYOUT ===== */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}
section {
  padding: 80px 0;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(10, 5, 30, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.navbar img { height: 48px; }
.navbar .nav-buttons { display: flex; gap: 12px; align-items: center; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== BUTTONS ===== */
.btn-solid {
  display: inline-block;
  background: #581CA0;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-solid:hover { background: #7B2FBE; }

.btn-outline {
  display: inline-block;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  border-radius: 8px;
  padding: 12px 28px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s;
}
.btn-outline:hover { border-color: #fff; }

.button-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* ===== LABELS / BADGES ===== */
.label {
  background: rgb(30, 12, 65);
  color: #fff;
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 12px;
}
.label-group { margin-bottom: 16px; }

/* ===== CARDS ===== */
.card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 24px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ===== GRIDS ===== */
.grid {
  display: grid;
  gap: 24px;
}
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== SMART LAYOUT ===== */
.smart-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.smart-layout .card { flex: 1 1 220px; }

/* ===== IMAGES ===== */
.img-full {
  width: 100%;
  border-radius: 12px;
  margin: 24px 0;
}
.img-contain {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ===== QUOTE ===== */
.quote-block {
  text-align: center;
  padding: 48px 32px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  position: relative;
}
.quote-block .quote-text {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-style: italic;
  font-weight: 600;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 12px;
}
.quote-block .quote-attr {
  color: rgba(255,255,255,0.5);
  font-size: 0.95rem;
}
.quote-block::before {
  content: "\201C";
  position: absolute;
  top: -10px;
  left: 24px;
  font-size: 5rem;
  color: rgba(88, 28, 160, 0.4);
  font-family: Georgia, serif;
  line-height: 1;
}

/* ===== STAT GRID ===== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
  margin: 40px 0;
}
.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

/* ===== HERO ===== */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
}
.hero-logo {
  width: 500px;
  max-width: 90vw;
  margin-bottom: 24px;
}

/* ===== CARD LISTS ===== */
.card ul {
  list-style: none;
  padding: 0;
  margin-top: 8px;
}
.card ul li {
  color: rgba(255,255,255,0.75);
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}
.card ul li::before {
  content: "\2022";
  position: absolute;
  left: 4px;
  color: #7B2FBE;
}

/* ===== FOOTER ===== */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer h4 {
  color: #fff;
  margin-bottom: 12px;
}
.footer ul {
  list-style: none;
  padding: 0;
}
.footer ul li {
  padding: 3px 0;
}
.footer ul li a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer ul li a:hover { color: #fff; }
.footer-image {
  width: 100%;
  border-radius: 12px;
  margin-top: 40px;
}
.footer-caption {
  text-align: center;
  font-style: italic;
  color: rgba(255,255,255,0.5);
  margin-top: 12px;
  font-size: 0.9rem;
}

/* ===== EMOJI ICON ===== */
.emoji-icon {
  font-size: 1.4rem;
  margin-right: 6px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  section { padding: 48px 0; }
  .navbar { padding: 12px 16px; }
  .hero { padding-top: 100px; }
}

/* ===== PILOT SIGNUP ===== */
.pilot-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 48px;
}

.pilot-card {
  background: linear-gradient(121deg, rgb(60, 19, 109) 10%, rgb(38, 19, 108) 90%);
  border: 1px solid rgb(74, 44, 133);
  border-radius: 6.3px;
  padding: 18px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pilot-card:hover {
  border-color: rgb(146, 81, 225);
}

.pilot-card.selected {
  border-color: rgb(146, 81, 225);
  box-shadow: 0 0 18px rgba(146, 81, 225, 0.35);
}

.pilot-card-icon {
  font-size: 20px;
  margin-bottom: 4px;
}

.pilot-card-title {
  font-family: 'Heebo', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.pilot-card p {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.pilot-form-table {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6.3px;
  overflow: hidden;
  margin-bottom: 24px;
}

.pilot-form-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: start;
}

.pilot-form-row + .pilot-form-row {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.pilot-form-label {
  font-family: 'Heebo', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
}

.pilot-form-field {
  padding: 10px 18px;
  display: flex;
  align-items: center;
}

.pilot-form-field select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Heebo', sans-serif;
  font-size: 16px;
  font-weight: 400;
  padding: 6px 0;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.6)' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
}

.pilot-form-field select option {
  background: #1e0c41;
  color: rgba(255, 255, 255, 0.85);
}

.pilot-form-field input,
.pilot-form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Heebo', sans-serif;
  font-size: 16px;
  font-weight: 400;
  padding: 6px 0;
  outline: none;
  transition: border-color 0.2s;
}

.pilot-form-field input:focus,
.pilot-form-field textarea:focus {
  border-bottom-color: rgb(146, 81, 225);
}

.pilot-form-field input.invalid,
.pilot-form-field textarea.invalid {
  border-bottom-color: #e55;
}

.pilot-form-field textarea {
  resize: vertical;
  min-height: 60px;
}

.pilot-type-display {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
  padding: 6px 0;
}

.pilot-type-display.filled {
  color: rgba(255, 255, 255, 0.85);
  font-style: normal;
}

.pilot-form-error {
  background: rgba(220, 50, 50, 0.15);
  border: 1px solid rgba(220, 50, 50, 0.4);
  color: #f99;
  padding: 12px 18px;
  border-radius: 6px;
  margin-bottom: 18px;
  display: none;
}

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

@media (max-width: 640px) {
  .pilot-form-row { grid-template-columns: 1fr; }
  .pilot-form-label { padding: 12px 18px 4px; }
  .pilot-form-field { padding: 4px 18px 12px; }
}

@media (max-width: 640px) {
  .navbar .nav-buttons { display: none; }
  .navbar .nav-buttons.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 5, 30, 0.95);
    padding: 16px;
    gap: 8px;
  }
  .nav-toggle { display: block; }
  .button-group { flex-direction: column; }
  .button-group .btn-solid,
  .button-group .btn-outline { width: 100%; text-align: center; }
}
