:root {
  --bg: #FAF9F5;
  --surface: #FFFFFF;
  --surface-2: #F3F2EC;
  --ink: #0F172A;
  --ink-muted: #475569;
  --border: rgba(15, 23, 42, 0.09);
  --orange: #FF4D00;
  --orange-2: #FF7A00;
  --blue: #2563EB;
  --violet: #7C3AED;
  --lime: #84CC16;
  --emerald: #059669;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 14px 36px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 18px 48px rgba(255, 77, 0, 0.18);
  --font-sans: 'Plus Jakarta Sans', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* Reading progress bar */
.read-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--orange), var(--blue), var(--violet));
  z-index: 1000; transition: width 0.08s linear;
}

/* Animated Daylight Aurora Background */
.aurora-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.aurora-blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.42;
  animation: floatBlob 18s ease-in-out infinite alternate;
}
.aurora-blob.b1 { width: 520px; height: 520px; background: #FF9A62; top: -140px; right: -80px; }
.aurora-blob.b2 { width: 460px; height: 460px; background: #60A5FA; top: 180px; left: -140px; animation-delay: -5s; }
.aurora-blob.b3 { width: 380px; height: 380px; background: #C4B5FD; bottom: -100px; right: 20%; animation-delay: -10s; }
@keyframes floatBlob {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(35px, -25px) scale(1.08); }
  100% { transform: translate(-25px, 30px) scale(0.96); }
}

.container { width: min(1200px, 92vw); margin: 0 auto; }

/* Navbar */
.navbar {
  position: sticky; top: 14px; z-index: 90; margin: 14px auto 0;
  width: min(1200px, 92vw);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em; }
.brand-dot {
  width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 0.95rem;
  box-shadow: 0 6px 16px rgba(255, 77, 0, 0.35);
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 8px 15px; border-radius: 999px; font-size: 0.92rem; font-weight: 600;
  color: var(--ink-muted); transition: all 0.2s ease;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--ink); background: var(--surface-2);
}
.nav-cta {
  padding: 9px 18px; border-radius: 999px; font-size: 0.88rem; font-weight: 700;
  background: var(--ink); color: #fff; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22); }

/* Hero */
.hero { padding: 68px 0 44px; text-align: center; position: relative; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border);
  font-size: 0.84rem; font-weight: 700; color: var(--ink);
  box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.live-pulse {
  width: 9px; height: 9px; border-radius: 50%; background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.6);
  animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.6); }
  70% { box-shadow: 0 0 0 9px rgba(5, 150, 105, 0); }
  100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.12; letter-spacing: -0.03em; font-weight: 900;
  max-width: 920px; margin: 0 auto 20px;
}
.gradient-text {
  background: linear-gradient(110deg, var(--orange) 0%, #FF8A00 45%, var(--blue) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  color: var(--ink-muted); max-width: 720px; margin: 0 auto 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 40px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 0.98rem;
  transition: transform 0.22s cubic-bezier(.2,.8,.2,1), box-shadow 0.22s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #fff; box-shadow: 0 12px 28px rgba(255, 77, 0, 0.32);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 36px rgba(255, 77, 0, 0.4); }
.btn-secondary {
  background: #fff; color: var(--ink); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { transform: translateY(-3px); border-color: var(--ink); }

/* Live Telemetry Strip */
.telemetry-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  max-width: 960px; margin: 0 auto;
}
.tele-card {
  background: rgba(255, 255, 255, 0.88); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px 18px; text-align: left;
  box-shadow: var(--shadow-sm); transition: transform 0.25s ease;
}
.tele-card:hover { transform: translateY(-4px); }
.tele-label { font-size: 0.78rem; color: var(--ink-muted); font-weight: 600; margin-bottom: 4px; }
.tele-val { font-family: var(--font-mono); font-size: 1.35rem; font-weight: 800; color: var(--ink); }
.tele-val.hot { color: var(--orange); }
.tele-sub { font-size: 0.76rem; color: var(--emerald); font-weight: 600; margin-top: 2px; }

/* Sections */
.section { padding: 54px 0; }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 28px;
}
.section-tag {
  display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 6px;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 900; letter-spacing: -0.02em; }

/* Interactive Scenario Simulator */
.sim-box {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-md);
}
.sim-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.sim-tab {
  padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 0.9rem;
  background: var(--surface-2); color: var(--ink-muted); transition: all 0.2s ease;
}
.sim-tab.active {
  background: var(--ink); color: #fff; box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}
.sim-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; }
.sim-bars { display: flex; flex-direction: column; gap: 16px; }
.sim-row-head { display: flex; justify-content: space-between; font-size: 0.88rem; font-weight: 700; margin-bottom: 6px; }
.sim-track { height: 12px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.sim-fill {
  height: 100%; border-radius: 999px; width: 0%;
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
  transition: width 0.65s cubic-bezier(.2,.8,.2,1);
}
.sim-fill.blue { background: linear-gradient(90deg, var(--blue), #60A5FA); }
.sim-fill.violet { background: linear-gradient(90deg, var(--violet), #A78BFA); }
.sim-result {
  background: linear-gradient(135deg, #FFF7ED, #EFF6FF);
  border: 1px solid rgba(255, 77, 0, 0.18);
  border-radius: var(--radius-md); padding: 22px;
}
.sim-result h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.sim-result p { font-size: 0.92rem; color: var(--ink-muted); margin-bottom: 14px; }

/* Airport Cards (3D Tilt + Glowing #1) */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter-btn {
  padding: 8px 16px; border-radius: 999px; font-size: 0.86rem; font-weight: 700;
  background: #fff; border: 1px solid var(--border); color: var(--ink-muted); transition: all 0.2s ease;
}
.filter-btn.active, .filter-btn:hover { background: var(--orange); color: #fff; border-color: var(--orange); }

.airport-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.airport-card {
  position: relative; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.25s ease;
  transform-style: preserve-3d;
}
.airport-card:hover { box-shadow: var(--shadow-md); }
.airport-card.featured {
  border: 2px solid var(--orange);
  box-shadow: var(--shadow-glow);
  background: linear-gradient(180deg, #FFFBF7 0%, #FFFFFF 38%);
}
.rank-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 800;
  background: var(--surface-2); color: var(--ink);
}
.airport-card.featured .badge-pill { background: var(--orange); color: #fff; }
.score-chip {
  font-family: var(--font-mono); font-weight: 900; font-size: 1.05rem;
  padding: 4px 12px; border-radius: 999px; background: #ECFDF5; color: var(--emerald);
}
.airport-card h3 { font-size: 1.32rem; font-weight: 900; margin-bottom: 6px; letter-spacing: -0.02em; }
.airport-slogan { font-size: 0.92rem; color: var(--ink-muted); margin-bottom: 16px; }

.metrics-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 16px;
}
.metric-item span { display: block; font-size: 0.74rem; color: var(--ink-muted); font-weight: 600; }
.metric-item strong { font-family: var(--font-mono); font-size: 0.95rem; color: var(--ink); }

.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag {
  font-size: 0.76rem; font-weight: 700; padding: 4px 10px; border-radius: 8px;
  background: #EFF6FF; color: var(--blue);
}
.highlight-list { list-style: none; display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.highlight-list li { font-size: 0.88rem; color: var(--ink); padding-left: 18px; position: relative; }
.highlight-list li::before {
  content: '✦'; position: absolute; left: 0; color: var(--orange); font-weight: 900;
}
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px dashed var(--border); }
.compare-toggle {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.84rem; font-weight: 700; color: var(--ink-muted);
}
.compare-toggle input { width: 16px; height: 16px; accent-color: var(--orange); }

/* Blog Cards */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.blog-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow-sm); transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--orange); }
.blog-meta { display: flex; align-items: center; gap: 10px; font-size: 0.78rem; color: var(--ink-muted); font-weight: 700; margin-bottom: 10px; }
.blog-cat { padding: 3px 10px; border-radius: 999px; background: #FFF7ED; color: var(--orange); }
.blog-card h3 { font-size: 1.12rem; font-weight: 800; line-height: 1.38; margin-bottom: 10px; }
.blog-card p { font-size: 0.88rem; color: var(--ink-muted); margin-bottom: 18px; }
.read-more { font-size: 0.88rem; font-weight: 800; color: var(--orange); display: inline-flex; align-items: center; gap: 6px; }

/* FAQ Accordion */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.faq-q {
  width: 100%; text-align: left; padding: 18px 22px; font-weight: 800; font-size: 1rem;
  display: flex; justify-content: space-between; align-items: center; color: var(--ink);
}
.faq-a { padding: 0 22px 18px; font-size: 0.94rem; color: var(--ink-muted); display: none; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--orange); }
.faq-icon { font-size: 1.3rem; transition: transform 0.2s ease; }

/* Article Prose */
.article-wrap {
  max-width: 820px; margin: 36px auto 64px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow-md);
}
.article-wrap h1 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 900; line-height: 1.22; margin: 14px 0 18px; }
.article-body h2 { font-size: 1.35rem; font-weight: 800; margin: 28px 0 12px; padding-left: 12px; border-left: 4px solid var(--orange); }
.article-body p { margin-bottom: 16px; color: #1E293B; font-size: 1.02rem; }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; color: #1E293B; }
.article-body li { margin-bottom: 8px; }
.article-body code { background: var(--surface-2); padding: 2px 7px; border-radius: 6px; font-family: var(--font-mono); font-size: 0.9em; color: var(--orange); }

/* Floating Compare Drawer */
.compare-bar {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(120px);
  background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px;
  display: flex; align-items: center; gap: 16px; z-index: 200;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
}
.compare-bar.show { transform: translateX(-50%) translateY(0); }
.compare-modal {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.55); backdrop-filter: blur(6px);
  display: none; place-items: center; z-index: 300; padding: 20px;
}
.compare-modal.open { display: grid; }
.compare-panel {
  background: #fff; border-radius: var(--radius-lg); padding: 28px; width: min(920px, 95vw);
  max-height: 85vh; overflow: auto; box-shadow: var(--shadow-md);
}
.compare-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 0.9rem; }
.compare-table th, .compare-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; }
.compare-table th { background: var(--surface-2); font-weight: 800; }

/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Footer */
.footer {
  border-top: 1px solid var(--border); background: #fff; padding: 44px 0 32px; margin-top: 48px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; margin-bottom: 28px; }
.footer h4 { font-size: 0.95rem; font-weight: 800; margin-bottom: 12px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 0.88rem; color: var(--ink-muted); }
.footer a:hover { color: var(--orange); }
.footer-bottom { font-size: 0.82rem; color: var(--ink-muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 20px; border-top: 1px solid var(--border); }

@media (max-width: 900px) {
  .telemetry-strip, .airport-grid, .blog-grid, .sim-grid, .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
