:root {
  --navy: #0F1331;
  --night: #0A0D24;
  --navy-2: #171C45;
  --line: rgba(196, 202, 255, .14);
  --lime: #E4F53C;
  --mist: #A9AFD6;
  --paper: #E8E6E1;
  --card: #F5F4F0;
  --ink: #0F1331;
  --ink-2: #50567A;
  --red: #FF4D3D;
  --display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --body: 'Manrope', system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --pad: clamp(20px, 5vw, 72px);
  --top: 68px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: var(--top); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--night); color: #fff; font: 500 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
a { color: inherit; }
::selection { background: var(--lime); color: var(--navy); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 10; height: var(--top);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 var(--pad);
  background: linear-gradient(rgba(10, 13, 36, .92), rgba(10, 13, 36, .7));
  border-bottom: 1px solid var(--line);
}
.brand img { display: block; height: 26px; width: auto; }
.top nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 700; }
.top nav > a:not(.btn) { color: var(--mist); text-decoration: none; transition: color .2s; }
.top nav > a:not(.btn):hover, .top nav > a.is-current { color: var(--lime); }

.lang-btn {
  background: transparent; color: #fff; cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 7px 12px;
  font: 800 12px/1 var(--body); letter-spacing: .08em;
}
.lang-btn:hover { border-color: var(--lime); }
.lang-menu {
  position: fixed; inset: auto; margin: 0; padding: 6px; min-width: 190px;
  background: var(--navy-2); color: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.lang-menu button {
  display: flex; justify-content: space-between; width: 100%; padding: 10px 12px;
  background: none; border: 0; border-radius: 10px; color: inherit; cursor: pointer; font: 600 15px var(--body);
}
.lang-menu button:hover { background: rgba(255, 255, 255, .06); }
.lang-menu button[aria-current] { color: var(--lime); }
.lang-menu button span { opacity: .55; font-size: 12px; font-weight: 800; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 1.5px solid var(--lime);
  background: var(--lime); color: var(--navy); text-decoration: none;
  font: 800 15px/1.1 var(--body); transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn-small { padding: 9px 16px; font-size: 14px; }
.btn-big { padding: 18px 30px; font-size: 17px; }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(228, 245, 60, .22); }
  .btn-ghost:hover { border-color: var(--lime); color: var(--lime); box-shadow: none; }
}
.btn:focus-visible, .lang-btn:focus-visible, a:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* ---------- type ---------- */
.eyebrow { font: 800 12px/1.2 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--lime); margin-bottom: 16px; }
h1 { font: 800 clamp(30px, 4vw, 56px)/1.08 var(--display); letter-spacing: -.02em; margin-bottom: 22px; }
h2 { font: 800 clamp(25px, 2.8vw, 40px)/1.15 var(--display); letter-spacing: -.015em; margin-bottom: 24px; text-wrap: balance; }
h3 { font: 800 clamp(18px, 1.6vw, 22px)/1.25 var(--display); }
.lead { color: #D3D7F2; font-size: clamp(16px, 1.25vw, 19px); max-width: 540px; }

/* h1 words rise one after another */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; margin-bottom: -.06em; }
.w > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .js .w > span { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 70ms + 250ms); }
}
@keyframes rise { from { transform: translateY(110%); } }

/* ---------- stage: the 3D warehouse stays put while the story scrolls over it ---------- */
.stage { position: relative; }
.scene-wrap { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#scene { display: block; width: 100%; height: 100%; }
.scene-wrap::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 13, 36, .94) 0%, rgba(10, 13, 36, .74) 30%, rgba(10, 13, 36, 0) 56%),
    linear-gradient(0deg, rgba(10, 13, 36, .55), rgba(10, 13, 36, 0) 22%);
}
.scene-fallback { display: none; }
.no-webgl #scene, .no-webgl .hud, .no-webgl .tag { display: none; }
.no-webgl .scene-fallback { display: block; position: absolute; right: 4%; top: 50%; width: min(48vw, 640px); transform: translateY(-50%); }

/* the copy slides up over the sticky scene; the scene unsticks where the stage ends */
.copy { position: relative; z-index: 1; padding: 0 var(--pad); margin-top: -100vh; margin-top: -100svh; }
.copy > * { max-width: 580px; }
.screen { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--top) + 40px) 0 64px; }

.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 34px; margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line); }
.stats dt { font: 800 24px/1.1 var(--display); color: var(--lime); white-space: nowrap; }
.stats dd { margin-top: 6px; color: var(--mist); font-size: 13px; line-height: 1.4; max-width: 150px; }

.big { display: grid; gap: 10px; padding: 26px 28px; border-radius: 22px; background: rgba(15, 19, 49, .8); border: 1px solid var(--line); }
.big b { font: 800 clamp(46px, 5.6vw, 78px)/1 var(--display); color: var(--lime); letter-spacing: -.02em; }
.big span { color: #D3D7F2; }
.facts { list-style: none; padding: 0; margin-top: 14px; }
.facts li { display: grid; grid-template-columns: 118px 1fr; gap: 18px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); }
.facts b { font: 800 19px/1.2 var(--display); }
.facts span { color: var(--mist); font-size: 15px; }

/* the steps: cards spaced a screen apart; the one in the middle drives the 3D shot */
.how-head { padding-top: 26vh; padding-bottom: 6vh; }
.step {
  position: relative; margin-bottom: 46vh; padding: 26px 28px 28px 94px;
  background: rgba(12, 15, 40, .82); border: 1px solid var(--line); border-radius: 22px;
  transition: border-color .4s, background .4s;
}
.step::before {
  content: var(--n); position: absolute; left: 26px; top: 24px;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--lime); color: var(--lime); font: 800 18px/1 var(--display);
  transition: background .4s, color .4s;
}
.step.is-on { border-color: rgba(228, 245, 60, .55); background: rgba(15, 19, 49, .9); }
.step.is-on::before { background: var(--lime); color: var(--navy); }
.step h3 { margin: 10px 0 10px; }
.step p { color: #D3D7F2; }
.step:last-child { margin-bottom: 34vh; }
.lists { list-style: none; padding: 0; display: grid; gap: 10px; margin-top: 14px; }
.lists li { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; background: rgba(228, 245, 60, .08); border: 1px solid rgba(228, 245, 60, .25); }
.lists b { color: var(--lime); }
.lists .diff { background: rgba(255, 77, 61, .1); border-color: rgba(255, 77, 61, .35); }
.lists .diff b { color: #FF7A6E; }
.lists span { color: #D3D7F2; font-size: 15px; }

.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.specs div { padding: 20px; border-radius: 18px; background: rgba(15, 19, 49, .8); border: 1px solid var(--line); }
.specs dt { font: 800 clamp(20px, 2vw, 26px)/1.1 var(--display); color: var(--lime); }
.specs dd { margin-top: 6px; color: var(--mist); font-size: 14px; line-height: 1.45; }
.parts { margin-top: 18px; color: var(--mist); font-size: 14px; }

/* HUD: the live count of the 3D drone */
.hud {
  position: absolute; right: var(--pad); bottom: 30px; width: 248px; padding: 14px 16px 6px;
  background: rgba(10, 13, 36, .78); border: 1px solid var(--line); border-radius: 16px;
  font: 500 12px/1.4 var(--mono); color: var(--mist);
}
.hud-top { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; letter-spacing: .06em; margin-bottom: 10px; }
.hud-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.hud.low .hud-dot { background: var(--red); box-shadow: 0 0 10px var(--red); }
@media (prefers-reduced-motion: no-preference) { .hud-dot { animation: blink 1.4s infinite; } }
@keyframes blink { 50% { opacity: .3; } }
.hud-where { margin-left: auto; color: var(--mist); font-weight: 500; }
.hud-row { display: flex; justify-content: space-between; }
.hud-row b { color: #fff; }
.hud.has-diff [data-hud=diff] { color: var(--red); }
.hud-bar { display: block; height: 4px; margin: 6px 0 10px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.hud-bar > i { display: block; height: 100%; width: 0; background: var(--lime); transition: width .3s; }
.hud.low .hud-batt > i { background: var(--red); }
.hud.charging .hud-batt > i { background: linear-gradient(90deg, var(--lime), #fff, var(--lime)); background-size: 200% 100%; animation: flow 1.2s linear infinite; }
@keyframes flow { to { background-position: -200% 0; } }

.tag {
  position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .35s;
  padding: 9px 13px; margin-top: -12px; border-radius: 12px; white-space: nowrap;
  background: var(--lime); color: var(--navy); font: 800 14px/1.25 var(--body);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}
.tag span { display: block; font-size: 12px; font-weight: 600; opacity: .8; }
.tag::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: inherit; transform: translateX(-50%) rotate(45deg); }
.tag.red { background: var(--red); color: #fff; }

/* ---------- light sections ---------- */
.light { background: var(--paper); color: var(--ink); padding: 110px var(--pad); }
.light .eyebrow { color: var(--ink-2); }
.sec-head { max-width: 860px; margin-bottom: 36px; }
.foot-note { margin-top: 18px; color: var(--ink-2); font-size: 15px; }

.table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border-radius: 22px; overflow: hidden; }
.table th, .table td { padding: 18px 22px; text-align: left; border-bottom: 1px solid rgba(15, 19, 49, .08); }
.table thead th { font: 800 12px/1.3 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.table tbody th { font-weight: 800; }
.table td { font-weight: 700; }
.table td.no { color: var(--ink-2); font-weight: 600; }
.table td.yes::before { content: '✓ '; }
.table tr.us th, .table tr.us td { background: var(--lime); border-bottom: 0; }
.table tr.us th { font: 800 20px/1.2 var(--display); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { padding: 28px; border-radius: 22px; background: var(--card); transition: transform .3s; }
.plan b { display: block; margin: 4px 0 12px; font: 800 clamp(24px, 2.3vw, 32px)/1.15 var(--display); }
.plan p:last-child { color: var(--ink-2); }
.plan-dark { background: var(--navy); color: #fff; }
.plan-dark .eyebrow, .plan-dark b { color: var(--lime); }
.plan-dark p:last-child { color: var(--mist); }
@media (hover: hover) { .plan:hover { transform: translateY(-4px); } }

.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.calc-form { padding: 28px; border-radius: 22px; background: var(--card); }
.calc-form h3 { margin-bottom: 22px; }
.slider { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 12px; font-weight: 700; }
.slider output { font: 800 22px/1 var(--display); }
.slider input {
  grid-column: 1 / -1; width: 100%; height: 8px; margin: 8px 0 0; border-radius: 4px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background: linear-gradient(90deg, var(--navy) var(--p, 50%), rgba(15, 19, 49, .14) var(--p, 50%));
}
.slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: var(--lime); border: 4px solid var(--navy); }
.slider input::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--lime); border: 4px solid var(--navy); }
.slider input:focus-visible { outline: 2px solid var(--navy); outline-offset: 6px; }
.freq { border: 0; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.freq legend { padding: 0; margin-bottom: 10px; font-weight: 700; }
.freq label { position: relative; }
.freq input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.freq span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1.5px solid rgba(15, 19, 49, .2); font-weight: 700; font-size: 15px; transition: background .2s, color .2s; }
.freq input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--lime); }
.freq input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }

.calc-out { display: grid; align-content: start; gap: 12px; padding: 28px; border-radius: 22px; background: var(--navy); color: #fff; }
.opt { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 12px; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); transition: border-color .3s; }
.opt > span { font-weight: 700; }
.opt b { font: 800 26px/1.1 var(--display); transition: color .3s; }
.opt small { grid-column: 1 / -1; color: var(--mist); font-size: 13px; }
.opt-bar { grid-column: 1 / -1; position: relative; height: 6px; margin-top: 8px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.opt-bar::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w, 0); background: var(--mist); transition: width .5s cubic-bezier(.2, .7, .2, 1), background .3s; }
.opt.best { border-color: var(--lime); }
.opt.best b { color: var(--lime); }
.opt.best .opt-bar::after { background: var(--lime); }
.calc-note { color: var(--lime); font-weight: 700; }

/* ---------- pilot ---------- */
.pilot { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: center; padding: 110px var(--pad); background: var(--navy); }
.pilot-card { padding: clamp(28px, 4vw, 52px); border-radius: 28px; background: var(--lime); color: var(--navy); }
.pilot-card .eyebrow { color: var(--navy); }
.pilot-card h2 { font-size: clamp(30px, 3.6vw, 52px); }
.pilot-card p:last-child { font-size: 18px; max-width: 520px; }
.pilot-side h3 { margin: 0 0 16px; }
.road { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; margin-bottom: 40px; }
.road li { display: grid; gap: 6px; padding-top: 14px; border-top: 4px solid var(--lime); }
.road b { color: var(--lime); font: 800 15px/1.2 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.road span { color: #D3D7F2; font-size: 15px; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 10px 16px; border-radius: 999px; background: var(--navy-2); border: 1px solid var(--line); font-weight: 700; font-size: 15px; }

/* ---------- contact ---------- */
.contact { justify-content: space-between; padding: calc(var(--top) + 60px) var(--pad) 28px; background: radial-gradient(ellipse at 70% 0%, rgba(228, 245, 60, .12), transparent 55%), var(--night); }
.contact-inner { max-width: 820px; margin: auto 0; }
.contact h2 { font-size: clamp(30px, 4.4vw, 62px); }
.contact .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 54px; }
.team { max-width: 640px; padding-top: 24px; border-top: 1px solid var(--line); color: #D3D7F2; display: grid; gap: 8px; }
.team b { color: #fff; }
.contact footer { display: flex; gap: 24px; justify-content: space-between; padding-top: 24px; margin-top: 60px; border-top: 1px solid var(--line); color: var(--mist); font-size: 14px; }
.contact footer a { color: var(--lime); text-decoration: none; }

/* ---------- reveals ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
  .js [data-reveal].in { opacity: 1; transform: none; }
}

/* ---------- tablets and phones ---------- */
@media (max-width: 899px) {
  :root { --top: 60px; }
  .brand img { height: 22px; }
  .top nav { gap: 10px; }
  .top nav > a:not(.btn) { display: none; }
  .scene-wrap::after { background: linear-gradient(0deg, rgba(10, 13, 36, .96) 0%, rgba(10, 13, 36, .82) 40%, rgba(10, 13, 36, 0) 70%); }
  .copy > * { max-width: 620px; }
  .screen { justify-content: flex-end; padding-bottom: 40px; }
  .hero { padding-top: 38vh; }
  .stats { gap: 18px; grid-template-columns: repeat(3, 1fr); }
  .stats dt { font-size: 19px; }
  .stats dd { font-size: 12px; }
  .how-head { padding-top: 40vh; }
  .step { padding: 22px 20px 22px 78px; margin-bottom: 70vh; }
  .step::before { left: 18px; top: 20px; width: 42px; height: 42px; font-size: 16px; }
  /* a slim strip under the header: the drone needs the space above the text */
  .hud { top: calc(var(--top) + 8px); bottom: auto; left: 12px; right: 12px; width: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; padding: 7px 12px; font-size: 11px; border-radius: 12px; }
  .hud-top { margin: 0 auto 0 0; }
  .hud-where, .hud-bar { display: none; }
  .hud-row { gap: 6px; }
  .tag { font-size: 13px; }
  .plans, .calc, .pilot { grid-template-columns: 1fr; }
  .light, .pilot { padding: 84px var(--pad); }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table th, .table td { display: block; }
  .table tr { padding: 14px 18px; border-bottom: 1px solid rgba(15, 19, 49, .08); }
  .table th, .table td { padding: 4px 0; border: 0; }
  .table tbody th { margin-bottom: 4px; }
  .table td { display: flex; justify-content: space-between; gap: 12px; }
  .table td::before { content: attr(data-label); color: var(--ink-2); font-weight: 600; }
  .table td.yes::before { content: attr(data-label); }
  .table td.yes::after { content: ' ✓'; }
}
@media (max-width: 420px) {
  h1 { font-size: 27px; }
  .facts li { grid-template-columns: 92px 1fr; gap: 12px; }
  .specs dt { font-size: 18px; }
  .road { grid-template-columns: 1fr; }
  .contact footer { flex-wrap: wrap; }
}
@media (min-width: 900px) {
  .top { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .hud { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
}
