/* ==========================================================================
   SkyTrace — shared stylesheet
   Professional light theme, refined design tokens
   ========================================================================== */

:root{
  /* surfaces */
  --bg:          #ffffff;
  --bg-alt:      #f7f8fa;
  --bg-sunken:   #f1f3f7;
  --panel:       #ffffff;
  --panel-2:     #fafbfc;
  --panel-3:     #f0f2f6;

  /* lines */
  --line:        #e4e7ee;
  --line-soft:   #eef0f4;
  --line-strong: #d4d9e2;

  /* text */
  --text:        #0f1729;
  --text-dim:    #47506b;
  --text-mute:   #8a92a6;

  /* brand */
  --cyan:        #0e7fa8;
  --cyan-bright: #14a3d4;
  --cyan-soft:   rgba(14,127,168,.08);
  --amber:       #c2760a;
  --green:       #0a8f5f;
  --red:         #c53030;

  /* radii */
  --r-sm: 7px;
  --r-md: 11px;
  --r-lg: 16px;
  --r-xl: 20px;

  /* type */
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* shadows */
  --sh-xs: 0 1px 2px rgba(15,23,41,.05);
  --sh-sm: 0 1px 3px rgba(15,23,41,.06), 0 1px 2px rgba(15,23,41,.04);
  --sh-md: 0 4px 12px rgba(15,23,41,.07), 0 2px 4px rgba(15,23,41,.04);
  --sh-lg: 0 12px 32px rgba(15,23,41,.09), 0 4px 8px rgba(15,23,41,.04);

  /* layout */
  --gutter: 32px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:15.5px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; height:auto; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family:var(--font-display); margin:0; letter-spacing:-.015em; line-height:1.15; }
p{ margin:0; }
button{ font-family:inherit; cursor:pointer; }
input,select,textarea{ font-family:inherit; }
:focus-visible{ outline:2px solid var(--cyan); outline-offset:2px; border-radius:4px; }

.mono{ font-family:var(--font-mono); }
.wrap{ max-width:1240px; margin:0 auto; padding:0 var(--gutter); position:relative; z-index:1; }

/* ------------------------------- eyebrow ------------------------------- */
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-mono); font-size:11.5px; font-weight:500;
  letter-spacing:.16em; text-transform:uppercase; color:var(--cyan);
}
.eyebrow::before{
  content:""; width:6px; height:6px; border-radius:50%;
  background:var(--cyan); box-shadow:0 0 0 3px var(--cyan-soft);
}

.section{ padding:104px 0; position:relative; z-index:1; }
.section-head{ max-width:620px; margin-bottom:52px; }
.section-head h2{ font-size:clamp(28px,3.2vw,38px); margin-top:16px; font-weight:600; }
.section-head p{ margin-top:14px; color:var(--text-dim); font-size:16.5px; line-height:1.65; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

/* ---------------------------------- Nav --------------------------------- */
.site-nav{
  position:sticky; top:0; z-index:100;
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(16px) saturate(180%);
  -webkit-backdrop-filter:blur(16px) saturate(180%);
  border-bottom:1px solid var(--line-soft);
}
.site-nav .wrap{ display:flex; align-items:center; justify-content:space-between; height:74px; }
.brand{ display:flex; align-items:center; gap:11px; font-family:var(--font-display); font-weight:700; font-size:19px; }
.brand img{ height:56px; width:auto; max-width:150px; object-fit:contain; }
.brand-mark{
  width:32px; height:32px; display:grid; place-items:center;
  border-radius:9px; background:linear-gradient(145deg,var(--cyan-soft),var(--panel-3));
  border:1px solid var(--line);
}
.brand-mark svg{ width:18px; height:18px; }

.nav-links{ display:flex; align-items:center; gap:34px; }
.nav-links a{
  font-size:14px; color:var(--text-dim); font-weight:500;
  position:relative; padding:6px 0; transition:color .15s;
}
.nav-links a:hover{ color:var(--text); }
.nav-links a.active{ color:var(--cyan); font-weight:600; }
.nav-links a.active::after{
  content:""; position:absolute; left:0; right:0; bottom:-3px;
  height:2px; background:var(--cyan); border-radius:2px;
}

.nav-right{ display:flex; align-items:center; gap:16px; }
.zulu-clock{
  font-family:var(--font-mono); font-size:12.5px; color:var(--text-mute);
  display:flex; align-items:center; gap:8px;
  border:1px solid var(--line); border-radius:100px; padding:7px 14px;
  background:var(--panel-2); font-weight:500;
}
.zulu-dot{ width:6px; height:6px; border-radius:50%; background:var(--green); box-shadow:0 0 0 3px rgba(10,143,95,.15); }

/* Burger button (hidden on desktop) */
.nav-burger{
  display:none;
  width:44px; height:44px;
  align-items:center; justify-content:center;
  background:transparent; border:1px solid var(--line); border-radius:9px;
  color:var(--text);
}
.nav-burger svg{ width:20px; height:20px; }
.nav-burger .icon-close{ display:none; }
.nav-burger.open .icon-burger{ display:none; }
.nav-burger.open .icon-close{ display:block; }

/* Mobile dropdown panel */
.mobile-menu{
  display:none;
  border-top:1px solid var(--line-soft);
  background:#fff;
}
.mobile-menu.open{ display:block; }
.mobile-menu a{
  display:block;
  padding:16px var(--gutter);
  font-size:15px; font-weight:500;
  color:var(--text-dim);
  border-bottom:1px solid var(--line-soft);
  transition:background .15s, color .15s;
}
.mobile-menu a:hover,
.mobile-menu a.active{ background:var(--panel-2); color:var(--cyan); }
.mobile-menu a:last-child{ border-bottom:none; }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:11px 20px; border-radius:var(--r-sm);
  font-size:14px; font-weight:600; border:1px solid transparent;
  transition:transform .15s, background .15s, border-color .15s, box-shadow .15s, color .15s;
  white-space:nowrap;
}
.btn:active{ transform:translateY(1px); }
.btn-primary{
  background:linear-gradient(180deg,var(--cyan-bright),var(--cyan));
  color:#fff; box-shadow:0 4px 12px rgba(14,127,168,.22);
}
.btn-primary:hover{ box-shadow:0 6px 18px rgba(14,127,168,.32); }
.btn-ghost{ background:var(--panel-2); border-color:var(--line); color:var(--text); }
.btn-ghost:hover{ border-color:var(--cyan-bright); color:var(--cyan); }
.btn-block{ width:100%; }

/* --------------------------------- Hero --------------------------------- */
.hero{ padding:88px 0 56px; position:relative; overflow:hidden; }
.hero-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:64px; align-items:center; }
.hero h1{ font-size:clamp(38px,4.4vw,56px); font-weight:700; line-height:1.04; margin-top:20px; }
.hero h1 span{ color:var(--cyan); }
.hero .lede{ margin-top:22px; color:var(--text-dim); font-size:18px; max-width:490px; line-height:1.65; }

.search-card{
  margin-top:36px; background:var(--panel); border:1px solid var(--line);
  border-radius:var(--r-lg); padding:10px; box-shadow:var(--sh-md); max-width:580px;
}
.search-tabs{ display:flex; gap:4px; padding:6px 6px 10px; }
.search-tabs button{
  flex:1; background:transparent; border:none; color:var(--text-mute);
  font-size:13px; font-weight:600; padding:9px 10px; border-radius:7px;
  transition:color .15s, background .15s;
}
.search-tabs button.active{ background:var(--panel-3); color:var(--cyan); }
.search-row{ display:flex; gap:8px; padding:0 6px 6px; align-items:center; }
.search-row input, .search-row select{
  flex:1; min-width:0; background:var(--bg-alt); border:1px solid var(--line);
  color:var(--text); padding:13px 14px; border-radius:8px; font-size:14.5px;
  font-family:var(--font-mono); transition:border-color .15s, background .15s;
}
.search-row input::placeholder{ color:var(--text-mute); font-family:var(--font-body); }
.search-row input:focus, .search-row select:focus{ border-color:var(--cyan); background:#fff; outline:none; }

.trip-toggle{
  display:inline-flex; gap:2px; background:var(--panel-3); border-radius:8px; padding:3px;
}
.trip-toggle button{
  background:transparent; border:none; color:var(--text-mute);
  font-size:12.5px; font-weight:600; padding:7px 14px; border-radius:6px;
  transition:color .15s, background .15s;
}
.trip-toggle button.active{ background:#fff; color:var(--cyan); box-shadow:var(--sh-xs); }

.hero-chips{ display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; align-items:center; }
.hero-chips button{
  background:var(--panel-2); border:1px solid var(--line); color:var(--text-dim);
  font-family:var(--font-mono); font-size:12px; padding:6px 12px; border-radius:100px;
  transition:border-color .15s, color .15s;
}
.hero-chips button:hover{ border-color:var(--cyan); color:var(--cyan); }

/* --------------------------- split-flap board ---------------------------- */
.board{
  background:linear-gradient(180deg,#fbfcfd,#f5f7fa);
  border:1px solid var(--line); border-radius:var(--r-lg);
  box-shadow:var(--sh-md); padding:22px;
  overflow:hidden;
}
.board-head{
  display:flex; justify-content:space-between; align-items:center;
  padding:2px 6px 16px; border-bottom:1px solid var(--line-soft); margin-bottom:14px;
}
.board-head .title{ font-family:var(--font-mono); font-size:11.5px; letter-spacing:.14em; color:var(--text-mute); text-transform:uppercase; }
.board-head .live{ display:flex; align-items:center; gap:6px; font-family:var(--font-mono); font-size:11px; color:var(--green); font-weight:600; }
.board-head .live .dot{ width:6px; height:6px; border-radius:50%; background:var(--green); animation:pulse 1.8s infinite; }
@keyframes pulse{ 0%,100%{ opacity:1 } 50%{ opacity:.25 } }

.board-cols{
  display:grid; grid-template-columns:1.5fr 2.3fr 1.1fr 1.3fr; gap:6px;
  font-family:var(--font-mono); font-size:10.5px; color:var(--text-mute);
  letter-spacing:.08em; padding:0 6px 8px;
}
.board-row{
  display:grid; grid-template-columns:1.5fr 2.3fr 1.1fr 1.3fr; gap:6px;
  align-items:center; padding:6px; border-radius:6px;
}
.board-row:nth-child(odd){ background:rgba(15,23,41,.018); }
.flap{ display:flex; gap:2px; flex-wrap:nowrap; }
.flap-char{
  background:#fff; border:1px solid var(--line-strong); border-radius:3px;
  width:15px; height:20px; display:grid; place-items:center;
  font-family:var(--font-mono); font-size:11.5px; font-weight:600; color:var(--text);
  position:relative; overflow:hidden;
  flex-shrink:0;
}
.flap-char::after{ content:""; position:absolute; left:0; right:0; top:50%; height:1px; background:rgba(15,23,41,.07); }
.board-status{
  font-family:var(--font-mono); font-size:11px; font-weight:700;
  padding:3px 8px; border-radius:100px; text-align:center; letter-spacing:.04em;
}
.st-boarding{ background:rgba(14,127,168,.1); color:var(--cyan); }
.st-air{ background:rgba(10,143,95,.1); color:var(--green); }
.st-delay{ background:rgba(194,118,10,.1); color:var(--amber); }
.st-land{ background:rgba(15,23,41,.06); color:var(--text-dim); }
.st-cancel{ background:rgba(197,48,48,.1); color:var(--red); }

/* -------------------------------- Stat bar -------------------------------- */
.statbar{ border-top:1px solid var(--line-soft); border-bottom:1px solid var(--line-soft); padding:30px 0; background:var(--panel-2); }
.statbar .wrap{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:24px; }
.stat b{ display:block; font-family:var(--font-display); font-size:30px; color:var(--text); font-weight:700; }
.stat span{ font-size:12px; color:var(--text-mute); font-family:var(--font-mono); letter-spacing:.05em; }

/* ---------------------------------- Map ----------------------------------- */
.map-card{ border-radius:var(--r-lg); border:1px solid var(--line); overflow:hidden; box-shadow:var(--sh-sm); background:var(--panel); }
.map-card .leaflet-container{ background:#f5f7fa; font-family:var(--font-body); }
#live-map{ height:480px; width:100%; }
#route-map{ height:340px; width:100%; }
#return-map{ height:340px; width:100%; }
#office-map{ height:320px; width:100%; }
.map-legend{ display:flex; gap:18px; align-items:center; padding:14px 20px; border-top:1px solid var(--line-soft); flex-wrap:wrap; }
.map-legend .item{ display:flex; align-items:center; gap:7px; font-size:12.5px; color:var(--text-dim); }
.map-legend .sw{ width:9px; height:9px; border-radius:50%; flex-shrink:0; }
.plane-icon{ filter:drop-shadow(0 0 6px rgba(14,127,168,.45)); }
.leaflet-popup-content-wrapper{
  background:var(--panel); color:var(--text); border-radius:9px;
  border:1px solid var(--line); box-shadow:var(--sh-md);
}
.leaflet-popup-tip{ background:var(--panel); }
.leaflet-popup-content{ font-family:var(--font-body); font-size:13px; margin:10px 12px; }
.popup-flight{ font-family:var(--font-mono); color:var(--cyan); font-weight:700; font-size:13px; }

/* -------------------------------- Steps ----------------------------------- */
.steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.step{
  background:var(--panel); border:1px solid var(--line); border-radius:var(--r-lg);
  padding:32px 28px; transition:border-color .15s, box-shadow .15s, transform .15s;
}
.step:hover{ border-color:var(--cyan-bright); box-shadow:var(--sh-md); transform:translateY(-2px); }
.step .num{ font-family:var(--font-mono); color:var(--cyan); font-size:12px; letter-spacing:.1em; font-weight:600; }
.step h3{ font-size:19px; margin-top:14px; font-weight:600; }
.step p{ margin-top:10px; color:var(--text-dim); font-size:14.5px; }
.step-line{ height:1px; background:linear-gradient(90deg,var(--cyan),transparent); margin-top:20px; }

/* ------------------------------- Features --------------------------------- */
.feature-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.feature{
  background:var(--panel); border:1px solid var(--line); border-radius:var(--r-lg);
  padding:28px; transition:border-color .15s, transform .15s, box-shadow .15s;
}
.feature:hover{ border-color:var(--cyan-bright); transform:translateY(-2px); box-shadow:var(--sh-md); }
.feature .icon{
  width:42px; height:42px; border-radius:10px; display:grid; place-items:center;
  background:var(--panel-3); border:1px solid var(--line); margin-bottom:18px;
}
.feature .icon svg{ width:20px; height:20px; }
.feature h3{ font-size:16.5px; font-weight:600; }
.feature p{ margin-top:9px; color:var(--text-dim); font-size:14px; }

/* ------------------------------ Routes table ------------------------------ */
.routes-table-wrap{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
.routes-table{ width:100%; border-collapse:collapse; background:var(--panel); border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden; min-width:520px; }
.routes-table thead th{
  text-align:left; font-family:var(--font-mono); font-size:11px; letter-spacing:.1em;
  text-transform:uppercase; color:var(--text-mute); padding:15px 22px;
  border-bottom:1px solid var(--line-soft); font-weight:500; background:var(--panel-2);
  white-space:nowrap;
}
.routes-table tbody td{ padding:16px 22px; border-bottom:1px solid var(--line-soft); font-size:14px; white-space:nowrap; }
.routes-table tbody tr:last-child td{ border-bottom:none; }
.routes-table tbody tr{ transition:background .15s; }
.routes-table tbody tr:hover{ background:var(--panel-2); }
.route-path{ display:flex; align-items:center; gap:10px; font-family:var(--font-mono); font-weight:600; }
.route-path .arrow{ color:var(--text-mute); }
.trend-up{ color:var(--green); font-family:var(--font-mono); font-size:13px; }
.trend-down{ color:var(--red); font-family:var(--font-mono); font-size:13px; }

/* ------------------------------ Testimonials ------------------------------ */
.testimonial-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.testimonial{ background:var(--panel); border:1px solid var(--line); border-radius:var(--r-lg); padding:28px; }
.testimonial p.quote{ font-size:15px; color:var(--text); line-height:1.65; }
.testimonial .who{ display:flex; align-items:center; gap:12px; margin-top:22px; }
.avatar{
  width:38px; height:38px; border-radius:50%; display:grid; place-items:center;
  background:var(--cyan-soft); border:1px solid var(--line);
  font-family:var(--font-display); font-weight:700; font-size:13px; color:var(--cyan);
  flex-shrink:0;
}
.who b{ display:block; font-size:13.5px; }
.who span{ display:block; font-size:12px; color:var(--text-mute); }

/* -------------------------------- CTA band -------------------------------- */
.cta-band{
  border-radius:var(--r-xl); background:linear-gradient(135deg,var(--panel-3),var(--panel-2));
  border:1px solid var(--line); padding:56px; display:flex; align-items:center;
  justify-content:space-between; gap:40px; position:relative; overflow:hidden;
}
.cta-band::before{
  content:""; position:absolute; right:-60px; top:-60px; width:280px; height:280px;
  border-radius:50%; background:radial-gradient(circle,rgba(14,127,168,.1),transparent 70%);
  pointer-events:none;
}
.cta-band h2{ font-size:clamp(24px,2.6vw,32px); font-weight:600; max-width:420px; }
.cta-band p{ color:var(--text-dim); margin-top:10px; max-width:420px; }
.cta-form{ display:flex; gap:10px; flex-wrap:wrap; }
.cta-form input{
  background:var(--panel); border:1px solid var(--line); color:var(--text);
  padding:13px 16px; border-radius:8px; font-size:14px; width:250px;
  transition:border-color .15s;
}
.cta-form input:focus{ border-color:var(--cyan); outline:none; }

/* --------------------------------- Footer ---------------------------------- */
.site-footer{ border-top:1px solid var(--line-soft); padding:64px 0 32px; margin-top:40px; background:var(--panel-2); }
.footer-grid{ display:grid; grid-template-columns:1.4fr repeat(4,1fr); gap:32px; }
.footer-grid h4{
  font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--text-mute);
  margin-bottom:16px; font-family:var(--font-mono); font-weight:500;
}
.footer-grid li{ margin-bottom:10px; }
.footer-grid a{ color:var(--text-dim); font-size:14px; transition:color .15s; }
.footer-grid a:hover{ color:var(--cyan); }
.footer-about p{ color:var(--text-dim); font-size:14px; margin-top:14px; max-width:280px; }
.footer-social{ display:flex; gap:10px; margin-top:18px; }
.footer-social a{
  width:34px; height:34px; border-radius:9px; border:1px solid var(--line);
  display:grid; place-items:center; background:var(--panel);
  transition:border-color .15s, background .15s;
}
.footer-social a:hover{ border-color:var(--cyan); background:var(--bg-alt); }
.footer-social svg{ width:14px; height:14px; }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  margin-top:48px; padding-top:24px; border-top:1px solid var(--line-soft);
  color:var(--text-mute); font-size:12.5px; flex-wrap:wrap; gap:10px;
}
.footer-bottom .legal-links{ display:flex; gap:18px; flex-wrap:wrap; }

/* ============================== TRACK PAGE ================================= */
.track-hero{ padding:64px 0 20px; }
.track-hero h1{ font-size:clamp(30px,3.6vw,42px); font-weight:700; margin-top:14px; }
.track-hero p{ color:var(--text-dim); margin-top:12px; max-width:600px; font-size:16px; }
.big-search{
  margin-top:32px; background:var(--panel); border:1px solid var(--line);
  border-radius:var(--r-lg); padding:12px; box-shadow:var(--sh-md);
}

.result-panel{
  margin-top:44px; background:var(--panel); border:1px solid var(--line);
  border-radius:var(--r-lg); box-shadow:var(--sh-md); overflow:hidden;
}
.result-head{
  display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:20px;
  padding:28px 30px; border-bottom:1px solid var(--line-soft);
}
.flight-id{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.flight-id .code{
  font-family:var(--font-mono); font-size:26px; font-weight:700; color:var(--text);
  background:var(--panel-3); border:1px solid var(--line); border-radius:10px; padding:8px 14px;
}
.flight-id .meta h2{ font-size:18px; font-weight:600; }
.flight-id .meta span{ font-size:13px; color:var(--text-mute); font-family:var(--font-mono); }

.status-pill{
  font-family:var(--font-mono); font-size:12.5px; font-weight:700;
  padding:8px 16px; border-radius:100px; letter-spacing:.03em;
  display:inline-flex; align-items:center; gap:8px; height:fit-content;
}
.status-pill .dot{ width:7px; height:7px; border-radius:50%; flex-shrink:0; }

.route-strip{ padding:30px; border-bottom:1px solid var(--line-soft); }
.route-airports{ display:flex; align-items:center; justify-content:space-between; }
.route-airports .ap{ text-align:center; min-width:110px; }
.route-airports .ap .code{ font-family:var(--font-mono); font-size:28px; font-weight:700; }
.route-airports .ap .city{ font-size:13px; color:var(--text-dim); margin-top:4px; }
.route-airports .ap .time{ font-size:12px; color:var(--text-mute); margin-top:8px; font-family:var(--font-mono); }

.route-progress{ flex:1; margin:0 26px; position:relative; }
.route-progress .track-line{ height:2px; background:var(--line); border-radius:2px; position:relative; margin-top:18px; }
.route-progress .track-fill{
  position:absolute; left:0; top:0; height:2px;
  background:linear-gradient(90deg,var(--cyan),var(--cyan-bright)); border-radius:2px;
}
.route-progress .plane-marker{
  position:absolute; top:50%; transform:translate(-50%,-50%) rotate(90deg);
  width:20px; height:20px; color:var(--cyan);
}
.route-progress .pct{ text-align:center; font-family:var(--font-mono); font-size:11.5px; color:var(--text-mute); margin-top:10px; }

.detail-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:0; border-bottom:1px solid var(--line-soft); }
.detail-cell{ padding:22px 30px; border-right:1px solid var(--line-soft); }
.detail-cell:last-child{ border-right:none; }
.detail-cell .label{ font-family:var(--font-mono); font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--text-mute); }
.detail-cell .value{ font-size:19px; font-weight:600; margin-top:8px; font-family:var(--font-mono); word-break:break-word; }
.detail-cell .sub{ font-size:12px; color:var(--text-mute); margin-top:4px; }
.result-map-wrap{ padding:24px 30px 30px; }

/* ------------------- Return flight (round trip) block -------------------- */
.return-block{
  margin:20px; border:1px dashed var(--line-strong); border-radius:var(--r-lg);
  padding:24px; background:var(--panel-2);
}
.return-block .rb-head{
  display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; margin-bottom:16px;
}
.return-block .rb-title{ display:flex; align-items:center; gap:10px; font-weight:600; font-size:15px; }
.return-block .rb-title svg{ width:18px; height:18px; color:var(--cyan); flex-shrink:0; }
.return-block .rb-title small{
  display:block; font-family:var(--font-mono); font-size:11px;
  color:var(--text-mute); font-weight:400; letter-spacing:.06em; text-transform:uppercase;
}
.return-block .rb-search{ display:flex; gap:8px; }
.return-block .rb-search input{
  flex:1; min-width:0; background:#fff; border:1px solid var(--line); color:var(--text);
  padding:12px 14px; border-radius:8px; font-size:14px; font-family:var(--font-mono);
  transition:border-color .15s;
}
.return-block .rb-search input:focus{ border-color:var(--cyan); outline:none; }
.return-block .rb-empty{
  font-size:13.5px; color:var(--text-mute); text-align:center;
  padding:16px; font-family:var(--font-mono);
}

/* -------------------------------- Demo grid ------------------------------- */
.demo-flights{ margin-top:64px; }
.demo-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.demo-card{
  background:var(--panel); border:1px solid var(--line); border-radius:var(--r-md);
  padding:18px 20px; display:flex; justify-content:space-between; align-items:center;
  transition:border-color .15s, box-shadow .15s, transform .15s; text-align:left;
  gap:12px;
}
.demo-card:hover{ border-color:var(--cyan-bright); box-shadow:var(--sh-md); transform:translateY(-1px); }
.demo-card .l{ min-width:0; }
.demo-card .l .code{ font-family:var(--font-mono); font-weight:700; color:var(--cyan); font-size:14px; word-break:break-word; }
.demo-card .l .r{ font-size:12.5px; color:var(--text-mute); margin-top:4px; }
.demo-card .status-pill{ padding:5px 11px; font-size:10.5px; flex-shrink:0; }

/* ------------------------------------ FAQ --------------------------------- */
.faq{ margin-top:20px; }
.faq-item{ border-bottom:1px solid var(--line-soft); }
.faq-q{
  display:flex; justify-content:space-between; align-items:center; gap:16px;
  padding:22px 4px; font-weight:600; font-size:15px;
  background:none; border:none; color:var(--text); width:100%; text-align:left;
  transition:color .15s;
}
.faq-q:hover{ color:var(--cyan); }
.faq-q .plus{ color:var(--cyan); font-family:var(--font-mono); font-size:18px; transition:transform .2s; flex-shrink:0; }
.faq-item.open .faq-q .plus{ transform:rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .25s ease; color:var(--text-dim); font-size:14.5px; padding:0 4px; }
.faq-item.open .faq-a{ padding-bottom:20px; }

/* ================================ CONTACT ================================= */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:flex-start; }
.contact-form{ background:var(--panel); border:1px solid var(--line); border-radius:var(--r-lg); padding:34px; box-shadow:var(--sh-md); }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.field{ margin-bottom:18px; }
.field label{ display:block; font-size:12.5px; color:var(--text-dim); margin-bottom:8px; font-weight:500; }
.field input, .field select, .field textarea{
  width:100%; background:var(--bg-alt); border:1px solid var(--line); color:var(--text);
  padding:12px 14px; border-radius:8px; font-size:14px; transition:border-color .15s;
}
.field textarea{ resize:vertical; min-height:120px; }
.field input:focus, .field select:focus, .field textarea:focus{ border-color:var(--cyan); outline:none; }
.form-note{ font-size:12px; color:var(--text-mute); margin-top:14px; }
.form-success{
  display:none; align-items:center; gap:12px; background:rgba(10,143,95,.08);
  border:1px solid rgba(10,143,95,.2); color:var(--green);
  padding:14px 16px; border-radius:9px; font-size:14px; margin-bottom:18px;
}
.form-success.show{ display:flex; }
.support-cards{ display:flex; flex-direction:column; gap:14px; }
.support-card{
  background:var(--panel); border:1px solid var(--line); border-radius:var(--r-md);
  padding:20px 22px; display:flex; gap:16px; align-items:flex-start;
  transition:border-color .15s, box-shadow .15s;
}
.support-card:hover{ border-color:var(--cyan-bright); box-shadow:var(--sh-sm); }
.support-card .icon{
  width:38px; height:38px; border-radius:9px; background:var(--panel-3);
  border:1px solid var(--line); display:grid; place-items:center; flex-shrink:0;
}
.support-card .icon svg{ width:17px; height:17px; }
.support-card h4{ font-size:14.5px; font-weight:600; }
.support-card p{ font-size:13.5px; color:var(--text-dim); margin-top:4px; }
.support-card .val{ font-family:var(--font-mono); color:var(--cyan); font-size:13.5px; margin-top:6px; display:block; word-break:break-word; }
.office-card{ margin-top:14px; }

/* ---------------------------------- misc ----------------------------------- */
.badge-soft{
  display:inline-flex; align-items:center; gap:6px;
  background:var(--panel-2); border:1px solid var(--line); border-radius:100px;
  padding:5px 12px; font-size:12px; color:var(--text-dim); font-family:var(--font-mono);
}
.divider{ height:1px; background:var(--line-soft); margin:6px 0; }

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* ---- Tablet (≤ 980px) ---- */
@media (max-width:980px){
  :root{ --gutter: 24px; }
  .section{ padding:80px 0; }
  .hero{ padding:64px 0 40px; }
  .hero-grid{ grid-template-columns:1fr; gap:40px; }
  .hero .lede{ font-size:17px; }

  .feature-grid{ grid-template-columns:repeat(2,1fr); }
  .steps{ grid-template-columns:1fr; gap:16px; }
  .testimonial-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:repeat(3,1fr); gap:28px; }

  .detail-grid{ grid-template-columns:repeat(2,1fr); }
  .detail-cell{ border-right:1px solid var(--line-soft); border-bottom:1px solid var(--line-soft); }
  .detail-cell:nth-child(2n){ border-right:none; }
  .detail-cell:nth-child(3),
  .detail-cell:nth-child(4){ border-bottom:none; }

  .contact-grid{ grid-template-columns:1fr; }
  .demo-grid{ grid-template-columns:1fr 1fr; }
  .cta-band{ flex-direction:column; align-items:flex-start; padding:40px 32px; }
  .cta-form{ width:100%; }
  .cta-form input{ flex:1; width:auto; min-width:0; }

  .section-head{ margin-bottom:40px; }
}

/* ---- Mobile (≤ 700px) ---- */
/* ---- Mobile (≤ 700px) ---- */
@media (max-width:700px){
  :root{ --gutter: 16px; }

  html, body{
    width:100%;
    overflow-x:hidden;
  }
  body{ font-size:15px; }

  /* Nav becomes hamburger */
  .nav-links{ display:none; }
  .zulu-clock{ display:none; }
  .hide-mobile{ display:none; }
  .nav-burger{ display:inline-flex; }
  .site-nav .wrap{ height:60px; }
  .brand img{ height:38px; max-width:120px; }

  /* Sections */
  .section{ padding:48px 0; }
  .section-head{ margin-bottom:32px; }
  .section-head h2{ font-size:24px; line-height:1.2; }
  .section-head p{ font-size:15px; }

  /* Hero */
  .hero{ padding:32px 0 24px; }
  .hero h1{ font-size:30px; line-height:1.15; margin-top:14px; }
  .hero .lede{ font-size:15.5px; margin-top:16px; }

  /* Search card — everything stacks, nothing overflows */
  .search-card{ padding:8px; margin-top:24px; border-radius:14px; }
  .search-tabs{ padding:4px 4px 8px; }
  .search-tabs button{ font-size:12px; padding:9px 4px; }
  .search-row{ flex-wrap:wrap; padding:0 4px 4px; gap:6px; }
  .search-row input,
  .search-row select,
  .search-row .btn{
    width:100%;
    flex:1 1 100%;
    min-width:0;
  }
  .search-row input,
  .search-row select{ font-size:16px; padding:13px 12px; }
  .search-row .btn{ padding:13px 16px; }

  /* Trip toggle */
  .trip-toggle{ width:100%; }
  .trip-toggle button{ flex:1; font-size:12px; padding:8px 8px; }

  /* Hero chips */
  .hero-chips{ margin-top:14px; gap:6px; }
  .hero-chips .badge-soft{ font-size:11px; }
  .hero-chips button{ font-size:11px; padding:6px 10px; }

  /* ---- Split-flap board: keep the letters, shrink everything else ---- */
  .board{
    padding:14px;
    border-radius:14px;
    overflow:hidden;
  }
  .board-head{ padding:0 2px 12px; margin-bottom:10px; }
  .board-head .title{ font-size:10px; }
  .board-head .live{ font-size:10px; }

  .board-cols,
  .board-row{
    grid-template-columns: 1.2fr 1.6fr .7fr 1fr;
    gap:3px;
  }
  .board-cols{
    font-size:8.5px;
    letter-spacing:.03em;
    padding:0 2px 6px;
    overflow:hidden;
  }
  .board-cols span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

  .board-row{ padding:4px 2px; }

  .flap{ gap:1px; }
  .flap-char{
    width:11px;
    height:15px;
    font-size:9px;
    border-radius:2px;
  }

  .board-status{
    font-size:9px;
    padding:2px 5px;
    letter-spacing:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  /* Stat bar — 2 cols, larger numbers still fit */
  .statbar{ padding:22px 0; }
  .statbar .wrap{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px 16px;
  }
  .stat b{ font-size:22px; }
  .stat span{ font-size:10.5px; letter-spacing:.03em; }

  /* Map */
  #live-map{ height:300px; }
  #route-map,
  #return-map{ height:260px; }
  #office-map{ height:240px; }
  .map-legend{ gap:10px; padding:10px 14px; }
  .map-legend .item{ font-size:11px; }

  /* Feature / steps / testimonials — single column */
  .feature-grid,
  .steps,
  .testimonial-grid{ grid-template-columns:1fr; gap:14px; }
  .step,
  .feature,
  .testimonial{ padding:20px 18px; }
  .step h3,
  .feature h3{ font-size:16px; }
  .step p,
  .feature p,
  .testimonial p.quote{ font-size:14px; }

  /* Footer */
  .footer-grid{ grid-template-columns:1fr 1fr; gap:24px; }
  .footer-about{ grid-column:1 / -1; }
  .footer-about p{ max-width:none; font-size:13.5px; }
  .footer-grid h4{ font-size:11px; }
  .footer-grid a{ font-size:13px; }
  .footer-bottom{ flex-direction:column; align-items:flex-start; margin-top:32px; padding-top:20px; }

  /* CTA */
  .cta-band{ padding:28px 22px; border-radius:16px; gap:20px; }
  .cta-band h2{ font-size:22px; }
  .cta-band p{ font-size:14px; }
  .cta-form{ flex-direction:column; width:100%; }
  .cta-form input,
  .cta-form .btn{ width:100%; font-size:16px; }

  /* Track page */
  .track-hero{ padding:32px 0 8px; }
  .track-hero h1{ font-size:26px; margin-top:10px; }
  .track-hero p{ font-size:15px; }
  .big-search{ padding:8px; margin-top:22px; }
  .result-panel{ margin-top:26px; border-radius:14px; }
  .result-head{ padding:18px; gap:12px; }
  .flight-id{ gap:10px; }
  .flight-id .code{ font-size:18px; padding:6px 10px; }
  .flight-id .meta h2{ font-size:15px; }
  .flight-id .meta span{ font-size:12px; }
  .status-pill{ font-size:11px; padding:6px 12px; }

  /* Route strip stacks */
  .route-strip{ padding:18px; }
  .route-airports{ flex-direction:column; align-items:stretch; gap:14px; }
  .route-airports .ap{
    min-width:0;
    text-align:left;
    display:flex;
    align-items:baseline;
    gap:8px;
    flex-wrap:wrap;
  }
  .route-airports .ap .code{ font-size:20px; }
  .route-airports .ap .city{ font-size:12.5px; margin-top:0; }
  .route-airports .ap .time{ font-size:11px; margin-top:0; margin-left:auto; }
  .route-progress{ margin:0; }
  .route-progress .track-line{ margin-top:0; }
  .route-progress .pct{ margin-top:8px; font-size:11px; }

  /* Detail grid — 2 × 2 */
  .detail-grid{ grid-template-columns:1fr 1fr; }
  .detail-cell{ padding:16px 18px; }
  .detail-cell .value{ font-size:16px; }
  .detail-cell .sub{ font-size:11.5px; }

  .result-map-wrap{ padding:18px; }

  /* Return block */
  .return-block{ margin:14px; padding:16px; }
  .return-block .rb-search{ flex-direction:column; }
  .return-block .rb-search input,
  .return-block .rb-search .btn{ width:100%; font-size:16px; }

  /* Demo grid */
  .demo-grid{ grid-template-columns:1fr; gap:12px; }
  .demo-card{ padding:14px 16px; }
  .demo-card .l .code{ font-size:13px; }
  .demo-card .l .r{ font-size:12px; }

  /* Contact */
  .contact-form{ padding:22px 18px; }
  .form-row{ grid-template-columns:1fr; }
  .field label{ font-size:12px; }
  .field input, .field select, .field textarea{ font-size:16px; padding:12px; }
  .support-card{ padding:16px; gap:12px; }
  .support-card .icon{ width:32px; height:32px; }
  .support-card h4{ font-size:14px; }
  .support-card p, .support-card .val{ font-size:12.5px; }

  /* Buttons */
  .btn{ min-height:42px; font-size:14px; }

  /* FAQ */
  .faq-q{ padding:18px 2px; font-size:14.5px; }
  .faq-a{ font-size:14px; }
}

/* ---- Small phones (≤ 480px) ---- */
@media (max-width:480px){
  :root{ --gutter: 14px; }
  .hero h1{ font-size:26px; }
  .section{ padding:44px 0; }
  .section-head h2{ font-size:22px; }
  .statbar .wrap{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; gap:22px; }
  .detail-grid{ grid-template-columns:1fr; }
  .detail-cell{ border-right:none; }
  .detail-cell:not(:last-child){ border-bottom:1px solid var(--line-soft); }
  .flight-id{ flex-direction:column; align-items:flex-start; gap:8px; }
  .board-cols,
  .board-row{ grid-template-columns: 1.2fr 1.6fr .7fr 1fr; }
  .flap-char{ width:10px; height:14px; font-size:8.5px; }
}

/* ---- Small phones (≤ 480px) ---- */


/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    scroll-behavior:auto !important;
  }
}

@keyframes spin{ to{ transform:rotate(360deg); } }