:root {
  --bg: #f4f6fe;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --surface-dark: #111936;
  --surface-dark-2: #0c366a;
  --text: #1a1f3d;
  --text-soft: rgba(26, 31, 61, 0.72);
  --line: rgba(47, 14, 93, 0.12);
  --brand: #826fff;
  --brand-deep: #2f0e5d;
  --brand-blue: #0c366a;
  --brand-mint: #15f5b9;
  --brand-sky: #61bdf6;
  --shadow: 0 24px 80px rgba(27, 35, 86, 0.12);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: min(1540px, calc(100vw - 24px));
  --topbar-bg: rgba(244, 246, 254, 0.78);
  --topbar-bg-scrolled: rgba(244, 246, 254, 0.92);
  --menu-bg: rgba(255, 255, 255, 0.94);
  --body-background: #f4f6fe;
  --card-bg: rgba(255, 255, 255, 0.76);
  --feature-primary-bg: #31235f;
  --accent-card-bg: #e7f1ef;
  --quote-card-bg: rgba(255, 255, 255, 0.86);
  --cta-bg: #241341;
  --section-tinted-bg: #f0f3fb;
  --section-dark-bg: #111936;
  --chip-bg: rgba(255, 255, 255, 0.76);
  --chip-border: rgba(47, 14, 93, 0.1);
  --chip-color: var(--brand-deep);
  --eyebrow-color: var(--brand-blue);
  --label-color: var(--brand-deep);
  --metric-accent: #2f8a6f;
  --button-primary-bg: #2f0e5d;
  --button-primary-border: rgba(47, 14, 93, 0.16);
  --button-secondary-bg: rgba(255, 255, 255, 0.82);
  --button-secondary-border: rgba(130, 111, 255, 0.18);
  --button-ghost-bg: rgba(255, 255, 255, 0.5);
  --button-ghost-border: rgba(130, 111, 255, 0.16);
  --mobile-button-bg: rgba(255, 255, 255, 0.8);
  --hero-orb-bg: rgba(90, 67, 171, 0.22);
}

html[data-theme="dark"] {
  --bg: #06070b;
  --surface: rgba(10, 12, 18, 0.82);
  --surface-strong: #10131b;
  --surface-dark: #090b11;
  --surface-dark-2: #121827;
  --text: #edf1ff;
  --text-soft: rgba(237, 241, 255, 0.72);
  --line: rgba(130, 111, 255, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --topbar-bg: rgba(6, 7, 11, 0.72);
  --topbar-bg-scrolled: rgba(6, 7, 11, 0.9);
  --menu-bg: rgba(14, 17, 26, 0.96);
  --body-background: #06070b;
  --card-bg: rgba(11, 13, 20, 0.88);
  --feature-primary-bg: #121623;
  --accent-card-bg: #162026;
  --quote-card-bg: #10131b;
  --cta-bg: #161a28;
  --section-tinted-bg: #0b0d14;
  --section-dark-bg: #07080d;
  --chip-bg: rgba(255, 255, 255, 0.05);
  --chip-border: rgba(130, 111, 255, 0.18);
  --chip-color: var(--text);
  --eyebrow-color: var(--brand-mint);
  --label-color: var(--brand-mint);
  --metric-accent: #4fb894;
  --button-primary-bg: #232944;
  --button-primary-border: rgba(130, 111, 255, 0.18);
  --button-secondary-bg: rgba(255, 255, 255, 0.04);
  --button-secondary-border: rgba(130, 111, 255, 0.2);
  --button-ghost-bg: rgba(255, 255, 255, 0.03);
  --button-ghost-border: rgba(130, 111, 255, 0.16);
  --mobile-button-bg: rgba(255, 255, 255, 0.04);
  --hero-orb-bg: rgba(90, 67, 171, 0.34);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--body-background);
  background-size: auto;
  font-family: "Manrope", sans-serif;
}

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

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

button {
  font: inherit;
}

.site-shell {
  overflow: clip;
}

.container {
  width: var(--container);
  margin: 0 auto;
  padding-right: 1rem;
  padding-left: 1rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  background: var(--topbar-bg);
  border-bottom: 1px solid transparent;
  transition:
    border-color 180ms ease,
    background 180ms ease;
}

.topbar.is-scrolled {
  border-color: var(--line);
  background: var(--topbar-bg-scrolled);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

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

.brand-mark-wrap {
  display: none;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: transparent;
  border: 1px solid rgba(130, 111, 255, 0.24);
}

.brand-mark {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-name {
  font-family: "Syne", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-tag {
  color: var(--text-soft);
  font-size: 0.72rem;
}

.desktop-nav,
.nav-actions,
.mobile-nav {
  display: flex;
  align-items: center;
}

.desktop-nav {
  gap: 24px;
  margin-left: auto;
  margin-right: 10px;
}

.desktop-nav > a,
.nav-toggle {
  position: relative;
  padding: 10px 0;
  color: var(--text-soft);
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
}

.desktop-nav > a:hover,
.nav-toggle:hover,
.desktop-nav > a:focus-visible,
.nav-toggle:focus-visible {
  color: var(--text);
}

.nav-group {
  position: relative;
}

.mega-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 22px;
  min-width: 620px;
  padding: 22px;
  border-radius: 24px;
  background: var(--menu-bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.nav-group:hover .mega-menu,
.nav-group:focus-within .mega-menu,
.mega-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mega-menu a {
  display: block;
  padding: 8px 0;
  color: var(--text-soft);
}

.mega-menu a:hover,
.mega-menu a:focus-visible {
  color: var(--brand-deep);
}

.menu-label,
.section-label,
.card-kicker,
.insight-meta,
.footer-label {
  margin: 0 0 12px;
  color: var(--label-color);
  font-family: "Manrope", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-actions {
  gap: 10px;
  margin-left: 0;
  justify-content: flex-end;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: white;
  background: var(--button-primary-bg);
  border-color: var(--button-primary-border);
  box-shadow: 0 12px 24px rgba(47, 14, 93, 0.22);
}

.button-secondary {
  color: var(--text);
  background: var(--button-secondary-bg);
  border-color: var(--button-secondary-border);
}

.button-ghost {
  min-height: 42px;
  color: var(--text);
  background: var(--button-ghost-bg);
  border-color: var(--button-ghost-border);
}

.theme-toggle {
  width: 42px;
  min-width: 42px;
  padding: 0;
  position: relative;
  margin-left: 0;
  order: 99;
}

.theme-toggle-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
}

.theme-toggle-icon-sun {
  border-radius: 50%;
  border: 2px solid currentColor;
  box-shadow:
    0 -9px 0 -7px currentColor,
    0 9px 0 -7px currentColor,
    9px 0 0 -7px currentColor,
    -9px 0 0 -7px currentColor,
    6px 6px 0 -7px currentColor,
    -6px 6px 0 -7px currentColor,
    6px -6px 0 -7px currentColor,
    -6px -6px 0 -7px currentColor;
}

.theme-toggle-icon-moon {
  display: none;
  border-radius: 50%;
  box-shadow: inset -5px 0 0 currentColor;
}

html[data-theme="dark"] .theme-toggle-icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle-icon-moon {
  display: inline-block;
}

.request-button {
  gap: 10px;
}

.request-button-icon {
  width: 12px;
  height: 12px;
  object-fit: contain;
  flex: 0 0 12px;
}

.mobile-menu-button,
.mobile-nav {
  display: none;
}

.mobile-menu-button {
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(130, 111, 255, 0.18);
  border-radius: 16px;
  background: var(--mobile-button-bg);
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand-deep);
  margin: 0 auto;
}

.mobile-nav {
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 0 var(--gutter, 16px) 18px;
  width: var(--container);
  margin: 0 auto;
  max-height: 0;
  overflow: hidden;
  transition: max-height 200ms ease;
}

.mobile-nav.is-open {
  max-height: 420px;
}

.hero {
  position: relative;
  padding: 96px 0 104px;
  overflow: clip;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 28px auto auto 50%;
  width: min(860px, 90vw);
  height: min(860px, 90vw);
  background: rgba(130, 111, 255, 0.12);
  transform: translateX(-5%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 32px;
  align-items: stretch;
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--eyebrow-color);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Syne", sans-serif;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.55rem, 4.5vw, 4.9rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 3rem);
  line-height: 1.02;
}

h3 {
  font-size: 1.18rem;
  line-height: 1.1;
}

.hero-text,
.section-head p,
.sticky-copy p,
.standards-copy p,
.cta-copy p,
.proof-cards p,
.service-card p,
.industry-card p,
.protocol-card p,
.quote-card p,
.insight-card a,
.insight-card p,
.feature-card p,
.footer span,
.footer a {
  color: var(--text-soft);
  line-height: 1.7;
}

.hero-text {
  max-width: 62ch;
  margin: 20px 0 0;
  font-size: 1.04rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: auto;
  padding-top: 42px;
  margin-bottom: 0;
  align-items: stretch;
}

.hero-metrics article,
.service-card,
.industry-card,
.protocol-card,
.quote-card,
.insight-card,
.feature-card,
.proof-cards article {
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--card-bg);
  box-shadow: var(--shadow);
}

.hero-metrics article {
  min-height: 120px;
  display: grid;
  align-content: start;
}

.hero-metrics strong {
  display: block;
  margin-bottom: 8px;
  color: var(--metric-accent);
  font-size: 1.55rem;
  font-family: "Syne", sans-serif;
  line-height: 1;
}

.hero-panel {
  min-height: 0;
  align-self: stretch;
}

.hero-orb {
  position: absolute;
  inset: auto -26px 44px auto;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: var(--hero-orb-bg);
  filter: blur(16px);
  opacity: 0.36;
}

.hero-stack {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 0;
}

.signal-card {
  position: relative;
  overflow: hidden;
}

.feature-card-primary {
  padding: 24px;
  min-height: 240px;
  background: var(--feature-primary-bg);
  color: white;
}

.feature-card-primary::after {
  content: "";
  position: absolute;
  inset: auto -10px -10px auto;
  width: 190px;
  height: 190px;
  background: url("assets/brand-mark.png") center/contain no-repeat;
  opacity: 0.08;
}

.feature-card-primary .card-kicker,
.feature-card-primary p,
.feature-card-primary h2 {
  color: white;
}

.feature-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
  line-height: 1.8;
}

.accent-card {
  background: var(--accent-card-bg);
}

.micro-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.micro-grid span,
.standards-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  color: var(--chip-color);
  font-weight: 700;
}

.proof-band,
.section,
.cta-section {
  padding: 54px 0;
}

.proof-band {
  position: relative;
  padding-top: 36px;
}

.proof-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  align-items: end;
}

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

.proof-cards article strong {
  display: block;
  margin-bottom: 10px;
  font-family: "Syne", sans-serif;
  font-size: 1.2rem;
}

.section-head {
  max-width: 800px;
  margin-bottom: 28px;
}

.section-head p:last-child {
  margin-top: 16px;
}

.service-grid,
.protocol-grid,
.quote-grid,
.insight-grid {
  display: grid;
  gap: 18px;
}

.service-grid {
  grid-template-columns: repeat(3, 1fr);
}

.service-index,
.protocol-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 16px;
  color: white;
  font-weight: 800;
  background: var(--brand-deep);
}

.service-card h3,
.industry-card h3,
.protocol-card h3,
.insight-card h3 {
  margin-bottom: 12px;
}

.section-tinted {
  background: var(--section-tinted-bg);
}

.split-layout,
.standards-layout,
.cta-shell {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
}

.sticky-copy {
  position: sticky;
  top: 88px;
  align-self: start;
}

.industry-list {
  display: grid;
  gap: 18px;
}

.protocol-grid,
.quote-grid,
.insight-grid,
.standards-grid {
  grid-template-columns: repeat(3, 1fr);
}

.section-dark {
  color: white;
  background: var(--section-dark-bg);
}

.section-dark .section-label,
.section-dark h2,
.section-dark p,
.section-dark span {
  color: white;
}

.standards-grid {
  display: grid;
  gap: 16px;
  align-content: start;
}

.standards-grid span {
  min-height: 80px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: white;
}

.quote-card {
  min-height: 230px;
  display: flex;
  align-items: flex-end;
  background: var(--quote-card-bg);
}

.quote-card p {
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 600;
}

.insight-card a {
  display: inline-flex;
  margin-top: 14px;
  color: var(--brand-deep);
  font-weight: 700;
}

.cta-shell {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 36px;
  background: var(--cta-bg);
  box-shadow: var(--shadow);
}

.cta-shell::after {
  content: "";
  position: absolute;
  inset: auto -30px -30px auto;
  width: 240px;
  height: 240px;
  background: url("assets/brand-mark.png") center/contain no-repeat;
  opacity: 0.09;
}

.cta-copy,
.cta-copy .section-label,
.cta-copy h2,
.cta-copy p {
  color: white;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.cta-email {
  background: #ffffff;
  color: var(--brand-deep);
  border-color: rgba(255, 255, 255, 0.28);
}

.cta-actions .cta-email {
  color: var(--brand-deep);
}

.cta-actions .button-secondary {
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.footer {
  padding: 18px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.5fr 0.7fr;
  gap: 20px;
  padding: 26px 0 18px;
  border-top: 1px solid var(--line);
}

.footer-grid div {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .desktop-nav,
  .nav-actions {
    display: none;
  }

  .mobile-menu-button,
  .mobile-nav {
    display: flex;
  }

  .hero-grid,
  .proof-grid,
  .split-layout,
  .standards-layout,
  .cta-shell {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: auto;
  }

  .hero-stack {
    padding-left: 0;
  }

  .sticky-copy {
    position: static;
  }

  .service-grid,
  .proof-cards,
  .protocol-grid,
  .quote-grid,
  .insight-grid,
  .standards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-row {
    min-height: 76px;
  }

  .hero {
    padding: 40px 0 56px;
  }

  .hero-metrics,
  .service-grid,
  .proof-cards,
  .protocol-grid,
  .quote-grid,
  .insight-grid,
  .standards-grid,
  .micro-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .proof-band,
  .section,
  .cta-section {
    padding: 44px 0;
  }

  .cta-shell {
    padding: 24px;
  }

  .footer-base {
    flex-direction: column;
    align-items: flex-start;
  }

  .mega-menu {
    min-width: 0;
    width: min(94vw, 360px);
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1100px) {
  .container {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }
}
