:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-soft: #eef2f8;
  --text: #162033;
  --muted: #5d6a7c;
  --line: #dce3ec;
  --brand: #6257ff;
  --brand-dark: #483dd8;
  --dark: #121827;
  --header-bg: rgba(247, 248, 251, .9);
  --header-line: rgba(220, 227, 236, .8);
  --field-bg: #ffffff;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(24, 32, 56, 0.10);
  --max: 1180px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1020;
  --surface: #151c2e;
  --surface-soft: #101729;
  --text: #eef2ff;
  --muted: #aeb8cc;
  --line: #2d3850;
  --brand: #9a92ff;
  --brand-dark: #bbb5ff;
  --dark: #080d18;
  --header-bg: rgba(11, 16, 32, .92);
  --header-line: rgba(45, 56, 80, .9);
  --field-bg: #101729;
  --shadow: 0 18px 50px rgba(0, 0, 0, .32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  transition: color .2s ease, background-color .2s ease;
}
a { color: inherit; }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; }

.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.section { padding: 5.5rem 0; }
.section-large { padding: 7rem 0 6rem; }
.muted { background: var(--surface-soft); }
.dark-section { background: var(--dark); color: white; }
.align-center { align-items: center; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--surface);
  color: var(--text);
  padding: .75rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-line);
}
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { font-weight: 800; font-size: 1.3rem; text-decoration: none; letter-spacing: -.02em; }
.brand span { color: var(--brand); }
.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav a { text-decoration: none; font-weight: 650; }
.site-nav a:not(.button):hover { color: var(--brand); }
.nav-toggle, .theme-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: .6rem .8rem;
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle { display: none; }
.theme-toggle { min-width: 7.5rem; font-weight: 750; }
.theme-toggle:hover { border-color: var(--brand); }
.theme-toggle:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

h1, h2, h3 { margin: 0 0 1rem; line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(2.25rem, 3.8vw, 3.5rem); max-width: 22ch; }
h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); max-width: 24ch; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; }
.lead { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--muted); max-width: 70ch; }
.dark-section .lead { color: #c5ccda; }
.eyebrow { margin-bottom: .8rem; font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; color: var(--brand); }

.grid-two { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 3rem; }
.card-grid { display: grid; gap: 1.25rem; }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: 0 8px 30px rgba(24, 32, 56, .04);
}
.card p { color: var(--muted); }
.feature-card { min-height: 250px; display: flex; flex-direction: column; }
.feature-card .text-link { margin-top: auto; }
.tag { align-self: flex-start; margin-bottom: 1rem; padding: .35rem .65rem; border-radius: 999px; background: #eceaff; color: #483dd8; font-size: .78rem; font-weight: 750; }
html[data-theme="dark"] .tag { background: #282346; color: #d6d2ff; }

.impact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 2rem;
  box-shadow: var(--shadow);
}
.impact-card strong { display: block; font-size: clamp(2.25rem, 4.5vw, 3.5rem); line-height: 1.05; letter-spacing: -.05em; }
.impact-card > span { display: block; color: var(--muted); margin-top: .75rem; }
.impact-card hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
dl { margin: 0; }
dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 700; }

.button-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.75rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand);
  border-radius: 12px;
  padding: .9rem 1.15rem;
  background: var(--brand);
  color: white;
  text-decoration: none;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
html[data-theme="dark"] .button:not(.button-secondary) { color: #0b1020; }
.button:hover { transform: translateY(-2px); background: var(--brand-dark); }
.button-secondary { background: transparent; color: var(--text); border-color: var(--line); }
.button-secondary:hover { background: var(--surface); color: var(--text); border-color: var(--brand); }
html[data-theme="dark"] .button-secondary,
html[data-theme="dark"] .button-secondary:hover {
  color: #eef2ff;
}
.button-small { padding: .65rem .9rem; }
.text-link { color: var(--brand-dark); text-decoration: none; font-weight: 800; }

.section-heading { margin-bottom: 2rem; }
.section-heading h2 { max-width: 28ch; }
.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.check-list { margin: 0; padding: 0; list-style: none; display: grid; gap: .9rem; }
.check-list li { position: relative; padding-left: 1.7rem; font-weight: 700; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: #8f86ff; }
.pill-list { display: flex; flex-wrap: wrap; gap: .75rem; }
.pill-list span { padding: .7rem 1rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; }

.cta-section { padding-top: 1rem; }
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 2rem; box-shadow: var(--shadow); }
.cta-box h2 { max-width: 24ch; }

.page-intro { padding: 4rem 0 2.5rem; }
.page-intro h1 { max-width: 30ch; }
.page-intro .lead { max-width: 80ch; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.detail-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.detail-card ul { padding-left: 1.2rem; }
.process { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.process article { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.process article::before { content: "0" counter(step); display: block; margin-bottom: 1rem; color: var(--brand); font-weight: 900; }
.process.process-labeled article::before { content: none !important; display: none !important; }
.process-labeled .process-step { display: inline; font-weight: 700; color: var(--text); }
.process-labeled .process-icon { display: inline; margin-left: .2rem; }
.process-labeled h3 { margin-top: .15rem; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; margin-bottom: .4rem; font-weight: 700; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: .85rem; background: var(--field-bg); color: var(--text); }
textarea { min-height: 160px; resize: vertical; }
.field { margin-bottom: 1rem; }
.helper { color: var(--muted); font-size: .9rem; }

.site-footer { margin-top: 4rem; padding: 3.5rem 0 1.5rem; background: #0d1320; color: #c7cfdd; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-grid div { display: flex; flex-direction: column; gap: .5rem; }
.footer-grid a { text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid #263047; font-size: .9rem; }

@media (max-width: 900px) {
  .grid-two, .contact-grid, .detail-grid { grid-template-columns: 1fr; }
  .card-grid.four { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .site-nav { display: none; position: absolute; inset: 76px 1rem auto; padding: 1rem; flex-direction: column; align-items: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .theme-toggle { width: 100%; }
}

@media (max-width: 640px) {
  .section, .section-large { padding: 4rem 0; }
  .page-intro { padding: 3rem 0 2rem; }
  .card-grid.two, .card-grid.four, .process, .form-row { grid-template-columns: 1fr; }
  .split-heading, .cta-box, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2rem, 8vw, 2.75rem); }
  h2 { font-size: clamp(1.65rem, 7vw, 2.25rem); }
}
