/* ============================================================
   PILOTA LANDING — design tokens from the real app (pilota-v2)
   bg #0A0A0A · card #1A1A1A · border #2A2A2A · teal #00D4AA
   flat 1px borders, radius 20/16/10, plane rises — never falls
   ============================================================ */

:root {
  --bg: #0A0A0A;
  --bg-alt: #0D0D0D;
  --card: #161616;
  --card-2: #1A1A1A;
  --border: #2A2A2A;
  --teal: #00D4AA;
  --teal-dark: #00B891;
  --teal-ink: #0D2419;
  --teal-deep: #0A1E18;
  --teal-line: #1A4A35;
  --white: #FFFFFF;
  --text: #E8EAED;
  --text-2: #A3ADB8;
  --muted: #8B949E;
  --red: #FF4444;
  --amber: #FF8C42;
  --amber-ink: #2A1804;
  --amber-line: #4A2E10;
  --indigo: #818CF8;
  --indigo-ink: #1E1B3A;
  --indigo-line: #33306A;
  --r-card: 20px;
  --r-btn: 16px;
  --r-badge: 10px;
  --pad: 24px;
  --maxw: 1120px;
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; color-scheme: dark; }

body {
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); color: var(--white); line-height: 1.15; letter-spacing: -0.02em; }
h1, h2 { text-wrap: balance; }

a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

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

::selection { background: var(--teal); color: #062018; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--teal); color: #062018; padding: 10px 18px; border-radius: 0 0 10px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Stamps (signature element: source seals) ---------- */
.stamp {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-ink);
  border: 1px solid var(--teal-line);
  border-radius: 6px;
  padding: 3px 9px;
  white-space: nowrap;
  line-height: 1.7;
}
.stamp-amber { color: var(--amber); background: var(--amber-ink); border-color: var(--amber-line); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 15.5px; white-space: nowrap;
  border-radius: var(--r-btn);
  padding: 15px 28px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  text-decoration: none !important;
}
.btn-primary {
  background: var(--teal); color: #062018;
  box-shadow: 0 8px 28px -10px rgba(0, 212, 170, .45);
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--teal-line); color: var(--teal); }
.btn-sm { padding: 10px 20px; font-size: 14px; border-radius: 12px; }
.btn-lg { padding: 17px 36px; font-size: 17px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(10, 10, 10, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px var(--pad);
  padding-left: max(var(--pad), env(safe-area-inset-left));
  padding-right: max(var(--pad), env(safe-area-inset-right));
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none !important; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--teal-ink); border: 1px solid var(--teal-line);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.plane { width: 55%; height: 55%; fill: var(--teal); transform: rotate(-22.5deg); }
.brand-word {
  font-family: var(--font-display); font-weight: 800; font-size: 17px;
  letter-spacing: 0.28em; color: var(--white); padding-left: 0.28em;
}
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  color: var(--text-2); font-size: 14.5px; font-weight: 500;
  text-decoration: none !important; transition: color .15s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 168px var(--pad) 80px; overflow: hidden; }
.hero-glow {
  position: absolute; top: -240px; right: -160px; width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(0, 212, 170, .10) 0%, transparent 62%);
  pointer-events: none;
}
.flight-path {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: .7;
}
.flight-plane-g { opacity: .9; }
.hero-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center;
  position: relative;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--teal); background: var(--teal-ink); border: 1px solid var(--teal-line);
  border-radius: 999px; padding: 7px 16px; margin-bottom: 26px;
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.hero h1 { font-size: clamp(44px, 6vw, 72px); font-weight: 800; letter-spacing: -0.035em; }
.hero h1 .accent { color: var(--teal); }
.hero-sub { font-size: 18.5px; margin: 24px 0 34px; max-width: 34em; color: var(--text-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-legal { font-size: 13px; color: var(--muted); margin-top: 18px; }

.store-badges { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--border); border-radius: 12px; padding: 8px 16px;
  color: var(--muted); opacity: .75; cursor: default;
}
.store-badge svg { width: 20px; height: 20px; fill: currentColor; }
.store-badge small { display: block; font-size: 10px; line-height: 1.3; letter-spacing: .02em; }
.store-badge strong { display: block; font-size: 14px; color: var(--text-2); font-family: var(--font-display); line-height: 1.2; }

/* Phone mockup */
.hero-visual { position: relative; justify-self: center; }
.phone {
  width: 310px; border-radius: 44px;
  background: #141414; border: 1px solid #2E2E2E;
  padding: 10px; margin: 0;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 80px -30px rgba(0, 212, 170, .18);
  position: relative; z-index: 2;
}
.phone-screen {
  background: var(--bg); border-radius: 36px; overflow: hidden;
  padding: 12px 18px 20px; min-height: 560px;
  border: 1px solid #1E1E1E;
}
.phone-caption {
  text-align: center; font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); margin-top: 18px; letter-spacing: .04em;
}
.app-statusbar {
  display: flex; justify-content: space-between; font-size: 11px; color: var(--muted);
  font-family: var(--font-mono); padding: 2px 4px 12px;
}
.app-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.app-title { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--white); }
.app-date { font-size: 11px; color: var(--muted); }
.app-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--card-2); border: 1px solid var(--border); }
.app-segment {
  display: flex; gap: 4px; background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 4px; margin-bottom: 16px;
}
.seg { flex: 1; text-align: center; font-size: 11.5px; padding: 6px 4px; border-radius: 9px; color: var(--muted); font-weight: 500; }
.seg.active { background: var(--teal-ink); color: var(--teal); border: 1px solid var(--teal-line); }
.seg.virtual { color: var(--indigo); opacity: .8; }
.app-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.app-balance { font-family: var(--font-display); font-weight: 800; font-size: 28px; color: var(--white); margin: 2px 0 8px; font-variant-numeric: tabular-nums; }
.app-row-val, .vm-row strong { font-variant-numeric: tabular-nums; }
.app-balance .up { font-size: 14px; color: var(--teal); font-weight: 700; }
.app-spark { width: 100%; height: 54px; margin-bottom: 14px; }
.app-section {
  display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600;
  color: var(--white); margin: 6px 0 10px;
}
.app-section span { color: var(--teal); font-weight: 500; font-size: 11.5px; }
.app-row {
  display: flex; align-items: center; gap: 11px;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 12px; margin-bottom: 9px;
}
.app-ic {
  width: 34px; height: 34px; border-radius: 10px; background: var(--teal-ink);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.app-ic svg { width: 17px; height: 17px; }
.app-row-txt { flex: 1; min-width: 0; }
.app-row-txt strong, .app-row-txt small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-row-txt strong { color: var(--white); font-size: 13.5px; font-weight: 600; }
.app-row-txt small { color: var(--muted); font-size: 10.5px; }
.app-row-val { text-align: right; }
.app-row-val strong { display: block; color: var(--white); font-size: 13.5px; font-weight: 600; }
.app-row-val small { font-size: 11px; font-weight: 700; }
.up { color: var(--teal); }
.down { color: var(--red); }

/* Floating chips */
.float-chip {
  position: absolute; z-index: 3;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .8);
  animation: floaty 7s ease-in-out infinite;
}
.chip-source { top: -24px; left: -84px; }
.chip-delay { bottom: -20px; right: -96px; animation-delay: -3.5s; padding: 10px 12px; }
.chip-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--teal-ink);
  border: 1px solid var(--teal-line); color: var(--teal);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 12px;
}
.chip-body strong { display: block; color: var(--white); font-size: 13px; font-family: var(--font-display); margin-bottom: 3px; }
.chip-avatar-ai .plane { width: 46%; height: 46%; }
.chip-avatar-ai { display: inline-flex; align-items: center; justify-content: center; }
.chip-q { display: block; font-size: 12px; color: var(--text-2); white-space: nowrap; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- Stats strip ---------- */
.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); padding: 44px var(--pad) 38px; }
.stats-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
}
.stat { text-align: center; }
.stat-num { font-family: var(--font-mono); font-weight: 700; font-size: clamp(30px, 3.4vw, 42px); color: var(--teal); line-height: 1.1; }
.stat-label { font-size: 13.5px; color: var(--muted); margin-top: 6px; }

/* ---------- Sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 104px var(--pad) 0; scroll-margin-top: 76px; }
.section-alt {
  max-width: none; background: var(--bg-alt);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-top: 104px; padding: 96px var(--pad);
}
.section-alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--teal);
  margin-bottom: 16px;
}
.eyebrow::before { content: '// '; opacity: .55; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.section-sub { font-size: 17px; margin-top: 18px; }
.section-foot { max-width: 680px; margin: 44px 0 0; font-size: 15.5px; color: var(--text-2); }
.section-alt .section-head, .section-alt .section-foot { max-width: var(--maxw); width: 100%; }
.section-alt .section-head h2, .section-alt .section-head .section-sub { max-width: 680px; }
.section-alt .section-foot { margin-left: auto; margin-right: auto; }
.section-foot strong, .section-sub strong { color: var(--white); }
.micro-legal { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: 22px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.tab {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  color: var(--text-2); background: var(--card); border: 1px solid var(--border);
  border-radius: 999px; padding: 12px 22px; cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.tab:hover { border-color: var(--teal-line); color: var(--white); }
.tab.active { background: var(--teal); border-color: var(--teal); color: #062018; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Portfolio cards ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.p-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 24px;
  transition: border-color .2s ease, transform .2s ease;
}
.p-card:hover { border-color: var(--teal-line); transform: translateY(-3px); }
.p-card-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.p-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: var(--teal-ink); border: 1px solid var(--teal-line); color: var(--teal);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 15px;
}
.p-card h3 { font-size: 17px; font-weight: 700; }
.p-card-top p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.p-card-top > div { flex: 1; min-width: 0; }
.p-perf {
  text-align: right; flex-shrink: 0;
  font-family: var(--font-display); font-weight: 800; font-size: 17px;
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.p-perf small {
  display: block; font-family: var(--font-body); font-weight: 500;
  font-size: 10.5px; color: var(--muted); margin-top: 3px; letter-spacing: .02em;
}
.perf-note {
  font-size: 12.5px; color: var(--muted); margin-top: 26px; max-width: 62em; line-height: 1.6;
}
.p-desc { font-size: 14px; color: var(--text-2); margin-bottom: 18px; }
.p-stamps { display: flex; flex-wrap: wrap; gap: 8px; }

.edu-card {
  margin-top: 26px; background: var(--teal-deep); border: 1px solid var(--teal-line);
  border-radius: var(--r-card); padding: 26px 28px;
}
.edu-card .stamp { margin-bottom: 12px; }
.edu-card p:last-child { color: var(--text); font-size: 15px; max-width: 62em; }

/* ---------- Pilota AI ---------- */
.ai-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center;
}
.ai-chips { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; margin-bottom: 34px; }
.ai-chips li {
  font-size: 13.5px; color: var(--text); background: var(--card-2);
  border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px;
  transition: border-color .18s ease, color .18s ease;
}
.ai-chips li:hover { border-color: var(--teal-line); color: var(--teal); }
.ai-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ai-rule {
  display: flex; gap: 13px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 18px;
}
.rule-ic {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  background: var(--teal-ink); color: var(--teal);
  display: inline-flex; align-items: center; justify-content: center;
}
.rule-ic svg { width: 19px; height: 19px; }
.ai-rule h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.ai-rule p { font-size: 13px; color: var(--muted); line-height: 1.5; }

.phone-chat .phone-screen { min-height: 560px; display: flex; flex-direction: column; }
.ai-visual { justify-self: center; }
.chat-header {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 16px;
}
.chat-mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--teal-ink); border: 1px solid var(--teal-line);
  display: inline-flex; align-items: center; justify-content: center;
}
.chat-mark .plane { width: 50%; height: 50%; }
.chat-title { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--white); }
.chat-status { font-family: var(--font-mono); font-size: 10px; color: var(--teal); letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
.dot-live { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); display: inline-block; animation: pulse 2.4s ease-in-out infinite; }
.chat-body { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.msg { border-radius: 16px; padding: 12px 15px; font-size: 13.5px; line-height: 1.55; max-width: 88%; }
.msg-user {
  align-self: flex-end; background: var(--teal-ink); border: 1px solid var(--teal-line);
  color: var(--text); border-bottom-right-radius: 6px;
}
.msg-ai {
  align-self: flex-start; background: var(--card); border: 1px solid var(--border);
  color: var(--text); border-bottom-left-radius: 6px;
}
.msg-ai .stamp { margin-top: 10px; font-size: 9px; white-space: normal; line-height: 1.9; }
.msg-ai.hidden-msg { display: none; }
.msg-typing {
  align-self: flex-start; background: var(--card); border: 1px solid var(--border);
  display: inline-flex; gap: 5px; padding: 14px 16px; border-bottom-left-radius: 6px;
}
.msg-typing.done { display: none; }
.msg-typing span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--muted);
  animation: typing 1.2s ease-in-out infinite;
}
.msg-typing span:nth-child(2) { animation-delay: .18s; }
.msg-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes typing { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.chat-input {
  margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--card); border: 1px solid var(--border); border-radius: 999px;
  padding: 10px 10px 10px 18px; font-size: 12.5px; color: var(--muted);
}
.chat-send {
  width: 34px; height: 34px; border-radius: 50%; background: var(--teal); flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.chat-send .plane { width: 45%; height: 45%; fill: #062018; }

/* ---------- Steps ---------- */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  list-style: none; counter-reset: step;
}
.step {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 30px 28px; position: relative;
}
.step-num {
  font-family: var(--font-mono); font-weight: 700; font-size: 15px;
  color: var(--teal); background: var(--teal-ink); border: 1px solid var(--teal-line);
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { font-size: 14.5px; color: var(--text-2); }
.step p strong { color: var(--white); }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 28px; position: relative;
  transition: border-color .2s ease, transform .2s ease;
}
.tile:hover { border-color: var(--teal-line); transform: translateY(-3px); }
.tile h3 { font-size: 18px; margin-bottom: 10px; }
.tile p { font-size: 14px; color: var(--text-2); }
.tile-virtual { grid-column: span 2; border-color: var(--indigo-line); }
.tile-virtual:hover { border-color: var(--indigo); }
.tile-badge {
  position: absolute; top: 22px; right: 22px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .1em;
  color: var(--indigo); background: var(--indigo-ink); border: 1px solid var(--indigo-line);
  border-radius: 6px; padding: 3px 9px;
}
.virtual-demo { margin-top: 18px; }
.v-chip {
  font-size: 12.5px; color: var(--indigo); background: var(--indigo-ink);
  border: 1px solid var(--indigo-line); border-radius: 999px; padding: 6px 14px;
}
.vm-alloc {
  margin-top: 20px; background: rgba(30, 27, 58, .35); border: 1px solid var(--indigo-line);
  border-radius: 14px; padding: 16px 18px;
}
.vm-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.vm-row span { font-size: 12px; color: var(--indigo); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.vm-row strong { font-family: var(--font-display); font-weight: 800; color: var(--white); font-size: 17px; }
.vm-bar { display: flex; gap: 3px; height: 10px; border-radius: 6px; overflow: hidden; }
.vm-bar i { border-radius: 3px; }
.vm-bar i:nth-child(1) { background: var(--indigo); }
.vm-bar i:nth-child(2) { background: #5A63C4; }
.vm-bar i:nth-child(3) { background: var(--indigo-line); }
.vm-legend { display: flex; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.vm-legend span { font-size: 11px; color: var(--muted); font-family: var(--font-mono); }
.tile-wide {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 32px; justify-content: space-between;
}
.tile-wide p { max-width: 52em; }
.tile-wide .p-stamps { flex-shrink: 0; flex-direction: column; align-items: flex-end; }
.treemap { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 18px; height: 96px; }
.treemap span {
  flex: 1 1 calc(var(--w) - 4px); height: calc(var(--h) - 2px);
  background: var(--teal-ink); border: 1px solid var(--teal-line); border-radius: 8px;
  font-family: var(--font-mono); font-size: 10px; color: var(--teal);
  display: inline-flex; align-items: flex-end; padding: 5px 7px;
}
.treemap .tm-down { background: #2A0F0F; border-color: #4A1E1E; color: var(--red); }
.treemap .tm-flat { background: var(--card-2); border-color: var(--border); color: var(--muted); }
.risk-chips { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.risk-chips span { font-size: 12px; border-radius: 999px; padding: 5px 13px; border: 1px solid; }
.risk-c { color: #60A5FA; background: #0A1A2A; border-color: #1E3A5F; }
.risk-m { color: #FFD166; background: #1A1500; border-color: #3A2F10; }
.risk-a { color: var(--amber); background: var(--amber-ink); border-color: var(--amber-line); }

/* ---------- Seguridad ---------- */
.seg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.seg-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 26px;
}
.seg-ic {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--teal-ink); color: var(--teal);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.seg-ic svg { width: 21px; height: 21px; }
.seg-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.seg-card p { font-size: 13.5px; color: var(--text-2); }

/* ---------- Planes ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.plan {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 30px 28px;
}
.plan h3 { font-size: 21px; }
.plan-tag { font-size: 13px; color: var(--muted); margin: 4px 0 20px; }
.plan ul { list-style: none; display: grid; gap: 11px; }
.plan li { font-size: 14px; color: var(--text-2); padding-left: 26px; position: relative; }
.plan li::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 15px; height: 15px;
  background: var(--teal-ink); border: 1px solid var(--teal-line); border-radius: 50%;
}
.plan li::after {
  content: ''; position: absolute; left: 4.5px; top: 8.5px; width: 6px; height: 3.5px;
  border-left: 1.6px solid var(--teal); border-bottom: 1.6px solid var(--teal);
  transform: rotate(-45deg);
}
.plan-featured { border-color: var(--teal-line); background: linear-gradient(180deg, rgba(13, 36, 25, .55), var(--card) 55%); position: relative; }
.plan-badge {
  position: absolute; top: -13px; left: 28px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #062018; background: var(--teal);
  border-radius: 999px; padding: 5px 13px;
}

/* ---------- Misión ---------- */
.mision { text-align: left; }
.mision-inner { max-width: 780px; margin: 0 auto; }
.mision h2 { font-size: clamp(28px, 3.6vw, 40px); }
.mision-body { margin-top: 26px; display: grid; gap: 18px; }
.mision-body p { font-size: 16.5px; }
.mision-body strong { color: var(--white); }
.mision-contact { margin-top: 34px; font-size: 15px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--white);
  padding: 22px 44px 22px 0; position: relative;
  transition: color .15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--teal); }
.faq-item summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 22px; color: var(--teal);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 0 24px; max-width: 60em; font-size: 15px; }

/* ---------- CTA final ---------- */
.cta-final { padding: 104px var(--pad); }
.cta-inner {
  max-width: 880px; margin: 0 auto; text-align: center;
  background: linear-gradient(180deg, var(--teal-deep), var(--bg-alt) 90%);
  border: 1px solid var(--teal-line); border-radius: 28px;
  padding: 72px 40px 60px;
  position: relative; overflow: hidden;
}
.cta-inner::before {
  content: ''; position: absolute; top: -160px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 320px;
  background: radial-gradient(ellipse, rgba(0, 212, 170, .16), transparent 70%);
  pointer-events: none;
}
.cta-mark {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--teal-ink); border: 1px solid var(--teal-line);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 28px; position: relative;
}
.cta-mark .plane { width: 46%; height: 46%; }
.cta-final h2 { font-size: clamp(28px, 3.8vw, 42px); max-width: 18em; margin: 0 auto; }
.cta-final p { margin: 20px auto 34px; max-width: 36em; }
.cta-final .hero-actions { justify-content: center; }
.cta-final .hero-legal { margin-top: 20px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 64px var(--pad) 44px; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto 52px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
}
.footer-tag { font-family: var(--font-display); color: var(--text-2); margin-top: 16px; font-weight: 600; }
.footer-contact { margin-top: 8px; font-size: 14px; }
.footer-col h3 {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px; font-weight: 700;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-2); font-size: 14px; text-decoration: none; }
.footer-col a:hover { color: var(--teal); }
.footer-legal {
  max-width: var(--maxw); margin: 0 auto;
  border-top: 1px solid var(--border); padding-top: 32px;
  display: grid; gap: 14px;
}
.footer-legal p { font-size: 12.5px; color: var(--muted); line-height: 1.7; max-width: 74em; }
.footer-legal strong { color: var(--text-2); }
.footer-copy { font-family: var(--font-mono); font-size: 12px !important; margin-top: 10px; }

/* ---------- Legal pages ---------- */
.legal-main { max-width: 760px; margin: 0 auto; padding: 140px var(--pad) 80px; }
.legal-main h1 { font-size: clamp(30px, 4.4vw, 42px); font-weight: 800; margin-bottom: 10px; }
.legal-date { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.legal-intro {
  background: var(--teal-deep); border: 1px solid var(--teal-line); border-radius: var(--r-card);
  padding: 22px 26px; margin: 28px 0 40px; font-size: 15px; color: var(--text);
}
.legal-main h2 { font-size: 21px; font-weight: 700; margin: 42px 0 14px; }
.legal-main h3 { font-size: 16.5px; font-weight: 700; margin: 26px 0 10px; }
.legal-main p, .legal-main li { font-size: 15px; color: var(--text-2); margin-bottom: 12px; }
.legal-main ul { padding-left: 22px; margin-bottom: 14px; }
.legal-main li { margin-bottom: 8px; }
.legal-main strong { color: var(--white); }
.legal-foot { border-top: 1px solid var(--border); margin-top: 52px; padding-top: 24px; }
.legal-foot p { font-size: 13px; color: var(--muted); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .flight-plane-g { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .seg-grid { grid-template-columns: 1fr 1fr; }
  .ai-grid { grid-template-columns: 1fr; gap: 48px; }
  .ai-visual { justify-self: start; }
  .hero-inner { grid-template-columns: 1fr; gap: 72px; }
  .hero-visual { justify-self: start; margin-left: 96px; }
  .flight-path { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction: column; gap: 0; padding: 8px 0; display: none;
  }
  .nav-links a { padding: 14px var(--pad); font-size: 16px; }
  .nav.open .nav-links { display: flex; }
  .nav-burger { display: block; }
  .nav.open .nav-burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav.open .nav-burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
}

@media (max-width: 720px) {
  .hero { padding-top: 130px; }
  .hero-pill { font-size: 11px; letter-spacing: .03em; }
  .hero-visual { margin-left: 0; justify-self: center; }
  .phone { width: 300px; }
  .chip-source { left: -10px; top: -22px; }
  .chip-delay { right: -8px; bottom: -16px; }
  .phone-caption { margin-top: 34px; }

  .stats-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .cards-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .tile-virtual { grid-column: auto; }
  .tile-wide { grid-column: auto; flex-direction: column; align-items: flex-start; gap: 18px; }
  .tile-wide .p-stamps { flex-direction: row; align-items: flex-start; }
  .seg-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan-featured { order: -1; }
  .ai-rules { grid-template-columns: 1fr; }
  .section { padding-top: 76px; }
  .section-alt { padding: 68px var(--pad); margin-top: 76px; }
  .cta-final { padding: 76px var(--pad); }
  .cta-inner { padding: 56px 24px 48px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .nav-inner { gap: 12px; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn-sm { padding: 9px 13px; font-size: 13px; }
  .nav-burger { padding: 10px 8px; margin-right: -8px; }
  .brand-word { font-size: 15px; letter-spacing: 0.22em; padding-left: 0.22em; }
  .brand-mark { width: 34px; height: 34px; }
}
