:root {
  --bg: #f6f3ff;
  --surface: #ffffff;
  --surface-alt: #f1ebff;
  --surface-strong: #e8dcff;
  --text: #1c1231;
  --muted: #5f5478;
  --border: #d9cdf2;
  --accent: #7c3aed;
  --accent-strong: #6d28d9;
  --accent-soft: rgba(124, 58, 237, 0.12);
  --success-bg: #eefbf4;
  --success-border: #a9dcc0;
  --success-text: #155738;
  --error-bg: #fff1f5;
  --error-border: #efb1c3;
  --error-text: #8c1841;
  --shadow: 0 18px 42px rgba(58, 28, 117, 0.10);
  --radius: 22px;
  --max-width: 1160px;
}

html[data-theme="dark"] {
  --bg: #120c1f;
  --surface: #1a132c;
  --surface-alt: #201733;
  --surface-strong: #2a1d46;
  --text: #f5f0ff;
  --muted: #cabee4;
  --border: #3a2a5f;
  --accent: #b38cff;
  --accent-strong: #c4a5ff;
  --accent-soft: rgba(179, 140, 255, 0.16);
  --success-bg: #153323;
  --success-border: #24563c;
  --success-text: #d6f4e3;
  --error-bg: #3a1825;
  --error-border: #6d2d40;
  --error-text: #ffd8e3;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.75rem;
}
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(179, 140, 255, 0.14), transparent 28rem),
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.08), transparent 26rem),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
code {
  padding: 0.15rem 0.4rem;
  border-radius: 0.45rem;
  background: rgba(127, 127, 127, 0.14);
  font-family: Consolas, Monaco, monospace;
}

:target { scroll-margin-top: 6.75rem; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}
.skip-link:focus { left: 1rem; z-index: 1000; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5.4rem;
}
.brand img { width: 220px; height: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.site-nav a,
.theme-switch-label {
  text-decoration: none;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.site-nav a:hover,
.site-nav a:focus,
.theme-switch-label:hover,
.theme-switch-label:focus-within {
  color: var(--text);
}

.nav-toggle,
.button {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  cursor: pointer;
}
.nav-toggle {
  display: none;
  padding: 0.65rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: var(--text);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.theme-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.theme-switch-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.theme-switch-label {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.25rem 0 0.25rem 0.35rem;
  cursor: pointer;
}

.theme-switch-text {
  font-size: 0.95rem;
}

.theme-switch-track {
  position: relative;
  width: 3.6rem;
  height: 1.95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(124, 58, 237, 0.35));
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.35);
  display: inline-flex;
  align-items: center;
  padding: 0 0.16rem;
}

.theme-switch-thumb {
  position: absolute;
  top: 0.16rem;
  left: 0.16rem;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(31, 20, 61, 0.22);
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.theme-switch-icon {
  position: absolute;
  font-size: 0.85rem;
  line-height: 1;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.theme-switch-icon-sun {
  opacity: 1;
  transform: scale(1);
}

.theme-switch-icon-moon {
  opacity: 0;
  transform: scale(0.7);
}

.theme-switch-input:checked + .theme-switch-label .theme-switch-thumb {
  transform: translateX(1.63rem);
}

.theme-switch-input:checked + .theme-switch-label .theme-switch-icon-sun {
  opacity: 0;
  transform: scale(0.7);
}

.theme-switch-input:checked + .theme-switch-label .theme-switch-icon-moon {
  opacity: 1;
  transform: scale(1);
}

.theme-switch-input:focus-visible + .theme-switch-label .theme-switch-track {
  outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent);
  outline-offset: 3px;
}

.section { padding: 5rem 0; }
.section-alt {
  background: color-mix(in srgb, var(--surface-alt) 82%, transparent);
}
.eyebrow {
  margin: 0 0 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-size: 0.82rem;
}
.hero h1,
.section h2,
.page-hero h1 { line-height: 1.08; margin: 0 0 1rem; }
.hero h1 { font-size: clamp(2.5rem, 4vw, 4.6rem); max-width: 11ch; }
.section h2,
.page-hero h1 { font-size: clamp(2rem, 2.8vw, 3.2rem); }
.lead,
.section-intro,
.page-intro { color: var(--muted); font-size: 1.08rem; max-width: 65ch; }

.hero {
  padding-top: 4.4rem;
}
.hero-grid,
.split-grid,
.page-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}
.hero-grid { grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.95fr); }
.split-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-grid { grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.8fr); }

.hero-card,
.card,
.checklist-card,
.contact-card,
.contact-meta-card,
.contact-status,
.trust-card,
.why-card,
.service-panel,
.page-sidebar,
.quick-facts,
.footer-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card,
.checklist-card,
.contact-card,
.contact-meta-card,
.contact-status,
.trust-card,
.why-card,
.service-panel,
.page-sidebar,
.quick-facts,
.footer-panel { padding: 1.5rem; }
.hero-card h2,
.checklist-card h3,
.contact-card h3,
.card h3,
.contact-meta-card h3,
.trust-card h3,
.why-card h3,
.service-panel h3,
.page-sidebar h3,
.quick-facts h3 { margin-top: 0; }

.hero-copy p + p { margin-top: 1rem; }
.hero-copy .lead { margin-bottom: 0; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.25rem;
  text-decoration: none;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}
.button:hover,
.button:focus { background: var(--accent-strong); }
.button-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.button-inline {
  display: inline-flex;
  width: fit-content;
}

.hero-highlights,
.checklist,
.quick-facts-list,
.service-checklist,
.page-sidebar ul,
.footer-link-list {
  padding-left: 1.2rem;
  margin: 0;
}
.hero-highlights li,
.quick-facts-list li,
.service-checklist li,
.page-sidebar li,
.footer-link-list li { margin-bottom: 0.65rem; }
.hero-highlights li:last-child,
.quick-facts-list li:last-child,
.service-checklist li:last-child,
.page-sidebar li:last-child { margin-bottom: 0; }

.trust-grid,
.why-grid,
.card-grid {
  display: grid;
  gap: 1.2rem;
}
.trust-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2rem; }
.why-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 2rem; }
.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2rem; }

.trust-card p,
.why-card p,
.card p,
.page-sidebar p,
.quick-facts p,
.contact-meta-card p,
.footer-panel p { margin-bottom: 0; color: var(--muted); }

.service-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.service-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.08), rgba(31, 20, 61, 0.04));
}
.service-card svg.service-image {
  padding: 1.5rem;
  object-fit: contain;
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.06), rgba(124, 58, 237, 0.02));
}
.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.35rem;
  flex: 1 1 auto;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--accent);
  font-weight: 700;
}
.card-link:hover,
.card-link:focus { color: var(--accent-strong); }

.page-hero {
  padding-top: 3.8rem;
}
.breadcrumbs {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.96rem;
}
.breadcrumbs a {
  text-decoration: none;
  color: inherit;
}
.page-sidebar .button { margin-top: 0.6rem; }
.service-outcomes {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.4rem;
}
.service-outcome {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.contact-shell {
  display: grid;
  gap: 1.5rem;
}
.contact-intro {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}
.contact-status {
  width: min(100%, 420px);
  display: none;
}
.contact-status.is-visible {
  display: block;
}
.contact-status.is-success {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success-text);
}
.contact-status.is-error {
  background: var(--error-bg);
  border-color: var(--error-border);
  color: var(--error-text);
}

.contact-grid-enhanced {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 1.5rem;
  align-items: start;
}

.contact-stack {
  display: grid;
  gap: 1.2rem;
}
.contact-form-card {
  padding: 1.6rem;
}
.contact-form {
  display: grid;
  gap: 1rem;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.contact-form label {
  display: grid;
  gap: 0.45rem;
}
.contact-form span {
  font-weight: 700;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  color: var(--text);
  padding: 0.95rem 1rem;
  font: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-color: var(--accent);
}
.contact-form textarea {
  resize: vertical;
  min-height: 180px;
}
.form-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.turnstile-slot {
  min-height: 70px;
  display: flex;
  align-items: center;
}
.turnstile-help {
  margin: -0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.turnstile-slot iframe { max-width: 100%; }

.contact-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}
.contact-list-item {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--border);
}
.contact-list-item:first-child { border-top: 0; padding-top: 0; }
.contact-list-label {
  font-weight: 700;
}
.contact-list-copy {
  color: var(--muted);
  text-align: right;
}
.contact-card a:not(.button),
.footer-panel a,
.site-footer a {
  color: var(--accent);
  text-decoration: none;
}
.contact-card a:not(.button):hover,
.footer-panel a:hover,
.site-footer a:hover { color: var(--accent-strong); }

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  min-height: 88px;
  padding: 1rem;
  text-decoration: none;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.social-link:hover,
.social-link:focus {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--text);
  box-shadow: var(--shadow);
}
.social-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.social-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.social-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.social-label { font-weight: 700; }
.social-sub { color: var(--muted); font-size: 0.94rem; }

.site-footer {
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(220px, 0.45fr));
  gap: 1.2rem;
  padding: 2rem 0 1.5rem;
}
.footer-panel h3,
.footer-panel h4 { margin-top: 0; margin-bottom: 0.75rem; }
.footer-link-list {
  list-style: none;
  padding: 0;
}
.footer-link-list li + li { margin-top: 0.55rem; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 1.4rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}
.footer-bottom a {
  color: var(--muted);
}
.footer-bottom a:hover { color: var(--text); }

@media (max-width: 1000px) {
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid,
  .trust-grid,
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-grid,
  .split-grid,
  .page-grid,
  .card-grid,
  .trust-grid,
  .contact-grid-enhanced,
  .form-grid,
  .social-grid,
  .footer-main { grid-template-columns: 1fr; }

  .contact-intro,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-toggle { display: inline-block; }
  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a,
  .theme-switch-label {
    padding: 0.75rem 0.9rem;
    border-radius: 0.85rem;
  }

  .theme-switch {
    width: 100%;
  }
  .theme-switch-label {
    justify-content: space-between;
    padding-left: 0;
  }

  .brand img { width: 180px; }
}

@media (max-width: 700px) {
  .turnstile-slot { justify-content: center; }
  .why-grid { grid-template-columns: 1fr; }
}
