:root {
  color-scheme: dark;
  --ink: #f5f1e8;
  --muted: #b7b0a4;
  --subtle: #80796f;
  --bg: #0d0e0d;
  --panel: #171816;
  --panel-2: #20211e;
  --line: rgba(245, 241, 232, 0.14);
  --line-strong: rgba(245, 241, 232, 0.26);
  --orange: #f27a2e;
  --orange-2: #ffad58;
  --cyan: #31d5c8;
  --green: #68d77b;
  --red: #ff5a4f;
  --gold: #d8b75c;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(13, 14, 13, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
.nav,
.nav-action {
  display: inline-flex;
  align-items: center;
}

.brand {
  justify-self: start;
  gap: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 20px rgba(242, 122, 46, 0.35);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--cyan);
  transform: rotate(45deg);
}

.brand-mark::after {
  inset: 9px;
  background: var(--orange);
  border: 0;
  border-radius: 50%;
  transform: none;
}

.nav {
  justify-self: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.9rem;
}

.nav a {
  padding: 8px 0;
}

.nav a:hover,
.nav-action:hover {
  color: var(--ink);
}

.nav-action {
  justify-self: end;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink);
  background: rgba(245, 241, 232, 0.06);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 126px clamp(20px, 5vw, 72px) 58px;
  isolation: isolate;
}

.hero-image,
.hero-shade,
.hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  z-index: -3;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(13, 14, 13, 0.96) 0%, rgba(13, 14, 13, 0.76) 38%, rgba(13, 14, 13, 0.16) 74%, rgba(13, 14, 13, 0.36) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(13, 14, 13, 0) 34%);
}

.hero-grid {
  z-index: -1;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(245, 241, 232, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 241, 232, 0.15) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 74%);
}

.hero-content {
  max-width: 740px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange-2);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(3.1rem, 7vw, 6.7rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.65;
}

.hero-actions,
.deploy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  font-weight: 760;
}

.button.primary {
  color: #17120c;
  border-color: var(--orange-2);
  background: var(--orange-2);
}

.button.secondary {
  color: var(--ink);
  background: rgba(245, 241, 232, 0.08);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(680px, 100%);
  margin: 56px 0 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.hero-stats div {
  min-width: 0;
  padding: 18px;
  background: rgba(13, 14, 13, 0.72);
}

.hero-stats dt {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 850;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.section {
  padding: clamp(70px, 9vw, 116px) clamp(20px, 5vw, 72px);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(180px, 0.46fr) minmax(0, 1fr);
  gap: 24px;
  align-items: end;
  max-width: 1180px;
  margin: 0 auto 34px;
}

.section h2 {
  max-width: 800px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.operations {
  background: var(--bg);
}

.console-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.feed-panel,
.side-panel,
.capability,
.spec-table,
.pipeline {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.feed-panel {
  min-width: 0;
}

.feed-header,
.feed-footer,
.panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feed-header {
  min-height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 750;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(104, 215, 123, 0.55);
}

.timestamp {
  margin-left: auto;
  color: var(--subtle);
  font-variant-numeric: tabular-nums;
}

.camera-stage {
  position: relative;
  min-height: clamp(420px, 56vw, 650px);
  overflow: hidden;
  background:
    linear-gradient(rgba(49, 213, 200, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 213, 200, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 72% 18%, rgba(242, 122, 46, 0.2), transparent 32%),
    linear-gradient(130deg, #161814 0%, #2f2e28 58%, #111211 100%);
  background-size: 42px 42px, 42px 42px, auto, auto;
}

.camera-stage::before {
  content: "";
  position: absolute;
  inset: 12% 8% 18% 42%;
  border: 1px solid rgba(245, 241, 232, 0.18);
  background:
    linear-gradient(135deg, transparent 0 46%, rgba(245, 241, 232, 0.12) 46% 47%, transparent 47%),
    linear-gradient(45deg, transparent 0 48%, rgba(49, 213, 200, 0.16) 48% 49%, transparent 49%);
  transform: skew(-8deg);
}

.scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 26px rgba(49, 213, 200, 0.65);
  animation: scan 4s linear infinite;
}

.range-ring {
  position: absolute;
  border: 1px solid rgba(49, 213, 200, 0.32);
  border-radius: 50%;
}

.ring-one {
  width: 280px;
  height: 280px;
  right: 14%;
  top: 18%;
}

.ring-two {
  width: 460px;
  height: 460px;
  right: -4%;
  top: 0;
  border-color: rgba(242, 122, 46, 0.24);
}

.target {
  position: absolute;
  min-width: 120px;
  padding: 8px 10px;
  border: 1px solid var(--cyan);
  color: var(--ink);
  background: rgba(13, 14, 13, 0.74);
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 0 24px rgba(49, 213, 200, 0.12);
}

.target::before,
.target::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: currentColor;
}

.target::before {
  left: -1px;
  top: -1px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.target::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.target span,
.target b {
  display: block;
}

.target b {
  color: var(--cyan);
  margin-top: 4px;
}

.target-person {
  left: 18%;
  top: 38%;
}

.target-vehicle {
  right: 16%;
  bottom: 28%;
  border-color: var(--orange);
}

.target-vehicle b {
  color: var(--orange-2);
}

.target-drone {
  right: 22%;
  top: 18%;
  border-color: var(--green);
}

.target-drone b {
  color: var(--green);
}

.feed-footer {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  flex-wrap: wrap;
}

.feed-footer span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(13, 14, 13, 0.72);
  font-size: 0.7rem;
  font-weight: 800;
}

.side-panel {
  padding: 16px;
}

.scenario-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.tab,
.mission-buttons button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  background: var(--panel-2);
  cursor: pointer;
}

.tab.active,
.tab:hover,
.mission-buttons button:hover {
  color: var(--ink);
  border-color: var(--orange);
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.metric {
  min-height: 96px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #111211;
}

.metric span,
.toggle-row span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.metric strong {
  display: block;
  margin-top: 14px;
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
}

.control-group,
.mission-panel {
  margin-top: 14px;
  border: 1px solid var(--line);
  background: #111211;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.toggle-row:last-child {
  border-bottom: 0;
}

.toggle-row input {
  width: 44px;
  height: 24px;
  accent-color: var(--orange);
}

.mission-panel {
  padding: 14px;
}

.panel-title {
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 800;
}

.panel-title span:last-child {
  color: var(--green);
}

.mission-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mission-buttons .danger {
  color: #ffd8d4;
  border-color: rgba(255, 90, 79, 0.55);
}

.capabilities {
  background: #11120f;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.capability {
  min-height: 280px;
  padding: 22px;
  box-shadow: none;
}

.cap-icon {
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  position: relative;
}

.camera-icon::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
}

.identity-icon::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 10px;
  height: 12px;
  border: 2px solid var(--orange);
  border-radius: 50%;
}

.identity-icon::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  height: 12px;
  border: 2px solid var(--orange);
  border-top: 0;
}

.evidence-icon::before {
  content: "";
  position: absolute;
  inset: 12px 10px;
  border: 2px solid var(--gold);
}

.evidence-icon::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 18px;
  width: 14px;
  height: 2px;
  background: var(--gold);
  box-shadow: 0 7px 0 var(--gold);
}

.drone-icon::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 22px;
  width: 24px;
  height: 4px;
  background: var(--green);
}

.drone-icon::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 2px solid var(--green);
  border-left-color: transparent;
  border-right-color: transparent;
  border-radius: 50%;
}

.capability h3 {
  margin-bottom: 14px;
  font-size: 1.35rem;
}

.capability p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.stack {
  background: var(--bg);
}

.stack-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.pipeline {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.pipe-node {
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--ink);
  font-weight: 760;
  position: relative;
}

.pipe-node:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: -11px;
  width: 2px;
  height: 10px;
  background: var(--orange);
}

.spec-table {
  display: grid;
  box-shadow: none;
}

.spec-table div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 84px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.spec-table div:last-child {
  border-bottom: 0;
}

.spec-table span {
  color: var(--muted);
}

.spec-table strong {
  line-height: 1.45;
}

.deploy {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  background: #17130f;
  border-top: 1px solid var(--line);
}

.deploy h2 {
  max-width: 780px;
}

@keyframes scan {
  0% {
    top: 0;
    opacity: 0;
  }
  10%,
  86% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .console-shell,
  .stack-layout {
    grid-template-columns: 1fr;
  }

  .section-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

  .deploy {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .topbar {
    padding: 14px 16px;
  }

  .brand span:last-child {
    display: none;
  }

  .hero {
    min-height: 96vh;
    padding: 96px 18px 42px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(13, 14, 13, 0.96) 0%, rgba(13, 14, 13, 0.82) 58%, rgba(13, 14, 13, 0.52) 100%),
      linear-gradient(0deg, var(--bg) 0%, rgba(13, 14, 13, 0) 34%);
  }

  h1 {
    font-size: clamp(2.65rem, 14vw, 4.4rem);
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .camera-stage {
    min-height: 440px;
  }

  .target {
    min-width: 104px;
    font-size: 0.65rem;
  }

  .target-person {
    left: 8%;
    top: 34%;
  }

  .target-vehicle {
    right: 8%;
    bottom: 30%;
  }

  .target-drone {
    right: 10%;
    top: 18%;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .spec-table div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
