/* Texas Drone Recovery — production styles */
:root {
  --bg: #05080f;
  --bg-elev: #0a1220;
  --bg-alt: #070d18;
  --ink: #e8eef7;
  --muted: #8b9bb4;
  --cyan: #22d3ee;
  --cyan-dim: rgba(34, 211, 238, 0.15);
  --amber: #f59e0b;
  --amber-dim: rgba(245, 158, 11, 0.18);
  --glass: rgba(10, 18, 32, 0.65);
  --glass-border: rgba(34, 211, 238, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Inter", system-ui, sans-serif;
  --display: "Orbitron", "Inter", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --header-h: 72px;
  --max: 1120px;
  --glow-cyan: 0 0 40px rgba(34, 211, 238, 0.25);
  --glow-amber: 0 0 32px rgba(245, 158, 11, 0.3);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; transition: color 0.2s; }
a:hover { color: #67e8f9; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--amber); color: #05080f; padding: 0.75rem 1rem; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.grain {
  pointer-events: none; position: fixed; inset: 0; z-index: 50; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
#starfield {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0.55;
}

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; position: relative; z-index: 1; }
.narrow { width: min(100% - 2rem, 720px); }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.text-gradient {
  background: linear-gradient(120deg, var(--cyan), #67e8f9 40%, var(--amber));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan); margin: 0 0 0.75rem;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--amber);
  box-shadow: var(--glow-amber); animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

h1, h2, h3, h4 {
  font-family: var(--display); font-weight: 600; line-height: 1.2; letter-spacing: 0.02em; margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.15rem; }
.lede { color: var(--muted); font-size: 1.05rem; max-width: 58ch; margin: 0 0 2rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font); font-weight: 600; font-size: 0.95rem;
  padding: 0.85rem 1.35rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-amber {
  background: linear-gradient(135deg, #f59e0b, #d97706); color: #05080f;
  box-shadow: var(--glow-amber);
}
.btn-amber:hover { color: #05080f; box-shadow: 0 0 40px rgba(245, 158, 11, 0.45); }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--glass-border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* Header / Nav */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5, 8, 15, 0.75); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(34, 211, 238, 0.08);
}
.nav {
  width: min(100% - 2rem, var(--max)); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 1rem;
}
.logo { display: flex; align-items: center; gap: 0.65rem; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-mark { color: var(--cyan); flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name { font-family: var(--display); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; }
.logo-sub {
  font-size: 0.65rem; letter-spacing: 0.2em; color: var(--cyan); opacity: 0.75;
  font-family: var(--display);
}
.nav-menu {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 1.25rem;
}
.nav-menu a { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.nav-menu a:hover { color: var(--ink); }
.nav-menu .btn { color: #05080f; }
.nav-menu .btn:hover { color: #05080f; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 0.5rem; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.25s;
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch;
    background: rgba(5, 8, 15, 0.96); backdrop-filter: blur(20px);
    padding: 1.25rem 1.5rem 1.75rem; gap: 0.25rem;
    border-bottom: 1px solid var(--glass-border);
    transform: translateY(-120%); opacity: 0; pointer-events: none; transition: 0.3s ease;
  }
  .nav-menu.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-menu a { padding: 0.75rem 0; }
  .nav-menu .btn { margin-top: 0.5rem; text-align: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero */
.hero {
  position: relative; padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 10vw, 6rem);
  min-height: min(92vh, 900px); display: flex; align-items: center;
  overflow: hidden;
}
.hero-parallax { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-layer { position: absolute; inset: -10%; }

.layer-photo {
  inset: 0;
  overflow: hidden;
}
.layer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: 0.42;
  filter: saturate(0.85) contrast(1.05) brightness(0.55);
  transform: scale(1.06);
}
.layer-photo-scrim {
  inset: 0;
  background:
    linear-gradient(105deg, rgba(5, 8, 15, 0.92) 0%, rgba(5, 8, 15, 0.78) 42%, rgba(5, 8, 15, 0.45) 70%, rgba(5, 8, 15, 0.55) 100%),
    linear-gradient(180deg, rgba(5, 8, 15, 0.55) 0%, transparent 35%, rgba(5, 8, 15, 0.85) 100%),
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(34, 211, 238, 0.12), transparent 60%);
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 24px rgba(5, 8, 15, 0.85);
}
.hero-hud {
  position: relative;
  z-index: 2;
  width: min(100%, 560px);
  justify-self: end;
}

/* Live dispatch scope */
.live-scope {
  background: linear-gradient(165deg, rgba(8, 16, 28, 0.95), rgba(4, 8, 16, 0.98));
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.08), 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(34, 211, 238, 0.12);
}
.live-scope-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid rgba(34, 211, 238, 0.14);
  background: rgba(6, 12, 22, 0.9);
}
.scope-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  text-transform: uppercase;
}
.scope-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: #86efac;
}
.scope-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.live-scope-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 0;
  align-items: stretch;
  min-height: 0;
}
.scope-face {
  position: relative;
  width: min(100%, 514px);
  aspect-ratio: 1 / 1;
  margin: 0.75rem auto;
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  border: 2px solid rgba(34, 211, 238, 0.45);
  box-shadow:
    inset 0 0 18px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(34, 211, 238, 0.2);
  background: #02060c;
}
.scope-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  z-index: 0;
  opacity: 1;
  filter: saturate(1.15) contrast(1.18) brightness(1.22);
  pointer-events: none;
  user-select: none;
}

.scope-labels {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border-radius: 50%;
  overflow: hidden;
  opacity: 0.92;
}
.map-label {
  position: absolute;
  transform: translate(-50%, -50%);
  font-family: var(--mono);
  color: rgba(226, 242, 255, 0.92);
  text-shadow:
    0 0 6px rgba(5, 12, 24, 0.95),
    0 1px 2px rgba(0, 0, 0, 0.9),
    0 0 12px rgba(34, 211, 238, 0.25);
  letter-spacing: 0.04em;
  white-space: nowrap;
  line-height: 1;
  user-select: none;
}
.map-label--city {
  font-size: clamp(0.72rem, 2.6vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(165, 243, 252, 0.95);
}
.map-label--area {
  font-size: clamp(0.52rem, 1.7vw, 0.72rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 242, 255, 0.88);
}
.map-label--nabe {
  font-size: clamp(0.42rem, 1.3vw, 0.58rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(186, 210, 230, 0.78);
}
#live-radar { z-index: 3; }

#live-radar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 3;
  border-radius: 50%;
}
.live-telemetry {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem 0.65rem;
  border-left: 1px solid rgba(34, 211, 238, 0.14);
  background: rgba(4, 10, 18, 0.75);
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
}
.live-telemetry span {
  display: block;
  color: rgba(148, 163, 184, 0.85);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}
.live-telemetry strong {
  color: var(--cyan);
  font-weight: 500;
  font-size: 0.78rem;
}


.layer-grid {
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 20%, transparent 70%);
}
.layer-glow {
  background:
    radial-gradient(ellipse 50% 40% at 70% 40%, rgba(34, 211, 238, 0.18), transparent 60%),
    radial-gradient(ellipse 40% 35% at 25% 60%, rgba(245, 158, 11, 0.1), transparent 55%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center;
}
.hero-sub { color: var(--muted); font-size: 1.1rem; max-width: 48ch; margin: 0 0 1.75rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.hero-pills {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.hero-pills li {
  font-size: 0.78rem; color: var(--muted); padding: 0.35rem 0.75rem;
  border: 1px solid var(--glass-border); border-radius: 999px; background: var(--cyan-dim);
}


/* Stats */
.stats-bar {
  position: relative; z-index: 1;
  border-block: 1px solid rgba(34, 211, 238, 0.1);
  background: linear-gradient(180deg, rgba(10, 18, 32, 0.8), rgba(5, 8, 15, 0.4));
  padding: 2rem 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; text-align: center;
}
.stat-num {
  display: block; font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--cyan); letter-spacing: 0.04em; margin-bottom: 0.35rem;
}
.stat-label { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 700px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; position: relative; z-index: 1; }
.section-alt {
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-block: 1px solid rgba(34, 211, 238, 0.06);
}
.section-head { margin-bottom: 2.5rem; }

.glass-card, .glass-panel {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius); backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.glass-card { padding: 1.5rem; }
.glass-panel { padding: 1.75rem; }

.card-grid { display: grid; gap: 1.25rem; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) {
  .card-grid.three { grid-template-columns: 1fr; }
}
.card-icon { margin-bottom: 0.75rem; }
.glass-card h3, .glass-panel h3 { color: var(--ink); }
.glass-card p, .glass-panel p { color: var(--muted); margin: 0; font-size: 0.95rem; }

.check-list {
  list-style: none; margin: 1rem 0 0; padding: 0;
}
.check-list li {
  position: relative; padding: 0.4rem 0 0.4rem 1.5rem; color: var(--muted); font-size: 0.95rem;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.7rem;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
}

.solution-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.inline-illust { margin-bottom: 1rem; }
@media (max-width: 800px) {
  .solution-split { grid-template-columns: 1fr; }
}

/* Timeline */
.timeline { position: relative; padding-left: 0; }
.timeline-rail {
  position: absolute; left: 1.35rem; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--amber), transparent);
  opacity: 0.4;
}
.timeline-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.timeline-step {
  display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: start;
  position: sticky; top: calc(var(--header-h) + 1rem);
}
.step-marker {
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-elev); border: 1px solid var(--cyan);
  box-shadow: var(--glow-cyan); z-index: 1;
}
.step-marker span {
  font-family: var(--mono); font-size: 0.75rem; color: var(--cyan); font-weight: 500;
}
.step-body { padding: 1.25rem 1.5rem; }
.step-body h3 { margin-bottom: 0.35rem; }
@media (max-width: 600px) {
  .timeline-rail { left: 1.1rem; }
  .timeline-step { grid-template-columns: 2.5rem 1fr; gap: 0.75rem; }
  .step-marker { width: 2.25rem; height: 2.25rem; }
}

/* API */
.api-layout {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 2rem; align-items: start;
}
.security-note { margin: 1.25rem 0; }
.security-note h4 {
  font-family: var(--display); font-size: 0.85rem; color: var(--amber); margin: 0 0 0.5rem;
}
.code-window {
  background: #03060c; border: 1px solid var(--glass-border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--glow-cyan);
}
.code-tabs {
  display: flex; gap: 0; border-bottom: 1px solid rgba(34, 211, 238, 0.12);
  background: rgba(10, 18, 32, 0.9);
}
.code-tab {
  font-family: var(--mono); font-size: 0.8rem; background: transparent; border: 0;
  color: var(--muted); padding: 0.75rem 1.25rem; cursor: pointer;
  border-bottom: 2px solid transparent;
}
.code-tab.is-active { color: var(--cyan); border-bottom-color: var(--cyan); }
.code-panel {
  margin: 0; padding: 1.25rem; overflow-x: auto;
  font-family: var(--mono); font-size: 0.78rem; line-height: 1.55; color: #a5f3fc;
  white-space: pre;
}
.code-caption { font-size: 0.8rem; color: var(--muted); margin: 0.75rem 0 0; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-hud {
    order: 2;
    justify-self: stretch;
    width: 100%;
    max-width: none;
    margin: 0;
  }
  .live-scope-body { grid-template-columns: minmax(0, 1fr) 96px; }
  .scope-face { width: min(100%, 280px); margin: 0.65rem auto; }
  .live-telemetry { gap: 0.45rem; padding: 0.55rem 0.45rem; font-size: 0.62rem; }
  .hero { min-height: auto; padding-top: 1.25rem; padding-bottom: 1.5rem; }
  .hero-copy { order: 1; }
}

@media (max-width: 520px) {
  .live-scope-body { grid-template-columns: 1fr; }
  .scope-face { width: min(92vw, 300px); }
  .live-telemetry {
    flex-direction: row;
    flex-wrap: wrap;
    border-left: none;
    border-top: 1px solid rgba(34, 211, 238, 0.14);
    gap: 0.55rem 1rem;
  }
  .live-telemetry > div { min-width: 28%; }
}


.contact-form select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(4, 10, 18, 0.85);
  color: var(--ink);
  font: inherit;
}
.contact-form select:focus {
  outline: 2px solid rgba(34, 211, 238, 0.45);
  outline-offset: 1px;
}
.live-scope-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0.9rem 0.65rem;
  border-top: 1px solid rgba(34, 211, 238, 0.12);
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
}
.hud-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: #86efac;
  letter-spacing: 0.06em;
}
.scope-clock {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--cyan);
}


.xteki-pill img,
.xteki-badge img {
  display: block;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}
.xteki-pill img { width: min(160px, 100%); }
.xteki-badge img { width: 120px; }
.xteki-badge { display: inline-block; line-height: 0; }
