:root {
  --ink: #0f172a;
  --slate: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-soft: #eff6ff;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --violet: #7c3aed;
  --font-sans: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Sora", var(--font-sans);
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 14px 40px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 30px 70px rgba(15, 23, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 5vw;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.94);
}

.brand-logo {
  position: relative;
  display: block;
  width: 254px;
  height: 58px;
  flex: 0 0 254px;
  overflow: hidden;
}

.brand-logo img {
  position: absolute;
  top: -148px;
  left: -110px;
  width: 512px;
  max-width: none;
  height: 280px;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 600;
}

.site-header nav > a:not(.staff-link) {
  position: relative;
  color: var(--slate);
  padding: 6px 0;
  transition: color 160ms ease;
}

.site-header nav > a:not(.staff-link)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-header nav > a:not(.staff-link):hover {
  color: var(--ink);
}

.site-header nav > a:not(.staff-link):hover::after {
  transform: scaleX(1);
}

.staff-link {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 700;
  transition: background 160ms ease, transform 160ms ease;
}

.staff-link:hover {
  background: var(--brand);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  min-height: min(720px, calc(100vh - 74px));
  align-items: center;
  overflow: hidden;
  background-image: url("/assets/gatetogo-airport-hero.jpg");
  background-position: center;
  background-size: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 18, 32, 0.35) 0%, rgba(11, 18, 32, 0.05) 40%, rgba(11, 18, 32, 0.15) 100%),
    linear-gradient(105deg, rgba(11, 18, 32, 0.82) 0%, rgba(11, 18, 32, 0.55) 48%, rgba(11, 18, 32, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 72px 0 80px;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.eyebrow-pill svg {
  width: 15px;
  height: 15px;
  color: #fbbf24;
}

.hero h1 {
  max-width: 720px;
  margin: 22px 0 0;
  color: #ffffff;
  font-size: clamp(44px, 6vw, 78px);
  font-weight: 800;
  line-height: 1.02;
}

.hero h1 span {
  background: linear-gradient(90deg, #fbbf24, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-copy {
  max-width: 560px;
  margin: 22px 0 34px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.6;
}

.flight-search {
  width: min(1120px, 92vw);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.trip-toggle {
  display: flex;
  gap: 4px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.trip-toggle label {
  position: relative;
  cursor: pointer;
}

.trip-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.trip-toggle span {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease;
}

.trip-toggle label:has(input:checked) span {
  color: #ffffff;
  background: var(--brand);
}

.search-fields {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) 42px minmax(150px, 1.2fr) minmax(140px, 0.9fr) minmax(140px, 0.9fr) auto;
  align-items: end;
  gap: 4px;
  padding: 14px 16px 16px;
}

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
  padding: 6px 14px;
  border-right: 1px solid var(--line);
  border-radius: 12px;
  transition: background 160ms ease;
}

.field:first-child {
  padding-left: 6px;
}

.field:focus-within {
  background: var(--brand-soft);
}

.field-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.field input {
  width: 100%;
  min-width: 0;
  padding: 4px 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 15px;
  font-weight: 600;
}

.field input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.swap-button {
  width: 40px;
  height: 40px;
  align-self: center;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--slate);
  background: #ffffff;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.swap-button svg {
  width: 18px;
  height: 18px;
}

.swap-button:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: rotate(180deg);
}

.search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 13px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  cursor: pointer;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.32);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.search-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.4);
  filter: brightness(1.03);
}

.search-button svg {
  width: 17px;
  height: 17px;
}

/* ---------- Stats ---------- */
.stats {
  width: min(1180px, 92vw);
  margin: -1px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow-sm);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 26px 16px;
  background: #ffffff;
  text-align: center;
}

.stat b {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
}

.stat span {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
}

/* ---------- Sections ---------- */
.destinations,
.features {
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 88px 0 96px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
}

.section-heading > p {
  max-width: 380px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

/* ---------- Route cards ---------- */
.route-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.route-card {
  position: relative;
  display: flex;
  min-height: 230px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 22px;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  color: #ffffff;
  background: var(--ink);
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.route-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.route-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0) 30%, rgba(11, 18, 32, 0.82) 100%);
}

.route-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.route-card:hover img {
  transform: scale(1.06);
}

.route-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.route-code {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.route-code b {
  font-weight: 800;
}

.route-card strong {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
}

.route-card small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

/* ---------- Features ---------- */
.features {
  padding-top: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: #c7d7fb;
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ---------- Support band ---------- */
.support-band {
  display: flex;
  justify-content: center;
  padding: 80px 5vw;
  background:
    radial-gradient(900px 400px at 12% 20%, rgba(37, 99, 235, 0.14), transparent 60%),
    radial-gradient(800px 360px at 88% 80%, rgba(249, 115, 22, 0.12), transparent 60%),
    var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.support-copy {
  max-width: 640px;
  text-align: center;
}

.support-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
}

.support-copy p:last-child {
  margin: 0;
  color: var(--slate);
  font-size: 17px;
  line-height: 1.7;
}

/* ---------- CTA ---------- */
.cta {
  padding: 88px 5vw;
}

.cta-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 56px 44px;
  border-radius: 24px;
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(120deg, var(--brand), var(--violet));
  color: #ffffff;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-inner h2 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
}

.cta-inner p {
  margin: 12px auto 28px;
  max-width: 440px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 12px 26px rgba(11, 18, 32, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(11, 18, 32, 0.28);
}

.cta-button svg {
  width: 18px;
  height: 18px;
}

/* ---------- Footer ---------- */
footer {
  padding: 60px 5vw 28px;
  background: var(--ink);
  color: #cbd5e1;
}

.footer-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  max-width: 300px;
  margin: 16px 0 0;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.6;
}

.footer-logo {
  filter: brightness(0) invert(1);
}

.footer-grid h4 {
  margin: 0 0 16px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.footer-grid a {
  display: block;
  margin-bottom: 11px;
  color: #94a3b8;
  font-size: 14px;
  transition: color 160ms ease;
}

.footer-grid a:hover {
  color: #ffffff;
}

.footer-bottom {
  width: min(1180px, 100%);
  margin: 44px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: #64748b;
  font-size: 13px;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .search-fields {
    grid-template-columns: 1fr 42px 1fr;
    gap: 12px 4px;
  }

  .field {
    border-right: 0;
  }

  .field:nth-of-type(3),
  .field:nth-of-type(4) {
    grid-column: auto;
  }

  .field:nth-of-type(3) {
    grid-column: 1 / 2;
  }

  .field:nth-of-type(4) {
    grid-column: 3 / 4;
  }

  .search-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .route-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .site-header {
    min-height: 68px;
    padding: 0 20px;
  }

  .brand-logo {
    width: 178px;
    height: 50px;
    flex-basis: 178px;
  }

  .brand-logo img {
    top: -103px;
    left: -77px;
    width: 358px;
    height: 196px;
  }

  .site-header nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  body.nav-open .site-header nav {
    display: flex;
  }

  body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-header nav > a:not(.staff-link) {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
  }

  .site-header nav > a:not(.staff-link)::after {
    display: none;
  }

  .staff-link {
    margin-top: 14px;
    text-align: center;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    min-height: 680px;
    align-items: flex-start;
    background-position: 62% center;
  }

  .hero-content {
    width: calc(100% - 32px);
    padding: 46px 0 56px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-copy {
    font-size: 17px;
    margin: 18px 0 26px;
  }

  .flight-search {
    width: 100%;
  }

  .search-fields {
    grid-template-columns: 1fr 40px 1fr;
    padding: 12px;
  }

  .field {
    padding: 6px 10px;
  }

  .field:nth-of-type(3) {
    grid-column: 1 / 2;
  }

  .field:nth-of-type(4) {
    grid-column: 3 / 4;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .destinations,
  .features {
    width: calc(100% - 32px);
    padding: 60px 0 66px;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 14px;
  }

  .route-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .route-card {
    min-height: 190px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .support-band {
    padding: 60px 20px;
  }

  .cta {
    padding: 60px 20px;
  }

  .cta-inner {
    padding: 44px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  footer {
    padding: 48px 20px 24px;
  }
}

@media (max-width: 430px) {
  .route-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
