:root {
  --bg: #050505;
  --bg-2: #0a0a0a;
  --surface: #111111;
  --surface-2: #171717;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --muted: #8a8a8a;
  --soft: #c7c7c7;
  --red: #ff3b1f;
  --orange: #ff8a00;
  --blue: #4f7dff;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 78% 48%, rgba(255, 59, 31, 0.2), transparent 30%),
    radial-gradient(circle at 16% 42%, rgba(255, 138, 0, 0.08), transparent 22%),
    var(--bg);
  background-size: 18px 18px, 18px 18px, auto, auto, auto;
  animation: gridDrift 18s linear infinite;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.04), rgba(5, 5, 5, 0.88));
}

a {
  color: inherit;
}

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

p {
  color: var(--soft);
  line-height: 1.7;
}

.hidden {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 16px 40px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: white;
  color: black;
  font-size: 18px;
  font-weight: 900;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: white;
}

.menu-toggle {
  display: none;
}

.classified-pill {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: white;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.classified-pill:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.lock-icon {
  position: relative;
  width: 15px;
  height: 12px;
  border: 1.5px solid white;
  border-radius: 3px;
}

.lock-icon::before {
  position: absolute;
  right: 3px;
  bottom: 10px;
  left: 3px;
  height: 8px;
  content: "";
  border: 1.5px solid white;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px rgba(255, 59, 31, 0.7);
}

.hero {
  position: relative;
  min-height: calc(100vh - 69px);
  padding: 92px 36px 48px;
  border-bottom: 1px solid var(--line);
}

.public-hero {
  display: flex;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, 860px);
}

.hero-map {
  position: absolute;
  inset: 69px 0 0;
  overflow: hidden;
}

.hero-map::before,
.hero-map::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero-map::before {
  top: 22%;
  right: 5%;
  width: 44vw;
  height: 44vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 59, 31, 0.18), rgba(255, 138, 0, 0.08) 32%, transparent 67%);
  filter: blur(18px);
  opacity: 0.65;
  animation: ambientGlow 8s ease-in-out infinite;
}

.hero-map::after {
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 5, 5, 0.02), rgba(5, 5, 5, 0.32) 58%, rgba(5, 5, 5, 0.1));
}

.territory-rings {
  position: absolute;
  top: 50%;
  right: 5.5%;
  z-index: 1;
  width: min(46vw, 700px);
  aspect-ratio: 1;
  transform: translateY(-47%);
  filter: drop-shadow(0 0 70px rgba(255, 82, 26, 0.16));
}

.territory-rings::before {
  position: absolute;
  inset: 13%;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 59, 31, 0.22) 0 2px, rgba(255, 59, 31, 0.12) 4px, transparent 16%);
  opacity: 0.8;
  animation: radarBreath 4.8s ease-in-out infinite;
}

.coordinate-label,
.range-label {
  position: absolute;
  z-index: 5;
  color: rgba(255, 255, 255, 0.25);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.coordinate-label {
  top: 16%;
  left: 18%;
}

.range-label {
  right: 7%;
  bottom: 14%;
}

.radar-aurora {
  position: absolute;
  inset: 6%;
  z-index: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 47% 52%, rgba(255, 59, 31, 0.34), transparent 10%),
    radial-gradient(circle at 34% 60%, rgba(255, 138, 0, 0.24), transparent 13%),
    radial-gradient(circle at 67% 62%, rgba(255, 138, 0, 0.18), transparent 18%);
  filter: blur(28px);
  opacity: 0.48;
  animation: auroraShift 9s ease-in-out infinite;
}

.sweep-beam {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 42%;
  height: 118px;
  transform-origin: left center;
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
  background: linear-gradient(90deg, rgba(255, 59, 31, 0), rgba(255, 138, 0, 0.12), rgba(255, 59, 31, 0.22));
  filter: blur(0.4px) drop-shadow(0 0 30px rgba(255, 81, 30, 0.28));
  opacity: 0.58;
  animation: radarSweep 15s linear infinite;
}

.scan-arc {
  position: absolute;
  z-index: 3;
  border: 1px solid transparent;
  border-radius: 50%;
  pointer-events: none;
}

.arc-a {
  inset: 13%;
  border-right-color: rgba(255, 138, 0, 0.34);
  border-bottom-color: rgba(255, 59, 31, 0.22);
  animation: arcRotate 16s linear infinite;
}

.arc-b {
  inset: 28%;
  border-left-color: rgba(255, 255, 255, 0.12);
  border-top-color: rgba(255, 138, 0, 0.16);
  animation: arcRotate 22s linear infinite reverse;
}

.ring {
  position: absolute;
  inset: 13%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  animation: ringBreathe 7.5s ease-in-out infinite;
}

.ring-b {
  inset: 28%;
  border-color: rgba(255, 255, 255, 0.1);
  animation-delay: 1s;
}

.ring-c {
  inset: 42%;
  border-color: rgba(255, 255, 255, 0.1);
  animation-delay: 2s;
}

.axis {
  position: absolute;
  z-index: 1;
  display: block;
  background: rgba(255, 255, 255, 0.08);
}

.axis-x {
  top: 50%;
  left: 10%;
  width: 80%;
  height: 1px;
}

.axis-y {
  top: 10%;
  left: 50%;
  width: 1px;
  height: 80%;
}

.core-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 76px;
  height: 76px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 86, 30, 0.82), rgba(255, 86, 30, 0.2) 42%, transparent 70%);
  filter: blur(2px);
  opacity: 0.52;
  animation: corePulse 3.8s ease-in-out infinite;
}

.sector {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 41%;
  height: 38%;
  transform-origin: 0 0;
  clip-path: polygon(42% 0, 96% 26%, 83% 100%, 0 62%);
  background: linear-gradient(135deg, rgba(255, 138, 0, 0.32), rgba(255, 59, 31, 0.36));
  mix-blend-mode: screen;
  opacity: 0.58;
  animation: sectorOrbit 21s linear infinite, sectorGlow 7s ease-in-out infinite;
}

.map-node {
  position: absolute;
  z-index: 5;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 30px rgba(255, 59, 31, 0.76);
  animation: nodePulse 4.2s ease-in-out infinite;
}

.node-main {
  top: 50%;
  left: 50%;
}

.node-left {
  top: 60%;
  left: 31%;
  background: var(--orange);
  animation-delay: 1s;
}

.node-top {
  top: 35%;
  left: 50%;
  background: rgba(255, 255, 255, 0.85);
  animation-delay: 1.8s;
}

.orbital-track {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 7;
  display: block;
  width: var(--orbit-size);
  height: var(--orbit-size);
  margin-top: calc(var(--orbit-size) / -2);
  margin-left: calc(var(--orbit-size) / -2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  animation: orbitClockwise var(--orbit-duration) linear infinite;
  animation-delay: var(--orbit-delay);
}

.orbit-p {
  --orbit-size: 168px;
  --orbit-duration: 8.5s;
  --orbit-delay: -1.2s;
}

.orbit-c {
  --orbit-size: 328px;
  --orbit-duration: 13s;
  --orbit-delay: -4.1s;
}

.orbital-object {
  position: absolute;
  top: 50%;
  right: -17px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(7, 9, 10, 0.92);
  box-shadow: 0 0 22px rgba(0, 0, 0, 0.55);
  animation: counterOrbitObject var(--orbit-duration) linear infinite;
  animation-delay: var(--orbit-delay);
}

.orbital-object::before,
.orbital-object::after {
  position: absolute;
  inset: -5px;
  content: "";
  border: 1px solid currentColor;
  border-radius: 12px;
  opacity: 0;
  animation: orbitalWave 1.9s ease-out infinite;
}

.orbital-object::after {
  animation-delay: 0.65s;
}

.object-p {
  color: var(--orange);
  box-shadow: 0 0 24px rgba(255, 138, 0, 0.32), inset 0 0 18px rgba(255, 138, 0, 0.08);
}

.object-c {
  color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.12), inset 0 0 18px rgba(255, 255, 255, 0.05);
}

.orbital-label {
  position: relative;
  z-index: 2;
  color: currentColor;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 900;
  text-shadow: 0 0 12px currentColor;
}

.system-chip {
  position: absolute;
  z-index: 6;
  display: block;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(14, 14, 14, 0.92);
  box-shadow: 0 0 22px rgba(0, 0, 0, 0.5);
  animation: chipFloat 5.6s ease-in-out infinite;
}

.system-chip::before {
  position: absolute;
  inset: 12px;
  content: "";
  border: 1px solid currentColor;
  border-radius: 4px;
}

.chip-top {
  top: 34%;
  left: 49%;
  color: rgba(255, 255, 255, 0.45);
}

.chip-left {
  top: 60%;
  left: 30%;
  color: var(--orange);
  box-shadow: 0 0 26px rgba(255, 138, 0, 0.34);
  animation-delay: 1.4s;
}

.detection-card {
  position: absolute;
  right: 34%;
  bottom: 10%;
  width: 154px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.82);
  font-family: var(--font-mono);
  animation: cardTelemetry 6.5s ease-in-out infinite;
}

.detection-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.detection-card strong {
  font-size: 13px;
  text-transform: uppercase;
}

.detection-card::after {
  display: block;
  width: 78%;
  height: 2px;
  margin-top: 12px;
  content: "";
  background: linear-gradient(90deg, var(--red), var(--orange), transparent);
  animation: telemetryLine 2.4s ease-in-out infinite;
}

.eyebrow,
.section-kicker,
.tag,
.division-index,
.route-stats,
.footer-note,
.scroll-cue,
.hero-badges,
label span,
.form-status {
  font-family: var(--font-mono);
}

.eyebrow,
.section-kicker {
  margin-bottom: 18px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
}

.eyebrow span {
  display: block;
  width: 46px;
  height: 1px;
  background: var(--red);
}

.eyebrow b {
  padding: 5px 10px;
  border-radius: 4px;
  background: rgba(255, 59, 31, 0.14);
  color: var(--red);
  font-size: 11px;
}

h1 {
  max-width: 920px;
  font-size: 84px;
  line-height: 1;
  font-weight: 900;
}

h1 mark {
  display: inline-block;
  background: linear-gradient(90deg, var(--red), var(--orange));
  color: transparent;
  background-clip: text;
}

h2 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: 48px;
  line-height: 1.05;
  font-weight: 760;
}

h3 {
  margin-bottom: 14px;
  font-size: 24px;
  line-height: 1.15;
}

.hero-lede {
  max-width: 650px;
  margin-top: 28px;
  color: #d5d5d5;
  font-family: var(--font-mono);
  font-size: 16px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-badges span {
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 64px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.scroll-cue span {
  width: 46px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.scroll-cue small {
  font: inherit;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.button.primary {
  background: white;
  color: black;
}

.button.secondary {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.button.wide {
  width: 100%;
}

.section {
  padding: 86px 36px;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 940px;
  margin-bottom: 36px;
}

.section-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
  gap: 42px;
  align-items: center;
  max-width: 1220px;
}

.section-layout.reverse {
  grid-template-columns: minmax(320px, 1.1fr) minmax(0, 0.9fr);
}

.division-card,
.blueprint-panel,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.88);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.32);
}

.division-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1220px;
}

.division-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 24px;
}

.division-index {
  margin-bottom: 42px;
  color: var(--orange);
  font-size: 12px;
}

.division-card p {
  flex: 1;
}

.tag {
  margin-top: 24px;
  color: var(--blue);
  font-size: 12px;
}

.architecture-section {
  background: rgba(10, 10, 10, 0.76);
}

.blueprint-panel {
  min-height: 420px;
  padding: 20px;
}

.blueprint-grid {
  position: relative;
  height: 100%;
  min-height: 380px;
  border: 1px solid rgba(79, 125, 255, 0.25);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(79, 125, 255, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(79, 125, 255, 0.12) 1px, transparent 1px),
    rgba(30, 58, 138, 0.08);
  background-size: 24px 24px;
  overflow: hidden;
}

.beam {
  position: absolute;
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

.beam-a {
  top: 28%;
  left: 12%;
  width: 72%;
}

.beam-b {
  top: 58%;
  left: 18%;
  width: 64%;
}

.beam-c {
  top: 43%;
  left: 28%;
  width: 46%;
  transform: rotate(90deg);
}

.node {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 22px rgba(79, 125, 255, 0.72);
}

.node-a {
  top: 26%;
  left: 20%;
}

.node-b {
  top: 56%;
  left: 68%;
}

.node-c {
  top: 42%;
  left: 49%;
}

.phase-list,
.impact-steps {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.phase-list div,
.impact-steps div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.phase-list strong,
.impact-steps strong {
  display: block;
  margin-bottom: 6px;
  color: white;
}

.phase-list span,
.impact-steps span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.impact-section {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 56px;
  align-items: center;
  background:
    radial-gradient(circle at 22% 42%, rgba(255, 138, 0, 0.18), transparent 26%),
    rgba(10, 10, 10, 0.82);
}

.impact-number {
  color: transparent;
  font-size: 144px;
  text-align: center;
  line-height: 0.8;
  font-weight: 900;
  background: linear-gradient(135deg, var(--red), var(--orange));
  background-clip: text;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 40px;
  align-items: start;
}

.contact-card {
  display: grid;
  gap: 10px;
  padding: 24px;
  font-style: normal;
}

.contact-card span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.contact-card a {
  margin-bottom: 10px;
  color: white;
  font-size: 20px;
  font-weight: 800;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 28px;
  padding: 36px;
  background: #050505;
}

.footer-brand {
  margin-bottom: 14px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer nav a {
  text-decoration: none;
}

.site-footer nav a:hover {
  color: white;
}

.footer-note {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.36);
  font-size: 10px;
}

.classified-page::before {
  background:
    radial-gradient(circle at 14% 38%, rgba(255, 255, 255, 0.11), transparent 18%),
    radial-gradient(circle at 82% 47%, rgba(255, 59, 31, 0.16), transparent 26%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 18px 18px, 18px 18px, auto;
}

.classified-shell {
  min-height: calc(100vh - 69px);
  padding: 42px 24px 72px;
}

.access-card {
  width: min(100%, 520px);
  margin: 56px auto;
  padding: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(23, 23, 23, 0.88);
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
}

.register-card {
  width: min(100%, 760px);
}

.access-icon {
  position: relative;
  width: 46px;
  height: 46px;
  margin-bottom: 26px;
  border-radius: 12px;
  background: white;
}

.access-icon::before {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  height: 11px;
  content: "";
  border: 2px solid black;
  border-radius: 3px;
}

.access-icon::after {
  position: absolute;
  top: 13px;
  left: 17px;
  width: 12px;
  height: 12px;
  content: "";
  border: 2px solid black;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.access-card h1,
.access-card h2 {
  margin-bottom: 16px;
  font-size: 26px;
  line-height: 1.25;
}

.access-card h1 span {
  white-space: nowrap;
}

.access-card p {
  font-family: var(--font-mono);
  font-size: 14px;
}

.access-form,
.register-form {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

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

.register-form .file-field,
.register-form .form-actions,
.register-form .form-status {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 7px;
}

label span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

label small {
  color: rgba(255, 255, 255, 0.36);
  font: inherit;
}

input,
select {
  min-height: 48px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.52);
  color: white;
  padding: 0 14px;
  font: inherit;
  font-size: 15px;
}

input[type="file"] {
  min-height: auto;
  padding: 12px;
  color: var(--muted);
}

input:focus,
select:focus {
  border-color: rgba(255, 255, 255, 0.28);
  outline: 0;
}

.form-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-status {
  min-height: 18px;
  color: var(--orange);
  font-size: 12px;
}

.classified-content {
  width: min(100%, 1460px);
  margin: 0 auto;
}

.classified-grid {
  display: grid;
  gap: 28px;
}

.classified-block {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: 42px;
  align-items: center;
  padding: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(17, 17, 17, 0.72);
}

.classified-block.uav-block {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
}

.classified-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

.classified-heading b {
  color: white;
}

.classified-heading span {
  width: 50px;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.classified-block h2 {
  font-size: 48px;
}

.classified-block h2 em {
  color: var(--muted);
  font-style: normal;
}

.classified-copy {
  margin-top: 24px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.spec-grid div,
.tactical-list div,
.classified-alert {
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.spec-grid span,
.tactical-list span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.spec-grid strong,
.tactical-list strong {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
}

.radar-console,
.route-console {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.live-badge {
  padding: 5px 8px;
  border-radius: 5px;
  background: rgba(255, 59, 31, 0.16);
  color: var(--red);
  font-size: 9px;
}

.radar-body {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.radar-screen {
  position: relative;
  min-height: 330px;
  border-right: 1px solid var(--line);
}

.radar-screen::before,
.radar-screen::after,
.radar-dot,
.radar-hit {
  position: absolute;
  content: "";
}

.radar-screen::before {
  inset: 20%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.radar-screen::after {
  inset: 32%;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
}

.radar-dot {
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: white;
}

.radar-hit {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 18px rgba(255, 59, 31, 0.78);
}

.hit-a {
  top: 32%;
  left: 62%;
}

.hit-b {
  top: 61%;
  left: 44%;
  background: var(--orange);
}

.hit-c {
  top: 58%;
  left: 70%;
  background: var(--muted);
}

.radar-data {
  display: grid;
}

.radar-data div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
}

.radar-data div:last-child {
  border-bottom: 0;
}

.radar-data span {
  color: var(--muted);
}

.radar-data strong {
  text-align: right;
}

.radar-data strong.hot {
  color: var(--red);
}

.route-console {
  padding: 18px;
}

.route-map {
  position: relative;
  min-height: 330px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    #0a0a0a;
  background-size: 18px 18px;
}

.route-line {
  position: absolute;
  top: 48%;
  left: 16%;
  width: 68%;
  height: 2px;
  transform: rotate(5deg);
  border-top: 2px dashed var(--blue);
}

.route-point {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
}

.route-point.start {
  top: 50%;
  left: 16%;
}

.route-point.mid {
  top: 45%;
  left: 54%;
  background: var(--blue);
}

.route-point.end {
  top: 54%;
  right: 14%;
  background: var(--orange);
}

.route-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.route-stats span {
  padding: 11px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.45);
  color: var(--muted);
  font-size: 10px;
}

.route-stats strong {
  display: block;
  color: white;
}

.tactical-list {
  display: grid;
  gap: 16px;
}

.classified-alert {
  margin-top: 18px;
  border-color: rgba(79, 125, 255, 0.28);
  background: rgba(79, 125, 255, 0.08);
  color: #b8caff;
  font-family: var(--font-mono);
  font-size: 12px;
}

@keyframes gridDrift {
  from {
    background-position: 0 0, 0 0, center, center, center;
  }

  to {
    background-position: 18px 18px, 18px 18px, center, center, center;
  }
}

@keyframes ambientGlow {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.98);
  }

  50% {
    opacity: 0.72;
    transform: scale(1.04);
  }
}

@keyframes radarSweep {
  from {
    transform: translateY(-50%) rotate(0deg);
  }

  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

@keyframes auroraShift {
  0%,
  100% {
    opacity: 0.38;
    transform: translate3d(0, 0, 0) scale(0.96);
  }

  50% {
    opacity: 0.62;
    transform: translate3d(-2%, 2%, 0) scale(1.04);
  }
}

@keyframes radarBreath {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.98);
  }

  50% {
    opacity: 0.72;
    transform: scale(1.025);
  }
}

@keyframes ringBreathe {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(1);
  }

  50% {
    opacity: 0.88;
    transform: scale(1.018);
  }
}

@keyframes corePulse {
  0%,
  100% {
    opacity: 0.38;
    transform: translate(-50%, -50%) scale(0.88);
  }

  50% {
    opacity: 0.78;
    transform: translate(-50%, -50%) scale(1.18);
  }
}

@keyframes sectorGlow {
  0%,
  100% {
    opacity: 0.5;
    filter: saturate(1);
  }

  50% {
    opacity: 0.82;
    filter: saturate(1.35) drop-shadow(0 0 42px rgba(255, 94, 24, 0.24));
  }
}

@keyframes sectorOrbit {
  from {
    transform: rotate(22deg) translate(23%, -4%);
  }

  to {
    transform: rotate(382deg) translate(23%, -4%);
  }
}

@keyframes arcRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes nodePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.75;
  }

  50% {
    transform: scale(1.35);
    opacity: 1;
  }
}

@keyframes chipFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

@keyframes orbitClockwise {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes counterOrbit {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(-360deg);
  }
}

@keyframes counterOrbitObject {
  from {
    transform: translateY(-50%) rotate(0deg);
  }

  to {
    transform: translateY(-50%) rotate(-360deg);
  }
}

@keyframes orbitalWave {
  0% {
    opacity: 0.55;
    transform: scale(0.75);
  }

  70% {
    opacity: 0.18;
  }

  100% {
    opacity: 0;
    transform: scale(1.95);
  }
}

@keyframes cardTelemetry {
  0%,
  100% {
    transform: translateY(0);
    border-color: var(--line-strong);
  }

  50% {
    transform: translateY(-5px);
    border-color: rgba(255, 138, 0, 0.28);
  }
}

@keyframes telemetryLine {
  0%,
  100% {
    width: 42%;
    opacity: 0.45;
  }

  50% {
    width: 92%;
    opacity: 1;
  }
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font: inherit;
    font-weight: 800;
  }

  .site-nav {
    position: absolute;
    top: 78px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #0a0a0a;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 15px 14px;
  }

  .classified-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .hero,
  .section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .territory-rings {
    right: -18%;
    opacity: 0.58;
    width: 620px;
  }

  h1 {
    font-size: 62px;
  }

  h2,
  .classified-block h2 {
    font-size: 38px;
  }

  .section-layout,
  .section-layout.reverse,
  .impact-section,
  .contact-section,
  .classified-block,
  .classified-block.uav-block,
  .radar-body {
    grid-template-columns: 1fr;
  }

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

  .radar-screen {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand {
    font-size: 16px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .classified-pill {
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding-top: 88px;
  }

  h1 {
    font-size: 46px;
  }

  h2,
  .classified-block h2 {
    font-size: 31px;
  }

  .hero-lede {
    font-size: 15px;
  }

  .hero-badges {
    flex-direction: column;
  }

  .detection-card {
    display: none;
  }

  .register-form,
  .form-actions,
  .spec-grid,
  .route-stats {
    grid-template-columns: 1fr;
  }

  .access-card,
  .classified-block {
    padding: 22px;
  }

  .impact-number {
    font-size: 92.8px;
  }
}

/* Consola privada: demostración local de sensores y malla. */
.classified-block:has(.sensor-demo) { display: block; }
.classified-block:has(.sensor-demo) > div:first-child { max-width: 850px; }
.classified-block:has(.sensor-demo) .spec-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sensor-demo { margin-top: 36px; border: 1px solid #30483e; border-radius: 16px; overflow: hidden; background: #080e0c; color: #e2f3ec; }
.demo-heading { padding: 22px 24px; background: linear-gradient(120deg, #16251e, #0c1411); }
.demo-heading > div { display: grid; gap: 7px; }
.demo-heading strong { font-size: 16px; text-transform: none; }
.demo-eyebrow { color: #94b6a7; font-size: 12px; letter-spacing: .12em; }
.simulation-badge { flex-shrink: 0; color: #b8dbca; border: 1px solid #416453; border-radius: 30px; padding: 7px 11px; font-size: 12px; text-transform: none; }
.sensor-stage { display: grid; grid-template-columns: 1.1fr 1fr; }
.radar-visual, .mesh-visual { min-width: 0; padding: 22px; }
.radar-visual { border-right: 1px solid #23382e; }
.instrument-label, .instrument-footer { display: flex; justify-content: space-between; gap: 12px; font: 12px var(--font-mono); color: #9cbaac; }
.instrument-label { font-size: 14px; }
.instrument-label > :last-child { color: #c7f9e2; font-variant-numeric: tabular-nums; }
.sensor-radar { display: block; width: 100%; max-width: 460px; margin: 12px auto; overflow: visible; }
.radar-grid { stroke: #91d6b7; stroke-opacity: .18; stroke-width: 1; }
.radar-scale { fill: #94b8a6; font: 12px var(--font-mono); text-anchor: middle; }
.sensor-target text { fill: #d1ffe9; font: 12px var(--font-mono); }
.instrument-footer i { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #a2f8d8; }
.mesh-visual { display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(ellipse at 50% 40%, #14261d77, transparent 70%); }
.sensor-mesh { display: block; width: 100%; margin: auto 0; }
.mesh-grid { fill: none; stroke: #87b99c; stroke-opacity: .055; }
.mesh-links { fill: none; stroke: #78b097; stroke-opacity: .28; stroke-width: 1; }
.mesh-nodes { fill: #122c20; stroke: #a4dcbc; stroke-width: 1.5; }
.mesh-labels, .mesh-center-label { text-anchor: middle; fill: #afcdbb; font: 12px var(--font-mono); }
.mesh-center-label { fill: #d7ffe6; font-weight: 700; }
.mesh-core-ring { transform-origin: 200px 140px; animation: sensorCorePulse 2.8s ease-out infinite; }
.mesh-event { display: grid; gap: 8px; border-top: 1px solid #23382e; padding: 18px 0 0; font-family: var(--font-mono); }
.mesh-event > span { color: #9cbaac; font-size: 14px; }
.mesh-event strong { color: #c7f9e2; font-size: 18px; }
.mesh-event small { color: #90a89b; font-size: 12px; font-variant-numeric: tabular-nums; }
.sensor-telemetry { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #23382e; background: #0e1813; }
.sensor-telemetry > div { padding: 20px; display: grid; gap: 10px; border-right: 1px solid #23382e; }
.sensor-telemetry > div:last-child { border-right: 0; }
.sensor-telemetry span { font: 14px var(--font-sans); color: #9cbaac; }
.sensor-telemetry strong { font: 20px var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.demo-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #23382e; padding: 14px 22px; }
.demo-status { font-size: 13px; color: #9cbaac; }
.demo-service-notes p { color: #9cbaac; }
.demo-pause { cursor: pointer; border: 1px solid #4a6a57; background: #16291e; border-radius: 7px; padding: 10px 14px; color: #d7f3e2; font: 14px var(--font-sans); min-height: 44px; }
.demo-pause:hover { background: #223c2c; }
.demo-pause:focus-visible { outline: 2px solid #c7f9e2; outline-offset: 3px; }
.sensor-demo.is-paused * { animation-play-state: paused; }
@keyframes sensorCorePulse { from { transform: scale(.8); opacity: .7; } to { transform: scale(1.65); opacity: 0; } }
@media (max-width: 700px) {
  .sensor-stage { grid-template-columns: 1fr; }
  .radar-visual { border-right: 0; border-bottom: 1px solid #23382e; }
  .sensor-mesh { max-height: 280px; }
  .sensor-telemetry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sensor-telemetry > div { border-bottom: 1px solid #23382e; }
  .sensor-telemetry > div:nth-child(2n) { border-right: 0; }
  .classified-block:has(.sensor-demo) .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-heading { padding: 18px 16px; }
  .radar-visual, .mesh-visual { padding: 16px; }
  .demo-controls { flex-wrap: wrap; padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .classified-page *, .classified-page::before, .classified-page::after { animation: none !important; scroll-behavior: auto; }
  html:has(.classified-page) { scroll-behavior: auto; }
}

/* Corredor ferroviario: esquema técnico de observación, sin geografía real. */
.classified-block.uav-block.rail-section { display: block; }
.rail-section > div:last-child { margin-top: 28px; }
.rail-section .tactical-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rail-section .logout-button { margin-top: 20px; }
.rail-demo { margin-top: 30px; border: 1px solid #324659; border-radius: 16px; overflow: hidden; background: #090f17; }
.rail-heading { background: linear-gradient(110deg, #162333, #0d1520); padding: 22px; }
.rail-heading > div { display: grid; gap: 8px; }
.rail-heading strong { font-size: 16px; text-transform: none; }
.rail-heading .demo-eyebrow { color: #94abc3; }
.rail-heading .simulation-badge { color: #bddbfa; border-color: #3c536d; }
.rail-map-wrap { overflow-x: auto; }
.rail-map { display: block; width: 100%; min-width: 640px; }
.rail-mountains { stroke: #96acbe; stroke-opacity: .23; stroke-width: 1.2; stroke-linejoin: round; }
.rail-flight-guides { fill: none; stroke: #89bfe1; stroke-opacity: .16; stroke-dasharray: 5 9; }
.rail-area-label { fill: #6f8297; font: 10px var(--font-mono); letter-spacing: 1.5px; }
.rail-corridor { fill: none; stroke: #3689ff; stroke-width: 28; stroke-opacity: .055; }
.rail-sleepers { fill: none; stroke: #66aeff; stroke-width: 11; stroke-dasharray: 2 7; stroke-opacity: .8; }
.rail-track { fill: none; stroke: #388fff; stroke-width: 4; }
.rail-chainage { fill: #76879b; stroke: #708ca9; stroke-width: .6; }
.rail-chainage text { stroke: none; font: 8px var(--font-mono); text-anchor: middle; }
.rail-endpoints { fill: #9fceff; stroke: #152a45; stroke-width: 3; }
.rail-endpoints text { stroke: none; fill: #e4f1ff; font: bold 20px var(--font-mono); text-anchor: middle; }
.rail-endpoints .endpoint-sub { font: 10px var(--font-mono); fill: #97afc9; }
.rail-aircraft text { font: 12px var(--font-mono); letter-spacing: 1px; }
.rail-train-label { fill: #f5e4af; font: 10px var(--font-mono); text-anchor: middle; }
.rail-legend { display: flex; flex-wrap: wrap; gap: 15px 24px; padding: 15px 22px; border-top: 1px solid #253347; color: #a5b5c8; font-size: 12px; }
.rail-legend span { display: inline-flex; align-items: center; gap: 8px; }
.rail-legend span:last-child { margin-left: auto; color: #8d9caf; }
.rail-legend i { width: 17px; height: 3px; background: #388fff; }
.rail-legend .legend-train { height: 6px; background: #eed599; }
.rail-legend .legend-air { background: #bce6ff; }
.rail-readings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #101b29; border-top: 1px solid #253347; }
.rail-readings > div { display: grid; gap: 10px; padding: 20px; border-right: 1px solid #253347; }
.rail-readings > div:last-child { border-right: 0; }
.rail-readings span { font-size: 14px; color: #a5b5c8; }
.rail-readings strong { font: 18px var(--font-mono); font-variant-numeric: tabular-nums; color: #deedff; }
.rail-demo .demo-controls { border-color: #253347; }
.rail-demo .demo-status, .rail-demo .rail-service-notes p { color: #a5b5c8; }
.rail-demo .demo-pause { border-color: #456181; background: #182b41; color: #deedff; }
.rail-demo .demo-pause:hover { background: #24405e; }
@media (max-width: 700px) {
  .rail-heading { flex-wrap: wrap; padding: 16px; }
  .rail-readings > div { padding: 12px 9px; }
  .rail-readings span { font-size: 12px; }
  .rail-readings strong { font-size: 13px; }
  .rail-section .tactical-list { grid-template-columns: 1fr; }
  .rail-legend { padding: 14px 16px; }
  .rail-legend span:last-child { margin-left: 0; }
}

.rail-legend .legend-reverse { background: #9cf0ce; }
.rail-readings { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) {
  .rail-readings { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rail-readings > div { border-bottom: 1px solid #253347; }
}
@media (max-width: 700px) {
  .rail-readings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.prototype-nav { grid-column: 2 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 20px; flex-wrap: wrap; }
.prototype-nav > a { font-size: 14px; text-decoration: none; color: var(--soft); }
.prototype-nav .classified-pill { cursor: pointer; width: auto; }
.prototype-nav button:focus-visible { outline: 2px solid white; outline-offset: 4px; }
#access-panel, #register-panel { scroll-margin-top: 160px; }
#demo-load-status { padding: 20px; }
@media (max-width: 640px) {
  .prototype-nav { gap: 12px; }
  .prototype-nav .classified-pill { font-size: 11px; padding: 10px 12px; }
}

.app-brand { display: flex; align-items: center; justify-content: center; width: 100px; height: 88px; flex: 0 0 100px; border-radius: 6px; overflow: hidden; }
.app-brand-mechanics { background: #0d0d0d; }
.app-brand-ocubo { background: #082d3c; }
.app-brand img { display: block; width: 100%; height: 100%; object-fit: contain; }
.app-stage { display: block; margin-top: 7px; color: var(--soft); font: 12px var(--font-mono); letter-spacing: .04em; }
.app-download { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 12px; padding: 10px 0; min-height: 44px; color: #b4caff; font-size: 14px; text-underline-offset: 4px; }
.app-download:hover { color: white; }
.app-download:focus-visible { outline: 2px solid #b4caff; outline-offset: 4px; }

.app-product-card { min-height: 0; }
.app-product-card .division-index { margin-bottom: 18px; }
.app-product-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.app-product-title { min-width: 0; }
.app-owner { display: block; margin-bottom: 6px; color: var(--muted); font: 11px var(--font-mono); }
.app-product-title h3 { font-size: 22px; line-height: 1.2; }
@media (max-width: 420px) {
  .app-brand { width: 80px; height: 72px; flex-basis: 80px; }
  .app-product-heading { gap: 12px; }
  .app-product-title h3 { font-size: 20px; }
}

.ocubo-brand-accent { color: #ffc229; }

/* Firma CODEXA: monograma vectorial y denominación compartidos. */
.brand { gap: 14px; }
.codexa-symbol { display: block; flex: 0 0 auto; width: 54px; height: 42px; object-fit: contain; }
.codexa-wordmark { font-size: 22px; font-weight: 850; letter-spacing: .065em; line-height: 1; }
.site-header { border-bottom-color: rgba(255,255,255,.13); background: rgba(5,5,5,.92); }
.brand:focus-visible { outline: 2px solid white; outline-offset: 8px; border-radius: 2px; }
.site-footer { padding: 54px 40px 24px; gap: 32px; border-top: 1px solid rgba(255,255,255,.14); background: radial-gradient(ellipse at 0 0, #1c1c1c66, transparent 60%), #050505; }
.footer-brand { gap: 20px; margin-bottom: 20px; }
.footer-brand .codexa-symbol { width: 84px; height: 65px; }
.footer-brand .codexa-wordmark { font-size: 32px; letter-spacing: .08em; }
.site-footer > div > p { font-size: 14px; color: #aaa; line-height: 1.7; }
.site-footer nav { align-content: center; align-items: center; gap: 12px 22px; }
.site-footer nav a { display: inline-block; padding: 10px 0; font-size: 14px; }
.site-footer .footer-note { padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; color: #858585; }
@media (max-width: 1080px) {
  .site-header .menu-toggle { justify-self: end; }
}
@media (max-width: 640px) {
  .site-header { gap: 16px; }
  .codexa-symbol { width: 46px; height: 36px; }
  .codexa-wordmark { font-size: 20px; }
  .site-footer { padding: 36px 20px 22px; gap: 24px; }
  .footer-brand .codexa-symbol { width: 66px; height: 51px; }
  .footer-brand .codexa-wordmark { font-size: 28px; }
}

.footer-credit { display: inline-block; margin-top: 8px; padding: 8px 0; color: #7da0ff; font-size: 16px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.footer-credit:hover { color: #9bb6ff; text-decoration: underline; text-underline-offset: 4px; }
.footer-closing { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 36px; flex-wrap: wrap; }
.footer-hostinger { max-width: 100%; padding: 8px 0; color: #7da0ff; font-size: 14px; line-height: 1.6; text-decoration: underline; text-underline-offset: 4px; }
.footer-hostinger:hover { color: #9bb6ff; }
.footer-hostinger:focus-visible { outline: 2px solid #668fff; outline-offset: 4px; border-radius: 2px; }
.footer-credit:focus-visible { outline: 2px solid #668fff; outline-offset: 4px; border-radius: 2px; }

.app-development-note { display: block; margin-top: 10px; color: var(--soft); font-size: 13px; }
.app-brand-ar { background: #10242b; }
.app-brand-ar img { object-fit: cover; object-position: 65% center; }

/* Vista completa de la imagen de realidad aumentada. */
.app-brand-ar { cursor: zoom-in; }
.app-brand-ar:focus-visible { outline: 2px solid #80ddff; outline-offset: 4px; }
html.image-preview-open { overflow: hidden; }
.image-preview { width: min(2262px, 96vw); max-width: 96vw; max-height: 94dvh; padding: 0; border: 1px solid #34505c; border-radius: 12px; background: #0b151c; color: #fff; box-shadow: 0 24px 100px #0009; }
.image-preview::backdrop { background: rgb(2 8 14 / 88%); backdrop-filter: blur(8px); }
.image-preview-toolbar { display: flex; align-items: center; gap: 16px; padding: 12px 16px; font-size: 13px; }
.image-preview-toolbar > span { margin-right: auto; }
.image-preview-toolbar a { color: #80ddff; }
.image-preview-close { flex-shrink: 0; width: 40px; height: 40px; border: 1px solid #526773; border-radius: 50%; background: transparent; color: white; font-size: 28px; cursor: pointer; }
.image-preview img { display: block; width: 100%; height: auto; max-height: calc(94dvh - 76px); object-fit: contain; }
@media (max-width: 540px) { .image-preview-toolbar { gap: 10px; font-size: 11px; } }

/* Ecosistema: una fila, tres productos visibles en escritorio. */
.ecosystem-carousel { max-width: 1220px; min-width: 0; }
.carousel-controls { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-bottom: 18px; }
.carousel-status { margin-right: 12px; color: var(--soft); font-size: 12px; font-variant-numeric: tabular-nums; }
.carousel-arrow { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #111; color: #fff; font-size: 23px; cursor: pointer; transition: border-color .2s, background .2s; }
.carousel-arrow:hover:not(:disabled) { background: #172440; border-color: #668fff; }
.carousel-arrow:disabled { opacity: .3; cursor: default; }
.carousel-arrow:focus-visible, .carousel-track:focus-visible { outline: 2px solid #668fff; outline-offset: 3px; }
.division-grid.carousel-track { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 36px) / 3); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > .division-card { min-width: 0; scroll-snap-align: start; overflow-wrap: anywhere; box-shadow: none; }
@media (max-width: 1080px) { .division-grid.carousel-track { grid-auto-columns: calc((100% - 18px) / 2); } }
@media (max-width: 700px) { .division-grid.carousel-track { grid-auto-columns: 100%; } }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .classified-pill { width: auto; }
.language-toggle { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; gap: 7px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 24px; background: #111; color: #fff; font: inherit; font-size: 11px; cursor: pointer; }
.language-toggle:hover { color: #85a7ff; border-color: #668fff; }
.language-toggle:focus-visible { outline: 2px solid #668fff; outline-offset: 3px; }
@media (max-width: 1080px) { .header-actions { grid-column: 1 / -1; justify-self: end; } }

.app-web-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.app-web-thumbnail { display: block; height: 100px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #082d3c; cursor: zoom-in; }
.app-web-thumbnail img { display: block; width: 100%; height: 100%; object-fit: contain; }
.app-web-thumbnail:hover { border-color: #668fff; }
.app-web-thumbnail:focus-visible { outline: 2px solid #668fff; outline-offset: 3px; }

.app-brand[data-image-preview] { cursor: zoom-in; }
.app-brand[data-image-preview]:focus-visible { outline: 2px solid #668fff; outline-offset: 4px; }

/* Misma jerarquía visual para los cuatro productos. */
.app-product-card .app-product-heading { flex-direction: column; align-items: stretch; gap: 16px; }
.app-product-card .app-brand { width: 100%; height: 120px; flex: 0 0 120px; }
.app-product-card .app-brand img { object-fit: contain; object-position: center; }
.app-product-card .app-web-gallery { width: 100%; height: 120px; }
.app-product-card .app-web-thumbnail { height: 120px; }

.rail-service-notes, .demo-service-notes { display: grid; gap: 8px; min-width: 0; }
.rail-service-notes p, .demo-service-notes p { font-size: 13px; line-height: 1.6; }

.impact-investment-note { margin-top: 20px; font-size: 13px; line-height: 1.6; }

@media (min-width: 1081px) {
  .impact-number { margin-left: -36px; margin-right: -56px; }
}

.architecture-image { display: block; align-self: center; min-width: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.architecture-image img { display: block; width: 100%; height: auto; }
.architecture-image:focus-visible { outline: 2px solid #668fff; outline-offset: 4px; }

.admin-letter { appearance: none; display: inline; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; line-height: inherit; cursor: text; }
.admin-letter:focus-visible { outline: 2px solid #668fff; outline-offset: 2px; }
.hero-heading-en { display: none; }
html[lang="en"] .hero-heading-es { display: none; }
html[lang="en"] .hero-heading-en { display: inline; }
.admin-shell { max-width: 1220px; margin: 0 auto; padding: 48px 24px 80px; }
.admin-shell h1 { font-size: clamp(28px, 4vw, 48px); margin-bottom: 20px; }
.admin-shell h2 { font-size: 24px; margin: 24px 0; }
#admin-status { margin: 20px 0; }
.admin-error { color: #ff927d; }
.admin-toolbar { display: flex; gap: 20px; align-items: center; justify-content: space-between; margin: 24px 0; }
.admin-records { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.admin-record { padding: 24px; border: 1px solid var(--line); background: #111; border-radius: 10px; overflow-wrap: anywhere; }
.admin-record h3 { margin-bottom: 10px; }
.admin-badge { display: inline-block; color: #9fbcff; font-size: 13px; margin-bottom: 16px; }
.admin-record dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; }
.admin-record dt { color: #999; }
.admin-record-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 20px; }
.admin-record-actions a { color: #9fbcff; font-size: 13px; }
.admin-record > button { margin-top: 18px; }
.admin-page button { cursor: pointer; }
.admin-page button:disabled { opacity: .5; cursor: wait; }
.register-form small { color: var(--soft); font-size: 12px; line-height: 1.5; }

.classified-block.vip-message-section { display: block; grid-column: 1 / -1; }
.vip-message-section > div { max-width: 960px; margin: auto; }
.vip-message-section h3 { margin: 28px 0 18px; }
.vip-message-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.vip-form-wide { grid-column: 1 / -1; }
.vip-message-form textarea { width: 100%; padding: 12px; background: #101318; color: #eee; border: 1px solid var(--line); border-radius: 8px; font: inherit; resize: vertical; }
.vip-message-form small { color: var(--soft); font-size: 12px; }
.vip-message-form .vip-confirm { display: flex; align-items: flex-start; gap: 12px; }
.vip-confirm input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; }
.vip-confirm span { font: inherit; font-size: 13px; line-height: 1.6; }
.vip-message-form button:disabled { opacity: .5; cursor: wait; }
.vip-message-form .form-status { margin-top: 14px; }
.admin-message-body { white-space: pre-wrap; margin-top: 18px; }
@media (max-width: 640px) { .vip-message-form { grid-template-columns: 1fr; } }

.privacy-page { min-height: 55vh; }
.privacy-page h1 { font-size: clamp(32px, 5vw, 64px); margin-bottom: 32px; }
.privacy-content { max-width: 800px; display: grid; gap: 18px; }
.privacy-content a { color: #9fbcff; }
.site-nav { gap: clamp(12px, 1.6vw, 28px); }
.site-nav a[aria-current="page"] { color: #fff; }

.privacy-content section { padding: 24px 0; border-top: 1px solid var(--line); }
.privacy-content section h2 { font-size: 23px; line-height: 1.35; margin-bottom: 18px; }
.privacy-content section p + p { margin-top: 16px; }
.privacy-content > p:nth-child(3) { border-left: 3px solid #668fff; padding-left: 16px; }

/* Acabado humo aprobado: solo tarjetas del sitio público. */
.public-site :is(.division-card, .contact-card, .phase-list > div, .impact-steps > div, .detection-card) {
  background: linear-gradient(135deg, rgba(104, 104, 104, .12), rgba(35, 35, 35, .08)), rgba(45, 45, 45, .42);
  border: 1px solid rgba(214, 220, 226, .27);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 12px 28px rgba(0, 0, 0, .12);
  -webkit-backdrop-filter: blur(.6px);
  backdrop-filter: blur(.6px);
}
.public-site .app-brand-mechanics { background: transparent; }

.privacy-content p {
  text-align: justify;
  hyphens: auto;
}

/* Monograma suministrado: encuadre visual sin alterar el archivo original. */
.codexa-symbol-frame { position: relative; overflow: hidden; mix-blend-mode: screen; }
.codexa-symbol-frame img { position: absolute; width: 205%; max-width: none; height: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); }

.codexa-auth-dialog { color: #edf2fa; background: #0e1520; border: 1px solid #5074ac; border-radius: 16px; padding: 28px; width: min(540px, calc(100vw - 32px)); max-height: 90vh; overflow: auto; }
.codexa-auth-dialog::backdrop { background: rgba(0,0,0,.85); }
.codexa-auth-dialog h2 { margin: 0 0 20px; }
.codexa-auth-dialog p { line-height: 1.6; margin: 16px 0; }
.codexa-mfa-secret { display: block; overflow-wrap: anywhere; user-select: all; background: #050b15; padding: 16px; border-radius: 8px; font-size: 18px; letter-spacing: .08em; }
.codexa-auth-dialog pre { white-space: pre-wrap; user-select: all; padding: 16px; background: #050b15; }
.codexa-auth-dialog > button { margin: 8px 8px 0 0; }

.codexa-mfa-qr { display:block; width:min(288px,100%); height:auto; margin:20px auto; background:#fff; image-rendering:pixelated; }
.codexa-auth-dialog details { margin:16px 0; }
.codexa-auth-dialog summary { cursor:pointer; color:#a7c6ff; }

/* Administración: documentos y contacto por usuario. */
.admin-table-scroll { width:100%; overflow-x:auto; margin:20px 0 40px; border:1px solid var(--line); border-radius:12px; background:#101113; }
.admin-table { width:100%; min-width:1080px; border-collapse:collapse; font-size:14px; text-align:left; }
.admin-table caption { text-align:left; padding:18px; color:var(--soft); }
.admin-table th { color:#b4caff; background:#171b24; font-size:12px; letter-spacing:.035em; }
.admin-table th,.admin-table td { padding:18px 16px; vertical-align:top; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.admin-table td { min-width:130px; max-width:250px; }
.admin-table tr:last-child td { border-bottom:0; }
.admin-table tbody tr:hover { background:#151820; }
.admin-table small { display:block; color:var(--soft); margin-top:7px; }
.admin-table a { display:block; color:#9fbcff; margin-top:8px; text-decoration:underline; text-underline-offset:3px; }
.admin-table-actions { display:flex; gap:8px; flex-wrap:wrap; }
.admin-table-actions .button { padding:9px 12px; font-size:12px; }
