:root {
  --bg-deep: #070d14;
  --bg-panel: #0f1724;
  --bg-elevated: #141f30;
  --border: rgba(0, 212, 170, 0.15);
  --text: #e8f1ff;
  --text-muted: #8ba3c4;
  --accent: #00d4aa;
  --accent-dim: #00a884;
  --danger: #ff4d6d;
  --warning: #ffb020;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-headings: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-base: 1rem;
  --fs-scale-ratio: 1.18;
  --radius: 12px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
}
.page-bg-fixed {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Home hero sits above the page-bg-fixed so hero-cyber only shows below the fold */
.page-home .hero--image-bg {
  background: var(--bg-deep);
}

/* Assessment title styling */
.assessment-title {
  display: inline-block;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.assessment-title .assessment-sub {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-family: var(--font-body);
  text-transform: none;
}

/* Services page: font accent classes used on service-block headings */
.services-font {
  font-family: var(--font-headings);
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.services-font--hero {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent), #7dd3fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.services-font--1 { color: var(--accent); }
.services-font--2 { color: #f87171; }
.services-font--3 { color: #818cf8; }
.services-font--4 { color: #34d399; }
.services-font--5 { color: #fb923c; }
.services-font--6 { color: #a78bfa; }
.services-font--7 { color: #f472b6; }
.services-font--8 { color: #22d3ee; }
.services-font--9 { color: #fbbf24; }

/* Spacing and visual separator between service-block sections */
.service-block + .service-block {
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
  margin-top: 2.5rem;
}
.shell > .service-block:first-of-type {
  margin-top: 1.5rem;
}

/* Certification badge grid on About page */
.cert-badge-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0.75rem 0 1.5rem;
  align-items: center;
}
.cert-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}
.cert-badge img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 4px 12px rgba(0, 212, 170, 0.2));
  transition: filter 0.25s ease, transform 0.25s ease;
}
.cert-badge img:hover {
  filter: drop-shadow(0 6px 20px rgba(0, 212, 170, 0.4));
  transform: translateY(-3px);
}
.cert-badge__name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-headings);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@keyframes page-background-shift {
  0%, 100% {
    background-position: 10% -10%, 90% 0%, 0 0;
  }
  50% {
    background-position: 5% 0%, 95% 20%, 0 0;
  }
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Hero background image element (picture) positioned under overlays */
.hero-bg-picture {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__inner {
  position: relative;
  z-index: 2;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(7, 13, 20, 0.85);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-headings);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}
.brand:hover {
  text-decoration: none;
  color: var(--accent);
}
.brand img {
  height: 40px;
  width: auto;
}

/* Hamburger toggle button — hidden at tablet and above */
.nav-toggle {
  display: none !important;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  font-size: 0.95rem;
}
.nav-main a {
  color: var(--text-muted);
  position: relative;
  padding-bottom: 0.35rem;
}
.nav-main a:hover {
  color: var(--accent);
}

/* Animated underline for nav links */
.nav-main a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-dim));
  transition: width 0.22s ease;
}
.nav-main a:hover::after,
.nav-main a:focus::after {
  width: 100%;
}

/* ─── Mobile nav — hamburger drawer ──────────────────────────────── */
@media (max-width: 767px) {
  .nav-toggle {
    display: flex !important;
  }
  .header-inner {
    flex-wrap: wrap;
  }
  .nav-main {
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
    padding: 0;
  }
  .nav-main.nav-open {
    max-height: 600px;
    padding-bottom: 0.75rem;
  }
  .nav-main a {
    display: block;
    width: 100%;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-main a:last-of-type {
    border-bottom: none;
  }
  .nav-main .lang-select {
    margin-left: 0;
    padding: 0.6rem 0;
    display: block !important;
  }
  .nav-main .btn--nav-login {
    margin-top: 0.5rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 241, 255, 0.45);
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  position: relative;
  overflow: hidden;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  background: var(--accent);
  border-color: var(--accent);
  color: #03120e;
  box-shadow: 0 6px 24px rgba(0, 212, 170, 0.3);
}
.btn:active {
  transform: translateY(0) scale(0.985);
}
.btn-primary {
  /* inherits outline style; fills on hover via .btn:hover */
}
.btn-ghost {
  /* inherits outline style; fills on hover via .btn:hover */
}
.site-header .btn--nav-login {
  border-color: rgba(232, 241, 255, 0.45);
  background: transparent;
  color: var(--text);
}
.site-header .btn--nav-login:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #03120e;
}

.hero {
  padding: 3.5rem 0 4rem;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 4.5rem 0 5rem;
  }
}

.hero--image-bg {
  display: block;
  min-height: min(70vh, 620px);
  padding: 2rem 0 clamp(2.5rem, 8vw, 4.5rem);
  margin: 0;
  border-bottom: 1px solid var(--border);
}


.hero--image-bg {
  position: relative;
  overflow: hidden;
}

.hero--image-bg::before,
.hero--image-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero--image-bg::before {
  background: radial-gradient(circle at 20% 20%, rgba(0, 212, 170, 0.16), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.12), transparent 24%),
    radial-gradient(circle at 55% 80%, rgba(255, 255, 255, 0.08), transparent 18%);
  opacity: 0.9;
  animation: hero-glow 20s ease-in-out infinite;
}

.hero--image-bg::after {
  background: linear-gradient(105deg, transparent 45%, rgba(7, 13, 20, 0.35) 55%, rgba(7, 13, 20, 0.72) 70%, rgba(7, 13, 20, 0.88) 100%);
  animation: hero-stripe 32s linear infinite;
}

@keyframes hero-glow {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(10px, -12px) scale(1.02);
  }
}

@keyframes hero-stripe {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

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

.hero--image-bg .hero__inner {
  max-width: none;
  width: 100%;
}

/* Keep hero copy off center-left artwork/text in the image (readable column on the right). */
.hero--image-bg .hero__copy--align-end {
  max-width: min(38rem, 100%);
}
@media (min-width: 720px) {
  .hero--image-bg .hero__copy--align-end {
    margin-left: auto;
    margin-right: 0;
  }
}

.hero--image-bg h1 {
  font-family: var(--font-headings);
  font-size: clamp(2rem, 4vw, 2.85rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  color: #f4f9ff;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
}

.hero-lead--on-image {
  color: rgba(232, 241, 255, 0.9);
  font-size: 1.1rem;
  max-width: 36rem;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4);
}

.btn--hero-primary {
  font-weight: 700;
  animation: cta-pulse 2.8s ease-in-out infinite;
}

@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(0, 212, 170, 0.25); }
  50%       { box-shadow: 0 8px 40px rgba(0, 212, 170, 0.55); }
}

.hero h1 {
  font-family: var(--font-headings);
  font-size: clamp(2rem, 4vw, 2.85rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  min-height: 3.5em;
}
.hero-lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 36rem;
}
.hero-visual {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.hero-visual img {
  width: 100%;
}

.messages-wrap {
  padding-top: 0.75rem;
  padding-bottom: 0.25rem;
}

.contact-lead-grid {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}
@media (min-width: 880px) {
  .contact-lead-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-lead-card .section-title {
  margin-bottom: 0.5rem;
}

.section--contact-lead {
  padding-top: 2rem;
}

.dashboard-preview {
  margin: 1.5rem 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--bg-panel);
}
.dashboard-preview img {
  width: 100%;
  height: auto;
  display: block;
}
.dashboard-preview figcaption {
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  border-top: 1px solid var(--border);
}
.dashboard-preview code {
  font-size: 0.85em;
  color: var(--accent);
}

/* Services page: alternate card alignment for visual rhythm */
.service-block {
  margin-top: 2rem;
  max-width: 48rem;
}
.shell > section.service-block:first-of-type {
  margin-top: 2.5rem;
}
.service-block--left {
  margin-right: auto;
  margin-left: 0;
}
.service-block--right {
  margin-left: auto;
  margin-right: 0;
}
.service-block--right > .section-title {
  text-align: right;
}
.service-block--center {
  margin-left: auto;
  margin-right: auto;
}
.service-block--center > .section-title {
  text-align: center;
}
.service-block .card {
  max-width: none;
}
@media (max-width: 640px) {
  .service-block--right,
  .service-block--center {
    margin-left: 0;
    margin-right: auto;
  }
  .service-block--right > .section-title,
  .service-block--center > .section-title {
    text-align: left;
  }
}

.services-page-cta {
  margin-top: 2rem;
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

ul.service-list {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}
ul.service-list li {
  margin-bottom: 0.35rem;
}

/* Service approach badges (Task 17) */
.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.4rem 0 1rem;
}
.svc-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 2rem;
  color: var(--text-muted);
  background: transparent;
  white-space: nowrap;
}

.section {
  padding: 3rem 0;
}
.section-title {
  font-family: var(--font-headings);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  margin: 0 0 1rem;
}

.grid-cards {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 720px) {
  .grid-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .grid-cards.three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  position: relative;
  overflow: hidden;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.card:hover,
.card:focus-within {
  border-color: rgba(0, 212, 170, 0.55);
  transform: translateY(-4px);
  background: rgba(0, 212, 170, 0.06);
  box-shadow: 0 0 40px rgba(0, 212, 170, 0.18), 0 8px 32px rgba(0, 0, 0, 0.35);
}
.card h2,
.card h3 {
  font-family: var(--font-headings);
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--accent);
}
.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}
@media (hover: none) {
  .card:hover,
  .card:focus-within {
    transform: none;
    box-shadow: none;
    background: transparent;
  }
}

/* About page cards are informational — no hover lift or tint */
.page-about .card:hover,
.page-about .card:focus-within {
  transform: none;
  box-shadow: none;
  background: transparent;
  border-color: var(--border);
}

.site-footer {
  margin-top: 4rem;
  padding: 2rem 0 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-legal {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 212, 170, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.footer-copy {
  margin: 0;
  color: var(--text-muted);
}

.site-footer strong {
  font-family: var(--font-headings);
  font-weight: 700;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 0.6rem 2rem;
  align-items: start;
  justify-items: start;
  margin: 0;
}
.footer-links a {
  color: var(--accent);
  font-size: 0.88rem;
  white-space: nowrap;
}
.footer-links a:hover {
  color: var(--text);
}

.footer-sep {
  margin: 0 0.5rem;
  opacity: 0.5;
}

.muted {
  color: var(--text-muted);
}

.input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
}
.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 6px rgba(0,212,170,0.06);
}
.input:focus-visible,
.textarea:focus-visible {
  box-shadow: 0 0 0 6px rgba(0,212,170,0.08);
}
.textarea {
  min-height: 140px;
  resize: vertical;
}
label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.form-row {
  margin-bottom: 1rem;
}
.errorlist {
  color: var(--danger);
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
}

.messages {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.messages li {
  padding: 0.65rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}
.messages .success {
  background: rgba(0, 212, 170, 0.12);
  border: 1px solid rgba(0, 212, 170, 0.35);
}
.messages .warning {
  background: rgba(255, 176, 32, 0.1);
  border: 1px solid rgba(255, 176, 32, 0.35);
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
table.data th,
table.data td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
table.data th {
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-weight: 600;
}
.weak-enc {
  color: var(--danger);
  font-weight: 700;
}

.portal-layout {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 960px) {
  .portal-layout {
    grid-template-columns: 240px 1fr;
    align-items: start;
  }
}

.portal-nav {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
.portal-nav a {
  display: block;
  padding: 0.45rem 0.5rem;
  color: var(--text-muted);
  border-radius: 8px;
}
.portal-nav a:hover {
  background: var(--bg-elevated);
  color: var(--accent);
  text-decoration: none;
}

.metric-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.metric {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.metric-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.metric-link:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: rgba(0, 212, 170, 0.35);
}
.metric .value {
  font-family: var(--font-headings);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
}
.metric-grid--top {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.metric-time--critical .value {
  color: var(--danger);
}
.metric-time--warning .value {
  color: var(--warning);
}
.metric-time--ok .value {
  color: var(--accent);
}
.metric .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.portal-narrative {
  margin-bottom: 1.35rem;
}
.portal-narrative h2 {
  font-family: var(--font-headings);
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.portal-narrative .portal-prose {
  margin: 0;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.portal-narrative .card.portal-prose {
  padding: 1.1rem 1.25rem;
}

.portal-highlight {
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  margin-bottom: 0.65rem;
  border: 1px solid var(--border);
}
.portal-highlight--critical {
  border-color: rgba(255, 77, 109, 0.55);
  background: rgba(255, 77, 109, 0.08);
}
.portal-highlight--critical .portal-highlight__title {
  color: var(--danger);
}
.portal-highlight--warning {
  border-color: rgba(255, 176, 32, 0.45);
  background: rgba(255, 176, 32, 0.07);
}
.portal-highlight--warning .portal-highlight__title {
  color: var(--warning);
}
.portal-highlight__title {
  font-weight: 700;
  margin: 0 0 0.35rem;
  font-size: 1rem;
}
.portal-highlight__detail {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  white-space: pre-wrap;
}

.host-ports-list {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
}
.host-ports-list li {
  margin-bottom: 0.4rem;
  line-height: 1.45;
}
.host-card-collapsible summary::-webkit-details-marker {
  display: none;
}
.host-card-collapsible .host-toggle-text--collapse {
  display: none;
}
.host-card-collapsible[open] .host-toggle-text--expand {
  display: none;
}
.host-card-collapsible[open] .host-toggle-text--collapse {
  display: block;
}
.host-card-collapsible > summary::after {
  content: "▸";
  float: right;
  color: var(--text-muted);
}
.host-card-collapsible[open] > summary::after {
  content: "▾";
}

#cy-root,
#cy-client {
  min-height: 420px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

#wireless-canvas-wrap {
  position: relative;
  max-width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
#wireless-canvas-wrap img {
  width: 100%;
  display: block;
}
#wireless-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.graph-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}
.modal-backdrop.open {
  display: flex;
}
.modal {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 520px;
  width: 100%;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}
.modal h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: none;
}

/* ─── Service Comparison Matrix ───────────────────────────────────── */
.sc-wrapper {
  margin: 2rem 0;
}
.sc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.sc-filter {
  padding: 0.4rem 1.1rem;
  border-radius: 2rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.sc-filter:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.sc-filter--active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.sc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.sc-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.sc-card--out {
  opacity: 0;
  pointer-events: none;
}
.sc-card__name {
  font-family: var(--font-headings);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.sc-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.sc-tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: 0.25rem;
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.sc-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0.65rem 0 0.2rem;
}
.sc-value {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}
.sc-card__deliverables {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  padding-left: 1.1rem;
}
.sc-card__deliverables li {
  margin-bottom: 0.25rem;
}
.sc-card__best {
  font-size: 0.88rem;
  color: var(--accent);
  margin: 0.75rem 0 0;
  font-style: italic;
}

/* ─── Service Finder Quiz ──────────────────────────────────────────── */
.sf-wrapper {
  margin: 2rem 0;
}
.sf-intro {
  text-align: center;
  padding: 2.25rem 2rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.sf-intro h3 {
  font-family: var(--font-headings);
  font-size: 1.3rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.sf-intro p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}
.sf-step {
  padding: 1.75rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.sf-counter {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: right;
  margin-bottom: 0.5rem;
}
.sf-progress {
  background: var(--bg-elevated);
  border-radius: 2rem;
  height: 6px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.sf-progress__bar {
  height: 100%;
  background: var(--accent);
  border-radius: 2rem;
  transition: width 0.4s ease;
}
.sf-question {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--text);
}
.sf-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.sf-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.sf-option:hover {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.06);
}
.sf-nav {
  display: flex;
  justify-content: flex-start;
  margin-top: 1rem;
}
.sf-back {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.sf-back:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.sf-result {
  text-align: center;
  padding: 2.25rem 2rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.sf-result__label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
}
.sf-result__service {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0 0 0.5rem;
}
.sf-result__desc {
  color: var(--text-muted);
  margin: 0 auto 1rem;
  max-width: 36rem;
}
.sf-result__secondary {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1.25rem;
}
.sf-result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.sf-restart {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.sf-restart:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── Stat Counter Strip ──────────────────────────────────────────── */
.stat-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
  margin: 0;
  background: var(--bg-panel);
}
.stat-strip__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 3rem;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 1rem;
  min-width: 130px;
  text-align: center;
}
.stat-item__number {
  font-family: var(--font-headings);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-item__label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-top: 0.35rem;
}
.stat-item__badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  font-family: var(--font-headings);
  line-height: 1;
}

/* ─── Terminal Accent Block ───────────────────────────────────────── */
.terminal-block {
  background: #06101a;
  border: 1px solid rgba(0, 212, 170, 0.25);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: "Courier New", "Consolas", "Liberation Mono", monospace;
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 1.5rem 0;
}
.terminal-block__bar {
  background: #0c1a2a;
  padding: 0.5rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border-bottom: 1px solid rgba(0, 212, 170, 0.15);
}
.terminal-block__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.terminal-block__dot--red   { background: #ff5f56; }
.terminal-block__dot--amber { background: #ffbd2e; }
.terminal-block__dot--green { background: #27c93f; }
.terminal-block__title {
  margin-left: auto;
  margin-right: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  letter-spacing: 0.04em;
}
.terminal-block__body {
  padding: 1rem 1.1rem;
  color: #7eebd4;
  white-space: pre;
  overflow-x: auto;
}
.terminal-block__body .t-dim    { color: #4a7a6a; }
.terminal-block__body .t-white  { color: var(--text); }
.terminal-block__body .t-red    { color: #ff6b6b; }
.terminal-block__body .t-yellow { color: #fbbf24; }
.terminal-block__body .t-green  { color: #4ade80; }
.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink-cursor 1.1s step-end infinite;
}
@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ─── Veteran Badge ───────────────────────────────────────────────── */
.veteran-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(0, 212, 170, 0.35);
  border-radius: 2rem;
  background: rgba(0, 212, 170, 0.06);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-headings);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}
.veteran-badge svg {
  flex-shrink: 0;
}

/* ─── "Why M4" page ───────────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.why-card {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.why-card:hover {
  border-color: rgba(0, 212, 170, 0.55);
  background: rgba(0, 212, 170, 0.06);
  box-shadow: 0 0 40px rgba(0, 212, 170, 0.18);
}
.why-card__icon {
  font-size: 1.75rem;
  margin-bottom: 0.65rem;
  line-height: 1;
}
.why-card__title {
  font-family: var(--font-headings);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: var(--text);
}
.why-card__body {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}
.vs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.vs-table th {
  font-family: var(--font-headings);
  font-weight: 700;
  padding: 0.9rem 1.25rem;
  background: rgba(0, 212, 170, 0.1);
  color: var(--text);
  text-align: center;
  border-bottom: 2px solid rgba(0, 212, 170, 0.35);
  border-right: 1px solid var(--border);
}
.vs-table th:last-child { border-right: none; }
.vs-table td {
  padding: 0.7rem 1.25rem;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
}
.vs-table td:last-child { border-right: none; }
.vs-table tr:last-child td { border-bottom: none; }
.vs-table tr td:first-child {
  color: var(--text);
  font-weight: 600;
  text-align: left;
}
.vs-table .vs-yes  { color: var(--accent); font-weight: 700; }
.vs-table .vs-no   { color: var(--text-muted); opacity: 0.45; }
.vs-table .vs-m4   { background: rgba(0, 212, 170, 0.07); }

/* ─── Process Timeline ────────────────────────────────────────────── */
.timeline {
  position: relative;
  margin: 2rem 0;
  padding-left: 0;
  list-style: none;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  opacity: 0.35;
}
.timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0 1.25rem;
  margin-bottom: 2rem;
}
.timeline-step__dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: border-color 0.3s, background 0.3s;
}
.timeline-step.is-visible .timeline-step__dot {
  border-color: var(--accent);
  background: rgba(0, 212, 170, 0.1);
}
.timeline-step__content {
  padding-top: 0.45rem;
}
.timeline-step__title {
  font-family: var(--font-headings);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--text);
}
.timeline-step__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}
.timeline-step__deliverable {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  opacity: 0.8;
}
@media (min-width: 640px) {
  .timeline {
    padding-left: 0;
  }
  .timeline::before {
    left: 22px;
  }
}

/* ─── portal-demo ────────────────────────────────────────────────── */
.pdemo {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.pdemo__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.pdemo__header-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.pdemo__badge {
  background: rgba(0,212,170,0.15);
  color: var(--accent);
  border: 1px solid rgba(0,212,170,0.4);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  white-space: nowrap;
}
.pdemo__title { font-weight: 600; font-size: 0.95rem; }
.pdemo__subtitle { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.15rem; }
.pdemo__progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.pdemo__progress-track {
  width: 120px;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.pdemo__progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 1s ease;
}
.pdemo__progress-pct { font-weight: 600; color: var(--accent); }
.pdemo__metrics {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.pdemo__metric {
  flex: 1;
  min-width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0.5rem;
  border-right: 1px solid var(--border);
  gap: 0.25rem;
}
.pdemo__metric:last-child { border-right: none; }
.pdemo__metric-num {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: var(--font-headings);
  line-height: 1;
}
.pdemo__metric-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pdemo__metric--critical .pdemo__metric-num { color: #ef4444; }
.pdemo__metric--high    .pdemo__metric-num { color: #f97316; }
.pdemo__metric--medium  .pdemo__metric-num { color: #eab308; }
.pdemo__metric--low     .pdemo__metric-num { color: #3b82f6; }
.pdemo__metric--neutral .pdemo__metric-num { color: var(--accent); }
.pdemo__tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.pdemo__tab {
  padding: 0.65rem 1.25rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.pdemo__tab:hover { color: var(--text); }
.pdemo__tab--active { color: var(--accent); border-bottom-color: var(--accent); }
.pdemo__panel { padding: 0; }
.pdemo__panel--hidden { display: none; }
.pdemo__filters {
  display: flex;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.pdemo__filter {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.pdemo__filter:hover { color: var(--text); border-color: var(--text-muted); }
.pdemo__filter--active { background: rgba(255,255,255,0.08); color: var(--text); border-color: var(--text-muted); }
.pdemo__filter--critical.pdemo__filter--active { background: rgba(239,68,68,0.12); color: #ef4444; border-color: #ef4444; }
.pdemo__filter--high.pdemo__filter--active    { background: rgba(249,115,22,0.12); color: #f97316; border-color: #f97316; }
.pdemo__filter--medium.pdemo__filter--active  { background: rgba(234,179,8,0.12);  color: #eab308; border-color: #eab308; }
.pdemo__filter--low.pdemo__filter--active     { background: rgba(59,130,246,0.12); color: #3b82f6; border-color: #3b82f6; }
.pdemo__finding {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.pdemo__finding:last-child { border-bottom: none; }
.pdemo__finding:hover { background: rgba(255,255,255,0.03); }
.pdemo__sev {
  flex-shrink: 0;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  margin-top: 0.1rem;
}
.pdemo__sev--critical { background: rgba(239,68,68,0.15);  color: #ef4444; }
.pdemo__sev--high     { background: rgba(249,115,22,0.15); color: #f97316; }
.pdemo__sev--medium   { background: rgba(234,179,8,0.15);  color: #eab308; }
.pdemo__sev--low      { background: rgba(59,130,246,0.15); color: #3b82f6; }
.pdemo__sev--info     { background: rgba(255,255,255,0.08); color: var(--text-muted); }
.pdemo__finding-body { flex: 1; min-width: 0; }
.pdemo__finding-title { font-size: 0.88rem; font-weight: 500; margin-bottom: 0.2rem; }
.pdemo__finding-meta { font-size: 0.76rem; color: var(--text-muted); }
.pdemo__status {
  flex-shrink: 0;
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
  margin-top: 0.1rem;
  white-space: nowrap;
}
.pdemo__status--open        { background: rgba(239,68,68,0.1);  color: #ef4444; }
.pdemo__status--remediated  { background: rgba(0,212,170,0.1);  color: var(--accent); }
.pdemo__status--accepted    { background: rgba(255,255,255,0.06); color: var(--text-muted); }
.pdemo__host-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.pdemo__host-table th {
  text-align: left;
  padding: 0.65rem 1.25rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.pdemo__host-table td {
  padding: 0.7rem 1.25rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.pdemo__host-table tr:last-child td { border-bottom: none; }
.pdemo__host-table tr:hover td { background: rgba(255,255,255,0.02); }
.pdemo__host-status {
  padding: 0.18rem 0.55rem;
  border-radius: 12px;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: capitalize;
}
.pdemo__host-status--compromised { background: rgba(239,68,68,0.15);  color: #ef4444; }
.pdemo__host-status--vulnerable  { background: rgba(249,115,22,0.15); color: #f97316; }
.pdemo__host-status--clean       { background: rgba(0,212,170,0.12);  color: var(--accent); }
.pdemo__cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

/* ─── before/after comparison ────────────────────────────────────── */
.ba-compare {
  max-width: 680px;
  margin: 0 auto;
}
.ba-toggle-row {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0;
}
.ba-toggle {
  flex: 1;
  padding: 0.65rem 1rem;
  background: var(--bg-elevated);
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.ba-toggle + .ba-toggle { border-left: 1px solid var(--border); }
.ba-toggle--active { background: var(--bg-panel); color: var(--text); font-weight: 600; }
.ba-panels {
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  position: relative;
  min-height: 280px;
}
.ba-panel {
  display: none;
  padding: 1.25rem 1.5rem;
}
.ba-panel--active { display: block; }
.ba-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.ba-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.5;
}
.ba-item::before {
  flex-shrink: 0;
  margin-top: 0.15rem;
  font-size: 0.9rem;
}
.ba-item--bad { color: var(--text-muted); }
.ba-item--bad::before { content: "✗"; color: #ef4444; }
.ba-item--good { color: var(--text); }
.ba-item--good::before { content: "✓"; color: var(--accent); }
.ba-panel--traditional { background: rgba(239,68,68,0.03); }
.ba-panel--m4 { background: rgba(0,212,170,0.03); }

/* ─── wireless demo ──────────────────────────────────────────────── */
.wd-wrapper {
  background: #0a1120;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.wd-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.wd-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.wd-legend-item { display: flex; align-items: center; gap: 0.35rem; }
.wd-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.wd-toggle--active { border-color: #ef4444; color: #ef4444; }
.wd-canvas { display: block; width: 100%; cursor: crosshair; }
.wd-tooltip {
  position: absolute;
  width: 220px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 0.82rem;
  pointer-events: none;
  z-index: 20;
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
  transition: opacity 0.15s;
}
.wd-tooltip--hidden { opacity: 0; }
.wd-tooltip__ssid { font-weight: 600; margin-bottom: 0.45rem; font-size: 0.88rem; }
.wd-tooltip__row { display: flex; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.2rem; color: var(--text-muted); }
.wd-tooltip__row span:first-child { flex-shrink: 0; }
.wd-tooltip__row code { font-size: 0.75rem; }
.wd-rogue-tag { background: rgba(239,68,68,0.15); color: #ef4444; border-radius: 3px; padding: 0.1em 0.35em; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; vertical-align: middle; }

/* ─── homepage attack-path graph ─────────────────────────────────── */
.hg-wrapper {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.hg-canvas {
  width: 100%;
  height: 400px;
}
.hg-hint {
  text-align: center;
  font-size: 0.78rem;
  padding: 0.4rem 0 0.75rem;
  margin: 0;
}
.hg-detail {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: min(320px, calc(100% - 2rem));
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  z-index: 10;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transition: opacity 0.2s, transform 0.2s;
}
.hg-detail--hidden { opacity: 0; pointer-events: none; transform: translateY(-6px); }
.hg-detail__close {
  float: right;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  margin: -0.2rem -0.2rem 0 0;
}
.hg-detail__mitre {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.hg-detail__title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  clear: right;
}
.hg-detail__technique {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.hg-detail__desc {
  font-size: 0.83rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* ─── FAQ accordion ──────────────────────────────────────────────── */
.faq-item {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item[open] {
  border-color: rgba(0, 212, 170, 0.35);
}
.faq-question {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-family: var(--font-headings);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}
.faq-answer {
  padding: 0 1.25rem 1rem;
  margin: 0;
  line-height: 1.65;
  border-top: 1px solid var(--border);
}

/* blog body typography */
.blog-body { line-height: 1.8; color: var(--text); }
.blog-body h2 { font-size: 1.35rem; margin: 2rem 0 0.75rem; }
.blog-body h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.blog-body p  { margin: 0 0 1rem; }
.blog-body ul, .blog-body ol { margin: 0 0 1rem 1.5rem; }
.blog-body li { margin-bottom: 0.35rem; }
.blog-body code { background: rgba(0,212,170,0.1); color: var(--accent); padding: 0.1em 0.35em; border-radius: 3px; font-size: 0.88em; }
.blog-body pre { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 6px; padding: 1rem; overflow-x: auto; margin: 0 0 1.5rem; }
.blog-body pre code { background: none; padding: 0; color: inherit; }
.blog-body blockquote { border-left: 3px solid var(--accent); padding-left: 1rem; color: var(--text-muted); margin: 0 0 1rem; }
.blog-body a { color: var(--accent); }
.blog-body img { max-width: 100%; border-radius: 6px; margin: 1rem 0; }

/* ─── Full-width section background image ───────────────────────── */
.section--bg-image {
  position: relative;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.section--bg-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 13, 20, 0.82);
  z-index: -1;
  pointer-events: none;
}

/* ─── Hero copy glass backdrop ──────────────────────────────────── */
.hero__copy--glass {
  background: rgba(7, 13, 20, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 212, 170, 0.12);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
}
@media (max-width: 719px) {
  .hero__copy--glass {
    padding: 1.25rem 1.25rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
}

/* ─── Credential strip (replaces stat-strip) ────────────────────── */
.cred-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
  background: var(--bg-panel);
}
.cred-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.cred-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.65rem 1.75rem;
}
.cred-item__num {
  font-family: var(--font-headings);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.03em;
}
.cred-item__plus {
  font-size: 1.4rem;
  vertical-align: super;
}
.cred-item__cert {
  font-family: var(--font-headings);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.cred-item__label {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-top: 0.3rem;
}
.cred-divider {
  width: 1px;
  height: 2.5rem;
  background: var(--border);
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .cred-divider { display: none; }
  .cred-item { flex-basis: 50%; border-bottom: 1px solid var(--border); }
  .cred-item:nth-last-child(-n+2):nth-child(odd),
  .cred-item:last-child { border-bottom: none; }
}

/* ─── Side-by-side compare cards ────────────────────────────────── */
.compare-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}
@media (max-width: 700px) {
  .compare-table { grid-template-columns: 1fr; }
}
.compare-col {
  border-radius: var(--radius);
  overflow: hidden;
  background: transparent;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.compare-col--bad {
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.compare-col--good {
  border: 1px solid rgba(0, 212, 170, 0.35);
}
.compare-col__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.5rem;
  font-family: var(--font-headings);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}
.compare-col__icon { font-size: 1rem; }
.compare-col--bad .compare-col__head {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border-bottom: 1px solid rgba(239, 68, 68, 0.25);
}
.compare-col--good .compare-col__head {
  background: rgba(0, 212, 170, 0.1);
  color: var(--accent);
  border-bottom: 1px solid rgba(0, 212, 170, 0.3);
}
.compare-list {
  list-style: none;
  padding: 1.25rem 1.5rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.6;
}
.compare-col--bad .compare-list { background: rgba(239, 68, 68, 0.03); }
.compare-col--good .compare-list { background: rgba(0, 212, 170, 0.03); }
.compare-col--bad .compare-list li { color: var(--text-muted); }
.compare-col--bad .compare-list li::before { content: "✗  "; color: #ef4444; }
.compare-col--good .compare-list li { color: var(--text); }
.compare-col--good .compare-list li::before { content: "✓  "; color: var(--accent); }

/* ─── Cert badge grid — centered without name labels ────────────── */
.cert-badge-grid--centered {
  justify-content: space-evenly;
  gap: 1rem;
  margin-bottom: 1rem;
}
.cert-badge-grid--centered .cert-badge {
  gap: 0;
}


/* ─── Section title accent underline ────────────────────────────── */
.section-title {
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 2.5rem;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}

/* ─── Accent pulse on cert badges ───────────────────────────────── */
@keyframes cert-glow {
  0%, 100% { filter: drop-shadow(0 4px 12px rgba(0, 212, 170, 0.2)); }
  50% { filter: drop-shadow(0 4px 20px rgba(0, 212, 170, 0.45)); }
}
.cert-badge img {
  animation: cert-glow 3s ease-in-out infinite;
}

/* ─── Service block heading border accent ───────────────────────── */
.service-block .section-title::after {
  display: none;
}

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