/* ==========================================================================
   TLAR website styles
   Colors echo the app: deep night background, cyan / magenta / green symbology
   ========================================================================== */

:root {
  --bg: #04070d;
  --bg-2: #0a1120;
  --panel: rgba(18, 28, 48, 0.62);
  --panel-solid: #0f1830;
  --line: rgba(120, 160, 220, 0.16);
  --text: #e6edf7;
  --muted: #9aa8bf;
  --cyan: #2fd9f5;
  --magenta: #e24bf2;
  --green: #3ee08f;
  --amber: #ffc53d;
  --red: #ff4d5e;
  --blue: #3b82f6;
  --radius: 18px;
  --max: 1180px;
  --display: "Exo 2", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(70px, 10vw, 130px) 0; position: relative; }
.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.grad {
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: 0.03em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #3b82f6);
  color: #031018;
  box-shadow: 0 10px 30px -10px rgba(47, 217, 245, .7);
}
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.04); }
.btn-ghost:hover { background: rgba(255,255,255,.09); }
.btn svg { width: 20px; height: 20px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled, .site-header.solid {
  background: rgba(4, 7, 13, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand span { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: 0.12em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--text); text-decoration: none; }
.nav-links .btn { padding: 10px 18px; font-size: 0.9rem; color: #031018; }
.menu-toggle {
  display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 8px;
}
.menu-toggle svg { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(4, 7, 13, 0.97); border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px;
    transform: translateY(-120%); transition: transform .3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links .btn { margin-top: 16px; justify-content: center; border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden;
  padding: 110px 0 60px;
}
.hero-bg {
  position: absolute; inset: -5%;
  background: url("../img/earth-night.jpg") center / cover no-repeat;
  opacity: .55;
  animation: drift 60s ease-in-out infinite alternate;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(47,217,245,.12), transparent 55%),
    linear-gradient(180deg, rgba(4,7,13,.35) 0%, rgba(4,7,13,.55) 60%, var(--bg) 100%);
}
@keyframes drift { from { transform: scale(1.05) translateX(-2%); } to { transform: scale(1.12) translateX(2%); } }

.hero video.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45;
}

.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
}
.hero h1 { margin-bottom: 20px; font-size: clamp(3.2rem, 9vw, 6.8rem); line-height: 1; }
.hero .lede { font-size: 1.25rem; margin-bottom: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 22px; color: var(--muted); font-size: .9rem; }

.phone-stage { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: min(300px, 70vw); aspect-ratio: 1320 / 2868;
  border-radius: 46px; padding: 11px;
  background: linear-gradient(145deg, #2a3550, #0b1222);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.08), 0 0 80px -10px rgba(47,217,245,.35);
  animation: float 7s ease-in-out infinite;
}
.phone img, .phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-16px) rotate(-1deg); } }

.phone.static { animation: none; width: min(320px, 78vw); margin: 0 auto; }
.phone.sm { width: 210px; flex: 0 0 auto; border-radius: 34px; padding: 8px; animation: none; }
.phone.sm img { border-radius: 27px; }

/* Layout showcase row */
.layouts .hscroll { gap: 30px; }
.layout-item { flex: 0 0 auto; scroll-snap-align: center; text-align: center; }
.layout-item span { display: block; margin-top: 16px; font-family: var(--display); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; color: var(--muted); }

/* Terrain mosaic */
.mosaic { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; border: 1px solid var(--line); }
.mosaic img:first-child { grid-row: span 2; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pill { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-size: .85rem; color: var(--muted); }
.pill.expert { border-color: rgba(226,75,242,.5); color: var(--magenta); }

.status img { border-radius: 12px; margin-bottom: 18px; width: 100%; aspect-ratio: 662 / 600; object-fit: cover; background: #000; }

.chip {
  position: absolute; padding: 10px 14px; border-radius: 14px;
  background: rgba(10, 18, 34, .85); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: var(--display); font-weight: 700; font-size: .85rem; line-height: 1.25;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  animation: float 6s ease-in-out infinite;
}
.chip small { display: block; font-family: var(--body); font-weight: 500; color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.chip.c1 { top: 12%; left: -2%; color: var(--green); animation-delay: -1s; }
.chip.c2 { top: 46%; right: -4%; color: var(--magenta); animation-delay: -3s; }
.chip.c3 { bottom: 10%; left: 2%; color: var(--cyan); animation-delay: -5s; }

.scroll-cue {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: var(--muted); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-cue::after {
  content: ""; width: 1px; height: 36px; background: linear-gradient(var(--cyan), transparent);
  animation: cue 2s ease-in-out infinite;
}
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .phone-stage { margin-top: 30px; }
  .chip.c1 { left: 0; } .chip.c2 { right: 0; }
  .scroll-cue { display: none; }
}

/* ---------- Ticker ---------- */
.ticker {
  border-block: 1px solid var(--line); background: var(--bg-2);
  overflow: hidden; padding: 18px 0;
}
.ticker-track {
  display: flex; gap: 48px; width: max-content;
  animation: marquee 40s linear infinite;
}
.ticker-track span {
  font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: .2em;
  color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 48px;
}
.ticker-track span::after { content: "◆"; color: var(--cyan); font-size: .6rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 50px; }
.stat {
  padding: 26px 20px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--panel); text-align: center;
}
.stat b { display: block; font-family: var(--display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--cyan); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Horizontal gallery ---------- */
.hscroll-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.hscroll-controls { display: flex; gap: 10px; }
.round-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); cursor: pointer; display: grid; place-items: center;
  transition: background .2s ease, border-color .2s ease;
}
.round-btn:hover { background: rgba(47,217,245,.15); border-color: var(--cyan); }
.round-btn svg { width: 22px; height: 22px; }

.hscroll {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px max(20px, calc((100vw - var(--max)) / 2 + 20px)) 30px;
  scrollbar-width: none; cursor: grab;
}
.hscroll::-webkit-scrollbar { display: none; }
.hscroll.dragging { cursor: grabbing; scroll-snap-type: none; }
.hscroll.dragging * { pointer-events: none; }

.tile-card {
  flex: 0 0 clamp(270px, 32vw, 380px); scroll-snap-align: start;
  border-radius: 24px; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-solid), #070c18);
  display: flex; flex-direction: column;
  transition: transform .3s ease, border-color .3s ease;
}
.tile-card:hover { transform: translateY(-6px); border-color: rgba(47,217,245,.5); }
.tile-card .media { aspect-ratio: 4 / 3.6; overflow: hidden; background: #000; }
.tile-card .media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .6s ease; }
.tile-card .media img.top { object-position: top; }
.tile-card:hover .media img { transform: scale(1.05); }
.tile-card .body { padding: 22px 22px 26px; }
.tile-card .tag { font-family: var(--display); font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.tile-card h3 { margin: 6px 0 8px; }
.tile-card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Sticky story ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.story-steps { padding: 10vh 0; }
.story-step {
  min-height: 70vh; display: flex; flex-direction: column; justify-content: center;
  opacity: .28; transition: opacity .5s ease;
}
.story-step.active { opacity: 1; }
.story-step .num { font-family: var(--display); font-weight: 800; font-size: .9rem; color: var(--cyan); letter-spacing: .2em; margin-bottom: 10px; }
.story-step p { color: var(--muted); font-size: 1.08rem; }
.story-visual { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; justify-content: center; }
.story-frame {
  position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 28px; overflow: hidden;
  border: 1px solid var(--line); background: #000;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8), 0 0 60px -20px rgba(226,75,242,.4);
}
.story-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transform: scale(1.04); transition: opacity .6s ease, transform .8s ease;
}
.story-frame img.show { opacity: 1; transform: scale(1); }
.story-mobile-img { display: none; }

@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; gap: 0; }
  .story-visual { display: none; }
  .story-steps { padding: 0; }
  .story-step { min-height: 0; opacity: 1; padding: 30px 0; }
  .story-mobile-img { display: block; border-radius: 20px; border: 1px solid var(--line); margin-top: 18px; background: #000; }
}

/* ---------- Status cards (green / caution / danger) ---------- */
.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; }
.status {
  padding: 30px 26px; border-radius: var(--radius); background: var(--panel);
  border: 1px solid var(--line); border-top: 4px solid var(--c);
  position: relative; overflow: hidden;
}
.status::before {
  content: ""; position: absolute; inset: auto -40% -60% auto; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(var(--c), transparent 70%); opacity: .14;
}
.status h3 { color: var(--c); letter-spacing: .08em; }
.status p { color: var(--muted); margin: 0; }
.status.g { --c: var(--green); } .status.y { --c: var(--amber); } .status.r { --c: var(--red); }
@media (max-width: 860px) { .status-grid { grid-template-columns: 1fr; } }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.flip .split-media { order: 2; }
.split-media img { border-radius: 24px; border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(0,0,0,.9); }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; }
.checklist li { padding: 10px 0 10px 34px; position: relative; color: var(--muted); border-bottom: 1px solid var(--line); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 15px; width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle, var(--cyan) 35%, transparent 40%), rgba(47,217,245,.18);
}
.checklist li strong { color: var(--text); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.flip .split-media { order: 0; } .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto; } .mosaic img:first-child { grid-row: auto; grid-column: span 2; } }

/* ---------- Aircraft marquee ---------- */
.fleet { overflow: hidden; margin-top: 46px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.fleet-track { display: flex; gap: 22px; width: max-content; animation: marquee 70s linear infinite; }
.fleet:hover .fleet-track { animation-play-state: paused; }
.fleet-row + .fleet-row { margin-top: 22px; }
.fleet-row.reverse .fleet-track { animation-direction: reverse; animation-duration: 80s; }
.plane {
  width: 190px; flex: 0 0 auto; padding: 18px 14px 14px; border-radius: 18px;
  background: radial-gradient(circle at 50% 35%, rgba(47,217,245,.12), transparent 70%), var(--panel);
  border: 1px solid var(--line); text-align: center;
}
.plane img { height: 110px; width: 100%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0,0,0,.6)); }
.plane span { display: block; margin-top: 10px; font-family: var(--display); font-weight: 600; font-size: .9rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: 32px; padding: clamp(40px, 7vw, 80px) clamp(24px, 6vw, 70px);
  background:
    radial-gradient(circle at 15% 20%, rgba(47,217,245,.25), transparent 50%),
    radial-gradient(circle at 85% 80%, rgba(226,75,242,.22), transparent 50%),
    var(--panel-solid);
  border: 1px solid var(--line);
  display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center;
}
.cta-band img { width: 120px; }
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 24px; } }

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  padding: 150px 0 60px; position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(47,217,245,.18), transparent 55%),
    radial-gradient(ellipse at 90% 30%, rgba(226,75,242,.12), transparent 50%);
  border-bottom: 1px solid var(--line);
}
.page-hero p { color: var(--muted); font-size: 1.15rem; max-width: 680px; margin: 0; }

/* ---------- Library ---------- */
.lib-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 34px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel);
  color: var(--muted); font: 600 .9rem var(--body); cursor: pointer; transition: all .2s ease;
}
.filter:hover { color: var(--text); }
.filter.active { background: var(--cyan); border-color: var(--cyan); color: #031018; }
.search {
  flex: 1 1 260px; max-width: 360px; padding: 12px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); font: 1rem var(--body);
}
.search:focus { outline: none; border-color: var(--cyan); }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.doc {
  display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.doc:hover { text-decoration: none; transform: translateY(-4px); border-color: rgba(47,217,245,.5); background: rgba(24, 38, 66, .7); }
.doc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.doc-icon {
  width: 48px; height: 56px; border-radius: 8px; display: grid; place-items: center;
  font: 800 .7rem var(--display); letter-spacing: .06em; color: #031018; background: var(--cyan);
  clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%);
}
.doc-icon.txt { background: var(--muted); } .doc-icon.vid { background: var(--magenta); } .doc-icon.xls { background: var(--green); }
.doc-cat { font: 700 .7rem var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.doc h3 { margin: 4px 0 0; font-size: 1.15rem; }
.doc p { color: var(--muted); font-size: .94rem; margin: 0; flex: 1; }
.doc-meta { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .82rem; border-top: 1px solid var(--line); padding-top: 12px; }
.doc-meta .go { color: var(--cyan); font-weight: 600; }
.doc.featured { border-color: rgba(47,217,245,.45); box-shadow: 0 0 40px -18px rgba(47,217,245,.6); }
.badge { font: 700 .66rem var(--display); letter-spacing: .14em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: rgba(62,224,143,.15); color: var(--green); }
.empty { color: var(--muted); text-align: center; padding: 40px 0; display: none; }

/* ---------- Prose (about / legal) ---------- */
.prose { max-width: 780px; }
.prose p, .prose li { color: #c4cfe0; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.card { padding: 30px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 24px; }
.model { padding: 12px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: .95rem; display: flex; justify-content: space-between; gap: 10px; }
.model code { color: var(--cyan); font-size: .8rem; font-family: ui-monospace, Menlo, monospace; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 50px 0 40px; margin-top: 40px; color: var(--muted); font-size: .92rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   Round 2: hero duo, progress bar, lightbox, plans, story band
   ========================================================================== */

/* ---------- Scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 60; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--cyan), var(--magenta)); pointer-events: none; }

/* ---------- Hero duo ---------- */
.phone-stage { min-height: 660px; align-items: center; perspective: 1400px; }
.par { transition: transform .25s ease-out; will-change: transform; }
.par.back { position: absolute; right: -9%; top: 5%; z-index: 0; }
.par.front { position: relative; z-index: 1; margin-right: 30%; }
.par.back .phone { width: min(250px, 56vw); animation-delay: -3s; filter: brightness(.82) saturate(.95); transform-origin: center; }
.par.back .phone { animation-name: float-b; }
@keyframes float-b { 0%,100% { transform: translateY(0) rotate(5deg); } 50% { transform: translateY(12px) rotate(4deg); } }
.hero-glow { position: absolute; inset: 10% 0 5% 5%; border-radius: 50%; z-index: 0;
  background: radial-gradient(closest-side, rgba(47,217,245,.28), rgba(226,75,242,.12) 55%, transparent 75%); filter: blur(30px); }
.chip { z-index: 2; }
.chip.c1 { top: 10%; left: -9%; } .chip.c2 { top: 52%; right: 27%; } .chip.c3 { bottom: 8%; left: -5%; }
.hero-sub { font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 2.2vw, 1.6rem); color: var(--text); margin: -6px 0 18px; letter-spacing: .01em; }
@media (max-width: 860px) {
  .phone-stage { min-height: 0; }
  .par.front { margin-right: 18%; }
  .par.back { right: 0; top: 6%; }
  .par.back .phone { width: min(200px, 46vw); }
  .chip.c1 { left: 0; top: 4%; } .chip.c2 { right: 2%; top: auto; bottom: 30%; } .chip.c3 { left: 0; }
}
@media (max-width: 420px) { .chip.c2 { display: none; } }

/* ---------- Lightbox ---------- */
.zoomable { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px;
  background: rgba(2, 4, 9, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity .25s ease; cursor: zoom-out; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(100%, 1100px); max-height: calc(100vh - 110px); border-radius: 16px; border: 1px solid var(--line);
  box-shadow: 0 30px 100px rgba(0,0,0,.8); transform: scale(.96); transition: transform .25s ease; }
.lightbox.open img { transform: none; }
.lightbox figcaption { margin-top: 14px; text-align: center; color: var(--muted); font-size: .92rem; max-width: 720px; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; }
.lightbox button { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--panel-solid); color: var(--text); font-size: 1.4rem; cursor: pointer; }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; text-align: left; align-items: stretch; }
.plan { padding: 32px 28px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); position: relative; display: flex; flex-direction: column; }
.plan h3 { font-size: 1.6rem; margin-bottom: 4px; }
.plan .plan-tag { color: var(--muted); font-size: .95rem; margin-bottom: 18px; min-height: 3em; }
.plan .plus { font: 700 .72rem var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 6px 0 4px; }
.plan ul { list-style: none; padding: 0; margin: 0; }
.plan li { padding: 8px 0 8px 26px; position: relative; color: #c4cfe0; font-size: .95rem; border-bottom: 1px solid var(--line); }
.plan li:last-child { border-bottom: 0; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 12px; height: 7px; border-left: 2px solid var(--pc); border-bottom: 2px solid var(--pc); transform: rotate(-45deg); }
.plan.basic { --pc: var(--green); } .plan.pro { --pc: var(--cyan); } .plan.expert { --pc: var(--magenta); }
.plan h3 { color: var(--pc); }
.plan.expert { border-color: rgba(226,75,242,.5); background: radial-gradient(circle at 80% 0%, rgba(226,75,242,.16), transparent 55%), var(--panel);
  box-shadow: 0 0 60px -25px rgba(226,75,242,.7); }
.plan .ribbon { position: absolute; top: -12px; right: 22px; padding: 4px 12px; border-radius: 999px; background: var(--magenta); color: #14021a;
  font: 800 .68rem var(--display); letter-spacing: .14em; text-transform: uppercase; }
.plans-note { color: var(--muted); font-size: .88rem; margin-top: 26px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } .plan .plan-tag { min-height: 0; } }

/* ---------- Story band ---------- */
.origin { border-block: 1px solid var(--line); background:
  radial-gradient(ellipse at 0% 50%, rgba(47,217,245,.10), transparent 50%), var(--bg-2); }
.origin-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.origin-word { font-family: var(--display); font-weight: 800; line-height: .95; font-size: clamp(2.6rem, 7vw, 5.2rem); letter-spacing: .02em; }
.origin-word span { display: block; color: rgba(230,237,247,.28); }
.origin-word span b { color: var(--cyan); font-weight: 800; }
.origin p { color: #c4cfe0; font-size: 1.08rem; max-width: 620px; }
@media (max-width: 860px) { .origin-grid { grid-template-columns: 1fr; } }

/* ---------- About: category tags ---------- */
.model small { color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.model { align-items: center; }
.model > div { display: flex; flex-direction: column; }

a:focus-visible, button:focus-visible, .filter:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ---------- Critical message ---------- */
.critical { border-left: 4px solid var(--green); }
.critical .eyebrow { color: var(--green); }
.critical.active { border-left-color: var(--amber); background: radial-gradient(circle at 0% 0%, rgba(255,197,61,.14), transparent 60%), var(--panel); }
.critical.active .eyebrow, .critical.active h2 { color: var(--amber); }
.critical-text { white-space: pre-line; font-size: 1.08rem; color: var(--text); }
.alert-bar { display: block; background: var(--amber); color: #1a1200; text-align: center; font-weight: 600; font-size: .92rem; padding: 8px 16px; }
.alert-bar:hover { text-decoration: none; filter: brightness(1.08); }

/* ---------- Performance sources ---------- */
.src-list { display: flex; flex-direction: column; gap: 10px; }
.src { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; scroll-margin-top: 100px; }
.src[open] { border-color: rgba(47,217,245,.45); }
.src summary { list-style: none; cursor: pointer; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.src summary::-webkit-details-marker { display: none; }
.src summary::before { content: "+"; font: 700 1.2rem var(--display); color: var(--cyan); width: 18px; flex: 0 0 auto; }
.src[open] summary::before { content: "–"; }
.src-name { flex: 1; font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.src-tags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.src-cat { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.src-tags code { color: var(--cyan); font: .8rem ui-monospace, Menlo, monospace; }
.src-flag { font: 700 .64rem var(--display); letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(255,197,61,.16); color: var(--amber); }
.src dl { margin: 0; padding: 4px 20px 18px 52px; }
.src-row { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.src-row dt { font: 700 .72rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.src-row dd { margin: 0; color: #c4cfe0; font-size: .97rem; overflow-wrap: anywhere; }
.src-row dd p { margin: 0 0 .7em; } .src-row dd p:last-child { margin: 0; }
.src-caution dt, .src-caution dd { color: var(--amber); }
.src-pending { color: var(--muted) !important; font-style: italic; }
@media (max-width: 640px) { .src dl { padding-left: 20px; } .src-row { grid-template-columns: 1fr; gap: 4px; } .src-cat { display: none; } }
a.model { color: var(--text); transition: border-color .2s ease, background .2s ease; }
a.model:hover { text-decoration: none; border-color: rgba(47,217,245,.5); background: rgba(24,38,66,.7); }
.lib-banner { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 28px 30px; border-radius: 22px; margin-bottom: 40px; color: var(--text);
  border: 1px solid rgba(47,217,245,.4); background: radial-gradient(circle at 0% 0%, rgba(47,217,245,.18), transparent 55%), var(--panel-solid); transition: transform .25s ease; }
.lib-banner:hover { text-decoration: none; transform: translateY(-3px); }
.lib-banner h2 { font-size: 1.6rem; margin: 4px 0 6px; } .lib-banner p { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .lib-banner { grid-template-columns: 1fr; } }

/* ---------- Emergency Glide marquee ---------- */
.emergency { background:
    radial-gradient(ellipse at 50% 0%, rgba(255,77,94,.20), transparent 55%),
    radial-gradient(ellipse at 90% 60%, rgba(255,197,61,.08), transparent 50%), #07060b;
  border-block: 1px solid rgba(255,77,94,.28); scroll-margin-top: 60px; }
.emergency .eyebrow { color: var(--red); }
.emergency h2 { max-width: 900px; margin-left: auto; margin-right: auto; }
.grad-hot { background: linear-gradient(90deg, var(--amber), var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.em-live { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 880px; margin: 50px auto 0; }
.em-live figure { margin: 0; }
.em-live img { width: 100%; border-radius: 24px; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 30px 80px -20px rgba(0,0,0,.9), 0 0 70px -25px rgba(255,77,94,.7); }
.em-live figcaption { margin-top: 14px; color: var(--muted); font-size: .95rem; }
.em-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 60px; }
.em-step { padding: 18px 18px 24px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); }
.em-step img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 14px; margin-bottom: 18px; background: #000; }
.em-step .num { display: block; font: 800 .78rem var(--display); letter-spacing: .18em; color: var(--amber); margin-bottom: 8px; }
.em-step h3 { font-size: 1.2rem; }
.em-step p { color: var(--muted); font-size: .95rem; margin: 0; }
.em-note { margin-top: 40px; padding: 22px 26px; border-radius: 18px; border: 1px solid rgba(255,197,61,.35); background: rgba(255,197,61,.06);
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.em-note p { margin: 0; color: #d9d2bd; font-size: .95rem; }
.em-note strong { color: var(--amber); }
.btn-hot { background: linear-gradient(135deg, var(--amber), var(--red)); color: #1a0508; box-shadow: 0 10px 30px -10px rgba(255,77,94,.7); white-space: nowrap; }
@media (max-width: 860px) { .em-steps { grid-template-columns: 1fr; } .em-note { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .em-live { grid-template-columns: 1fr; max-width: 360px; } }
.tile-card.lead { border-color: rgba(255,77,94,.55); box-shadow: 0 0 50px -22px rgba(255,77,94,.8); flex-basis: clamp(290px, 36vw, 430px); }
.card-link { display: inline-block; margin-top: 12px; font-weight: 600; font-size: .92rem; color: var(--red); }
.plan li.star { color: var(--text); font-weight: 600; }
.plan li.star a { color: var(--magenta); }

/* ---------- Custom runways ---------- */
.strips { background:
    radial-gradient(ellipse at 50% 0%, rgba(62,224,143,.16), transparent 55%),
    radial-gradient(ellipse at 10% 70%, rgba(47,217,245,.07), transparent 50%), #050a09;
  border-block: 1px solid rgba(62,224,143,.25); scroll-margin-top: 60px; }
.strips .eyebrow { color: var(--green); }
.strips .em-step .num { color: var(--green); }
.strips .em-step p strong { color: var(--text); }
.grad-field { background: linear-gradient(90deg, var(--green), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.em-step img.top { object-position: top; }
.strips-result { margin-top: 60px; }
.em-note.field { border-color: rgba(62,224,143,.35); background: rgba(62,224,143,.06); }
.em-note.field p { color: #c9d9d0; } .em-note.field strong { color: var(--green); }
.btn-field { background: linear-gradient(135deg, var(--green), var(--cyan)); color: #03140c; white-space: nowrap; }
.strips .em-step img { aspect-ratio: 4 / 4.9; }

/* ---------- Close-in obstacles ---------- */
.obstacles { background:
    radial-gradient(ellipse at 50% 0%, rgba(47,217,245,.17), transparent 55%),
    radial-gradient(ellipse at 90% 70%, rgba(59,130,246,.10), transparent 50%), #04080f;
  border-bottom: 1px solid rgba(47,217,245,.25); scroll-margin-top: 60px; }
.obstacles .em-step .num { color: var(--cyan); }
.obstacles .em-step p strong { color: var(--text); }
.obstacles .em-live { max-width: 1100px; align-items: start; }
.obstacles .em-live img { box-shadow: 0 30px 80px -20px rgba(0,0,0,.9), 0 0 70px -25px rgba(47,217,245,.7); }
.grad-lidar { background: linear-gradient(90deg, var(--cyan), #6aa5ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.em-note.lidar { border-color: rgba(47,217,245,.35); background: rgba(47,217,245,.06); }
.em-note.lidar p { color: #c6d6e4; } .em-note.lidar strong { color: var(--cyan); }

/* ---------- Chicklets ---------- */
.chicklets { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px; margin-top: 30px; }
.chk-col { padding: 28px 26px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); }
.chk-count { display: block; font: 800 3rem/1 var(--display); margin-bottom: 6px; }
.chk-col h3 { margin-bottom: 6px; }
.chk-col p { color: var(--muted); font-size: .95rem; margin: 0; }
.chk-col .pill-row { margin-top: 16px; }
.pill.btnp { border-color: rgba(226,75,242,.4); color: #e9c8f0; }
.chk-col.how { background: radial-gradient(circle at 100% 0%, rgba(47,217,245,.14), transparent 60%), var(--panel); display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 900px) { .chicklets { grid-template-columns: 1fr; } }

.chk-ex { margin-top: 16px !important; font: 700 .72rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.chk-col .chk-ex + .pill-row { margin-top: 8px; }
.plan-counts { display: flex; gap: 10px; margin: 0 0 20px; }
.plan-counts span { flex: 1; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--muted); font-size: .85rem; text-align: center; }
.plan-counts b { display: block; font: 800 1.6rem/1.1 var(--display); color: var(--pc); }

/* ---------- Company card ---------- */
.card.company { padding: 36px 34px; background: radial-gradient(circle at 0% 0%, rgba(47,217,245,.14), transparent 55%), var(--panel); }
.card.company h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 14px; }
.card.company p { color: #c4cfe0; font-size: 1.08rem; max-width: 760px; }
.card.company p:last-child { margin-bottom: 0; }

/* ---------- Video ---------- */
.hero video.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.hero-shade { position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(4,7,13,.78) 0%, rgba(4,7,13,.45) 42%, rgba(4,7,13,.08) 100%),
    linear-gradient(180deg, rgba(4,7,13,.5) 0%, rgba(4,7,13,0) 20%, rgba(4,7,13,.15) 72%, var(--bg) 100%); }
@media (max-width: 860px) { .hero-shade { background: linear-gradient(180deg, rgba(4,7,13,.62) 0%, rgba(4,7,13,.5) 60%, var(--bg) 100%); } }
.media-band { margin: 22px 0 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; position: relative; }
.media-band video { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.media-band figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 14px; color: #e6edf7; font-size: .92rem;
  background: linear-gradient(180deg, transparent, rgba(4,7,13,.85)); }
@media (max-width: 640px) { .media-band video { aspect-ratio: 16 / 10; } }

/* ---------- Turnback clip ---------- */
.em-clip { background: linear-gradient(180deg, #07060b, var(--bg)); padding-top: clamp(50px, 7vw, 90px); }
.em-clip .eyebrow { color: var(--red); }
.em-clip-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 30px; }
.em-clip-head h2 { margin: 0; } .em-clip-head .lede { margin: 0; }
.em-clip .media-band { margin-top: 0; border-color: rgba(255,77,94,.3); box-shadow: 0 30px 90px -30px rgba(255,77,94,.5); }
.em-clip .media-band video { aspect-ratio: 16 / 9; }
@media (max-width: 860px) { .em-clip-head { grid-template-columns: 1fr; gap: 14px; } }

.clip-facts { margin: 16px 0 0; color: var(--muted); font-size: .88rem; text-align: center; }

.plan h3 .price { font-family: var(--body); font-weight: 600; font-size: .95rem; color: var(--text); white-space: nowrap; margin-left: 4px; }

/* ---------- Palettes ---------- */
.chicklets { grid-template-columns: 1fr 1fr; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.swatch { padding: 10px 14px; border-radius: 10px; font: 700 .85rem ui-monospace, Menlo, monospace; border: 1px solid var(--line); }
.swatch.wob { background: #000; color: #fff; }
.swatch.gob { background: #000; color: #35e06a; border-color: rgba(53,224,106,.45); }
.swatch.bow { background: #fff; color: #000; }
.phone.sm.light { background: linear-gradient(145deg, #c9d2e2, #7f8aa3); }
@media (max-width: 900px) { .chicklets { grid-template-columns: 1fr; } }
