:root {
  --bg: #020617;
  --bg-soft: rgba(15, 23, 42, 0.9);
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.18);
  --accent-strong: #0ea5e9;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.2);
  --card-bg: rgba(15, 23, 42, 0.92);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --shadow-soft: 0 22px 45px rgba(15, 23, 42, 0.95);
  --shadow-card: 0 14px 35px rgba(15, 23, 42, 0.85);
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Background layers */

.page-bg-orbit,
.page-bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -2;
}

.page-bg-gradient {
  background: radial-gradient(circle at top left, #0f172a 0, #020617 55%);
}

.page-bg-orbit {
  background-image: radial-gradient(
      circle at 10% 20%,
      rgba(56, 189, 248, 0.18) 0,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 10%,
      rgba(8, 47, 73, 0.8) 0,
      transparent 55%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(59, 130, 246, 0.32) 0,
      transparent 55%
    );
  opacity: 0.9;
  filter: blur(0.3px);
}

/* Navigation + Hero */

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.86);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(51, 65, 85, 0.9);
  backdrop-filter: blur(20px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.16em;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  color: #9ca3af;
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent-strong);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.9);
}

.nav-right {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 14px;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover {
  color: var(--accent);
  background: rgba(15, 23, 42, 0.9);
}

/* Hero layout */

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  margin-top: 26px;
}

.hero-text h1 {
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.1;
  margin: 0 0 18px;
}

.hero-highlight {
  background: linear-gradient(120deg, #38bdf8, #a855f7, #f97316);
  -webkit-background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.hero-text p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease,
    border-color 0.12s ease, color 0.12s ease;
}

.btn-primary {
  background: radial-gradient(circle at 0 0, #38bdf8, #0ea5e9);
  color: #0b1220;
  box-shadow: 0 18px 45px rgba(8, 47, 73, 0.8);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 60px rgba(8, 47, 73, 0.9);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.9);
  color: var(--muted);
  border-color: rgba(148, 163, 184, 0.6);
}

.btn-ghost:hover {
  border-color: var(--accent-strong);
  color: var(--accent);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}

.hero-meta span {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px dashed rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
}

/* Orbit visual */

.hero-orbit {
  position: relative;
  height: 260px;
  max-width: 360px;
  margin-left: auto;
}

.orbit-ring {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.orbit-ring-outer {
  inset: 8%;
  border-style: dashed;
  animation: spin-slow 26s linear infinite;
}

.orbit-ring-inner {
  inset: 24%;
  border-style: solid;
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 60px rgba(56, 189, 248, 0.35);
  animation: spin-slow-reverse 32s linear infinite;
}

.plane {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #f9fafb, #38bdf8);
  box-shadow: 0 0 18px rgba(56, 189, 248, 1);
}

.plane-1 {
  top: 4%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orbit-1 14s linear infinite;
}
.plane-2 {
  bottom: 5%;
  left: 10%;
  animation: orbit-2 18s linear infinite;
}
.plane-3 {
  top: 60%;
  right: 6%;
  animation: orbit-3 21s linear infinite;
}

.hero-stat-card {
  position: absolute;
  right: 6%;
  top: 10%;
  padding: 10px 14px;
  border-radius: 18px;
  background: radial-gradient(circle at top left, #0f172a, #020617);
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: var(--shadow-card);
  font-size: 11px;
}

.hero-stat-card .stat-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}

.hero-stat-card .stat-value {
  font-weight: 600;
  color: var(--accent-strong);
}

/* Sections */

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 70px;
}

.section-header {
  margin-top: 10px;
  margin-bottom: 24px;
}

.section-header h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 540px;
}

/* Filters */

.filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-size: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease,
    transform 0.1s ease;
}

.chip-active {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}

.chip-outline {
  background: transparent;
}

.chip:hover {
  transform: translateY(-1px);
}

/* Search */

.search-bar {
  margin-top: 4px;
}

#searchInput {
  width: 100%;
  padding: 10px 13px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  font-size: 13px;
  outline: none;
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.9);
}

#searchInput::placeholder {
  color: rgba(148, 163, 184, 0.8);
}

/* Grid + cards */

.airshow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.airshow-card {
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, #0f172a, #020617);
  border: 1px solid rgba(51, 65, 85, 0.9);
  box-shadow: var(--shadow-card);
  padding: 16px 16px 14px;
  position: relative;
  overflow: hidden;
}

.airshow-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(
    from 190deg,
    rgba(56, 189, 248, 0.18),
    transparent,
    rgba(129, 140, 248, 0.18),
    transparent
  );
  opacity: 0;
  transition: opacity 0.2s ease;
}

.airshow-card-inner {
  position: relative;
  z-index: 1;
}

.airshow-card:hover::before {
  opacity: 1;
}

.airshow-card:hover {
  transform: translateY(-3px);
  transition: transform 0.16s ease;
}

.airshow-title {
  font-size: 15px;
  margin: 0 0 6px;
}

.airshow-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.airshow-meta span + span::before {
  content: "•";
  opacity: 0.6;
  margin: 0 6px;
}

.airshow-dates {
  font-size: 12px;
  margin-bottom: 10px;
  color: #cbd5f5;
}

.airshow-region-tag {
  display: inline-block;
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: var(--muted);
}

.airshow-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  gap: 8px;
}

.btn-visit {
  flex: 1;
  text-decoration: none;
  text-align: center;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, #38bdf8, #0ea5e9);
  color: #020617;
  border: none;
  box-shadow: 0 12px 30px rgba(8, 47, 73, 0.85);
}

.btn-visit:hover {
  filter: brightness(1.03);
}

.card-year-pill {
  font-size: 11px;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.96);
}

.no-results {
  margin-top: 26px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.hidden {
  display: none;
}

/* About */

.about-section {
  padding-top: 10px;
}

.about-card {
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(51, 65, 85, 0.9);
  padding: 20px 18px;
  box-shadow: var(--shadow-soft);
  font-size: 14px;
  color: var(--muted);
}

.about-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--text);
}

.about-card code {
  background: rgba(15, 23, 42, 0.9);
  padding: 2px 5px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 12px;
}

/* Footer */

.footer {
  padding: 16px 20px 26px;
  max-width: 1120px;
  margin: 0 auto;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(31, 41, 55, 0.8);
}

.footer-note {
  text-align: right;
}

/* Animations */

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}
@keyframes spin-slow-reverse {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes orbit-1 {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) translateX(120px)
      rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg) translateX(120px)
      rotate(-360deg);
  }
}
@keyframes orbit-2 {
  0% {
    transform: rotate(0deg) translateX(110px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(110px) rotate(-360deg);
  }
}
@keyframes orbit-3 {
  0% {
    transform: rotate(0deg) translateX(95px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(95px) rotate(-360deg);
  }
}

/* Responsive */

@media (max-width: 840px) {
  .hero-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .hero-orbit {
    order: -1;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .nav {
    padding-inline: 14px;
  }
  .nav-right {
    gap: 10px;
  }
  .hero {
    padding-bottom: 50px;
  }
  .section {
    padding-bottom: 55px;
  }
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

.email-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.84);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.email-gate-modal {
  width: 100%;
  max-width: 360px;
  border-radius: 18px;
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.95);
  padding: 18px 18px 14px;
  color: #e5e7eb;
  font-size: 14px;
}

.email-gate-modal h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.email-gate-modal p {
  margin: 0 0 12px;
  font-size: 13px;
  color: #9ca3af;
}

#emailGateForm label,
#codeStep label {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
  color: #9ca3af;
}

#gateEmail,
#gateCode {
  width: 100%;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  font-size: 13px;
  outline: none;
}

#gateCode {
  text-align: center;
  letter-spacing: 0.22em;
}

#gateCode::placeholder {
  letter-spacing: 0.22em;
}

.email-gate-error {
  min-height: 16px;
  font-size: 12px;
  color: #f97373;
  margin-top: 8px;
}

.email-gate-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.hidden {
  display: none !important;
}

