:root {
  --black: #000;
  --ink: #1d1d1f;
  --light: #f5f5f7;
  --white: #fff;
  --air-blue: #0071e3;
  --air-blue-dark: #0066cc;
  --muted: rgba(0,0,0,.72);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--light);
}

.container { width: min(1120px, 92%); margin: 0 auto; }
.center { text-align: center; }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0,0,0,.8);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-inner {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.24px;
}
nav { display: flex; gap: 20px; }
nav a {
  color: rgba(255,255,255,.9);
  text-decoration: none;
  font-size: 12px;
  transition: opacity .2s ease;
}
nav a:hover { opacity: .75; }

.nav-cta {
  text-decoration: none;
  color: var(--white);
  background: var(--air-blue);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  transition: background .2s ease;
}
.nav-cta:hover { background: var(--air-blue-dark); }

.dark { background: var(--black); color: var(--white); }
.light { background: var(--light); color: var(--ink); }

.hero { padding: 78px 0 76px; }
.eyebrow {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: -.22px;
  color: #9ecbff;
}
h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 4.3rem);
  line-height: 1.05;
  letter-spacing: -0.3px;
  font-weight: 600;
}
.sub {
  margin: 18px auto 0;
  max-width: 820px;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: .14px;
  color: rgba(255,255,255,.88);
}

.cta-row {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  text-decoration: none;
  font-size: 17px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--air-blue); color: var(--white); }
.btn.primary:hover { background: var(--air-blue-dark); }
.btn.ghost { color: #2997ff; border-color: #2997ff; }

.flight-search {
  margin: 24px auto 0;
  width: min(980px, 100%);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 190px;
  gap: 10px;
  align-items: end;
  backdrop-filter: blur(10px);
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.date-field input { cursor: pointer; }
.field label {
  font-size: 12px;
  color: rgba(255,255,255,.84);
  letter-spacing: -.12px;
}
.field input {
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.35);
  color: #fff;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
}
.field input::placeholder { color: rgba(255,255,255,.55); }
.field input:focus {
  border-color: #2997ff;
  box-shadow: 0 0 0 2px rgba(41,151,255,.25);
}
.search-btn {
  height: 44px;
  padding: 0 18px;
  white-space: nowrap;
  width: 100%;
}

.results {
  margin: 14px auto 0;
  width: min(980px, 100%);
  text-align: left;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  padding: 14px;
}
.results-head h3 {
  margin: 0;
  font-size: 16px;
  color: #fff;
}
.results-head p {
  margin: 6px 0 0;
  font-size: 13px;
  color: rgba(255,255,255,.74);
}
.results-list {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}
.result-card {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,.03);
  cursor: pointer;
}
.result-card:hover { border-color: rgba(41,151,255,.6); }
.result-card h4 { margin: 0 0 6px; font-size: 15px; color: #fff; }
.result-card p { margin: 0; font-size: 13px; color: rgba(255,255,255,.8); }
.details-btn {
  margin-top: 8px;
  border: 1px solid rgba(143,210,255,.5);
  background: rgba(41,151,255,.12);
  color: #8fd2ff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}
.details-btn:hover { background: rgba(41,151,255,.22); }

.flight-details {
  margin: 14px auto 0;
  width: min(980px, 100%);
  text-align: left;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  padding: 14px;
}
.results-list .flight-details {
  margin: 8px 0 0;
  width: 100%;
}
.result-card .flight-details {
  margin: 10px 0 0;
  border-color: rgba(143,210,255,.35);
  background: rgba(8, 24, 44, 0.55);
}
.flight-details-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.flight-details-head h3 { margin: 0; color: #fff; font-size: 16px; }
.btn-sm { font-size: 13px; padding: 6px 12px; }
.details-body { margin-top: 10px; color: rgba(255,255,255,.9); }
.details-body h4 { margin: 0 0 6px; color: #fff; font-size: 14px; }
.details-body p { margin: 0 0 8px; font-size: 13px; }
.details-body ul { margin: 0; padding-left: 18px; }
.details-body li { margin: 0 0 6px; font-size: 13px; }
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.mini { color: rgba(255,255,255,.68); font-size: 12px !important; }

.hero-panel {
  margin: 56px auto 0;
  width: min(900px, 100%);
  min-height: 250px;
  border-radius: 20px;
  background: linear-gradient(180deg, #0b1d3a 0%, #091325 100%);
  box-shadow: rgba(0,0,0,.28) 3px 5px 30px 0;
  padding: 26px;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,113,227,.35), rgba(0,113,227,0));
}
.scan {
  position: absolute;
  left: 0;
  right: 0;
  top: -20%;
  height: 40%;
  background: linear-gradient(180deg, rgba(86,184,255,.28), rgba(86,184,255,0));
  animation: scan 4.5s ease-in-out infinite;
}
@keyframes scan {
  0%, 100% { transform: translateY(0); opacity: .3; }
  50% { transform: translateY(240px); opacity: .65; }
}
.track-row {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,.9);
  font-size: 15px;
}
.track-row strong { font-weight: 600; color: #8fd2ff; }

.section { padding: 82px 0; }
h2 {
  margin: 0;
  font-size: clamp(2.05rem, 5vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.24px;
  font-weight: 600;
}
.section p {
  margin: 14px 0 0;
  font-size: 19px;
  line-height: 1.48;
  color: var(--muted);
}

.split {
  display: grid;
  gap: 28px;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
}
.metric-card {
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: rgba(0,0,0,.08) 0 8px 26px;
}
.metric-card p { margin: 0; color: #4a4a4d; font-size: 14px; }
.metric-card strong {
  display: block;
  font-size: 54px;
  line-height: 1;
  letter-spacing: -1px;
  margin: 8px 0;
}
.metric-card span { color: #6e6e73; font-size: 14px; }

.cards-wrap { padding-top: 18px; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: rgba(0,0,0,.06) 0 4px 20px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: rgba(0,0,0,.12) 0 10px 24px;
}
.card h3 {
  margin: 0;
  font-size: 28px;
  letter-spacing: .19px;
  line-height: 1.15;
  font-weight: 500;
}
.card p {
  margin-top: 10px;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.37px;
}

.stats {
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.stats-grid div {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  padding: 22px;
  text-align: center;
}
.stats-grid strong {
  display: block;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.5px;
  color: #8fd2ff;
}
.stats-grid span {
  display: block;
  margin-top: 6px;
  color: rgba(255,255,255,.84);
  font-size: 14px;
}

.cta-block h2 { margin-bottom: 8px; }
.sub-cta {
  color: rgba(255,255,255,.78);
  margin: 0 auto 24px;
  font-size: 18px;
}

.footer {
  border-top: 1px solid rgba(0,0,0,.08);
  padding: 22px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.footer p { margin: 0; color: #6e6e73; font-size: 12px; }
.footer a {
  color: #0066cc;
  text-decoration: none;
  margin-left: 14px;
  font-size: 12px;
}

.result-card h4 {
  margin: 0;
  font-size: 1.02rem;
}

.airline-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.airline-logo,
.airline-fallback {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: 0 0 28px;
}

.airline-logo {
  object-fit: cover;
  background: #fff;
  border: 1px solid #d4dae3;
}

.airline-fallback {
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: #0b4a8f;
}

@media (max-width: 1100px) {
  .flight-search {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .search-btn { width: 100%; }
}

@media (max-width: 900px) {
  nav, .nav-cta { display: none; }
  .split, .cards, .stats-grid, .detail-grid { grid-template-columns: 1fr; }
  .section { padding: 58px 0; }
  .hero-panel { min-height: 210px; }
  .sub { font-size: 18px; }
  .flight-search { grid-template-columns: 1fr; }
}