:root {
  --bg: #070b10;
  --panel: rgba(12, 20, 28, 0.78);
  --panel-strong: #101a23;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f8fb;
  --muted: #9cafb8;
  --cyan: #39e6ff;
  --green: #9cff5a;
  --amber: #ffb84d;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 70% 16%, rgba(57, 230, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 20% 70%, rgba(156, 255, 90, 0.08), transparent 24rem),
    linear-gradient(180deg, #05080d 0%, #08111a 44%, #070b10 100%);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 100% 4px;
  z-index: 10;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(20px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 8, 13, 0.78);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(57,230,255,.5);
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
  background: rgba(57, 230, 255, 0.08);
}
.brand strong { display: block; font-size: 0.98rem; }
.brand small { display: block; color: var(--muted); font-size: 0.74rem; margin-top: 2px; }
nav { display: flex; gap: 28px; color: #c6d3d8; font-size: 0.9rem; font-weight: 700; }
nav a:hover { color: var(--cyan); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line);
  font-weight: 800;
  font-size: 0.92rem;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary {
  color: #061016;
  background: linear-gradient(135deg, var(--cyan), #a8ffef);
  border-color: transparent;
  box-shadow: 0 16px 40px rgba(57, 230, 255, 0.2);
}
.button.secondary, .button.ghost {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}
.button.ghost { color: var(--cyan); border-color: rgba(57,230,255,.42); }

.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(320px, .84fr) minmax(440px, 1.16fr);
  align-items: center;
  gap: 46px;
  padding: 72px clamp(20px, 5vw, 76px) 60px;
}
.hero-copy h1,
.section-head h2,
.training-section h2,
.download-section h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.02;
  font-weight: 900;
}
.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(3.1rem, 6.2vw, 6.8rem);
}
.hero-copy p {
  max-width: 650px;
  color: #b8c7cd;
  font-size: 1.08rem;
  line-height: 1.8;
  margin: 24px 0 0;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.telemetry-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 34px;
}
.telemetry-row article {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  padding: 16px;
}
.telemetry-row span {
  display: block;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  text-transform: uppercase;
}
.telemetry-row strong { display: block; margin-top: 8px; color: var(--green); font-size: 1.15rem; }

.hero-visual {
  position: relative;
  min-height: 590px;
  perspective: 1400px;
  transform-style: preserve-3d;
}
.drone-stage {
  position: absolute;
  inset: -10px 0 auto 0;
  height: 400px;
  z-index: 3;
  pointer-events: none;
}
#droneCanvas {
  position: relative;
  z-index: 4;
  display: block;
  width: 100%;
  height: 100%;
}
.drone-body {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 260px;
  height: 260px;
  transform: translate(-50%, -50%) translateZ(70px);
  transform-style: preserve-3d;
  animation: droneFloat 5.8s ease-in-out infinite;
}
.drone-shadow {
  position: absolute;
  left: 50%;
  top: 78%;
  width: 300px;
  height: 90px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(57,230,255,.18), rgba(0,0,0,0) 64%);
  filter: blur(12px);
}
.arm {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 250px;
  height: 14px;
  margin-left: -125px;
  margin-top: -7px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(191,248,255,.85) 18%, #162834 50%, rgba(191,248,255,.85) 82%, transparent);
  box-shadow: 0 0 24px rgba(57,230,255,.28);
}
.arm-y { transform: rotate(90deg); }
.core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  transform: translate(-50%, -50%) translateZ(42px);
  border: 1px solid rgba(57,230,255,.62);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 34%, rgba(57,230,255,.55), transparent 18%),
    linear-gradient(145deg, #233542, #0d171f 65%);
  box-shadow: 0 18px 50px rgba(0,0,0,.55), inset 0 0 24px rgba(57,230,255,.16);
}
.camera-eye {
  position: absolute;
  left: 50%;
  top: 63%;
  width: 38px;
  height: 28px;
  transform: translate(-50%, -50%) translateZ(72px);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #d9ffff 0 16%, var(--cyan) 17% 30%, #071016 31% 100%);
  box-shadow: 0 0 28px rgba(57,230,255,.8);
}
.rotor {
  position: absolute;
  width: 122px;
  height: 122px;
  margin: -61px 0 0 -61px;
  border: 1px solid rgba(57,230,255,.35);
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, rgba(57,230,255,.06), rgba(57,230,255,.55), rgba(57,230,255,.06), transparent 42%, rgba(156,255,90,.3), transparent 64%, rgba(57,230,255,.06));
  box-shadow: 0 0 34px rgba(57,230,255,.22);
  transform: translateZ(34px);
  animation: rotorSpin .32s linear infinite;
}
.rotor::after {
  content: "";
  position: absolute;
  inset: 47px 10px;
  border-radius: 999px;
  background: rgba(223,255,255,.82);
  filter: blur(1px);
}
.r1 { left: 16%; top: 16%; }
.r2 { left: 84%; top: 16%; }
.r3 { left: 16%; top: 84%; }
.r4 { left: 84%; top: 84%; }
.altitude-ring {
  position: absolute;
  left: 50%;
  top: 76%;
  border: 1px solid rgba(57,230,255,.22);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.ring-one { width: 420px; height: 170px; animation: ringPulse 3s ease-in-out infinite; }
.ring-two { width: 540px; height: 210px; animation: ringPulse 3s ease-in-out infinite .7s; opacity: .5; }
.hud-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(57,230,255,.34);
  background: #0d151d;
  box-shadow: var(--shadow);
  transform: translateY(120px) translateZ(-80px) rotateY(-10deg) rotateX(4deg);
  z-index: 2;
}
.hud-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  opacity: .92;
}
.hud-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(57,230,255,.18) 1px, transparent 1px),
    linear-gradient(rgba(57,230,255,.12) 1px, transparent 1px);
  background-size: 56px 56px;
  mix-blend-mode: screen;
  opacity: .35;
}
.reticle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(57,230,255,.7);
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
.reticle::before, .reticle::after {
  content: "";
  position: absolute;
  background: rgba(57,230,255,.8);
}
.reticle::before { width: 130px; height: 1px; left: -20px; top: 45px; }
.reticle::after { width: 1px; height: 130px; left: 45px; top: -20px; }
.hud-corner { position: absolute; width: 34px; height: 34px; border-color: var(--cyan); }
.tl { left: 14px; top: 14px; border-left: 2px solid; border-top: 2px solid; }
.tr { right: 14px; top: 14px; border-right: 2px solid; border-top: 2px solid; }
.bl { left: 14px; bottom: 14px; border-left: 2px solid; border-bottom: 2px solid; }
.br { right: 14px; bottom: 14px; border-right: 2px solid; border-bottom: 2px solid; }
.flight-card {
  position: absolute;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(8, 14, 20, .84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  z-index: 5;
}
.flight-card span {
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: .72rem;
  text-transform: uppercase;
}
.flight-card strong { display: block; margin-top: 8px; }
.card-a { left: -22px; top: 56px; }
.card-b { right: -16px; bottom: 44px; }
.card-c { left: 34%; bottom: -8px; }

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 clamp(20px, 5vw, 76px);
  border: 1px solid var(--line);
  background: var(--line);
}
.feature-band article {
  min-height: 190px;
  padding: 26px;
  background: rgba(12,20,28,.9);
}
.feature-band span {
  color: var(--green);
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
}
.feature-band strong { display: block; margin-top: 22px; font-size: 1.28rem; }
.feature-band p, .section-head p, .training-section p, .download-section p {
  color: var(--muted);
  line-height: 1.7;
}

.screens-section, .training-section, .download-section {
  padding: 90px clamp(20px, 5vw, 76px);
}
.section-head {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 520px);
  gap: 34px;
  align-items: end;
  margin-bottom: 34px;
}
.section-head h2, .training-section h2, .download-section h2 {
  font-size: clamp(2.1rem, 4vw, 4.6rem);
}
.screen-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
}
.screen {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 12px;
}
.screen img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}
.screen.large img { min-height: 520px; }
figcaption {
  color: #d4e1e6;
  font-weight: 800;
  padding: 14px 4px 2px;
}

.training-section {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 36px;
  background: rgba(255,255,255,.035);
}
.training-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.training-list article {
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(12,20,28,.78);
}
.training-list b { display: block; color: var(--cyan); font-size: 1.2rem; }
.training-list span { display: block; color: var(--muted); margin-top: 10px; line-height: 1.6; }

.download-section {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
}
.download-section div { max-width: 760px; }

@media (max-width: 980px) {
  nav { display: none; }
  .hero, .section-head, .screen-grid, .training-section { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hud-frame { transform: none; }
  .drone-stage { inset: -10px 0 auto 0; height: 340px; transform: none; }
  .feature-band { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar { height: auto; min-height: 72px; }
  .button.ghost { display: none; }
  .hero { padding-top: 44px; }
  .hero-copy h1 { font-size: clamp(2.4rem, 13vw, 4rem); }
  .telemetry-row, .training-list { grid-template-columns: 1fr; }
  .flight-card { position: static; margin-top: 10px; }
  .drone-stage { position: relative; height: 260px; inset: auto; margin: -16px 0 12px; transform: none; }
  .download-section { display: grid; }
  .screen img, .screen.large img { min-height: 260px; }
}

@keyframes rotorSpin {
  to { rotate: 360deg; }
}

@keyframes droneFloat {
  0%, 100% { transform: translate(-50%, -50%) translateZ(70px) rotateZ(-1deg); }
  50% { transform: translate(-50%, -54%) translateZ(92px) rotateZ(2deg); }
}

@keyframes ringPulse {
  0%, 100% { opacity: .18; scale: .96; }
  50% { opacity: .55; scale: 1.04; }
}
