/* ============ TOKENS ============ */
:root{
  --bg: #0A0F1C;
  --surface: #10182B;
  --surface-2: #151F38;
  --border: #212C48;
  --text: #E9EDF7;
  --text-muted: #8C96B3;
  --accent: #2DD4BF;
  --accent-dim: #1E9B8C;
  --accent-2: #F5A524;
  --accent-2-dim: #C4841A;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-1: 0 1px 0 rgba(255,255,255,0.03) inset, 0 12px 30px -14px rgba(0,0,0,0.55);
  --shadow-2: 0 24px 60px -20px rgba(0,0,0,0.6);

  --container: 1180px;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3{
  font-family: var(--font-display);
  color: var(--text);
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

p{ margin: 0 0 1em; color: var(--text-muted); }
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display:block; }

:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.section-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section-eyebrow{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-eyebrow.light{ color: #0A0F1C; opacity: .65; }

/* faint grain / vignette layer for depth */
.grain{
  position: fixed; inset:0; pointer-events:none; z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(45,212,191,0.08), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 10%, rgba(245,165,36,0.05), transparent 60%);
}

/* ============ BUTTONS ============ */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }

.btn-primary{
  background: linear-gradient(180deg, var(--accent), var(--accent-dim));
  color: #06201C;
  box-shadow: 0 10px 24px -8px rgba(45,212,191,0.55);
}
.btn-primary:hover{ box-shadow: 0 14px 30px -8px rgba(45,212,191,0.7); }

.btn-lg{ padding: 15px 28px; font-size: 16px; }

.btn-ghost{
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover{ border-color: var(--accent); color: var(--accent); }

.btn-nav{
  padding: 9px 18px;
  font-size: 14px;
  background: var(--surface-2);
  border-color: var(--border);
}
.btn-nav:hover{ border-color: var(--accent); color: var(--accent); }

/* ============ NAV ============ */
.nav{
  position: sticky; top:0; z-index: 50;
  background: rgba(10,15,28,0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display:flex; align-items:center; gap: 28px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .02em;
  margin-right: auto;
}
.brand-mark{
  display:inline-flex; align-items:center; justify-content:center;
  width: 32px; height:32px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent);
}
.brand-mark svg{ width:18px; height:18px; }

.nav-links{ display:flex; gap: 26px; }
.nav-links a{
  font-size: 14.5px; color: var(--text-muted); font-weight: 500;
  transition: color .15s ease;
}
.nav-links a:hover{ color: var(--text); }

.nav-toggle{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width: 36px; height: 36px; background:none; border:none; cursor:pointer;
}
.nav-toggle span{ display:block; height:2px; width:22px; background: var(--text); border-radius: 2px; }
.nav-mobile{ display:none; flex-direction:column; padding: 4px 24px 18px; gap: 4px; }
.nav-mobile a{ padding: 10px 0; color: var(--text-muted); border-bottom: 1px solid var(--border); font-size: 15px; }
.nav-mobile.open{ display:flex; }

/* ============ HERO ============ */
.hero{ position: relative; z-index:1; padding: 84px 0 60px; }
.hero-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--font-mono);
  font-size: 12.5px; letter-spacing:.1em; text-transform:uppercase;
  color: var(--accent);
  background: rgba(45,212,191,0.08);
  border: 1px solid rgba(45,212,191,0.25);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.dot-pulse{
  width:7px; height:7px; border-radius:50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(45,212,191,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(45,212,191,.55); }
  70%{ box-shadow: 0 0 0 8px rgba(45,212,191,0); }
  100%{ box-shadow: 0 0 0 0 rgba(45,212,191,0); }
}

.hero h1{
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.08;
  font-weight: 700;
}
.accent-text{ color: var(--accent); }

.hero-desc{ font-size: 17px; max-width: 46ch; }

.hero-actions{ display:flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 40px; }

.hero-stats{ display:flex; gap: 34px; }
.stat{ display:flex; flex-direction:column; }
.stat-num{ font-family: var(--font-display); font-weight:700; font-size: 22px; color: var(--text); }
.stat-label{ font-size: 12.5px; color: var(--text-muted); }

/* --- hero visual: route card --- */
.hero-visual{ display:flex; justify-content:center; }
.route-card{
  width: 100%; max-width: 380px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 22px 18px;
  box-shadow: var(--shadow-2);
}
.route-card-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom: 6px; }
.trip-code{ font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); letter-spacing: .04em; }
.status-pill{
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing:.04em;
  color: var(--accent);
  background: rgba(45,212,191,0.1);
  border: 1px solid rgba(45,212,191,0.3);
  padding: 4px 10px;
  border-radius: 999px;
}
.route-svg{ width: 100%; height: auto; margin: 6px 0; }
.route-path-bg{ stroke: var(--border); stroke-width: 2; fill:none; }
.route-path{
  stroke: var(--accent); stroke-width: 2.5; fill:none;
  stroke-dasharray: 6 8;
  animation: dash 2.4s linear infinite;
  opacity: .9;
}
@keyframes dash{ to{ stroke-dashoffset: -140; } }
.stop-dot{ fill: var(--bg); stroke: var(--text-muted); stroke-width: 1.6; }
.stop-dot.start{ fill: var(--accent-2); stroke: var(--accent-2); }
.stop-dot.end{ fill: var(--accent); stroke: var(--accent); }
.mover{ fill: #fff; filter: drop-shadow(0 0 6px rgba(45,212,191,.9)); }

.route-card-foot{
  display:flex; justify-content:space-between;
  border-top: 1px solid var(--border);
  padding-top: 14px; margin-top: 8px;
}
.rf-item{ display:flex; flex-direction:column; gap:3px; }
.rf-label{ font-size: 10.5px; color: var(--text-muted); text-transform:uppercase; letter-spacing:.06em; }
.rf-value{ font-size: 13px; font-weight: 600; color: var(--text); }

/* ============ FEATURES ============ */
.features{ position:relative; z-index:1; padding: 40px 0 90px; }
.features h2{ font-size: clamp(24px,3vw,32px); max-width: 20ch; }

.feature-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.feature-card{
  display:block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
  cursor: pointer;
}
.feature-card:hover{
  border-color: rgba(45,212,191,0.4);
  transform: translateY(-3px);
  background: var(--surface-2);
}
.feature-card .feature-more{
  display:inline-flex; align-items:center; gap:6px;
  margin-top: 14px;
  font-size: 13px; font-weight:600; color: var(--accent);
}
.feature-icon{
  display:inline-flex; align-items:center; justify-content:center;
  width: 42px; height:42px;
  border-radius: 11px;
  background: rgba(45,212,191,0.08);
  color: var(--accent);
  margin-bottom: 16px;
}
.feature-icon svg{ width:22px; height:22px; }
.feature-card h3{ font-size: 16.5px; margin-bottom: 8px; }
.feature-card p{ font-size: 14px; margin: 0; }

/* ============ FOUNDER ============ */
.founder{ position:relative; z-index:1; padding: 20px 0 90px; }
.founder-inner{
  display:grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items:center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
}
.founder-photo-wrap{ position:relative; width: 180px; height: 180px; justify-self:center; }
.founder-photo{
  width: 180px; height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg);
  position: relative; z-index: 2;
}
.founder-photo-ring{
  position:absolute; inset:-8px;
  border-radius:50%;
  border: 1.5px dashed rgba(45,212,191,0.4);
  z-index:1;
}
.founder-title{ color: var(--accent); font-weight:600; font-size: 14.5px; margin-bottom: 14px; }
.founder-bio{ max-width: 56ch; margin:0; }

/* ============ DOWNLOAD ============ */
.download{ position:relative; z-index:1; padding: 0 0 100px; }
.download-card{
  background: linear-gradient(120deg, var(--accent) 0%, #22B8A3 60%, var(--accent-dim) 100%);
  border-radius: var(--radius-lg);
  padding: 52px;
  display:flex; justify-content:space-between; align-items:center; gap: 32px;
  color: #06201C;
  box-shadow: var(--shadow-2);
}
.download-copy h2{ color:#06201C; font-size: clamp(24px,3vw,30px); }
.download-copy p{ color: rgba(6,32,28,0.75); max-width: 42ch; }
.download-card .btn-primary{
  background: #06201C; color: #E9EDF7;
  box-shadow: 0 10px 24px -8px rgba(6,32,28,0.4);
}
.download-card .btn-primary:hover{ box-shadow: 0 14px 30px -8px rgba(6,32,28,0.55); }
.download-note{ font-size: 12.5px; color: rgba(6,32,28,0.6); margin: 14px 0 0; }
.download-badge{
  font-family: var(--font-mono);
  writing-mode: vertical-rl;
  font-size: 12px; letter-spacing:.1em;
  color: rgba(6,32,28,0.55);
  border-left: 1.5px dashed rgba(6,32,28,0.3);
  padding-left: 18px;
  flex-shrink: 0;
}

/* ============ FOOTER ============ */
.footer{ position:relative; z-index:1; border-top: 1px solid var(--border); padding-top: 52px; }
.footer-inner{
  display:flex; justify-content:space-between; align-items:flex-start;
  flex-wrap: wrap; gap: 24px;
  padding-bottom: 32px;
}
.footer-brand p{ font-size: 13.5px; margin: 10px 0 0; max-width: 30ch; }
.footer-links{ display:flex; gap: 24px; flex-wrap: wrap; }
.footer-links a{ font-size: 14px; color: var(--text-muted); }
.footer-links a:hover{ color: var(--accent); }
.footer-bottom{
  border-top: 1px solid var(--border);
  padding: 20px 24px 28px;
}
.footer-bottom p{ font-size: 12.5px; margin:0; color: var(--text-muted); }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-visual{ order:-1; }
  .founder-inner{ grid-template-columns: 1fr; text-align:center; padding: 40px 28px; }
  .founder-bio{ margin: 0 auto; }
  .download-card{ flex-direction:column; text-align:center; }
  .download-badge{ writing-mode: horizontal-tb; border-left:none; border-top:1.5px dashed rgba(6,32,28,0.3); padding-left:0; padding-top:14px; }
}

@media (max-width: 860px){
  .nav-links{ display:none; }
  .btn-nav{ display:none; }
  .nav-toggle{ display:flex; }
  .feature-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px){
  .feature-grid{ grid-template-columns: 1fr; }
  .hero{ padding: 56px 0 40px; }
  .hero-stats{ gap: 22px; flex-wrap: wrap; }
  .download-card{ padding: 36px 24px; }
  .founder-inner{ padding: 32px 20px; }
}

/* ============ FEATURE DETAIL PAGE ============ */
.detail-hero{ position:relative; z-index:1; padding: 64px 0 20px; }
.breadcrumb{
  font-family: var(--font-mono);
  font-size: 12.5px; color: var(--text-muted);
  display:flex; align-items:center; gap: 8px;
  margin-bottom: 26px;
}
.breadcrumb a{ color: var(--accent); }
.breadcrumb a:hover{ text-decoration: underline; }

.detail-icon{
  display:inline-flex; align-items:center; justify-content:center;
  width: 56px; height:56px;
  border-radius: 14px;
  background: rgba(45,212,191,0.08);
  border: 1px solid rgba(45,212,191,0.25);
  color: var(--accent);
  margin-bottom: 22px;
}
.detail-icon svg{ width:28px; height:28px; }

.detail-hero h1{ font-size: clamp(28px, 4vw, 42px); max-width: 18ch; }
.detail-lede{ font-size: 17px; max-width: 58ch; }

.detail-body{ position:relative; z-index:1; padding: 20px 0 90px; }
.detail-grid{
  display:grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 40px;
  align-items: start;
}
.detail-main h2{ font-size: 20px; margin-top: 36px; }
.detail-main h2:first-child{ margin-top: 0; }
.detail-main p{ font-size: 15px; }
.detail-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap: 12px; }
.detail-list li{
  display:flex; gap: 12px; align-items:flex-start;
  font-size: 14.5px; color: var(--text-muted);
}
.detail-list li svg{ flex-shrink:0; width:18px; height:18px; color: var(--accent); margin-top: 2px; }

.detail-side{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  position: sticky; top: 96px;
}
.detail-side h3{ font-size: 14px; }
.detail-side-item{
  display:flex; justify-content:space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.detail-side-item:last-of-type{ border-bottom:none; }
.detail-side-item span:first-child{ color: var(--text-muted); }
.detail-side-item span:last-child{ font-weight:600; color: var(--text); }
.detail-side .btn{ width:100%; justify-content:center; margin-top: 18px; }

.detail-cta{
  display:flex; align-items:center; justify-content:space-between; gap: 20px; flex-wrap:wrap;
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.detail-cta p{ margin:0; font-size: 14.5px; }

@media (max-width: 860px){
  .detail-grid{ grid-template-columns: 1fr; }
  .detail-side{ position: static; }
}

/* ============ HELP-LINE CHAT ============ */
.chat-fab{
  position:fixed; right:20px; bottom:20px; z-index:120;
  width:58px; height:58px; border-radius:50%; border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  color:#0A0F1C; box-shadow:0 10px 28px rgba(0,0,0,.45);
  transition:transform .18s ease, box-shadow .18s ease;
}
.chat-fab:hover{ transform:translateY(-2px); }
.chat-fab svg{ width:27px; height:27px; }
.chat-widget{
  position:fixed; right:20px; bottom:88px; z-index:120;
  width:330px; max-width:calc(100vw - 40px);
  background:var(--surface); border:1px solid var(--border); border-radius:18px;
  box-shadow:var(--shadow-2); display:none; overflow:hidden; color:var(--text);
}
.chat-widget.open{ display:block; animation:chatIn .18s ease; }
@keyframes chatIn{ from{ opacity:0; transform:translateY(8px);} to{ opacity:1; transform:none;} }
.chat-head{
  display:flex; justify-content:space-between; align-items:center; gap:12px;
  padding:14px 16px; background:linear-gradient(135deg, rgba(45,212,191,.18), rgba(245,165,36,.14));
  border-bottom:1px solid var(--border);
}
.chat-head-txt strong{ display:block; font-family:var(--font-display); font-size:15px; letter-spacing:.02em; }
.chat-head-txt span{ font-size:12px; color:var(--text-muted); }
.chat-close{
  background:none; border:none; color:var(--text-muted); font-size:22px; line-height:1;
  cursor:pointer; padding:2px 6px; border-radius:8px;
}
.chat-close:hover{ color:var(--text); background:rgba(255,255,255,.06); }
.chat-body{ padding:14px 16px 16px; }
.chat-greeting{ margin:0 0 12px; font-size:13px; color:var(--text-muted); line-height:1.5; }
.chat-label{ display:block; font-size:12px; color:var(--text-muted); margin:8px 0 4px; }
.chat-input{
  width:100%; background:var(--surface-2); border:1px solid var(--border); color:var(--text);
  border-radius:10px; padding:10px 12px; font-family:var(--font-body); font-size:13.5px;
  resize:vertical; margin-bottom:4px;
}
.chat-input:focus{ outline:none; border-color:var(--accent); }
.chat-input::placeholder{ color:var(--text-muted); opacity:.75; }
.chat-status{ min-height:18px; font-size:12.5px; margin:4px 0 8px; color:var(--text-muted); }
.chat-status.ok{ color:var(--accent); }
.chat-status.err{ color:#FF7A7A; }
.chat-send{
  width:100%; border:none; cursor:pointer; border-radius:10px; padding:11px 14px;
  font-family:var(--font-display); font-weight:600; font-size:14px; color:#0A0F1C;
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
}
.chat-send:disabled{ opacity:.6; cursor:default; }
@media (max-width:520px){
  .chat-fab{ right:14px; bottom:14px; }
  .chat-widget{ right:14px; bottom:80px; }
}

.download-btns{ display:flex; flex-wrap:wrap; gap:12px; margin-top:20px; }
.download-btns .btn{ margin-top:0; }
