:root {
  --ink: #111018;
  --night: #100a13;
  --panel: #1a101d;
  --pink: #ed2b7c;
  --pink-soft: #ffe4f0;
  --yellow: #ffd22e;
  --cyan: #63e8f2;
  --paper: #fffaf3;
  --white: #fff;
  --muted: #6c6170;
  --line: #e4d8df;
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body::before { content: ""; position: fixed; z-index: -1; inset: 0; opacity: .45; background-image: linear-gradient(rgba(80, 44, 66, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(80, 44, 66, .07) 1px, transparent 1px); background-size: 30px 30px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p { color: var(--muted); font-size: 17px; line-height: 1.7; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.055em; line-height: .98; }
h1 { margin-bottom: 24px; font-size: clamp(54px, 8.2vw, 108px); }
h2 { margin-bottom: 18px; font-size: clamp(36px, 5vw, 64px); }
h3 { margin-bottom: 10px; font-size: 25px; }
.shell { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.drone-header { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid var(--line); }
.drone-brand { display: flex; align-items: center; gap: 12px; font-weight: 950; line-height: 1.05; }
.drone-brand img { width: 52px; height: 52px; object-fit: contain; }
.drone-brand span { font: 800 11px/1.25 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; }
.drone-nav { display: flex; align-items: center; gap: 20px; color: #635567; font-weight: 850; }
.drone-nav a { padding-block: 8px; border-bottom: 2px solid transparent; }
.drone-nav a:hover, .drone-nav a[aria-current="page"] { color: var(--ink); border-color: var(--pink); }
.section { padding: 82px 0; }
.kicker { margin: 0 0 16px; color: #b6135a; font: 900 13px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; }
.lead { max-width: 680px; color: #594a5e; font-size: 21px; line-height: 1.6; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 21px; border: 2px solid var(--ink); border-radius: 999px; background: var(--ink); color: white; font-weight: 950; gap: 13px; transition: transform .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 5px 6px 0 var(--yellow); }
.button.yellow { border-color: var(--yellow); background: var(--yellow); color: var(--ink); }
.button.ghost { background: transparent; color: var(--ink); }
.hero { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 54px; min-height: calc(100vh - 86px); }
.hero em { color: var(--pink); font-style: normal; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.flight-window { position: relative; min-height: 610px; overflow: hidden; border: 1px solid #432a3d; border-radius: 34px; background: radial-gradient(circle at 70% 23%, rgba(255, 210, 46, .18), transparent 30%), radial-gradient(circle at 25% 64%, rgba(237, 43, 124, .24), transparent 34%), var(--night); box-shadow: 0 26px 75px rgba(52, 12, 39, .26); }
.flight-window::before { content: ""; position: absolute; inset: 8%; border: 1px solid rgba(99, 232, 242, .32); border-radius: 50%; transform: rotate(-12deg); }
.flight-window::after { content: "LOS // MANUAL CONTROL // HACKABLE"; position: absolute; left: 25px; bottom: 22px; color: var(--yellow); font: 800 12px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .11em; }
.flight-window img { position: absolute; inset: 50% auto auto 50%; width: 112%; max-width: none; transform: translate(-50%, -50%) rotate(-2deg); filter: saturate(1.07); }
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.stat-strip div { padding: 15px 16px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.7); }
.stat-strip strong { display: block; font-size: 20px; }
.stat-strip span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 800; }
.dark-band { color: white; background: var(--night); }
.dark-band .kicker { color: var(--yellow); }
.dark-band p { color: #cdbdca; }
.section-head { max-width: 760px; margin-bottom: 38px; }
.path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.path-card { position: relative; min-height: 340px; padding: 28px; overflow: hidden; border: 1px solid #56364d; border-radius: 26px; background: #1b111e; transition: transform .18s ease, border-color .18s ease; }
.path-card:hover { transform: translateY(-5px); border-color: var(--yellow); }
.path-card span, .card-code { color: var(--cyan); font: 850 12px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .11em; }
.path-card b { display: block; margin: 38px 0 28px; color: var(--yellow); font-size: 54px; line-height: 1; }
.path-card h3 { color: white; font-size: 34px; }
.path-card p { color: #bfaebc; font-size: 15px; }
.path-card strong { position: absolute; left: 28px; bottom: 25px; color: var(--yellow); }
.kit-story { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 50px; }
.photo-card { padding: 14px; border: 1px solid var(--line); border-radius: 28px; background: white; box-shadow: 0 20px 55px rgba(50, 22, 42, .13); }
.photo-card img { width: 100%; border-radius: 19px; }
.photo-card figcaption { padding: 13px 6px 3px; color: var(--muted); font-size: 13px; font-weight: 750; }
.check-list { display: grid; gap: 12px; margin-top: 25px; }
.check-list div { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.68); font-weight: 800; }
.check-list span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--pink); color: white; }
.feedback { display: grid; grid-template-columns: .8fr 1.2fr; gap: 52px; align-items: center; }
.feedback-loop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-items: center; }
.feedback-loop div { position: relative; padding: 25px 12px; border: 1px solid #4b3147; border-radius: 18px; background: var(--panel); color: white; text-align: center; font-weight: 900; }
.feedback-loop div:not(:last-child)::after { content: "→"; position: absolute; z-index: 2; right: -14px; color: var(--yellow); }
.safety { display: grid; grid-template-columns: auto 1fr; gap: 18px; margin-top: 28px; padding: 22px; border: 2px solid #e5b900; border-radius: 22px; background: #fff6bd; }
.safety b { font-size: 30px; }
.safety p { margin: 0; color: #574b1b; }
.drone-footer { min-height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); color: var(--muted); }
.drone-footer strong { color: var(--ink); }
.subpage-hero { padding: 88px 0 54px; border-bottom: 1px solid var(--line); }
.subpage-hero h1 { max-width: 930px; }
.subpage-hero .lead { max-width: 760px; }
.step-list { display: grid; gap: 14px; }
.step-card { display: grid; grid-template-columns: 74px 1fr; gap: 22px; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.78); }
.step-number { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 18px; background: var(--pink); color: white; font: 950 22px ui-monospace, SFMono-Regular, Consolas, monospace; box-shadow: 5px 5px 0 var(--yellow); }
.step-card h2 { margin-bottom: 8px; font-size: clamp(29px, 4vw, 46px); }
.step-card p { margin-bottom: 0; }
.step-note { margin-top: 18px; padding: 18px; border-left: 4px solid var(--cyan); background: #eaffff; color: #28545a; border-radius: 0 15px 15px 0; }
.library-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.library-card { min-height: 300px; padding: 28px; border: 1px solid var(--line); border-radius: 25px; background: rgba(255,255,255,.8); }
.library-card h2 { margin-top: 38px; font-size: clamp(31px, 4vw, 48px); }
.library-card p { margin-bottom: 24px; }
.library-card .result { display: inline-flex; padding: 8px 11px; border-radius: 999px; background: var(--pink-soft); color: #9b184f; font: 800 12px ui-monospace, SFMono-Regular, Consolas, monospace; }
.wide { grid-column: 1 / -1; min-height: 250px; background: var(--night); }
.wide h2 { color: white; }
.wide p { max-width: 750px; color: #cdbdca; }
.wide .card-code { color: var(--yellow); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project-card { display: flex; min-height: 390px; flex-direction: column; padding: 27px; border: 1px solid var(--line); border-radius: 25px; background: white; }
.project-card .project-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 34px 0 26px; border: 2px solid var(--ink); border-radius: 17px; background: var(--yellow); font-size: 25px; font-weight: 950; box-shadow: 5px 5px 0 var(--pink); }
.project-card p { font-size: 15px; }
.project-card strong { margin-top: auto; color: #b6135a; }
.challenge { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 42px; border-radius: 28px; background: var(--pink); color: white; }
.challenge p { color: #ffe6f0; }
.challenge ul { display: grid; gap: 12px; margin: 0; padding-left: 22px; font-weight: 800; line-height: 1.5; }
@media (max-width: 900px) {
  .hero, .kit-story, .feedback { grid-template-columns: 1fr; }
  .hero { padding: 64px 0; }
  .flight-window { min-height: 520px; }
  .path-grid, .project-grid { grid-template-columns: 1fr 1fr; }
  .path-card:last-child, .project-card:last-child { grid-column: 1 / -1; }
  .feedback-loop { order: -1; }
}
@media (max-width: 650px) {
  .shell { width: min(100% - 28px, var(--max)); }
  .drone-header { min-height: 76px; }
  .drone-brand span { display: none; }
  .drone-brand img { width: 46px; height: 46px; }
  .drone-nav { flex-wrap: wrap; justify-content: flex-end; gap: 2px 12px; font-size: 13px; }
  .section { padding: 58px 0; }
  .flight-window { min-height: 350px; border-radius: 24px; }
  .stat-strip, .path-grid, .library-grid, .project-grid, .challenge { grid-template-columns: 1fr; }
  .path-card:last-child, .project-card:last-child, .wide { grid-column: auto; }
  .feedback-loop { grid-template-columns: 1fr 1fr; }
  .feedback-loop div::after { display: none; }
  .step-card { grid-template-columns: 1fr; padding: 22px; }
  .drone-footer { align-items: flex-start; flex-direction: column; justify-content: center; }
  .hero-actions .button { width: 100%; }
}
