/* ============================================================
   FLIGHT COST INTELLIGENCE — PREMIUM DARK DESIGN SYSTEM
   Inspired by modern edu/product sites — bold, dark, cinematic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=DM+Mono:wght@400;500&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --bg:           #050508;
  --bg-elevated:  #0c0c12;
  --bg-card:      rgba(255, 255, 255, 0.04);
  --bg-card-hover:rgba(255, 255, 255, 0.07);
  --surface:      #111118;
  --surface-2:    #16161f;

  --navy:         #050508;
  --navy-mid:     #0c0c12;
  --navy-light:   #16161f;

  --accent:       #f97316;
  --accent-light: #fb923c;
  --accent-glow:  rgba(249, 115, 22, 0.35);

  --sky:          #3b82f6;
  --sky-light:    #60a5fa;
  --amber:        #f97316;
  --amber-light:  #fdba74;
  --teal:         #14b8a6;
  --green:        #22c55e;
  --red:          #ef4444;

  --white:        #ffffff;
  --off-white:    #f4f4f5;
  --gray-50:      rgba(255, 255, 255, 0.03);
  --gray-100:     rgba(255, 255, 255, 0.06);
  --gray-200:     rgba(255, 255, 255, 0.10);
  --gray-400:     rgba(255, 255, 255, 0.45);
  --gray-600:     rgba(255, 255, 255, 0.60);
  --gray-800:     rgba(255, 255, 255, 0.85);

  --text-primary:   #fafafa;
  --text-secondary: rgba(255, 255, 255, 0.62);
  --text-muted:     rgba(255, 255, 255, 0.40);

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full: 9999px;

  --shadow-sm:  0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md:  0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg:  0 16px 48px rgba(0, 0, 0, 0.55);
  --shadow-xl:  0 24px 64px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 40px var(--accent-glow);

  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.16s ease;

  --nav-height: 72px;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--sky-light); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--white); }

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

/* ── Container ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
p  { color: var(--text-secondary); margin-bottom: 0.85rem; }
p:last-child { margin-bottom: 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
  background: rgba(5, 5, 8, 0.72);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(5, 5, 8, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--white) !important;
  letter-spacing: -0.02em;
}
.navbar-brand:hover { color: var(--white) !important; }
.navbar-brand .brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent), #ea580c);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 16px;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}
.nav-links a.active {
  color: var(--white);
  background: rgba(249, 115, 22, 0.18);
  border: 1px solid rgba(249, 115, 22, 0.35);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.08); }
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 48px) 0 80px;
  overflow: hidden;
  color: white;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 8, 0.55) 0%, rgba(5, 5, 8, 0.82) 55%, rgba(5, 5, 8, 0.98) 100%),
    linear-gradient(135deg, rgba(249, 115, 22, 0.12) 0%, transparent 50%);
  z-index: 1;
}
.hero .container {
  position: relative;
  z-index: 2;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-content { max-width: 580px; }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.12rem;
  max-width: 520px;
  margin-bottom: 0;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.hero-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-xl), 0 0 60px rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.hero-visual:hover img { transform: scale(1.04); }
.hero-visual-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
}

/* Sub-page hero (shorter banner) */
.hero.hero-sub {
  min-height: 380px;
  padding: calc(var(--nav-height) + 56px) 0 72px;
  align-items: flex-end;
  text-align: center;
}
.hero.hero-sub .hero-bg img {
  object-fit: cover;
  object-position: center 45%;
}
.hero.hero-sub .hero-overlay {
  background:
    linear-gradient(180deg, rgba(5, 5, 8, 0.35) 0%, rgba(5, 5, 8, 0.72) 55%, rgba(5, 5, 8, 0.94) 100%),
    linear-gradient(135deg, rgba(249, 115, 22, 0.12) 0%, transparent 55%);
}
.hero.hero-sub h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}
.hero.hero-sub p {
  margin: 0 auto;
  text-align: center;
  max-width: 560px;
}

/* ── Section ───────────────────────────────────────────────── */
.section {
  padding: 88px 0;
  position: relative;
}
.section-sm { padding: 48px 0; }
.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}
.section-header { margin-bottom: 48px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { font-size: 1.05rem; color: var(--text-secondary); max-width: 580px; }
.section-header.center { text-align: center; }
.section-header.center p { margin: 0 auto; }

/* ── Card ──────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover { border-color: var(--gray-200); }
.card-body { padding: 28px; }
.card-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.card-header h3 { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--text-primary); }

/* ── Search Box ────────────────────────────────────────────── */
.search-box {
  background: rgba(12, 12, 18, 0.92);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px);
}

/* ── Form Elements ─────────────────────────────────────────── */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  align-items: end;
}
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.form-control,
select.form-control,
input.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
}
.form-control:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}
.form-control option {
  background: var(--surface);
  color: var(--text-primary);
}
.select-wrapper { position: relative; }
.select-wrapper::after {
  content: '▾';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 13px;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ea580c);
  color: var(--white);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}
.btn-amber {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: var(--white);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-amber:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--gray-200);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-danger:hover { background: rgba(239, 68, 68, 0.2); }

.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }
.btn-block { width: 100%; }

/* ── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.badge-amber  { background: rgba(249, 115, 22, 0.18); color: #fdba74; border: 1px solid rgba(249, 115, 22, 0.3); }
.badge-green  { background: rgba(34, 197, 94, 0.15); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.3); }
.badge-blue   { background: rgba(59, 130, 246, 0.15); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-red    { background: rgba(239, 68, 68, 0.15); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-gray   { background: rgba(255, 255, 255, 0.06); color: var(--text-secondary); border: 1px solid var(--gray-100); }

/* ── Alert ─────────────────────────────────────────────────── */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.alert i { margin-top: 2px; flex-shrink: 0; }
.alert-info    { background: rgba(59, 130, 246, 0.1); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.25); }
.alert-warning { background: rgba(249, 115, 22, 0.1); color: #fdba74; border: 1px solid rgba(249, 115, 22, 0.25); }
.alert-danger  { background: rgba(239, 68, 68, 0.1); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.25); }
.alert-success { background: rgba(34, 197, 94, 0.1); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.25); }

/* ── Spinner ───────────────────────────────────────────────── */
.spinner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 48px 24px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--gray-100);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Table ─────────────────────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
thead th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
  white-space: nowrap;
}
tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(255, 255, 255, 0.03); }
tbody tr.best-row td { background: rgba(59, 130, 246, 0.08); }
tbody tr.best-row td:first-child {
  border-left: 3px solid var(--sky);
  padding-left: 15px;
}

/* ── Feature Cards ─────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
  position: relative;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(249, 115, 22, 0.08);
  border-color: rgba(249, 115, 22, 0.35);
}
.feature-card-img {
  position: relative;
  height: 160px;
  overflow: hidden;
}
.feature-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.feature-card:hover .feature-card-img img { transform: scale(1.08); }
.feature-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 5, 8, 0.85) 100%);
}
.feature-card-body { padding: 24px; }
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: 18px;
  margin-bottom: 14px;
}
.feature-icon.blue   { background: rgba(59, 130, 246, 0.15); color: var(--sky-light); }
.feature-icon.amber  { background: rgba(249, 115, 22, 0.15); color: var(--accent-light); }
.feature-icon.teal   { background: rgba(20, 184, 166, 0.15); color: var(--teal); }
.feature-icon.green  { background: rgba(34, 197, 94, 0.15); color: var(--green); }
.feature-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.feature-card p  { font-size: 0.875rem; color: var(--text-secondary); margin: 0; line-height: 1.6; }
.feature-arrow {
  margin-top: 18px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap var(--transition-fast);
}
.feature-card:hover .feature-arrow { gap: 12px; }

/* ── Stats Bar ─────────────────────────────────────────────── */
.stats-bar {
  display: flex;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  margin-top: -48px;
  position: relative;
  z-index: 10;
}
.stat-item {
  flex: 1;
  min-width: 140px;
  padding: 28px 24px;
  border-right: 1px solid var(--gray-100);
  text-align: center;
  transition: background var(--transition-fast);
}
.stat-item:hover { background: rgba(255, 255, 255, 0.03); }
.stat-item:last-child { border-right: none; }
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
  font-family: 'DM Mono', monospace;
}
.stat-value span { color: var(--accent); }
.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Route Card ────────────────────────────────────────────── */
.routes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.route-card {
  background: var(--bg-card);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.route-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(249, 115, 22, 0.3);
  transform: translateY(-4px);
}
.route-card-thumb {
  height: 120px;
  overflow: hidden;
  position: relative;
}
.route-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.route-card:hover .route-card-thumb img { transform: scale(1.06); }
.route-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(5, 5, 8, 0.7) 100%);
}
.route-card-body { padding: 20px; }
.route-airports {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.airport-code {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: 'DM Mono', monospace;
  color: var(--white);
  line-height: 1;
}
.airport-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.route-line {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.route-line-bar {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--sky), var(--accent));
  border-radius: 2px;
  position: relative;
}
.route-line-bar::after {
  content: '✈';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
}
.route-dist {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: 'DM Mono', monospace;
}
.route-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
}
.cost-per-km {
  font-family: 'DM Mono', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
}
.cost-per-km .unit { font-size: 0.72rem; color: var(--text-muted); }
.total-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
}

/* ── Flight Card (Compare) ─────────────────────────────────── */
.flight-card {
  background: var(--bg-card);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all var(--transition);
  margin-bottom: 12px;
  position: relative;
}
.flight-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gray-200);
  transform: translateY(-2px);
}
.flight-card.best {
  border-color: rgba(249, 115, 22, 0.45);
  background: rgba(249, 115, 22, 0.06);
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.1);
}
.flight-card-route {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}
.flight-airport { text-align: center; }
.flight-airport-code {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: 'DM Mono', monospace;
  color: var(--white);
  line-height: 1;
}
.flight-airport-name {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.flight-route-mid {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.flight-route-line {
  width: 100%;
  height: 2px;
  background: var(--gray-200);
  border-radius: 2px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flight-route-icon {
  width: 30px;
  height: 30px;
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--accent);
  z-index: 1;
}
.flight-dist {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: 'DM Mono', monospace;
}
.flight-price-block { text-align: right; flex-shrink: 0; }
.flight-price { font-size: 1.4rem; font-weight: 800; color: var(--white); line-height: 1; }
.flight-cpkm {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-family: 'DM Mono', monospace;
  margin-top: 4px;
}
.best-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, var(--accent), #ea580c);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 8px;
}

/* ── How It Works ──────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.step-card:hover {
  border-color: rgba(249, 115, 22, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.step-card-img {
  height: 180px;
  overflow: hidden;
}
.step-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.step-card:hover .step-card-img img { transform: scale(1.06); }
.step-card-content { padding: 24px; }
.step-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), #ea580c);
  color: white;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 800;
  font-family: 'DM Mono', monospace;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.step-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.step-card p  { font-size: 0.875rem; color: var(--text-secondary); margin: 0; }

/* ── About / Split Section ─────────────────────────────────── */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-lg);
}
.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Testimonials ──────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}
.testimonial-card:hover {
  border-color: rgba(249, 115, 22, 0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.testimonial-quote {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(249, 115, 22, 0.4);
  flex-shrink: 0;
}
.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.testimonial-name { font-weight: 700; font-size: 0.9rem; color: var(--white); }
.testimonial-role { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

/* ── CTA ───────────────────────────────────────────────────── */
.cta-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5, 5, 8, 0.92) 0%, rgba(5, 5, 8, 0.75) 100%);
  z-index: 1;
}
.cta-section .container { position: relative; z-index: 2; }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-text h2 { color: white; margin-bottom: 12px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-text p  { color: rgba(255, 255, 255, 0.65); margin: 0; font-size: 1.05rem; }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--surface);
  color: rgba(255, 255, 255, 0.6);
  padding: 64px 0 32px;
  border-top: 1px solid var(--gray-100);
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.04;
  pointer-events: none;
}
.footer .container { position: relative; z-index: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand {
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-brand .brand-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), #ea580c);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 14px;
  color: white;
  flex-shrink: 0;
}
.footer-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 300px;
  color: var(--text-secondary);
}
.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--accent-light); }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.82rem; margin: 0; color: var(--text-muted); }

/* ── Chart / Map ───────────────────────────────────────────── */
.chart-wrap { position: relative; height: 300px; }
#route-map {
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ── Page content offset (fixed nav) ───────────────────────── */
.page-content { padding-top: var(--nav-height); }

/* ── Utility ───────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--text-muted); }
.text-success { color: var(--green); }
.text-danger  { color: var(--red); }
.text-primary-color { color: var(--sky-light); }
.font-mono  { font-family: 'DM Mono', monospace; }
.fw-bold    { font-weight: 700; }
.fw-extrabold { font-weight: 800; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.gap-2 { gap: 16px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

/* ── Route Input Block ─────────────────────────────────────── */
.route-input-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 12px;
  position: relative;
}
.route-input-block .route-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.route-input-block .remove-btn {
  position: absolute;
  top: 18px;
  right: 18px;
}

/* ── Prediction Cards ──────────────────────────────────────── */
.prediction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.prediction-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  transition: border-color var(--transition-fast);
}
.prediction-item:hover { border-color: var(--gray-200); }
.prediction-item .p-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 8px;
}
.prediction-item .p-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  font-family: 'DM Mono', monospace;
}
.prediction-item .p-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── FAQ ───────────────────────────────────────────────────── */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.faq-item:hover { border-color: var(--gray-200); }
.faq-item.open {
  border-color: rgba(249, 115, 22, 0.3);
  box-shadow: 0 0 24px rgba(249, 115, 22, 0.06);
}
.faq-question {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: background var(--transition-fast);
}
.faq-question:hover { background: rgba(255, 255, 255, 0.03); }
.faq-icon { color: var(--accent); transition: transform var(--transition-fast); flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* ── Trend Month Cards ─────────────────────────────────────── */
.months-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}
.month-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  transition: all var(--transition-fast);
}
.month-card:hover { border-color: var(--gray-200); }
.month-card.best {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.35);
}
.month-card .month-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}
.month-card .month-price {
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'DM Mono', monospace;
  color: var(--white);
  margin-top: 6px;
}

/* ── 404 Page ──────────────────────────────────────────────── */
.error-page {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.error-page-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.error-page-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}
.error-page .container { position: relative; z-index: 1; text-align: center; }
.error-code {
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

/* ── Scroll reveal ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.6s ease both; }
.animate-in-2 { animation-delay: 0.12s; }
.animate-in-3 { animation-delay: 0.24s; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .split-section { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(5, 5, 8, 0.98);
    padding: 16px;
    z-index: 100;
    gap: 4px;
    border-bottom: 1px solid var(--gray-100);
    backdrop-filter: blur(20px);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .search-box { padding: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .flight-card { flex-direction: column; align-items: flex-start; }
  .stats-bar { flex-direction: column; margin-top: -32px; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--gray-100); }
  .stat-item:last-child { border-bottom: none; }
  .section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding: calc(var(--nav-height) + 32px) 0 64px; }
  .hero.hero-sub { min-height: 300px; }
}
