:root {
  --bg: #04151c;
  --bg-alt: #082732;
  --bg-soft: #0f2f3d;
  --surface: rgba(10, 20, 30, 0.88);
  --surface-soft: rgba(19, 34, 48, 0.78);
  --text: #f0d08a;
  --text-strong: #fff8dc;
  --muted: #d7dde3;
  --brand: #e5aa48;
  --brand-2: #f8c86b;
  --accent: #3dc2e3;
  --stroke: rgba(149, 175, 198, 0.28);
  --stroke-strong: rgba(229, 170, 72, 0.5);
  --shadow-soft: 0 20px 55px rgba(2, 5, 10, 0.38);
  --shadow-card: 0 14px 34px rgba(0, 0, 0, 0.36);
  --focus-ring: #7ed9ef;
  --focus-ring-offset: rgba(3, 13, 18, 0.9);
  --radius: 16px;
  --radius-sm: 12px;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "Inter", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.62;
  color: var(--muted);
  background:
    radial-gradient(
      circle at 10% -5%,
      rgba(61, 194, 227, 0.22) 0%,
      rgba(61, 194, 227, 0) 34%
    ),
    radial-gradient(
      circle at 88% -8%,
      rgba(229, 170, 72, 0.2) 0%,
      rgba(229, 170, 72, 0) 36%
    ),
    linear-gradient(140deg, #04151c 0%, #061b24 42%, #0a151d 100%);
  background-attachment: fixed;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--text);
  text-decoration: none;
  touch-action: manipulation;
}

a:hover {
  color: var(--brand-2);
  text-decoration: underline;
}

main {
  margin-bottom: 0;
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

[id] {
  scroll-margin-top: 6.5rem;
}

.container {
  width: min(1160px, 100% - 2.5rem);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.7rem 0.95rem;
  background: #ffffff;
  color: #101010;
  font-weight: 700;
  line-height: 1.2;
  z-index: 9999;
  border-radius: 10px;
  box-shadow: var(--shadow-card);
}

.skip-link:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(
    170deg,
    rgba(4, 21, 28, 0.96),
    rgba(6, 26, 35, 0.92)
  );
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--stroke);
  transition:
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--stroke-strong);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.1rem;
  width: min(1320px, 100% - 2.5rem);
  margin: 0 auto;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-strong);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.015em;
  flex-shrink: 0;
}

.brand img {
  height: 66px;
  width: auto;
}

.brand img:last-child {
  height: 38px;
}

.site-header nav {
  width: 100%;
}

.nav {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.35rem;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(12, 29, 38, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav:focus-within {
  border-color: var(--focus-ring);
}

.nav a {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  line-height: 1;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav a.is-current {
  color: #05141b;
  background: linear-gradient(100deg, var(--brand), var(--brand-2));
  text-decoration: none;
}

.nav-item-with-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.nav-item-with-badge .badge {
  display: block;
  margin: 0;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.22rem 0.55rem;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1;
  color: #e5ebf1;
  background: rgba(10, 24, 32, 0.65);
}

.cta {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  justify-content: flex-end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 10px;
  padding: 0.62rem 1rem;
  border: 1px solid transparent;
  min-height: 2.5rem;
  background: linear-gradient(105deg, var(--brand), var(--brand-2));
  color: #081217;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px rgba(229, 170, 72, 0.24);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 14px 26px rgba(229, 170, 72, 0.29);
}

.btn:active {
  transform: translateY(0);
}

.btn.ghost {
  border-color: var(--stroke);
  background: linear-gradient(
    100deg,
    rgba(5, 24, 33, 0.95),
    rgba(10, 36, 48, 0.95)
  );
  color: var(--text-strong);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
}

.btn.ghost:hover {
  border-color: var(--stroke-strong);
  color: var(--text-strong);
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
details:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  box-shadow:
    0 0 0 2px var(--focus-ring-offset),
    0 0 0 4px var(--focus-ring);
}

a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.hero {
  padding: clamp(2.8rem, 6vw, 4.5rem) 0 clamp(1.6rem, 4vw, 2.8rem);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: center;
}

.hero h1 {
  margin: 0 0 0.9rem;
  color: var(--text-strong);
  font-size: clamp(2.05rem, 4.2vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  max-width: 22ch;
  text-wrap: balance;
}

.hero p {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
  max-width: 67ch;
  overflow-wrap: anywhere;
}

.hero-calls {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: clamp(1rem, 3vw, 1.45rem);
  box-shadow: var(--shadow-card);
}

.hero-card p {
  margin-bottom: 0.85rem;
}

.hero-card ul {
  margin: 0;
}

.hero-aegis-logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem;
  border-radius: 22px;
  background:
    radial-gradient(
      circle at 70% 15%,
      rgba(229, 170, 72, 0.2),
      rgba(229, 170, 72, 0)
    ),
    linear-gradient(170deg, rgba(6, 28, 37, 0.72), rgba(6, 18, 27, 0.32));
  border: 1px solid var(--stroke);
}

.hero-aegis-logo img:first-child {
  max-height: min(380px, 56vh);
  width: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.38));
  animation: float 6s ease-in-out infinite;
}

.hero-aegis-logo img:last-child {
  max-height: 76px;
  width: auto;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.28));
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

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

  100% {
    transform: translateY(0);
  }
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  margin: 1.6rem 0 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1.05rem;
  box-shadow: var(--shadow-soft);
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--stroke-strong);
}

.card h3 {
  margin: 0 0 0.5rem;
  color: var(--text-strong);
  font-size: 1.12rem;
}

.card p {
  margin: 0 0 0.7rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.contact-cards .card {
  text-align: left;
}

.contact-cards .hero-calls {
  justify-content: flex-start;
}

.section {
  padding: clamp(2.1rem, 4vw, 3.3rem) 0 0;
}

.section h2 {
  margin: 0 0 0.5rem;
  color: var(--text-strong);
  font-size: clamp(1.45rem, 2.8vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.section h3 {
  color: var(--text-strong);
}

.sub {
  margin: 0 0 1.1rem;
  color: #dee6ed;
}

.section.section-compact {
  padding-top: 1rem;
}

.doc-breadcrumbs {
  margin: 0 0 0.85rem;
}

.doc-breadcrumbs ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.doc-breadcrumbs li {
  color: #c9d8e4;
  font-size: 0.88rem;
  line-height: 1.4;
}

.doc-breadcrumbs li + li::before {
  content: "›";
  color: #9cb2c2;
  margin-right: 0.45rem;
}

.doc-breadcrumbs a {
  color: #dce9f3;
}

.doc-meta {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.doc-meta div {
  background: rgba(9, 28, 38, 0.65);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 0.56rem 0.72rem;
}

.doc-meta dt {
  margin: 0;
  color: #b0c7d7;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.doc-meta dd {
  margin: 0.25rem 0 0;
  color: #ebf4fb;
  font-size: 0.88rem;
}

.layout-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.list {
  margin: 0;
  padding-left: 1.1rem;
}

.list li + li {
  margin-top: 0.45rem;
}

.list li {
  line-height: 1.5;
}

.kpill {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  padding: 0.4rem 0.68rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  color: var(--muted);
  font-size: 0.74rem;
  background: rgba(10, 24, 32, 0.66);
}

.krow {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin: 0.55rem 0;
}

.icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #051216;
  font-weight: 900;
  flex-shrink: 0;
}

.icon svg {
  width: 20px;
  height: 20px;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
  align-items: start;
}

.audience-grid,
.docs-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 1rem;
}

.audience-not-for {
  border-color: rgba(229, 170, 72, 0.38);
  background: rgba(56, 34, 15, 0.4);
}

.trust-boundary-card {
  border-color: rgba(61, 194, 227, 0.35);
}

.comparison-links {
  margin: 0;
  padding-left: 1.15rem;
}

.comparison-links li + li {
  margin-top: 0.5rem;
}

.grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 1.35rem;
  align-items: start;
  margin-bottom: 0;
}

.grid-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature {
  padding: 1.05rem;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  box-shadow: var(--shadow-soft);
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.feature:hover {
  transform: translateY(-2px);
  border-color: var(--stroke-strong);
}

.feature h4 {
  margin: 0 0 0.5rem;
  color: var(--text-strong);
}

.feature p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.feature.ai-pack {
}

.feature.tls-scanner {
  min-height: 400px;
}

.feature.tls-scanner .code {
  min-height: 120px;
}

.feature.tools-scanners {
  min-height: 400px;
}

.feature.ai-systems {
  min-height: 300px;
}

.feature.observability {
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow-soft);
}

.pricing-card h2,
.pricing-card h3 {
  margin-top: 0;
  color: var(--text-strong);
}

.tier-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.95rem;
  border-bottom: 1px dashed var(--stroke);
  padding: 0.55rem 0;
  color: var(--muted);
}

.tier-row input {
  border-color: rgba(148, 163, 184, 0.45) !important;
}

.tier-row input:focus-visible {
  border-color: var(--focus-ring) !important;
  box-shadow: 0 0 0 2px rgba(126, 217, 239, 0.25);
  outline: none;
}

.tier-row strong {
  color: var(--text-strong);
}

.platform-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.6rem 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
}

.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
}

.badge.soon {
  border-color: rgba(255, 211, 107, 0.6);
  color: #ffd36b;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin: 1.2rem 0;
}

.feature-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.62rem 0.8rem;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  min-width: 180px;
  white-space: nowrap;
}

.feature-chip .icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  color: #05141b;
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.feature-chip span {
  color: var(--text);
  font-weight: 600;
  font-size: 0.94rem;
}

.feature-chip.pq-chip .icon,
.feature-chip.tls-chip .icon,
.feature-chip.cli-chip .icon,
.feature-chip.sdk-chip .icon,
.feature-chip.iac-chip .icon,
.feature-chip.security-chip .icon,
.feature-chip.pricing-chip .icon,
.feature-chip.policy-chip .icon,
.feature-chip.receipt-chip .icon,
.feature-chip.forecast-chip .icon {
  background: rgba(5, 21, 28, 0.92);
  color: var(--text-strong);
}

.feature-chip.pq-chip span,
.feature-chip.tls-chip span,
.feature-chip.cli-chip span,
.feature-chip.sdk-chip span,
.feature-chip.iac-chip span,
.feature-chip.security-chip span,
.feature-chip.pricing-chip span,
.feature-chip.policy-chip span,
.feature-chip.receipt-chip span,
.feature-chip.forecast-chip span {
  color: var(--text-strong);
}

.whats-new {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.wn-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.wn-date {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wn-card h4 {
  margin: 0 0 0.45rem;
  color: var(--text-strong);
}

.wn-card p {
  margin: 0;
  color: var(--muted);
}

.kbd {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  background: #0c1620;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  padding: 0.1rem 0.35rem;
  font-size: 0.92em;
}

.code {
  background: #0c1620;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 0.9rem;
  overflow: auto;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  color: #e8f1fa;
  line-height: 1.55;
  font-size: 0.88rem;
}

.site-footer {
  border-top: 1px solid var(--stroke);
  padding: 2rem 0 calc(2.35rem + env(safe-area-inset-bottom, 0px));
  margin-top: 1.25rem;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(7, 18, 25, 0.45)
  );
}

.footer-columns {
  display: grid;
  grid-template-columns: minmax(240px, 3fr) repeat(3, minmax(120px, 1fr));
  gap: 1rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.footer-brand img {
  margin-left: -8px;
}

.footer-col h4 {
  margin: 0.2rem 0 0.4rem;
  color: var(--text-strong);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin: 0.45rem 0;
}

.legal {
  border-top: 1px solid var(--stroke);
  margin-top: 1.3rem;
  padding-top: 1.1rem;
  padding-bottom: 0.45rem;
  color: #dce5ed;
  font-size: 0.9rem;
  line-height: 1.5;
}

.kickers {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.tag {
  background: rgba(61, 194, 227, 0.16);
  color: #d5f7ff;
  border: 1px solid rgba(61, 194, 227, 0.35);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  line-height: 1;
  min-width: 36px;
  text-align: center;
}

.notice {
  background: linear-gradient(
    145deg,
    rgba(15, 31, 47, 0.96),
    rgba(12, 22, 34, 0.96)
  );
  border: 1px solid var(--stroke);
  border-left: 4px solid var(--brand);
  border-radius: 12px;
  padding: 0.78rem 0.9rem;
  color: #f6e6bd;
}

.small {
  font-size: 0.92rem;
  color: #dde6ed;
}

.security-bar {
  background: linear-gradient(
    180deg,
    rgba(8, 26, 35, 0.72),
    rgba(8, 26, 35, 0.4)
  );
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  padding: 1rem 0;
}

.security-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.3rem 2rem;
}

.security-item {
  display: flex;
  align-items: center;
  gap: 0.52rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.security-item svg {
  color: var(--brand);
  flex-shrink: 0;
}

.testimonials {
  background: rgba(255, 255, 255, 0.02);
  padding: 2.4rem 0;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.35rem;
  margin-top: 1.4rem;
}

.testimonial {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1.15rem;
  position: relative;
  box-shadow: var(--shadow-soft);
}

.testimonial blockquote {
  margin: 0 0 1rem;
  font-style: italic;
  color: var(--text-strong);
  line-height: 1.64;
}

.testimonial blockquote::before {
  content: "\201C";
  position: absolute;
  top: 0.35rem;
  left: 0.92rem;
  font-size: 2.7rem;
  color: var(--brand);
  opacity: 0.25;
  font-family: Georgia, serif;
}

.testimonial cite {
  display: block;
  text-align: right;
  font-style: normal;
}

.testimonial cite strong {
  display: block;
  color: var(--text-strong);
  font-weight: 600;
}

.testimonial cite span {
  font-size: 0.875rem;
  color: var(--muted);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  margin-top: 1.3rem;
  align-items: start;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1rem;
  transition:
    border-color 180ms ease,
    background-color 180ms ease;
  position: relative;
  z-index: 1;
  isolation: isolate;
  contain: layout;
}

.faq-item[open] {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--stroke-strong);
  z-index: 2;
}

.faq-item details {
  display: block;
  width: 100%;
}

.faq-item summary {
  font-weight: 650;
  color: var(--text-strong);
  cursor: pointer;
  list-style: none;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 1.75rem;
  padding-right: 2rem;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -0.05rem;
  width: 1.35rem;
  height: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  font-size: 1.15rem;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "\2212";
  transform: rotate(180deg);
}

.faq-item p {
  margin: 0.85rem 0 0;
  color: var(--muted);
  line-height: 1.63;
}

.comparison-table {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius);
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;
}

.comparison-table th {
  background: rgba(255, 255, 255, 0.04);
  padding: 0.9rem;
  text-align: left;
  font-weight: 650;
  border-bottom: 2px solid var(--stroke);
  color: var(--text-strong);
}

.comparison-table td {
  padding: 0.9rem;
  border-bottom: 1px solid var(--stroke);
  vertical-align: top;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table td.diy {
  color: var(--muted);
  background: rgba(255, 0, 0, 0.04);
}

.comparison-table td.aegis {
  color: var(--text-strong);
  background: rgba(61, 194, 227, 0.08);
  position: relative;
  padding-left: 1.9rem;
}

.comparison-table td.aegis::before {
  content: "\2713";
  position: absolute;
  left: 0.55rem;
  color: var(--brand);
  font-weight: 700;
}

.comparison-cta {
  text-align: center;
  margin-top: 1.4rem;
}

.comparison-cta p {
  margin-bottom: 0.9rem;
  font-size: 1.02rem;
  color: var(--text-strong);
}

.trust-badges {
  padding: 1.8rem 0;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 255, 255, 0.02),
    transparent
  );
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  transition:
    transform 180ms ease,
    border-color 180ms ease;
  box-shadow: var(--shadow-soft);
}

.trust-badge:hover {
  transform: translateY(-2px);
  border-color: var(--stroke-strong);
}

.trust-badge svg {
  color: var(--brand);
  flex-shrink: 0;
}

.trust-badge div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.trust-badge strong {
  color: var(--text-strong);
  font-size: 0.94rem;
}

.trust-badge span {
  color: var(--muted);
  font-size: 0.84rem;
}

.demo-section {
  background: rgba(255, 255, 255, 0.015);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.2rem;
}

.demo-card h3 {
  margin: 0 0 0.8rem;
  font-size: 1.18rem;
  color: var(--text-strong);
}

.terminal {
  background: #0a1018;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.terminal-header {
  background: #151d29;
  padding: 0.7rem 0.95rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--stroke);
}

.terminal-dots {
  display: flex;
  gap: 0.45rem;
}

.terminal-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.terminal-dots span:nth-child(2) {
  background: #ffbd2e;
}

.terminal-dots span:nth-child(3) {
  background: #28ca42;
}

.terminal-title {
  margin-left: auto;
  font-size: 0.84rem;
  color: var(--muted);
}

.terminal-body {
  padding: 1rem;
  margin: 0;
  font-family:
    "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New",
    monospace;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #e4e4e7;
  overflow-x: auto;
}

.terminal-body .prompt {
  color: #22d3ee;
  font-weight: bold;
}

.terminal-body .cmd {
  color: #a5f3fc;
}

.terminal-body .output {
  color: #b4beca;
}

.terminal-body .success {
  color: #4ade80;
}

.terminal-body .error {
  color: #f87171;
}

.notify-section {
  padding-bottom: 60px;
}

.products-aegis main {
  padding-bottom: 100px;
}

.standalone-section {
  max-width: 72ch; /* Ergonomic line length for long-form reading */
  margin: 0 auto;
  text-align: left;
}

.standalone-section p {
  line-height: 1.75; /* Increased for better readability */
  font-size: 1.05rem; /* Slightly larger base font for docs */
}

/* TL;DR Callout Styling */
.tldr-callout {
  background: rgba(61, 194, 227, 0.05);
  border-left: 4px solid var(--brand);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
}

.tldr-callout h2, .tldr-callout h3 {
  margin-top: 0 !important;
  color: var(--brand);
  font-size: 1.1rem !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tldr-callout h2::before, .tldr-callout h3::before {
  content: "💡";
}

.tldr-callout p:last-child {
  margin-bottom: 0;
}

.standalone-section .feature {
  max-width: 100%;
  margin-bottom: 0.95rem;
}

.standout {
  color: var(--text-strong) !important;
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  margin-bottom: 0.4rem;
}

.pricing-footer-spacing {
  height: 60px;
}

.gold-input {
  color: var(--text) !important;
}

.gold-input,
input[type="email"] {
  caret-color: var(--brand);
}

/* ── Mobile navigation drawer ───────────────────────────── */

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: rgba(12, 29, 38, 0.8);
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

.menu-toggle:hover {
  color: var(--text-strong);
  border-color: var(--stroke-strong);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease, visibility 250ms ease;
  -webkit-tap-highlight-color: transparent;
}

.drawer-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  z-index: 100;
  background: linear-gradient(
    170deg,
    rgba(4, 21, 28, 0.99),
    rgba(6, 26, 35, 0.99)
  );
  backdrop-filter: blur(12px);
  border-left: 1px solid var(--stroke);
  transform: translateX(100%);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

body.drawer-open {
  overflow: hidden;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--stroke);
  flex-shrink: 0;
}

.drawer-header .brand-img {
  height: 44px;
  width: auto;
}

.drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.drawer-close svg {
  width: 20px;
  height: 20px;
}

.drawer-close:hover {
  color: var(--text-strong);
  border-color: var(--stroke-strong);
}

.drawer-nav {
  flex: 1;
  padding: 0.5rem 0;
}

.drawer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.drawer-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.6rem 1.25rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 1rem;
  border-left: 3px solid transparent;
  transition:
    background 150ms ease,
    color 150ms ease,
    border-color 150ms ease;
}

.drawer-nav a:hover,
.drawer-nav a:focus-visible {
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--brand);
  text-decoration: none;
}

.drawer-nav a.is-current {
  color: #05141b;
  background: linear-gradient(100deg, var(--brand), var(--brand-2));
  border-left-color: transparent;
  text-decoration: none;
}

.drawer-cta {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--stroke);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex-shrink: 0;
}

.drawer-cta .btn {
  width: 100%;
  justify-content: center;
  min-height: 48px;
}

.mobile-toc {
  display: none;
  margin-bottom: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
}

.mobile-toc summary {
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--text-strong);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
}

.mobile-toc summary::-webkit-details-marker {
  display: none;
}

.mobile-toc summary::after {
  content: "+";
  font-size: 1.1rem;
  width: 1.35rem;
  height: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: var(--muted);
  transition: transform 200ms ease;
}

.mobile-toc[open] summary::after {
  content: "\2212";
  transform: rotate(180deg);
}

.mobile-toc ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0.5rem;
}

.mobile-toc a {
  display: flex;
  align-items: center;
  padding: 0.45rem 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
  min-height: 42px;
}

.mobile-toc a:hover {
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
}

@media (max-width: 1200px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 0.9rem;
  }

  .brand {
    order: 1;
  }

  .cta {
    order: 2;
  }

  .site-header nav {
    order: 3;
    grid-column: 1 / -1;
  }

  .nav {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 950px) {
  .hero-inner,
  .cards,
  .split,
  .audience-grid,
  .docs-link-grid,
  .pricing-grid,
  .faq-grid,
  .whats-new,
  .layout-2,
  .grid-2x2 {
    grid-template-columns: 1fr;
  }

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

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

  .doc-meta {
    grid-template-columns: 1fr;
  }

  .hero-aegis-logo {
    order: -1;
  }

  .hero-aegis-logo img:first-child {
    max-height: min(300px, 42vh);
  }

  .cta {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(1160px, 100% - 1.35rem);
  }

  .header-inner {
    grid-template-columns: 1fr;
    width: min(1320px, 100% - 1.35rem);
    gap: 0.75rem;
    padding: 0.75rem 0;
  }

  .brand {
    justify-content: center;
  }

  .brand img {
    height: 56px;
  }

  .brand img:last-child {
    height: 32px;
  }

  .site-header nav {
    width: 100%;
  }

  .nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding: 0.35rem;
    border-radius: 12px;
  }

  .nav li {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .cta {
    width: 100%;
    justify-content: stretch;
    gap: 0.55rem;
  }

  .cta .btn {
    flex: 1 1 0;
    min-height: 42px;
    padding: 0.58rem 0.6rem;
    font-size: 0.9rem;
  }

  .hero {
    padding-top: 2.25rem;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(1.78rem, 8vw, 2.25rem);
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-calls .btn {
    width: 100%;
  }

  .feature-strip {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .feature-chip {
    min-width: 0;
    white-space: normal;
  }

  .tier-row {
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: flex-start;
  }

  .tier-row label {
    width: 100%;
  }

  .comparison-table table,
  .comparison-table thead,
  .comparison-table tbody,
  .comparison-table th,
  .comparison-table td,
  .comparison-table tr {
    display: block;
  }

  .comparison-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }

  .comparison-table table {
    min-width: 0;
    border: none;
  }

  .comparison-table tr {
    margin-bottom: 0.75rem;
    border: 1px solid var(--stroke);
    border-radius: var(--radius-sm);
    background: var(--surface);
    padding: 0.75rem;
  }

  .comparison-table td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--stroke);
    text-align: right;
  }

  .comparison-table td:last-child {
    border-bottom: none;
  }

  .comparison-table td::before {
    content: attr(data-label);
    font-weight: 650;
    color: var(--text-strong);
    text-align: left;
    flex-shrink: 0;
  }

  .comparison-table td.aegis {
    padding-left: 0;
  }

  .comparison-table td.aegis::before {
    content: attr(data-label);
  }

  .tier-row input {
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: 0.35rem;
  }

  .site-header {
    backdrop-filter: blur(8px);
    background: rgba(4, 21, 28, 0.97);
  }

  .mobile-toc {
    display: block;
  }

  .footer-col a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .faq-item summary {
    min-height: 48px;
  }

  body.has-drawer .menu-toggle {
    display: flex;
  }

  body.has-drawer .header-inner > nav,
  body.has-drawer .header-inner > .cta {
    display: none;
  }

  body.has-drawer .header-inner {
    grid-template-columns: 1fr auto;
    padding: 0.6rem 0;
  }

  body.has-drawer .brand {
    justify-content: flex-start;
  }

  body.has-drawer .brand img {
    height: 50px;
  }

  body.has-drawer .brand img:last-child {
    height: 28px;
  }

  .security-items {
    justify-content: flex-start;
    gap: 0.8rem;
  }

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

@media (max-width: 480px) {
  .section {
    padding-top: 1.8rem;
  }

  .doc-breadcrumbs li {
    font-size: 0.82rem;
  }

  .doc-meta dd {
    font-size: 0.84rem;
  }

  .hero-aegis-logo {
    padding: 0.7rem;
  }

  .hero-aegis-logo img:first-child {
    max-height: 160px;
  }

  .hero-aegis-logo img:last-child {
    max-height: 50px;
  }

  .hero {
    padding-top: 1.6rem;
    padding-bottom: 0.6rem;
  }

  .hero-card,
  .card,
  .feature,
  .pricing-card,
  .wn-card,
  .testimonial,
  .faq-item {
    padding: 0.88rem;
  }

  .terminal-body {
    font-size: 0.79rem;
  }

  .cta {
    flex-direction: column;
    align-items: stretch;
  }

  .cta .btn {
    width: 100%;
  }

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

  .hero-calls {
    gap: 0.5rem;
  }

  .hero-calls .btn {
    font-size: 0.92rem;
    padding: 0.58rem 0.7rem;
  }
}

@media (hover: none) {
  .btn:hover,
  .card:hover,
  .feature:hover,
  .trust-badge:hover {
    transform: none;
    box-shadow: var(--shadow-soft);
  }
}

@media (hover: none) and (pointer: coarse) {
  body {
    background-attachment: scroll;
  }
}

@media (forced-colors: active) {
  .btn,
  .btn.ghost,
  .nav a,
  .badge {
    forced-color-adjust: auto;
    border: 1px solid CanvasText;
  }
}

@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;
    scroll-behavior: auto !important;
  }

  .hero-aegis-logo img:first-child {
    animation: none !important;
    transform: none !important;
  }

  .btn:hover,
  .card:hover,
  .feature:hover,
  .trust-badge:hover {
    transform: none !important;
  }
}

/* Responsive Diagram Containers */
.diagram-container {
  margin: 2.5rem 0;
  position: relative;
  background: #0a1d29;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  border: 1px solid var(--stroke);
  overflow: hidden;
}

.diagram-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--stroke) transparent;
}

.diagram-scroll::-webkit-scrollbar {
  height: 6px;
}

.diagram-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.diagram-scroll::-webkit-scrollbar-thumb {
  background-color: var(--stroke);
  border-radius: 10px;
}

.diagram-scroll img {
  min-width: 800px;
  width: 100%;
  height: auto;
  display: block;
}

.diagram-hint {
  display: none;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  background: rgba(0,0,0,0.2);
  padding: 0.4rem;
  border-top: 1px solid var(--stroke);
}

@media (max-width: 820px) {
  .diagram-hint {
    display: block;
  }
}
