:root {
  --ink: #17212d;
  --muted: #65717f;
  --line: #dfe4ea;
  --red: #d9162f;
  --red-dark: #ab0d21;
  --bg: #f7f9fb;
  --dark: #121a23;
  --green: #17a65a;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.cursor-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 33, 45, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 33, 45, .045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 70%);
  z-index: -1;
}

.flight-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.flight-cable {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .44;
}

.flight-cable path {
  fill: none;
  stroke: rgba(25, 32, 40, .5);
  stroke-width: 1.5;
  stroke-dasharray: 9 11;
}

.flying-drone {
  position: absolute;
  width: clamp(90px, 14vw, 190px);
  top: 12vh;
  left: 72vw;
  filter: drop-shadow(0 20px 24px rgba(0, 0, 0, .18));
  transform-origin: 50% 50%;
  will-change: transform, left, top;
}

.scout-layer {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.scout-drone {
  position: absolute;
  width: 58px;
  opacity: .22;
  filter: grayscale(.1) drop-shadow(0 10px 12px rgba(23, 33, 45, .18));
}

.scout-1 {
  top: 24%;
  left: -80px;
  animation: scoutFly 19s linear infinite;
}

.scout-2 {
  top: 58%;
  left: -100px;
  width: 44px;
  animation: scoutFly 25s linear 6s infinite;
}

.scout-3 {
  top: 78%;
  left: -90px;
  width: 50px;
  animation: scoutFly 22s linear 11s infinite;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(247, 249, 251, .86);
  border-bottom: 1px solid rgba(223, 228, 234, .72);
  backdrop-filter: blur(16px);
}

.brand {
  color: var(--red);
  line-height: .86;
  font-weight: 900;
}

.brand span {
  display: block;
  font-size: 13px;
}

.brand strong {
  display: block;
  font-size: 30px;
}

nav {
  display: flex;
  gap: 22px;
  color: #465363;
  font-size: 14px;
  font-weight: 700;
}

.page-main {
  min-height: calc(100vh - 140px);
}

.page-hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .52fr);
  gap: 44px;
  align-items: center;
  padding: 80px 0 54px;
}

.page-hero h1 {
  font-size: clamp(54px, 7vw, 104px);
}

.page-drone {
  max-height: 360px;
  object-fit: contain;
  filter: drop-shadow(0 26px 30px rgba(23, 33, 45, .18));
  animation: hover 5.4s ease-in-out infinite;
}

.page-drone.certificate {
  max-height: 420px;
  justify-self: center;
  border: 8px solid rgba(255,255,255,.9);
}

.prose-grid,
.usecase-grid,
.process-map,
.rights-page-grid,
.cookie-layout,
.source-grid {
  display: grid;
  gap: 18px;
  padding-bottom: 88px;
}

.prose-grid,
.cookie-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.text-panel,
.usecase-grid article,
.process-map article,
.source-grid article {
  padding: 28px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(23, 33, 45, .06);
}

.text-panel.wide {
  grid-column: 1 / -1;
}

.text-panel h2,
.usecase-grid h2,
.process-map h2,
.source-grid h2 {
  margin-bottom: 18px;
  font-size: clamp(25px, 3vw, 38px);
}

.text-panel p,
.usecase-grid p,
.process-map p,
.source-grid p {
  color: #536171;
  font-size: 17px;
  line-height: 1.62;
}

.text-panel.accent {
  color: #fff;
  background: var(--red);
}

.text-panel.accent p {
  color: #fff;
}

.usecase-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.usecase-grid img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  margin: -10px 0 24px;
  border-radius: 6px;
}

.compare-grid.detailed {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: 88px;
}

.compare-grid.detailed article {
  min-height: 0;
}

.compare-grid.detailed h2 {
  min-height: 0;
  margin-bottom: 22px;
  font-size: 28px;
}

.process-map {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-map span {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--red);
  font-size: 13px;
  font-weight: 950;
}

.metric-grid.large {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-bottom: 36px;
}

.rights-page-grid,
.source-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.source-grid a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--red);
  font-weight: 900;
}

.code-card pre,
.cookie-dialog pre {
  overflow: auto;
  padding: 18px;
  color: #eef5ff;
  background: #101923;
  border-radius: 8px;
  line-height: 1.55;
}

.consent-table {
  display: grid;
  grid-template-columns: minmax(160px, .36fr) 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.consent-table span,
.consent-table p {
  margin: 0;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.consent-table span {
  color: var(--red);
  font-weight: 950;
  background: #fff;
}

.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px;
  color: #fff;
  background: rgba(18, 26, 35, .96);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

.cookie-banner p {
  margin: 8px 0 0;
  color: rgba(255,255,255,.74);
  line-height: 1.45;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-actions button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 4px;
  color: #fff;
  background: transparent;
  font-weight: 850;
  cursor: pointer;
}

.cookie-actions button:last-child,
.cookie-actions [data-cookie-accept] {
  border-color: var(--red);
  background: var(--red);
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 26, 35, .62);
}

.cookie-dialog {
  width: min(620px, 100%);
  padding: 28px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 26px 80px rgba(0,0,0,.34);
}

.cookie-dialog label {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 14px 0;
  font-weight: 800;
}

.cookie-dialog .cookie-actions button {
  color: var(--ink);
  border-color: var(--line);
}

.cookie-dialog .cookie-actions button:last-child {
  color: #fff;
  border-color: var(--red);
}

.header-action,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
}

.header-action,
.button.primary {
  color: #fff;
  background: var(--red);
  box-shadow: 0 12px 24px rgba(217, 22, 47, .2);
}

.button.ghost {
  color: var(--red);
  border: 1px solid rgba(217, 22, 47, .45);
  background: rgba(255, 255, 255, .7);
}

.section-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(380px, 1.1fr);
  gap: 48px;
  align-items: center;
  padding: 62px 0 54px;
}

.overline {
  margin: 0 0 22px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(62px, 8vw, 126px);
  line-height: .86;
  font-weight: 950;
  letter-spacing: 0;
}

h1 span {
  display: block;
  color: var(--red);
}

.lead {
  max-width: 620px;
  color: #3f4b58;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 44px 0 0;
}

.quick-facts div {
  padding-top: 16px;
  border-top: 2px solid var(--line);
}

.quick-facts dt {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-facts dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.hero-stage {
  position: relative;
  min-height: 570px;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 6% 0 0 10%;
  background: radial-gradient(circle at 52% 34%, rgba(124, 151, 177, .32), transparent 46%);
}

.hero-drone {
  position: absolute;
  top: 8%;
  left: 8%;
  width: 72%;
  animation: hover 5.2s ease-in-out infinite;
  filter: drop-shadow(0 34px 30px rgba(20, 25, 34, .22));
}

.hero-base {
  position: absolute;
  right: 2%;
  bottom: 0;
  width: 48%;
  filter: drop-shadow(0 24px 24px rgba(0, 0, 0, .18));
}

.telemetry {
  position: absolute;
  right: 0;
  top: 18%;
  display: grid;
  gap: 14px;
  color: #445160;
  font-size: 13px;
  font-weight: 800;
  z-index: 2;
}

.telemetry span {
  padding-left: 14px;
  border-left: 2px solid var(--red);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin: 0 0 28px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4vw, 54px);
  line-height: .98;
  font-weight: 950;
}

.section-heading p {
  max-width: 470px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}

.task-grid,
.compare-grid,
.metric-grid {
  display: grid;
  gap: 18px;
}

.task-grid {
  grid-template-columns: repeat(3, 1fr);
}

.task-grid article,
.compare-grid article,
.metric-grid article,
.timeline article {
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(23, 33, 45, .06);
}

.task-grid article {
  overflow: hidden;
}

.task-grid img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.task-grid h3,
.task-grid p {
  padding: 0 22px;
}

.task-grid h3 {
  margin: 24px 0 10px;
  font-size: 23px;
}

.task-grid p {
  margin-bottom: 24px;
  color: var(--muted);
  line-height: 1.45;
}

.comparison,
#tasks,
#how,
.market {
  padding: 82px 0 0;
}

.compare-grid {
  grid-template-columns: repeat(3, 1fr);
}

.compare-grid article {
  padding: 28px;
}

.compare-grid h3 {
  font-size: 24px;
  min-height: 58px;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

li {
  position: relative;
  margin: 11px 0;
  padding-left: 26px;
  color: #43505e;
}

li::before {
  position: absolute;
  left: 0;
  font-weight: 950;
}

.plus li::before { content: "+"; color: var(--green); }
.minus li::before { content: "−"; color: var(--red); }

.solution {
  margin-top: 82px;
  padding: 90px 0;
  background: #fff;
  border-block: 1px solid var(--line);
}

.solution-inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 44px;
  align-items: center;
}

.solution p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.benefit-list {
  display: grid;
  gap: 13px;
  margin-top: 28px;
}

.benefit-list span {
  position: relative;
  padding-left: 30px;
  font-weight: 800;
}

.benefit-list span::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
}

.solution-visual {
  position: relative;
  min-height: 430px;
}

.solution-visual::after {
  content: "";
  position: absolute;
  left: 42%;
  right: 18%;
  top: 52%;
  height: 2px;
  background: #1d2732;
  transform: rotate(22deg);
  transform-origin: left center;
}

.solution-drone {
  position: absolute;
  left: 0;
  top: 5%;
  width: 58%;
  z-index: 2;
  animation: hover 6s ease-in-out infinite;
}

.solution-base {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.timeline article {
  padding: 24px;
}

.timeline span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 24px;
  color: #fff;
  background: var(--red);
  border-radius: 50%;
  font-weight: 900;
}

.timeline h3 {
  font-size: 20px;
}

.timeline p {
  color: var(--muted);
  line-height: 1.45;
}

.metric-grid {
  grid-template-columns: repeat(5, 1fr);
}

.metric-grid article {
  padding: 26px 22px;
}

.metric-grid strong {
  display: block;
  margin-bottom: 14px;
  font-size: 30px;
  line-height: 1;
}

.metric-grid span {
  color: var(--muted);
  line-height: 1.35;
}

.rights {
  margin-top: 90px;
  padding: 70px 0;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(18, 26, 35, .96), rgba(21, 36, 50, .94)),
    var(--dark);
}

.rights-inner {
  display: grid;
  grid-template-columns: 1fr 220px 1fr;
  gap: 44px;
  align-items: center;
}

.rights p {
  color: rgba(255, 255, 255, .76);
  line-height: 1.55;
}

.rights .note {
  color: #fff;
  font-weight: 800;
}

.rights img {
  border: 8px solid rgba(255, 255, 255, .08);
  box-shadow: 0 24px 42px rgba(0, 0, 0, .36);
}

.investment {
  padding: 28px;
  background: var(--red);
  border-radius: 8px;
}

.investment p {
  color: #fff;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, .68);
  background: var(--dark);
  font-size: 13px;
}

@keyframes hover {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}

@keyframes scoutFly {
  0% { transform: translateX(-12vw) translateY(0) rotate(8deg); }
  45% { transform: translateX(54vw) translateY(-34px) rotate(2deg); }
  100% { transform: translateX(112vw) translateY(28px) rotate(10deg); }
}

@media (max-width: 980px) {
  nav { display: none; }
  .hero,
  .solution-inner,
  .rights-inner {
    grid-template-columns: 1fr;
  }
  .hero-stage { min-height: 460px; }
  .quick-facts,
  .task-grid,
  .compare-grid,
  .timeline,
  .metric-grid,
  .prose-grid,
  .usecase-grid,
  .process-map,
  .rights-page-grid,
  .cookie-layout,
  .source-grid,
  .compare-grid.detailed,
  .metric-grid.large {
    grid-template-columns: repeat(2, 1fr);
  }
  .flight-layer { opacity: .62; }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 18px;
  }
  .brand strong { font-size: 24px; }
  .header-action { display: none; }
  .section-shell {
    width: min(100% - 28px, 1180px);
  }
  .hero {
    min-height: auto;
    padding-top: 44px;
  }
  .quick-facts,
  .task-grid,
  .compare-grid,
  .timeline,
  .metric-grid,
  .prose-grid,
  .usecase-grid,
  .process-map,
  .rights-page-grid,
  .cookie-layout,
  .source-grid,
  .compare-grid.detailed,
  .metric-grid.large,
  .page-hero {
    grid-template-columns: 1fr;
  }
  .page-hero {
    min-height: auto;
    padding-top: 44px;
  }
  .text-panel.wide {
    grid-column: auto;
  }
  .section-heading {
    display: block;
  }
  .hero-stage,
  .solution-visual {
    min-height: 330px;
  }
  .telemetry {
    left: 0;
    right: auto;
    top: 0;
  }
  .flying-drone {
    width: 96px;
  }
  footer {
    display: grid;
  }
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    grid-template-columns: 1fr;
  }
  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .consent-table {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-drone,
  .solution-drone {
    animation: none;
  }
  .flight-layer {
    display: none;
  }
  .scout-layer {
    display: none;
  }
}
