:root {
  --bg: #f2ebe0;
  --surface: #fffdf8;
  --surface-muted: #efe6d8;
  --text: #0c1424;
  --text-muted: #4f5d72;
  --border: #d8ccb8;
  --primary: #0d7f76;
  --primary-dark: #0a625b;
  --accent: #c56a1d;
  --accent-soft: #f2d7b8;
  --ink: #060d18;
  --success: #166534;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 10px 24px rgba(8, 16, 32, 0.06);
  --shadow-md: 0 22px 48px rgba(8, 16, 32, 0.1);
  --shadow-brand: 0 18px 40px rgba(13, 127, 118, 0.16);
  --container: 1180px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", Roboto, Arial, sans-serif;
  --mesh-a: radial-gradient(ellipse 120% 80% at 0% -20%, rgba(13, 127, 118, 0.22), transparent 58%);
  --mesh-b: radial-gradient(ellipse 90% 60% at 100% 0%, rgba(197, 106, 29, 0.16), transparent 54%);
  --mesh-c: radial-gradient(ellipse 70% 50% at 50% 110%, rgba(12, 20, 36, 0.06), transparent 58%);
}

[data-theme="dark"] {
  --bg: #08111f;
  --surface: #101a2b;
  --surface-muted: #152238;
  --text: #edf3fb;
  --text-muted: #b4c0d4;
  --border: #2a3d5a;
  --primary: #35d0c2;
  --primary-dark: #1eb5a8;
  --accent: #f0a35c;
  --accent-soft: #3a2a18;
  --ink: #04080f;
  --success: #4ade80;
  --shadow-sm: 0 12px 28px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 24px 52px rgba(0, 0, 0, 0.38);
  --shadow-brand: 0 18px 44px rgba(53, 208, 194, 0.12);
  --mesh-a: radial-gradient(ellipse 110% 70% at 8% -25%, rgba(53, 208, 194, 0.16), transparent 56%);
  --mesh-b: radial-gradient(ellipse 80% 55% at 96% 8%, rgba(240, 163, 92, 0.12), transparent 52%);
  --mesh-c: radial-gradient(ellipse 55% 42% at 50% 108%, rgba(4, 8, 15, 0.65), transparent 55%);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: transparent;
  color: var(--text);
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: var(--mesh-a), var(--mesh-b), var(--mesh-c), var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(rgba(12, 20, 36, 0.05) 0.6px, transparent 0.6px);
  background-size: 18px 18px;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
  border-radius: var(--radius-sm);
}

img
.brand picture {
  display: contents;
}

.proof-card__media picture,
.profile-headshot picture {
  display: block;
  width: 100%;
  height: 100%;
}

.proof-card__media picture img,
.profile-headshot picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-logo--light,
img.brand-logo--dark,
.cert-logo img,
.proof-card__media img {
  border-radius: 0;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 88%, var(--primary));
  transition: box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.topbar.is-scrolled {
  box-shadow: var(--shadow-sm);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-logo--light,
.brand-logo--dark {
  width: auto;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.brand-logo--light {
  height: 50px;
  max-width: min(292px, 58vw);
}

.brand-logo--dark {
  height: 50px;
  max-width: min(292px, 58vw);
  display: none;
}

[data-theme="dark"] .brand-logo--light {
  display: none;
}

[data-theme="dark"] .brand-logo--dark {
  display: block;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .brand-logo--light {
    display: none;
  }

  html:not([data-theme]) .brand-logo--dark {
    display: block;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.94rem;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 700;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 70%, var(--accent)));
  color: #fff;
  font-weight: 800;
  box-shadow: var(--shadow-brand);
}

.nav-cta:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.menu-toggle,
.theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.menu-toggle {
  display: none;
}

.theme-toggle:hover,
.menu-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
}

.mobile-nav {
  display: none;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 0.95rem 1rem;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
}

main {
  min-height: 60vh;
}

.section {
  padding: 4.5rem 0;
}

.section-sm {
  padding: 3.25rem 0;
}

.section--ink {
  background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 96%, var(--primary)) 0%, var(--ink) 100%);
  color: #e8eef8;
}

.section--ink p,
.section--ink .kicker {
  color: #c9d5e7;
}

.section--ink .kicker {
  color: #8ce9df;
}

.section--ink h2,
.section--ink h3 {
  color: #f8fafc;
}

.section--ink .card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.section--ink .card p {
  color: #cbd5e1;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary-dark);
}

.kicker::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  line-height: 1.12;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 0, "WONK" 1;
}

h1 {
  font-size: clamp(2.35rem, 5.4vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.65rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  max-width: 22ch;
}

h3 {
  font-size: 1.18rem;
  font-weight: 650;
}

p {
  margin: 0;
  color: var(--text-muted);
}

.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.14rem);
  max-width: 62ch;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 82%, var(--primary));
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--surface) 98%, #fff) 0%,
    color-mix(in srgb, var(--surface-muted) 78%, var(--accent-soft)) 52%,
    color-mix(in srgb, var(--bg) 92%, transparent) 100%
  );
}

.hero--flagship {
  padding-top: 1.25rem;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: linear-gradient(
      120deg,
      transparent 0%,
      color-mix(in srgb, var(--primary) 8%, transparent) 48%,
      transparent 100%
    ),
    radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 42%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 1.75rem;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: grid;
  gap: 1.25rem;
  align-content: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-panel {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 82%, var(--primary));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.25rem;
  backdrop-filter: blur(10px);
}

.hero-panel--signal {
  display: grid;
  gap: 1rem;
}

.section-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--surface-muted) 90%, var(--accent-soft)) 0%,
    color-mix(in srgb, var(--bg) 98%, transparent) 100%
  );
  border-block: 1px solid color-mix(in srgb, var(--border) 88%, var(--primary));
}

.section-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image: linear-gradient(
      105deg,
      transparent 0%,
      color-mix(in srgb, var(--primary) 8%, transparent) 48%,
      transparent 96%
    ),
    radial-gradient(circle at 15% 40%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 42%);
}

.section-band .container {
  position: relative;
  z-index: 1;
}

.section-band-head {
  max-width: 58ch;
  margin-bottom: 1.35rem;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 1.1rem;
}

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

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

.card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.2rem;
  display: grid;
  gap: 0.7rem;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.95;
}

.card,
.btn,
.logo-box,
.blog-card,
.timeline-item,
.faq-item,
.proof-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover,
.blog-card:hover,
.timeline-item:hover,
.faq-item:hover,
.proof-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
}

.card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 72%, var(--accent)));
  color: #fff;
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  text-decoration: none;
  background: var(--surface-muted);
}

.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #08111f 0%, #0f4f4a 42%, #123f63 100%);
  color: #dbeafe;
}

.cta-band > .container {
  position: relative;
  z-index: 1;
}

.cta-band p {
  color: #cbd5e1;
}

.cta-band .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.2);
}

.contact-form {
  display: grid;
  gap: 0.8rem;
}

.contact-form label {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
}

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

.form-status {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

.form-status--error {
  color: var(--danger, #b91c1c);
}

.form-status--success {
  color: var(--text-muted, #64748b);
}

.form-status__mailto {
  font-weight: 600;
  color: var(--brand, #0d7f76);
  text-decoration: underline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-form button[disabled] {
  opacity: 0.72;
  cursor: not-allowed;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 70%, #fff);
  outline-offset: 2px;
}

.answer-box {
  background: color-mix(in srgb, var(--primary) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--primary) 34%, var(--border));
  border-radius: var(--radius-md);
  padding: 1rem 1.05rem;
  color: var(--text);
}

.answer-box p {
  color: var(--text);
}

.toc {
  position: sticky;
  top: 96px;
}

.toc ol {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.35rem;
}

.toc a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.toc a:hover {
  color: var(--text);
  text-decoration: underline;
}

.back-to-top {
  display: inline-flex;
  margin-top: 0.5rem;
  font-weight: 800;
}

.flow-diagram,
.cluster-map,
.tools-grid {
  display: grid;
  gap: 0.9rem;
}

.flow-step,
.cluster-node,
.tool-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
  padding: 0.9rem;
}

.cluster-map {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
  background: linear-gradient(180deg, var(--surface) 0%, color-mix(in srgb, var(--surface-muted) 60%, var(--surface)) 100%);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.site-footer__brand p {
  max-width: 38ch;
}

.site-footer__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.site-footer__links {
  display: grid;
  gap: 0.45rem;
}

.site-footer__links a {
  color: var(--text-muted);
  font-weight: 600;
}

.site-footer__bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  background: linear-gradient(180deg, var(--surface) 0%, color-mix(in srgb, var(--surface-muted) 55%, var(--surface)) 100%);
}

.footer-grid {
  display: grid;
  gap: 0.8rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 1024px) {
  .hero-grid,
  .grid-3,
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .brand-logo--light,
  .brand-logo--dark {
    height: 44px;
    max-width: min(240px, 68vw);
  }
}

@media (max-width: 760px) {
  .hero-grid,
  .grid-2,
  .grid-3,
  .site-footer__grid,
  .cluster-map,
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.25rem 0;
  }

  .toc {
    position: static;
  }

  h1 {
    max-width: none;
  }
}

.page-home .hero--flagship h1 {
  max-width: 18ch;
}

.cta-band .cta-kicker {
  color: #93c5fd;
}

.cta-band .cta-heading {
  color: #f8fafc;
}

.cta-band .cta-card {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.cta-band .cta-card h3,
.cta-band .cta-card p,
.cta-band .cta-card a {
  color: #dbeafe;
}

body.page-inner .hero .signal-board {
  display: none;
}

body.page-inner .hero-panel--signal .metric-grid {
  grid-template-columns: 1fr;
}

@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;
  }
}
