/* ============================================================
   Apex One Technologies · style.css
   Palette: deep navy anchor, crisp white/gray, vivid red accent
   ============================================================ */

:root {
  --navy-950: #060F26;
  --navy-900: #081430;
  --navy-800: #0A1B3D;
  --navy-700: #0D2145;
  --navy-600: #12294F;
  --navy-500: #1B3A6B;
  --blue-line: #1E3A6E;
  --blue: #3B82F6;
  --blue-bright: #4D9FFF;
  --blue-soft: #9DC4FF;
  --red: #E11D2A;
  --red-deep: #D7263D;
  --red-dark: #B31220;
  --white: #FFFFFF;
  --gray-50: #F5F7FB;
  --gray-100: #EDF1F7;
  --gray-300: #C9D3E0;
  --gray-500: #6B7A90;
  --ink: #0B1830;
  --ink-soft: #3D4C63;

  --font-display: "Sora", "Inter", -apple-system, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  --shadow-card: 0 6px 24px rgba(8, 20, 48, 0.08), 0 2px 6px rgba(8, 20, 48, 0.05);
  --shadow-card-hover: 0 18px 44px rgba(8, 20, 48, 0.16), 0 0 0 1px rgba(225, 29, 42, 0.18), 0 0 34px rgba(225, 29, 42, 0.12);
  --shadow-card-navy: 0 10px 34px rgba(0, 0, 0, 0.35);

  --radius: 14px;
  --radius-lg: 20px;
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

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

ul { list-style: none; }

button { font: inherit; cursor: pointer; border: none; background: none; }

::selection { background: var(--red); color: var(--white); }

.container {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

section { position: relative; }

.section { padding: 104px 0; }
.section-tight { padding: 84px 0; }

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.on-navy h1, .on-navy h2, .on-navy h3, .on-navy h4 { color: var(--white); }

h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.35rem; }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 640px;
}

.on-navy .lead, .on-navy p { color: var(--gray-300); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--red);
}

.accent-red { color: var(--red); }
.accent-blue { color: var(--blue-bright); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head.centered .eyebrow { justify-content: center; }
.section-head.centered .eyebrow::before { display: none; }
.section-head.centered .lead { margin-inline: auto; }
.section-head h2 { margin-bottom: 16px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  padding: 16px 34px;
  border-radius: 10px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
  will-change: transform;
  white-space: nowrap;
}

.btn svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn-red {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(225, 29, 42, 0.32);
}

.btn-red:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(225, 29, 42, 0.45), 0 0 26px rgba(225, 29, 42, 0.35);
}

.btn-red:active { transform: translateY(-1px); }

.btn-outline {
  color: var(--white);
  border: 1.5px solid rgba(157, 196, 255, 0.55);
  background: rgba(77, 159, 255, 0.06);
}

.btn-outline:hover {
  transform: translateY(-3px);
  border-color: var(--blue-bright);
  background: rgba(77, 159, 255, 0.14);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.25);
}

.btn-outline-dark {
  color: var(--navy-800);
  border: 1.5px solid rgba(13, 33, 69, 0.35);
  background: transparent;
}

.btn-outline-dark:hover {
  transform: translateY(-3px);
  border-color: var(--navy-800);
  box-shadow: 0 10px 26px rgba(8, 20, 48, 0.14);
}

.btn-lg { padding: 19px 46px; font-size: 1.06rem; }

/* ---------- Navigation ---------- */

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(8, 20, 48, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(30, 58, 110, 0.5);
  transition: background 0.3s, box-shadow 0.3s;
}

.site-nav.scrolled {
  background: rgba(6, 15, 38, 0.95);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.brand-mark { width: 38px; height: 38px; filter: drop-shadow(0 2px 8px rgba(225, 29, 42, 0.45)); }

.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1;
}

.brand-text em { font-style: normal; color: var(--red); }

.brand-text small {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.56rem;
  letter-spacing: 0.42em;
  color: var(--blue-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links > a:not(.nav-cta) {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--gray-300);
  padding: 6px 0;
  transition: color 0.25s;
}

.nav-links > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2.5px;
  width: 100%;
  background: var(--red);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-links > a:not(.nav-cta):hover { color: var(--white); }
.nav-links > a:not(.nav-cta):hover::after { transform: scaleX(0.5); }

.nav-links > a.active { color: var(--white); }
.nav-links > a.active::after { transform: scaleX(1); box-shadow: 0 0 12px rgba(225, 29, 42, 0.7); }

.nav-cta {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  padding: 11px 22px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(225, 29, 42, 0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(225, 29, 42, 0.5);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 70px) 0 90px;
  background: radial-gradient(1100px 600px at 75% -10%, var(--navy-600) 0%, var(--navy-800) 45%, var(--navy-950) 100%);
  overflow: hidden;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.hero-glow.blue {
  width: 640px; height: 640px;
  right: -160px; top: -180px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.28), transparent 65%);
  animation: drift 14s ease-in-out infinite alternate;
}

.hero-glow.red {
  width: 460px; height: 460px;
  left: -140px; bottom: -160px;
  background: radial-gradient(circle, rgba(225, 29, 42, 0.16), transparent 65%);
  animation: drift 18s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(60px, 40px) scale(1.12); }
}

.hero-inner { position: relative; z-index: 2; max-width: 860px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-soft);
  border: 1px solid rgba(77, 159, 255, 0.35);
  background: rgba(77, 159, 255, 0.08);
  padding: 9px 18px;
  border-radius: 999px;
  margin-bottom: 30px;
}

.hero-badge .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); position: relative; }
.hero-badge .live-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid var(--red);
  animation: ping 1.8s ease-out infinite;
}

@keyframes ping {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.9); opacity: 0; }
}

.hero h1 { color: var(--white); margin-bottom: 26px; }
.hero h1 .accent-red { text-shadow: 0 0 40px rgba(225, 29, 42, 0.45); }

.hero .lead { color: var(--gray-300); margin-bottom: 44px; }

.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(157, 196, 255, 0.4);
  border-radius: 14px;
}

.hero-scroll::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 3px;
  background: var(--blue-bright);
  animation: scrollHint 1.8s ease-in-out infinite;
}

@keyframes scrollHint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Trust bar / stats ---------- */

.trustbar {
  background: var(--navy-950);
  border-top: 1px solid var(--blue-line);
  border-bottom: 1px solid var(--blue-line);
  padding: 52px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat { text-align: center; position: relative; }

.stat + .stat::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, transparent, var(--blue-line), transparent);
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 800;
  color: var(--red);
  line-height: 1.1;
  text-shadow: 0 0 30px rgba(225, 29, 42, 0.35);
}

.stat:nth-child(even) .stat-value { color: var(--blue-bright); text-shadow: 0 0 30px rgba(77, 159, 255, 0.35); }

.stat-label {
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
}

/* ---------- Cards ---------- */

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(225, 29, 42, 0.25);
}

.card-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  box-shadow: inset 0 0 0 1px rgba(77, 159, 255, 0.25), 0 6px 18px rgba(8, 20, 48, 0.25);
  margin-bottom: 24px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.card:hover .card-icon {
  transform: scale(1.07);
  box-shadow: inset 0 0 0 1px rgba(225, 29, 42, 0.5), 0 6px 22px rgba(225, 29, 42, 0.3);
}

.card-icon svg { width: 27px; height: 27px; stroke: var(--blue-bright); transition: stroke 0.35s; }
.card:hover .card-icon svg { stroke: var(--red); }

.card h3 { margin-bottom: 12px; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Platform section (navy) ---------- */

.platform {
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(59, 130, 246, 0.12), transparent 60%),
    radial-gradient(700px 500px at 90% 100%, rgba(225, 29, 42, 0.08), transparent 60%),
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature {
  background: rgba(18, 41, 79, 0.55);
  border: 1px solid rgba(30, 58, 110, 0.8);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s, box-shadow 0.35s var(--ease);
}

.feature:hover {
  transform: translateY(-6px);
  border-color: rgba(225, 29, 42, 0.55);
  background: rgba(18, 41, 79, 0.85);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4), 0 0 24px rgba(225, 29, 42, 0.14);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(77, 159, 255, 0.12);
  border: 1px solid rgba(77, 159, 255, 0.3);
  margin-bottom: 20px;
}

.feature-icon svg { width: 22px; height: 22px; stroke: var(--blue-bright); }
.feature:hover .feature-icon { border-color: rgba(225, 29, 42, 0.5); background: rgba(225, 29, 42, 0.1); }
.feature:hover .feature-icon svg { stroke: var(--red); }

.feature h3 { font-size: 1.02rem; color: var(--white); margin-bottom: 8px; }
.feature p { font-size: 0.88rem; color: var(--gray-300); line-height: 1.55; }

/* ---------- Dashboard mockup ---------- */

.dashboard-section { background: var(--gray-50); }

.dashboard {
  background: var(--navy-950);
  border: 1px solid var(--blue-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(8, 20, 48, 0.35);
}

.dash-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  background: var(--navy-900);
  border-bottom: 1px solid var(--blue-line);
}

.dash-dots { display: flex; gap: 7px; }
.dash-dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--navy-500); }
.dash-dots span:first-child { background: var(--red); }

.dash-title {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gray-300);
  letter-spacing: 0.04em;
}

.dash-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--red);
  border: 1px solid rgba(225, 29, 42, 0.45);
  background: rgba(225, 29, 42, 0.1);
  padding: 5px 13px;
  border-radius: 999px;
}

.dash-live .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: blink 1.4s ease-in-out infinite; }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.dash-body {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
}

/* Map panel */

.dash-map {
  position: relative;
  min-height: 420px;
  background:
    linear-gradient(rgba(30, 58, 110, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 110, 0.35) 1px, transparent 1px),
    radial-gradient(600px 400px at 60% 40%, rgba(59, 130, 246, 0.1), transparent 70%),
    var(--navy-950);
  background-size: 44px 44px, 44px 44px, auto, auto;
  border-right: 1px solid var(--blue-line);
  overflow: hidden;
}

.dash-map svg.map-roads { position: absolute; inset: 0; width: 100%; height: 100%; }

.geofence {
  position: absolute;
  left: 14%;
  top: 16%;
  width: 46%;
  height: 56%;
  border: 2px dashed rgba(77, 159, 255, 0.5);
  border-radius: 18px;
  background: rgba(59, 130, 246, 0.05);
}

.geofence-label {
  position: absolute;
  top: -12px;
  left: 16px;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--blue-soft);
  background: var(--navy-900);
  border: 1px solid rgba(77, 159, 255, 0.4);
  padding: 3px 10px;
  border-radius: 999px;
}

.guard {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 12px rgba(77, 159, 255, 0.9), 0 0 0 3px rgba(77, 159, 255, 0.2);
}

.guard::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid var(--blue-bright);
  animation: ping 2.4s ease-out infinite;
}

.guard .guard-tag {
  position: absolute;
  left: 20px;
  top: -6px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  background: rgba(18, 41, 79, 0.92);
  border: 1px solid rgba(77, 159, 255, 0.4);
  padding: 3px 9px;
  border-radius: 6px;
}

.guard.g2::after { animation-delay: 0.8s; }
.guard.g3::after { animation-delay: 1.5s; }

.checkpoint {
  position: absolute;
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  background: rgba(157, 196, 255, 0.85);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(157, 196, 255, 0.6);
}

.alert-ping {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 16px rgba(225, 29, 42, 0.95), 0 0 0 3px rgba(225, 29, 42, 0.25);
}

.alert-ping::before, .alert-ping::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1.5px solid var(--red);
  animation: ping 1.6s ease-out infinite;
}

.alert-ping::after { animation-delay: 0.55s; }

.alert-ping .alert-tag {
  position: absolute;
  left: 22px;
  top: -8px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--white);
  background: rgba(225, 29, 42, 0.92);
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(225, 29, 42, 0.45);
}

.patrol-path {
  stroke: rgba(77, 159, 255, 0.55);
  stroke-width: 2;
  stroke-dasharray: 6 8;
  fill: none;
  animation: dashMove 22s linear infinite;
}

@keyframes dashMove { to { stroke-dashoffset: -700; } }

/* Feed panel */

.dash-feed { display: flex; flex-direction: column; background: var(--navy-900); }

.dash-feed-head {
  padding: 16px 22px 12px;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-500);
  border-bottom: 1px solid var(--blue-line);
}

.feed-list { flex: 1; padding: 10px 14px; overflow: hidden; }

.feed-item {
  display: flex;
  gap: 12px;
  padding: 12px 10px;
  border-radius: 10px;
  align-items: flex-start;
}

.feed-item.slide-in { animation: feedIn 0.5s var(--ease); }

@keyframes feedIn {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: translateY(0); }
}

.feed-dot {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 7px;
  background: var(--blue-bright);
  box-shadow: 0 0 8px rgba(77, 159, 255, 0.7);
}

.feed-item.alert .feed-dot { background: var(--red); box-shadow: 0 0 8px rgba(225, 29, 42, 0.8); }
.feed-item.ok .feed-dot { background: #2ECC71; box-shadow: 0 0 8px rgba(46, 204, 113, 0.7); }

.feed-text { font-size: 0.85rem; color: var(--gray-300); line-height: 1.45; }
.feed-text strong { color: var(--white); font-weight: 600; }
.feed-time { display: block; font-size: 0.72rem; color: var(--gray-500); margin-top: 2px; }

.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--blue-line);
}

.dash-stat { padding: 16px 10px; text-align: center; }
.dash-stat + .dash-stat { border-left: 1px solid var(--blue-line); }

.dash-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--blue-bright);
}

.dash-stat.alert b { color: var(--red); }

.dash-stat span {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
}

/* ---------- CTA band ---------- */

.cta-band {
  background:
    radial-gradient(700px 340px at 80% 20%, rgba(225, 29, 42, 0.14), transparent 65%),
    radial-gradient(600px 400px at 10% 90%, rgba(59, 130, 246, 0.14), transparent 65%),
    linear-gradient(135deg, var(--navy-800), var(--navy-950));
  padding: 96px 0;
  text-align: center;
  overflow: hidden;
}

.cta-band h2 { color: var(--white); margin-bottom: 18px; }
.cta-band p { color: var(--gray-300); max-width: 560px; margin: 0 auto 40px; font-size: 1.1rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-950);
  border-top: 1px solid var(--blue-line);
  padding: 72px 0 0;
  color: var(--gray-300);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { font-size: 0.92rem; color: var(--gray-500); max-width: 340px; }

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.92rem; color: var(--gray-500); transition: color 0.25s, padding-left 0.25s; }
.footer-col a:hover { color: var(--red); padding-left: 4px; }

.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--gray-500);
}

.footer-contact svg { width: 17px; height: 17px; stroke: var(--red); flex-shrink: 0; margin-top: 3px; }

.footer-bottom {
  border-top: 1px solid rgba(30, 58, 110, 0.5);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--gray-500);
}

/* ---------- Page hero (subpages) ---------- */

.page-hero {
  padding: calc(var(--nav-h) + 96px) 0 88px;
  background:
    radial-gradient(800px 420px at 80% 0%, rgba(59, 130, 246, 0.16), transparent 60%),
    radial-gradient(500px 300px at 5% 100%, rgba(225, 29, 42, 0.1), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  overflow: hidden;
}

.page-hero h1 { color: var(--white); font-size: clamp(2.4rem, 4.6vw, 3.6rem); margin-bottom: 18px; }
.page-hero .lead { color: var(--gray-300); }

/* ---------- About page ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.split .section-head { margin-bottom: 0; }

.story-points { display: flex; flex-direction: column; gap: 22px; margin-top: 32px; }

.story-point { display: flex; gap: 18px; align-items: flex-start; }

.story-point .tick {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(225, 29, 42, 0.1);
  border: 1.5px solid rgba(225, 29, 42, 0.4);
  margin-top: 2px;
}

.story-point .tick svg { width: 13px; height: 13px; stroke: var(--red); stroke-width: 3; }
.story-point p { color: var(--ink-soft); font-size: 0.98rem; }
.story-point strong { color: var(--ink); display: block; font-family: var(--font-display); font-size: 1.02rem; margin-bottom: 2px; }

.mission-band {
  background:
    radial-gradient(600px 300px at 85% 30%, rgba(225, 29, 42, 0.12), transparent 60%),
    linear-gradient(135deg, var(--navy-800), var(--navy-950));
  padding: 96px 0;
  text-align: center;
}

.mission-band .eyebrow { justify-content: center; }
.mission-band .eyebrow::before { display: none; }

.mission-band blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--white);
  max-width: 860px;
  margin: 0 auto;
  letter-spacing: -0.015em;
}

.mission-band blockquote .accent-red { text-shadow: 0 0 34px rgba(225, 29, 42, 0.4); }

.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

/* ---------- Services page ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card { display: flex; flex-direction: column; }
.service-card p { flex: 1; }

.service-card .service-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--gray-100);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-card .service-note svg { width: 15px; height: 15px; stroke: var(--red); }

/* ---------- Portal pages ---------- */

.portal-wrap {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 60px) 24px 80px;
  background:
    radial-gradient(900px 500px at 70% 10%, rgba(59, 130, 246, 0.14), transparent 60%),
    radial-gradient(600px 400px at 10% 90%, rgba(225, 29, 42, 0.1), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-950));
}

.portal-card {
  width: min(560px, 100%);
  background: rgba(10, 27, 61, 0.7);
  border: 1px solid rgba(30, 58, 110, 0.9);
  border-radius: 24px;
  padding: 64px 56px;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
}

.portal-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 30px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy-600), var(--navy-800));
  border: 1px solid rgba(77, 159, 255, 0.35);
  box-shadow: 0 14px 40px rgba(8, 20, 48, 0.5), 0 0 30px rgba(77, 159, 255, 0.12);
}

.portal-icon svg { width: 38px; height: 38px; stroke: var(--blue-bright); }

.portal-card h1 { color: var(--white); font-size: clamp(2rem, 4vw, 2.7rem); margin-bottom: 16px; }
.portal-card p { color: var(--gray-300); margin-bottom: 38px; font-size: 1.02rem; }

.portal-note {
  margin-top: 26px;
  font-size: 0.8rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.portal-note svg { width: 14px; height: 14px; stroke: var(--gray-500); }

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 46px;
  box-shadow: var(--shadow-card);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-group { margin-bottom: 22px; }

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-700);
  margin-bottom: 9px;
}

.form-group label em { color: var(--red); font-style: normal; }

.form-group input,
.form-group textarea {
  width: 100%;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  padding: 14px 17px;
  border: 1.5px solid var(--gray-300);
  border-radius: 10px;
  background: var(--gray-50);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-success {
  display: none;
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 10px;
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.4);
  color: #1E8449;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-success.show { display: block; animation: feedIn 0.4s var(--ease); }

.form-success.error {
  background: rgba(225, 29, 42, 0.08);
  border-color: rgba(225, 29, 42, 0.4);
  color: var(--red-dark);
}

.contact-info-card {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  color: var(--gray-300);
  box-shadow: var(--shadow-card-navy);
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.contact-info-card h3 { color: var(--white); margin-bottom: 10px; }
.contact-info-card > p { font-size: 0.94rem; color: var(--gray-300); margin-bottom: 34px; }

.contact-lines { display: flex; flex-direction: column; gap: 26px; }

.contact-line { display: flex; gap: 16px; align-items: flex-start; }

.contact-line .ci {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(225, 29, 42, 0.12);
  border: 1px solid rgba(225, 29, 42, 0.35);
}

.contact-line .ci svg { width: 20px; height: 20px; stroke: var(--red); }

.contact-line b {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-soft);
  margin-bottom: 3px;
}

.contact-line span { font-size: 0.98rem; color: var(--white); }

.contact-hours {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid rgba(30, 58, 110, 0.8);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
}

.contact-hours .live-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #2ECC71;
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.8);
  animation: blink 2s ease-in-out infinite;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}

.reveal.in { opacity: 1; transform: none; }

.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-left.in, .reveal-right.in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-3, .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .dash-body { grid-template-columns: 1fr; }
  .dash-map { border-right: none; border-bottom: 1px solid var(--blue-line); }
}

@media (max-width: 880px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(6, 15, 38, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--blue-line);
    padding: 12px 24px 24px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.3s, visibility 0.3s;
  }

  .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; }

  .nav-links > a:not(.nav-cta) {
    padding: 15px 4px;
    font-size: 1.02rem;
    border-bottom: 1px solid rgba(30, 58, 110, 0.4);
  }

  .nav-links > a:not(.nav-cta)::after { bottom: 12px; width: 34px; }

  .nav-cta { margin-top: 18px; text-align: center; justify-content: center; display: inline-flex; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-info-card { position: static; }
}

@media (max-width: 680px) {
  .section { padding: 76px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .stat + .stat::before { display: none; }
  .cards-3, .services-grid, .platform-grid, .diff-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .hero-actions .btn { width: 100%; }
  .contact-form-card { padding: 32px 24px; }
  .portal-card { padding: 48px 28px; }
  .dash-map { min-height: 340px; }
  .guard .guard-tag, .geofence-label { font-size: 0.56rem; }
  .footer-bottom { justify-content: center; text-align: center; }
}
