/* ==========================================================================
   RED INTELLIGENCE — site styles (light, business-friendly theme)
   Zero dependencies. No external fonts, no frameworks, no CDN calls.
   Light surfaces, navy text, brand red as the accent. Dark is reserved for
   "product" moments (terminal, code) and the closing call-to-action panel.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-2: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e6e8ef;
  --border-2: #d5d9e2;

  --text: #0f172a;
  --text-2: #475569;
  --text-3: #5d6b80;

  --red: #d7313b; /* fills: buttons, marks (white text passes AA) */
  --red-hover: #bf2631;
  --red-2: #c42833; /* red text on light backgrounds */
  --red-deep: #a51f29;
  --red-dim: #fff1f1;
  --red-line: #fbd0d2;

  --green: #15803d;
  --green-dim: #e8f8ee;
  --amber: #b45309;
  --amber-dim: #fff6e5;

  --sans: "Segoe UI Variable Display", "Segoe UI", Inter, -apple-system,
    BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", "Fira Code", "SF Mono", Consolas,
    "Liberation Mono", monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 68px;
  --container: 1180px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 20px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 2px 6px rgba(15, 23, 42, 0.05), 0 22px 48px rgba(15, 23, 42, 0.12);

  --mark: #13294b;
  --header-bg: rgba(255, 255, 255, 0.88);
  --hover-bg: #f1f4f8;
  --input-bg: #ffffff;
  --placeholder: #94a3b8;
  --row-hover: #fafbfd;
  --x-dim: #fdecec;
  --invalid-bg: #fffafa;
  --green-line: #bbe7c9;
  --grid-line: rgba(15, 23, 42, 0.045);
  --menu-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
  --hero-bg: radial-gradient(55% 60% at 88% 8%, rgba(215, 49, 59, 0.1), transparent 70%),
    radial-gradient(45% 50% at 0% 100%, rgba(37, 99, 235, 0.07), transparent 70%),
    linear-gradient(180deg, #fbfcfe 0%, #ffffff 100%);
  --page-hero-bg: radial-gradient(50% 80% at 92% 0%, rgba(215, 49, 59, 0.09), transparent 70%),
    linear-gradient(180deg, #fbfcfe 0%, #f6f7fb 100%);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* native controls, scrollbars and form widgets follow the active theme */
  color-scheme: light dark;
}

/* Dark "product" surfaces re-map the tokens so everything inside them adapts */
.terminal,
.rm-code,
.cta-band {
  --bg: #0b1220;
  --bg-2: #0f172a;
  --surface: #111a2c;
  --surface-2: #1b263b;
  --border: #22304a;
  --border-2: #3a4a68;
  --text: #f8fafc;
  --text-2: #cbd5e1;
  --text-3: #94a3b8;
  --red-2: #ff7a7f;
  --red-dim: rgba(255, 122, 127, 0.14);
  --green: #4ade80;
  --amber: #fbbf24;
}

/* ---------- reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--red-2);
  text-decoration: none;
}
a:hover {
  color: var(--red-deep);
}
h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text);
}
h1 {
  font-size: clamp(2.35rem, 5.2vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 1.08;
}
h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  letter-spacing: -0.026em;
}
h3 {
  font-size: 1.15rem;
  letter-spacing: -0.012em;
}
p {
  margin: 0 0 1em;
  color: var(--text-2);
}
ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.2em;
  color: var(--text-2);
}
li {
  margin-bottom: 0.45em;
}
code {
  font-family: var(--mono);
  font-size: 0.88em;
}
::selection {
  background: var(--red);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--red-2);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}

/* utilities + eyebrow labels */
.mono {
  font-family: var(--mono);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-2);
  background: var(--red-dim);
  border-radius: 999px;
  padding: 5px 13px;
  margin-bottom: 16px;
}
.section-head {
  max-width: 680px;
  margin-bottom: 48px;
}
.section-head p {
  font-size: 1.08rem;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

section {
  position: relative;
  padding: 96px 0;
}
section.tight {
  padding: 64px 0;
}
.section-alt {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* soft blueprint grid backdrop */
.grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 25%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 25%, transparent 100%);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s, color 0.16s, box-shadow 0.16s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 1px 2px rgba(215, 49, 59, 0.25), 0 6px 16px rgba(215, 49, 59, 0.18);
}
.btn-primary:hover {
  color: #fff;
  background: var(--red-hover);
  border-color: var(--red-hover);
}
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-2);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-3);
  background: var(--surface-2);
}
.btn-sm {
  padding: 9px 18px;
  font-size: 0.9rem;
}
.btn-lg {
  padding: 14px 30px;
  font-size: 1rem;
}
.btn .arr {
  transition: transform 0.16s var(--ease);
}
.btn:hover .arr {
  transform: translateX(3px);
}

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  color: var(--mark); /* shield outlines follow the theme */
}
.brand-name {
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}
.brand-name b {
  color: var(--red-2);
  font-weight: 700;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.site-nav a:not(.btn) {
  color: var(--text-2);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}
.site-nav a:not(.btn):hover {
  color: var(--text);
  background: var(--hover-bg);
}
.site-nav a[aria-current="page"]:not(.btn) {
  color: var(--red-2);
  background: var(--red-dim);
  font-weight: 600;
}
.nav-cta {
  margin-left: 12px;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 11px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 920px) {
  .nav-toggle {
    display: flex;
  }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--menu-shadow);
    padding: 12px 24px 20px;
    display: none;
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav a:not(.btn) {
    padding: 12px 14px;
    font-size: 1.02rem;
    border-radius: var(--radius-sm);
  }
  .nav-cta {
    margin: 10px 0 0;
    justify-content: center;
  }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 88px;
  overflow: hidden;
  background: var(--hero-bg);
  border-bottom: 1px solid var(--border);
}
#net-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, var(--bg) 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border-radius: 999px;
  padding: 7px 16px 7px 12px;
  margin-bottom: 24px;
}
.hero-badge .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
  flex: none;
}
.hero h1 em {
  font-style: normal;
  color: var(--red-2);
}
.hero-sub {
  font-size: 1.15rem;
  max-width: 560px;
  margin: 6px 0 32px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-2);
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-meta .tick {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-dim);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
}
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

/* ---------- terminal (dark product card) ---------- */
.terminal {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.75;
  box-shadow: var(--shadow-lg);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.terminal-bar .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot.r {
  background: #ff5f57;
}
.dot.a {
  background: #febc2e;
}
.dot.g {
  background: #28c840;
}
.terminal-title {
  margin-left: 8px;
  color: var(--text-3);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}
.terminal-body {
  padding: 18px 18px 20px;
  min-height: 218px;
  color: #c3c9d4;
  white-space: pre-wrap;
  word-break: break-word;
}
.terminal-body .t-cmd {
  color: var(--text);
  font-weight: 600;
}
.terminal-body .t-cmd::before {
  content: "$ ";
  color: var(--red-2);
}
.terminal-body .t-ok {
  color: var(--green);
}
.terminal-body .t-info {
  color: var(--text-3);
}
.terminal-body .t-warn {
  color: var(--amber);
}
.terminal-body .t-red {
  color: var(--red-2);
}
.caret {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--red-2);
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ---------- certifications strip (marquee) ---------- */
.marquee-section {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  padding: 16px 0 18px;
  overflow: hidden;
}
.marquee-label {
  margin: 0 0 10px;
  padding: 0 20px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.marquee {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee:hover {
  animation-play-state: paused;
}
.marquee ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.marquee li {
  display: flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-3);
  white-space: nowrap;
  padding: 0 14px;
  margin: 0;
}
.marquee li::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border-2);
  margin-left: 28px;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- cards ---------- */
.card-grid {
  display: grid;
  gap: 18px;
}
.card-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.card-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.card-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 980px) {
  .card-grid.cols-3,
  .card-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .card-grid {
    grid-template-columns: 1fr !important;
  }
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.card:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow);
}
.card h3 {
  margin-bottom: 8px;
}
.card p {
  margin-bottom: 0;
  font-size: 0.96rem;
}
.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--red-2);
}
.card .card-link:hover {
  color: var(--red-deep);
}
.card-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}
.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--red-dim);
  color: var(--red-2);
  margin-bottom: 18px;
}
.card-icon svg {
  width: 23px;
  height: 23px;
}
.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-dim);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 14px;
}
.card-tag.red {
  color: var(--red-2);
  background: var(--red-dim);
}
.card ul {
  font-size: 0.92rem;
  margin-top: 14px;
  padding-left: 1.1em;
}
.card ul li::marker {
  color: var(--red);
}
.card ul.check-list {
  padding-left: 0;
  font-size: inherit;
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 980px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
.step {
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.step-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--red-2);
  background: var(--red-dim);
  border-radius: 999px;
  display: inline-block;
  padding: 4px 11px;
  margin-bottom: 14px;
}
.step h3 {
  font-size: 1.05rem;
}
.step p {
  font-size: 0.93rem;
  margin: 0;
}

/* ---------- split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 940px) {
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.check-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  margin: 0;
}
.check-list li:last-child {
  border-bottom: 0;
}
.check-list .chk {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--green-dim);
  color: var(--green);
  font-weight: 800;
  font-size: 0.78rem;
  line-height: 1;
}
.check-list .x {
  background: var(--x-dim);
  color: var(--red-2);
}
.check-list .warn {
  background: var(--amber-dim);
  color: var(--amber);
}
.check-list b {
  color: var(--text);
  display: block;
  font-size: 0.98rem;
}
.check-list span {
  font-size: 0.92rem;
  color: var(--text-2);
}

/* ---------- stats band ---------- */
.stats-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 48px 0;
}
@media (max-width: 880px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
.stat {
  text-align: center;
  padding: 10px 12px;
}
.stat + .stat {
  border-left: 1px solid var(--border);
}
@media (max-width: 880px) {
  .stat:nth-child(3) {
    border-left: 0;
  }
}
.stat-value {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat-value i {
  font-style: normal;
  color: var(--red-2);
}
.stat-label {
  font-size: 0.9rem;
  color: var(--text-3);
  margin-top: 2px;
}

/* ---------- testimonials ---------- */
.quote-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
}
.quote-card blockquote {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.65;
}
.quote-card blockquote::before {
  content: "\201C";
  display: block;
  font-size: 3rem;
  line-height: 0.6;
  color: var(--red);
  margin: 8px 0 12px;
  font-family: Georgia, serif;
}
.quote-who {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.avatar {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red-2);
  background: var(--red-dim);
  border: 1px solid var(--red-line);
}
.avatar svg {
  width: 22px;
  height: 22px;
}
.quote-who b {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
}
.quote-who span {
  font-size: 0.85rem;
  color: var(--text-3);
}

/* ---------- FAQ accordion ---------- */
.faq {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s;
}
.faq-item.open {
  border-color: var(--border-2);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  background: none;
  border: 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 600;
  padding: 19px 22px;
  cursor: pointer;
  transition: background 0.15s;
}
.faq-q:hover {
  background: var(--surface-2);
}
.faq-q .chev {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--red-dim);
  color: var(--red-2);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.25s var(--ease);
}
.faq-item.open .chev {
  transform: rotate(45deg);
}
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}
.faq-item.open .faq-a {
  grid-template-rows: 1fr;
}
.faq-a-inner {
  overflow: hidden;
}
.faq-a p {
  margin: 0;
  padding: 0 22px 20px;
  font-size: 0.97rem;
}

/* ---------- CTA band (navy panel) ---------- */
.cta-band {
  position: relative;
  border-radius: 22px;
  background: radial-gradient(70% 120% at 100% 0%, rgba(215, 49, 59, 0.38), transparent 60%),
    radial-gradient(50% 90% at 0% 100%, rgba(37, 99, 235, 0.18), transparent 60%), #0f172a;
  padding: 60px 52px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 {
  margin-bottom: 10px;
}
.cta-band p {
  margin: 0;
  max-width: 500px;
}
.cta-band a:not(.btn) {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cta-band .cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  justify-content: center;
}
.cta-band .btn-ghost {
  background: transparent;
}
@media (max-width: 820px) {
  .cta-band {
    grid-template-columns: 1fr;
    padding: 44px 30px;
  }
}

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--page-hero-bg);
}
.page-hero .container {
  position: relative;
}
.page-hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
}
.page-hero .lead {
  font-size: 1.15rem;
  max-width: 740px;
  margin-bottom: 0;
}
.crumbs {
  text-transform: capitalize;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-3);
  margin-bottom: 16px;
}
.crumbs a {
  color: var(--text-3);
}
.crumbs a:hover {
  color: var(--red-2);
}

/* ---------- pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 980px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
}
.price-card {
  display: flex;
  flex-direction: column;
  padding: 32px 30px;
}
.price-card.featured {
  border: 2px solid var(--red);
  box-shadow: var(--shadow-lg);
}
.price-card.featured:hover {
  border-color: var(--red);
}
.price-flag {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  padding: 5px 12px;
}
.price-name {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-2);
}
.price-value {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text);
  margin: 8px 0 4px;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.price-value small {
  font-size: 1rem;
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: 0;
}
.price-desc {
  font-size: 0.95rem;
  color: var(--text-2);
  margin-bottom: 20px;
}
.price-card .check-list {
  margin: 0 0 26px;
}
.price-card .btn {
  margin-top: auto;
}
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 0.94rem;
}
table.compare th,
table.compare td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
}
table.compare thead th {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--surface-2);
}
table.compare tbody tr:last-child td {
  border-bottom: 0;
}
table.compare td:first-child,
table.compare th:first-child {
  font-weight: 600;
  color: var(--text);
}
table.compare .yes {
  color: var(--green);
  font-weight: 700;
}
table.compare .no {
  color: var(--text-3);
}
table.compare tbody tr:hover td {
  background: var(--row-hover);
}

/* ---------- forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .full {
  grid-column: 1 / -1;
}
@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}
.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  padding: 12px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--placeholder);
}
.field textarea {
  min-height: 130px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(215, 49, 59, 0.12);
}
.field .hint {
  font-size: 0.85rem;
  color: var(--text-3);
  margin: 6px 0 0;
}
.form-note {
  font-size: 0.88rem;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  margin-top: 18px;
}
.form-note b {
  color: var(--text);
}
.form-status {
  display: none;
  margin-top: 16px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--green);
  border: 1px solid var(--green-line);
  background: var(--green-dim);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.form-status.show {
  display: block;
}
.form-status.error {
  color: var(--red-2);
  border-color: var(--red-line);
  background: var(--red-dim);
}
.field [aria-invalid="true"] {
  border-color: var(--red);
  background: var(--invalid-bg);
}

/* ---------- contact aside ---------- */
.contact-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-child {
  border-bottom: 0;
}
.contact-item .ci-icon {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--red-2);
  background: var(--red-dim);
}
.contact-item .ci-icon svg {
  width: 20px;
  height: 20px;
}
.contact-item b {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
}
.contact-item span,
.contact-item a {
  display: block;
  font-size: 0.93rem;
  color: var(--text-2);
}
.contact-item a {
  color: var(--red-2);
  font-weight: 500;
  overflow-wrap: anywhere;
}
.contact-item a:hover {
  color: var(--red-deep);
}

/* ---------- platform pipeline ---------- */
.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 980px) {
  .pipeline {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .pipeline {
    grid-template-columns: 1fr;
  }
}
.agent-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px 24px 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.agent-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff6166, #d1293a);
}
.agent-card:hover {
  box-shadow: var(--shadow);
}
.agent-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red-2);
}
.agent-card h3 {
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  margin: 6px 0 2px;
}
.agent-role {
  font-size: 0.88rem;
  color: var(--text-3);
  margin-bottom: 12px;
}
.agent-card p {
  font-size: 0.93rem;
  margin: 0;
}
.agent-flow {
  font-size: 0.85rem;
  color: var(--text-3);
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.agent-flow b {
  color: var(--green);
  font-weight: 700;
}

/* data-flow diagram panel */
.flow-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 28px;
  font-size: 0.92rem;
  line-height: 2.25;
  color: var(--text-2);
}
.flow-panel .fp-title {
  color: var(--text-3);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.flow-panel .fp-title::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 2px;
}
.flow-line {
  display: block;
}
.flow-arrow {
  color: var(--red-2);
  font-size: 0.85rem;
  padding-left: 14px;
}
.flow-box {
  display: inline-block;
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  border-radius: 8px;
  padding: 2px 12px;
  line-height: 1.8;
  color: var(--text);
  font-weight: 600;
}
.flow-box.secure {
  border-color: var(--green-line);
  background: var(--green-dim);
  color: var(--green);
}
.flow-box.accent {
  border-color: var(--red-line);
  color: var(--red-2);
  background: var(--red-dim);
}

/* spec table (service cards) */
table.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
table.spec td {
  padding: 11px 4px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
}
table.spec td:first-child {
  color: var(--text-3);
  font-size: 0.82rem;
  font-weight: 600;
  width: 40%;
}
table.spec td:last-child {
  color: var(--text);
  font-weight: 500;
}

/* ---------- report mock (document) ---------- */
.report-mock {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  font-size: 0.92rem;
  box-shadow: var(--shadow-lg);
}
.report-mock .rm-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #0f172a;
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 10px 18px;
}
.report-mock .rm-bar b {
  color: #ff7a7f;
}
.report-mock .rm-body {
  padding: 24px 26px;
}
.report-mock h4 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 1.05rem;
}
.report-mock .rm-meta {
  font-size: 0.8rem;
  color: var(--text-3);
  margin-bottom: 14px;
}
.report-mock .sev {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.sev.crit {
  background: #fde8e8;
  color: #b32d32;
  border: 1px solid #f5b5b5;
}
.sev.high {
  background: #fff3e0;
  color: #a05a00;
  border: 1px solid #ffd9a3;
}
.report-mock p {
  color: var(--text-2);
  margin-bottom: 10px;
}
.report-mock .rm-code {
  font-family: var(--mono);
  font-size: 0.78rem;
  background: var(--bg);
  color: #c3c9d4;
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  overflow-x: auto;
  white-space: pre;
  margin: 0;
}
.report-mock .rm-code .hl {
  color: var(--red-2);
}

/* ---------- badge pills ---------- */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.badge-pill svg {
  width: 14px;
  height: 14px;
  color: var(--green);
}

/* ---------- team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 980px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}
.team-card {
  text-align: center;
  padding: 30px 20px;
}
.team-card .avatar {
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  font-size: 1.05rem;
}
.team-card b {
  display: block;
  color: var(--text);
}
.team-card span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red-2);
  letter-spacing: 0.06em;
}
.team-card p {
  font-size: 0.92rem;
  margin: 10px 0 0;
}

/* ---------- legal / prose ---------- */
.prose {
  max-width: 780px;
}
.prose h2 {
  font-size: 1.4rem;
  margin-top: 2em;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.prose h3 {
  font-size: 1.1rem;
  margin-top: 1.6em;
}
.prose li::marker {
  color: var(--red);
}
.prose .toc {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 18px 22px;
  margin: 0 0 30px;
}
.prose .toc b {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.prose .toc ol {
  margin: 8px 0 0;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
.footer-brand p {
  font-size: 0.94rem;
  max-width: 320px;
  margin: 14px 0 20px;
}
.site-footer h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li {
  margin-bottom: 2px;
}
.site-footer ul a {
  color: var(--text-2);
  font-size: 0.94rem;
  display: inline-block;
  padding: 4px 0;
}
.site-footer ul a:hover {
  color: var(--red-2);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0;
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.86rem;
  color: var(--text-3);
}
.footer-bottom-inner a {
  color: var(--text-3);
}
.footer-bottom-inner a:hover {
  color: var(--red-2);
}

/* ---------- 404 ---------- */
.error-page {
  min-height: 76vh;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  background: radial-gradient(50% 60% at 50% 0%, rgba(215, 49, 59, 0.08), transparent 70%);
}
.error-code {
  font-size: clamp(5rem, 14vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #ff6166, #c42833);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  section {
    padding: 72px 0;
  }
  section.tight {
    padding: 52px 0;
  }
  .hero {
    padding: 64px 0 60px;
  }
  .page-hero {
    padding: 60px 0 50px;
  }
  .section-head {
    margin-bottom: 36px;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }
  .cta-band {
    padding: 36px 22px;
    border-radius: 18px;
  }
  .btn {
    white-space: normal;
    text-align: center;
  }
  .btn-lg {
    padding: 14px 22px;
  }
  .card {
    padding: 24px 20px;
  }
  .price-card {
    padding: 28px 22px;
  }
}

/* ---------- dark theme: follows the visitor's OS / browser setting ----------
   iOS 13+ Safari, Android Chrome, and all current desktop browsers. Switches
   live when the system theme changes (including automatic sunset switching). */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1424;
    --bg-2: #101a2e;
    --surface: #141f35;
    --surface-2: #1a2741;
    --border: #24324d;
    --border-2: #34466a;

    --text: #f1f5f9;
    --text-2: #c3cddb;
    --text-3: #9aa8bf;

    --red-2: #ff7a7f;
    --red-deep: #ffa3a6;
    --red-dim: rgba(255, 122, 127, 0.12);
    --red-line: rgba(255, 122, 127, 0.32);

    --green: #4ade80;
    --green-dim: rgba(74, 222, 128, 0.12);
    --green-line: rgba(74, 222, 128, 0.32);
    --amber: #fbbf24;
    --amber-dim: rgba(251, 191, 36, 0.12);

    --mark: #f1f5f9;
    --header-bg: rgba(13, 20, 36, 0.85);
    --hover-bg: rgba(255, 255, 255, 0.06);
    --input-bg: #0f182b;
    --placeholder: #6b7a93;
    --row-hover: rgba(255, 255, 255, 0.03);
    --x-dim: rgba(255, 122, 127, 0.14);
    --invalid-bg: rgba(255, 122, 127, 0.06);
    --grid-line: rgba(148, 163, 184, 0.07);
    --menu-shadow: 0 18px 30px rgba(0, 0, 0, 0.45);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.28);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.3), 0 24px 52px rgba(0, 0, 0, 0.45);

    --hero-bg: radial-gradient(55% 60% at 88% 8%, rgba(215, 49, 59, 0.2), transparent 70%),
      radial-gradient(45% 50% at 0% 100%, rgba(59, 130, 246, 0.12), transparent 70%),
      linear-gradient(180deg, #0f1729 0%, #0d1424 100%);
    --page-hero-bg: radial-gradient(50% 80% at 92% 0%, rgba(215, 49, 59, 0.16), transparent 70%),
      linear-gradient(180deg, #0f1729 0%, #101a2e 100%);
  }
  /* dark panels need an edge to separate from a dark page */
  .cta-band,
  .terminal {
    border: 1px solid #2c3d60;
  }
  .report-mock .rm-bar {
    background: #0a1020;
  }
  .sev.crit {
    background: rgba(255, 122, 127, 0.14);
    color: #ff9a9e;
    border-color: rgba(255, 122, 127, 0.35);
  }
  .sev.high {
    background: rgba(251, 191, 36, 0.12);
    color: #fcd34d;
    border-color: rgba(251, 191, 36, 0.35);
  }
  #net-canvas {
    opacity: 0.5;
  }
}

/* ---------- reveal animations (only when JS is running) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js .reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] {
  transition-delay: 0.08s;
}
.reveal[data-delay="2"] {
  transition-delay: 0.16s;
}
.reveal[data-delay="3"] {
  transition-delay: 0.24s;
}

/* ---------- reduced motion ---------- */
@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;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  /* static version: wrapped pill badges, no separator dots */
  .marquee {
    animation: none;
    width: 100%;
    padding: 0 16px;
  }
  .marquee ul {
    flex: 1 1 auto;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .marquee li {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-2);
    line-height: 1.2;
  }
  .marquee li::after {
    content: none;
  }
  .marquee ul + ul {
    display: none;
  }
}
