/* ── Reset & Tokens ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:        #0b0d12;
    --bg-alt:    #0e1018;
    --card:      #13161e;
    --border:    #1c2030;
    --border-hi: #2a2f42;
    --blue:      #2D6DB5;
    --blue-h:    #3A7EC6;
    --blue-lo:   #7FB3E8;
    --blue-dim:  rgba(45,109,181,0.10);
    --amber:     #F0A500;
    --amber-h:   #FFB520;
    --amber-dim: rgba(240,165,0,0.10);
    --pink:      #FF1493;
    --yellow:    #FFE600;
    --red:       #CC2222;
    --green:     #4CAF72;
    --text:      #e8eaf0;
    --text-2:    #8892a4;
    --text-3:    #434a5e;
    --text-dim:  #667086;
    --font:      'Inter', system-ui, sans-serif;
    --r:         8px;
    --r-lg:      14px;
}

html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { display: block; }
a   { color: inherit; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav-wrapper {
    position: sticky; top: 0; z-index: 100;
    background: rgba(11,13,18,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s;
}
.nav-wrapper.scrolled { box-shadow: 0 2px 30px rgba(0,0,0,0.6); }

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 60px;
    flex-wrap: wrap;
}
.nav-logo {
    display: flex; align-items: center; gap: 8px;
    text-decoration: none;
    font-size: 19px; font-weight: 800; letter-spacing: -0.5px;
    flex-shrink: 0;
}
.nav-icon { width: 26px; height: 26px; border-radius: 6px; }
.logo-fly  { color: var(--blue); }
.logo-path { color: var(--amber); }

.nav-links { display: flex; list-style: none; gap: 24px; }
.nav-links a {
    color: var(--text-2); text-decoration: none;
    font-size: 14px; font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.nav-toggle {
    display: none; flex-direction: column;
    justify-content: center; gap: 5px;
    background: none; border: none; cursor: pointer;
    padding: 6px 4px; margin-left: auto;
}
.nav-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--text); border-radius: 2px;
    transition: all 0.25s;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 8px 18px; border-radius: var(--r);
    font-size: 14px; font-weight: 600; font-family: var(--font);
    cursor: pointer; text-decoration: none; border: none;
    transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.12s;
    white-space: nowrap; line-height: 1;
}
.btn:active { transform: scale(0.96); }
.btn-lg     { padding: 13px 28px; font-size: 15px; }

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-h); }

.btn-amber { background: var(--amber); color: #1a1200; }
.btn-amber:hover { background: var(--amber-h); }

.btn-ghost {
    background: transparent; color: var(--text-2);
    border: 1px solid var(--border-hi);
}
.btn-ghost:hover { color: var(--text); border-color: var(--text-3); }

/* Amber pulse glow on the primary CTA */
.pulse-amber {
    animation: amberGlow 2.8s ease-in-out infinite;
}
@keyframes amberGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(240,165,0,0.5); }
    50%       { box-shadow: 0 0 18px 6px rgba(240,165,0,0); }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
    padding: 96px 0 80px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse 70% 50% at 30% 0%,
        rgba(45,109,181,0.12) 0%, transparent 70%);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 56px;
    align-items: center;
}

/* ── Hero text ───────────────────────────────────────────────────────────── */
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(45,109,181,0.09);
    border: 1px solid rgba(45,109,181,0.25);
    color: var(--blue-lo);
    font-size: 12px; font-weight: 600;
    padding: 5px 14px; border-radius: 100px;
    margin-bottom: 24px;
    animation: fadeDown 0.6s ease both;
}
.badge-dot {
    width: 7px; height: 7px;
    background: var(--amber); border-radius: 50%;
    animation: blink 2.5s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.3; transform: scale(0.7); }
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.5px;
    margin-bottom: 18px;
    animation: fadeDown 0.6s ease 0.1s both;
}

/* Animated gradient on the second line */
.title-gradient {
    background: linear-gradient(90deg,
        var(--blue-lo) 0%, var(--amber) 50%, var(--blue-lo) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s linear infinite;
}
@keyframes gradientShift {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--text-2);
    line-height: 1.75;
    margin-bottom: 32px;
    max-width: 420px;
    animation: fadeDown 0.6s ease 0.2s both;
}

.hero-ctas {
    display: flex; gap: 10px; flex-wrap: wrap;
    margin-bottom: 24px;
    animation: fadeDown 0.6s ease 0.3s both;
}

.hero-proof {
    font-size: 12px;
    color: var(--text-3);
    animation: fadeDown 0.6s ease 0.4s both;
}
.proof-num {
    color: var(--amber);
    font-weight: 700;
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-14px); }
    to   { opacity: 1; transform: none; }
}

/* ── Hero SVG visualization ──────────────────────────────────────────────── */
.hero-visual {
    position: relative;
    display: flex;
    align-items: stretch;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--border-hi);
    box-shadow: 0 0 0 1px rgba(45,109,181,0.08),
                0 24px 64px rgba(0,0,0,0.6);
    animation: fadeUp 0.7s ease 0.2s both;
    transition: transform 0.08s linear;
    will-change: transform;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none; }
}

#missionSvg { display: block; flex: 1; min-width: 0; height: auto; }

/* Polygon */
.survey-fill {
    fill: rgba(45,109,181,0.06);
    opacity: 0;
    animation: fadeIn 0.6s ease 1.8s both;
}
.survey-border {
    fill: none;
    stroke: var(--pink);
    stroke-width: 1.5;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: drawPath 1.4s ease-out 0.5s both;
}
@keyframes drawPath {
    to { stroke-dashoffset: 0; }
}
@keyframes fadeIn {
    to { opacity: 1; }
}

/* Flight lines */
.fline {
    stroke: var(--yellow);
    stroke-width: 1.2;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    opacity: 0.9;
    animation: drawPath 0.35s ease-out both;
    animation-delay: var(--d);
}

/* Waypoints */
.wp { opacity: 0; }
.wp-start {
    fill: var(--red);
    animation: popIn 0.3s ease 2.1s both;
}
.wp-end {
    fill: var(--blue);
    animation: popIn 0.3s ease 4.1s both;
}
.wp-mid {
    fill: rgba(255,255,255,0.55);
    stroke: var(--yellow);
    stroke-width: 0.8;
    animation: popIn 0.2s ease 4.0s both;
}
@keyframes popIn {
    from { opacity: 0; transform: scale(0); transform-origin: center; }
    60%  { opacity: 1; transform: scale(1.3); }
    to   { opacity: 1; transform: scale(1); }
}

/* Drone (quadcopter group) */
.drone-grp {
    opacity: 0;
    animation: fadeIn 0.3s ease 4.2s both;
}

/* SVG text labels */
.svg-label {
    fill: var(--red);
    font-family: var(--font);
    font-size: 9px;
    font-weight: 700;
    text-anchor: middle;
    opacity: 0;
    animation: fadeIn 0.3s ease 2.3s both;
}
.svg-label-end {
    fill: var(--blue-lo);
    animation-delay: 4.3s;
}
.edge-lbl {
    fill: rgba(255,255,255,0.55);
    font-family: var(--font);
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    opacity: 0;
    animation: fadeIn 0.4s ease 2.5s both;
    pointer-events: none;
}

.svg-area-lbl {
    fill: rgba(255,255,255,0.18);
    font-family: var(--font);
    font-size: 11px;
    font-weight: 600;
    text-anchor: middle;
    letter-spacing: 0.3px;
    opacity: 0;
    animation: fadeIn 0.4s ease 2.0s both;
    pointer-events: none;
}

/* Area stat — shares bottom row with front-overlap readout */
.mp-stat-area {
    padding-top: 4px;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 2px;
}

/* Front-overlap colour coding */
.val-warn { color: #FFB800 !important; }
.val-bad  { color: #FF4444 !important; }

/* Assumption footnote at panel bottom */
.mp-note {
    font-size: 9px;
    color: rgba(255,255,255,0.25);
    padding: 5px 10px 8px;
    margin: 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    line-height: 1.5;
}

/* ── Stats bar ───────────────────────────────────────────────────────────── */
.stats-bar {
    background: var(--card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}
.stats-row {
    display: flex; align-items: center;
    justify-content: center; flex-wrap: wrap;
}
.stat {
    display: flex; flex-direction: column;
    align-items: center; gap: 2px;
    padding: 8px 32px;
}
.stat-n {
    font-size: 1.4rem; font-weight: 800;
    color: var(--amber); letter-spacing: -0.5px;
    line-height: 1;
}
.stat-l { font-size: 11px; color: var(--text-2); white-space: nowrap; }
.stat-div {
    width: 1px; height: 36px;
    background: var(--border-hi); flex-shrink: 0;
}

/* ── Section commons ─────────────────────────────────────────────────────── */
.section     { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

.eyebrow {
    font-size: 11px; font-weight: 700;
    letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--blue); text-align: center;
    margin-bottom: 10px;
}
.eyebrow-amber { color: var(--amber); }

.sec-title {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800; letter-spacing: -0.7px;
    text-align: center; line-height: 1.2;
    margin-bottom: 44px;
}

/* ── Cards ───────────────────────────────────────────────────────────────── */
.cards-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 16px;
}
.cards-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px;
    transition: border-color 0.2s, box-shadow 0.2s;
    /* 3D tilt via CSS custom props set by JS */
    transform: perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));
    transition: transform 0.12s linear, border-color 0.2s, box-shadow 0.2s;
    will-change: transform;
}
.card:hover {
    border-color: var(--border-hi);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px var(--border-hi);
}

/* Amber-accented feature cards */
.card-accent {
    border-color: rgba(240,165,0,0.18);
    background: linear-gradient(150deg, var(--amber-dim) 0%, var(--card) 60%);
}
.card-accent:hover {
    border-color: rgba(240,165,0,0.38);
    box-shadow: 0 8px 32px rgba(240,165,0,0.08), 0 0 0 1px rgba(240,165,0,0.3);
}

.card-icon { font-size: 1.8rem; margin-bottom: 14px; display: block; }
.card h3   { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.card p    { font-size: 14px; color: var(--text-2); line-height: 1.7; }

/* ── How it works ────────────────────────────────────────────────────────── */
.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
    gap: 0;
}
.step {
    flex: 1;
    text-align: center;
    padding: 0 16px;
}
.step-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 4px 28px rgba(0,0,0,0.5);
}
.step-num {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--blue);
    opacity: 0.18;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 14px;
    transition: opacity 0.4s;
}
.step:hover .step-num { opacity: 0.55; }
.step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.step p  { font-size: 14px; color: var(--text-2); line-height: 1.75; }

.step-arrow {
    font-size: 1.5rem;
    color: var(--border-hi);
    flex-shrink: 0;
    margin-top: 80px;
    transition: color 0.3s, transform 0.3s;
}
.step-arrow:hover { color: var(--blue-lo); transform: scale(1.2); }

/* ── Waitlist ─────────────────────────────────────────────────────────────── */
.waitlist-section {
    position: relative;
    padding: 96px 0;
    overflow: hidden;
}

/* Animated radial gradient background */
.waitlist-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 60% 70% at 50% 50%,
            rgba(45,109,181,0.10) 0%, transparent 70%);
    animation: wlBgPulse 6s ease-in-out infinite;
    pointer-events: none;
}
@keyframes wlBgPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.7; transform: scale(1.05); }
}

.waitlist-inner {
    position: relative; z-index: 1;
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}
.waitlist-title {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 800; letter-spacing: -0.8px;
    line-height: 1.18; margin-bottom: 16px;
}
.waitlist-sub {
    font-size: 1rem; color: var(--text-2);
    line-height: 1.75; margin-bottom: 36px;
}

.wl-row {
    display: flex; gap: 10px;
    margin-bottom: 12px;
}
.wl-input {
    flex: 1; min-width: 0;
    background: var(--card);
    border: 1px solid var(--border-hi);
    border-radius: var(--r);
    padding: 13px 16px;
    font-size: 15px; color: var(--text); font-family: var(--font);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.wl-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(45,109,181,0.15);
}
.wl-input::placeholder { color: var(--text-3); }

.wl-note { font-size: 12px; color: var(--text-3); }
.wl-success {
    display: none;
    margin-top: 16px;
    padding: 14px 20px;
    background: rgba(76,175,114,0.08);
    border: 1px solid rgba(76,175,114,0.2);
    border-radius: var(--r);
    color: var(--green);
    font-size: 14px; font-weight: 500;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--border);
    padding: 28px 0;
    background: var(--card);
}
.footer-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-links {
    display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap;
}
.footer-links a {
    font-size: 13px; color: var(--text-2);
    text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
    font-size: 12px; color: var(--text-3);
    width: 100%; text-align: center; margin-top: 8px;
}

/* ── Reveal animation ────────────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 820px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-sub    { max-width: 100%; }
    .hero-ctas   { justify-content: center; }
    .hero-visual { max-width: 600px; margin: 0 auto; }
    .hero-proof  { justify-content: center; }
    .cards-2     { grid-template-columns: 1fr; }

    .nav-links, .nav-actions { display: none; }
    .nav-toggle { display: flex; }
    .nav-links.open {
        display: flex; flex-direction: column; gap: 14px;
        width: 100%; order: 3;
        padding: 12px 0 16px;
        border-top: 1px solid var(--border);
    }
    .nav-actions.open {
        display: flex; flex-direction: column; gap: 8px;
        width: 100%; order: 4; padding-bottom: 14px;
    }
    .nav-actions.open .btn { width: 100%; justify-content: center; }
}

@media (max-width: 600px) {
    .section   { padding: 56px 0; }
    .hero      { padding: 56px 0 48px; }
    .steps     { flex-direction: column; align-items: center; gap: 8px; }
    .step      { max-width: 480px; width: 100%; }
    .step-arrow{ transform: rotate(90deg); margin: 0; }
    .step-arrow:hover { transform: rotate(90deg) scale(1.2); }
    .wl-row    { flex-direction: column; }
    .stat-div  { display: none; }
    .stat      { padding: 6px 18px; }
    .footer-inner { justify-content: center; }
    .footer-links { margin-left: 0; justify-content: center; }
}

/* ── Global reach section ────────────────────────────────────────────────── */
.reach-sub {
    text-align: center;
    color: var(--text-dim);
    font-size: 15px;
    margin: -8px auto 36px;
    max-width: 520px;
}
.reach-grid { max-width: 880px; margin: 0 auto; }
.reach-map-wrap {
    position: relative;
    width: 100%;
}
.reach-map-svg {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.reach-tip {
    position: absolute;
    background: rgba(10,14,24,0.96);
    border: 1px solid rgba(255,210,0,0.25);
    color: rgba(220,226,237,0.9);
    font-size: 13px;
    padding: 6px 13px;
    border-radius: 7px;
    pointer-events: none;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 10;
    backdrop-filter: blur(10px);
}
.reach-tip strong { color: #FFE600; }
@keyframes reachPulse {
    0%   { transform: scale(1);   opacity: 0.6; }
    70%  { transform: scale(2.2); opacity: 0;   }
    100% { transform: scale(2.2); opacity: 0;   }
}
.reach-ring {
    animation: reachPulse 2.8s ease-out infinite;
    transform-box: fill-box;
    transform-origin: center;
}
.reach-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0 28px;
    max-width: 880px;
    margin: 18px auto 0;
}
.reach-list-row {
    display: grid;
    grid-template-columns: 18px 20px 1fr auto;
    align-items: center;
    gap: 6px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.rln {
    font-size: 10px;
    font-family: 'JetBrains Mono','Courier New',monospace;
    color: rgba(255,255,255,0.2);
    text-align: right;
}
.rlf { font-size: 13px; line-height: 1; }
.rlc { font-size: 12px; color: rgba(220,226,237,0.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rlv { font-size: 12px; font-weight: 700; color: var(--amber); font-family: 'JetBrains Mono','Courier New',monospace; }
.reach-list-top .rln { color: var(--amber); }
.reach-list-top .rlc { color: rgba(255,230,0,0.85); }
@media (max-width: 700px) { .reach-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .reach-list { grid-template-columns: 1fr; } }
.reach-note {
    text-align: center;
    font-size: 11.5px;
    color: rgba(136,146,164,0.5);
    margin-top: 14px;
}

/* ── Mission parameter panel (right sidebar) ─────────────────────────────── */
.mp-panel {
    width: 204px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: rgba(9,11,17,0.97);
    border-left: 1px solid rgba(255,255,255,0.07);
}

/* Drone selector */
.mp-drone-sel {
    display: flex;
    gap: 4px;
    padding: 7px 8px;
    background: rgba(45,109,181,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}
.mp-drone-btn {
    flex: 1;
    padding: 4px 3px;
    border: 1px solid rgba(45,109,181,0.3);
    border-radius: 5px;
    background: none;
    color: rgba(160,172,190,0.65);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: background 0.14s, color 0.14s, border-color 0.14s;
    line-height: 1.3;
    text-align: center;
    font-family: system-ui, sans-serif;
}
.mp-drone-btn:hover {
    background: rgba(45,109,181,0.15);
    color: #fff;
    border-color: rgba(45,109,181,0.6);
}
.mp-drone-btn.active {
    background: rgba(45,109,181,0.22);
    border-color: var(--blue);
    color: #fff;
}

/* Stats 2×2 grid */
.mp-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 4px;
    padding: 8px 12px 10px;
    background: rgba(45,109,181,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}
.mp-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
}
.mp-stat-val {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.mp-stat-lbl {
    font-size: 9.5px;
    color: rgba(160,172,190,0.5);
    line-height: 1;
}
.mp-stat-sep { display: none; }

/* Controls — vertical stack, each takes 1/3 of remaining height */
.mp-controls {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.mp-ctrl {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 7px 12px 9px;
    gap: 5px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mp-ctrl:last-child { border-bottom: none; }
.mp-ctrl-sep { display: none; }

.mp-lbl {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: rgba(160,172,190,0.55);
    text-transform: uppercase;
    align-self: flex-start;
}

/* [−] value unit [+] row */
.mp-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}
.mp-val-wrap {
    display: flex;
    align-items: baseline;
    gap: 3px;
    min-width: 52px;
    justify-content: center;
}
.mp-num {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
}
.mp-unit {
    font-size: 11px;
    color: rgba(160,172,190,0.45);
    font-weight: 500;
}

/* ± buttons — glowing circles */
.mp-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid rgba(45,109,181,0.4);
    background: rgba(45,109,181,0.08);
    color: rgba(255,255,255,0.8);
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 1px;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.1s;
    flex-shrink: 0;
    user-select: none;
}
.mp-btn:hover {
    background: rgba(45,109,181,0.25);
    border-color: var(--blue);
    box-shadow: 0 0 12px rgba(45,109,181,0.4);
    color: #fff;
}
.mp-btn:active {
    transform: scale(0.88);
    background: rgba(45,109,181,0.38);
}

/* Filled range slider */
.mp-slider {
    width: 88%;
    -webkit-appearance: none;
    appearance: none;
    height: 3px;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    background: linear-gradient(
        to right,
        var(--blue) 0%,
        var(--blue) var(--fill, 58%),
        rgba(255,255,255,0.1) var(--fill, 58%),
        rgba(255,255,255,0.1) 100%
    );
}
.mp-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 13px; height: 13px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--blue);
    cursor: pointer;
    box-shadow: 0 0 0 3px rgba(45,109,181,0.2);
    transition: box-shadow 0.15s;
}
.mp-slider::-webkit-slider-thumb:hover {
    box-shadow: 0 0 0 5px rgba(45,109,181,0.28);
}
.mp-slider::-moz-range-thumb {
    width: 13px; height: 13px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--blue);
    cursor: pointer;
}

/* Mobile: stack panel below SVG */
@media (max-width: 700px) {
    .hero-visual { flex-direction: column; }
    .mp-panel {
        width: auto;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.07);
        flex-direction: column;
    }
    .mp-controls { flex-direction: row; }
    .mp-ctrl { border-bottom: none; border-right: 1px solid rgba(255,255,255,0.05); }
    .mp-ctrl:last-child { border-right: none; }
    .mp-stat-sep { display: block; width: 1px; height: 16px; background: rgba(255,255,255,0.1); margin: 0; }
    .mp-stats { flex-direction: row; align-items: center; gap: 0; padding: 8px 16px; }
    .mp-stat { justify-content: center; flex-direction: column; align-items: center; padding: 0 16px 0 0; gap: 2px; }
}

/* ── Polygon draw / edit tool ────────────────────────────────────────────── */

.draw-toolbar {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 5px;
    z-index: 10;
    pointer-events: auto;
}

.draw-tb-btn {
    padding: 4px 10px;
    border-radius: 5px;
    border: 1px solid rgba(255,230,0,0.3);
    background: rgba(11,13,18,0.82);
    color: rgba(255,255,255,0.7);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: inherit;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background 0.12s, border-color 0.12s, color 0.12s;
    line-height: 1.5;
    user-select: none;
}
.draw-tb-btn:hover {
    background: rgba(255,230,0,0.1);
    border-color: rgba(255,230,0,0.65);
    color: #fff;
}
.draw-tb-btn:active { transform: scale(0.94); }

.draw-tb-btn--pause {
    border-color: rgba(0,212,255,0.35);
    color: rgba(0,212,255,0.8);
}
.draw-tb-btn--pause:hover {
    background: rgba(0,212,255,0.1);
    border-color: rgba(0,212,255,0.7);
    color: #00D4FF;
}
.draw-tb-btn--pause.is-paused {
    border-color: rgba(0,212,255,0.7);
    background: rgba(0,212,255,0.12);
    color: #00D4FF;
}

/* Crosshair cursor while draw mode is active */
#missionSvg.draw-active { cursor: crosshair !important; }

/* Preview: placed-edges polyline */
.draw-preview-line {
    fill: none;
    stroke: #FFE600;
    stroke-width: 1.4;
    stroke-dasharray: 5 3;
    opacity: 0.8;
    pointer-events: none;
}

/* Rubber band segment from last vertex to cursor */
.draw-rubber {
    stroke: #FFE600;
    stroke-width: 1;
    stroke-dasharray: 3 3;
    opacity: 0.45;
    pointer-events: none;
}

/* Placed vertices while drawing */
.draw-vertex {
    fill: rgba(255,230,0,0.2);
    stroke: #FFE600;
    stroke-width: 1.5;
    pointer-events: none;
}
.draw-vertex-first {
    fill: rgba(255,230,0,0.35);
    stroke-width: 2;
}

/* Snap ring highlighting the first vertex when close enough to close */
.draw-snap-ring {
    fill: none;
    stroke: #FFE600;
    stroke-width: 1.5;
    opacity: 0.7;
    pointer-events: none;
    animation: snapPulse 0.5s ease-in-out infinite alternate;
}
@keyframes snapPulse {
    from { r: 9; opacity: 0.5; }
    to   { r: 12; opacity: 1;  }
}

/* Vertex drag handles */
.poly-handle {
    fill: rgba(255,230,0,0.08);
    stroke: #FFE600;
    stroke-width: 1.5;
    cursor: grab;
    opacity: 0;
    transition: opacity 0.18s, fill 0.12s;
}
#polyHandles:not(:empty) .poly-handle { opacity: 0.5; }
.poly-handle:hover {
    fill: rgba(255,230,0,0.3);
    opacity: 1 !important;
}
.poly-handle:active { cursor: grabbing; }

/* ── Supported Drones ────────────────────────────────────────────────────── */
.drones-sub {
    text-align: center;
    color: var(--text-2);
    font-size: 15px;
    margin: -8px auto 40px;
    max-width: 560px;
}

.drone-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.drone-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.drone-card:hover {
    border-color: var(--border-hi);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.drone-img-wrap {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #0d1019 0%, #141824 60%, #0e1118 100%);
    position: relative;
}
.drone-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s;
}
.drone-card:hover .drone-img { transform: scale(1.04); }

.drone-info {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.drone-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--blue-lo);
    background: var(--blue-dim);
    border: 1px solid rgba(45,109,181,0.25);
    border-radius: 20px;
    padding: 2px 9px;
    margin-bottom: 10px;
    align-self: flex-start;
}
.drone-badge--enterprise {
    color: var(--amber);
    background: var(--amber-dim);
    border-color: rgba(240,165,0,0.25);
}

.drone-name {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 4px;
}
.drone-tagline {
    font-size: 12.5px;
    color: var(--text-2);
    margin-bottom: 16px;
    line-height: 1.5;
}

.drone-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid var(--border);
}
.drone-specs li {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.ds-lbl {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 2px;
}
.ds-val {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.drone-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--blue-lo);
    text-decoration: none;
    padding: 8px 14px;
    border: 1px solid rgba(45,109,181,0.3);
    border-radius: 8px;
    align-self: flex-start;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.drone-link:hover {
    background: var(--blue-dim);
    border-color: rgba(45,109,181,0.6);
    color: #fff;
}

@media (max-width: 1024px) {
    .drone-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .drone-grid { grid-template-columns: 1fr; }
}
