:root,
html[data-theme="light"] {
  --bg: #f5f7fa;
  --surface: rgba(255,255,255,.88);
  --surface-strong: #ffffff;
  --ink: #10141a;
  --muted: #5d6775;
  --line: rgba(16,20,26,.10);
  --line-strong: rgba(16,20,26,.16);
  --accent: #111318;
  --accent-soft: #e9edf3;
  --blue: #315bff;
  --green: #178a57;
  --gold: #b57a12;
  --shadow: 0 24px 70px rgba(24,32,44,.10);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max: 1180px;
}

html[data-theme="dark"] {
  --bg: #0d1117;
  --surface: rgba(18,23,31,.88);
  --surface-strong: #141a23;
  --ink: #f4f7fb;
  --muted: #a7b0bd;
  --line: rgba(255,255,255,.10);
  --line-strong: rgba(255,255,255,.17);
  --accent: #ffffff;
  --accent-soft: #1a2230;
  --shadow: 0 24px 70px rgba(0,0,0,.28);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color-scheme: light;
}
html[data-theme="dark"] { color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background-color: #f5f7fa;
  background-image:
    radial-gradient(circle at 78% -10%, rgba(49,91,255,.10), transparent 34rem),
    radial-gradient(circle at 8% 18%, rgba(181,122,18,.07), transparent 28rem);
  line-height: 1.55;
}
html[data-theme="dark"] body {
  background-color: #0d1117;
  background-image:
    radial-gradient(circle at 78% -10%, rgba(49,91,255,.16), transparent 34rem),
    radial-gradient(circle at 8% 18%, rgba(181,122,18,.10), transparent 28rem);
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.page { min-height: 100vh; }
main { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--line);
}
.bar-inner {
  width: min(var(--max), calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.bar-inner .brand { margin-right: auto; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { display: block; width: 130px; height: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav > a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: .94rem;
  font-weight: 600;
}
.nav > a:hover, .nav > a.active { color: var(--ink); background: var(--surface); }
.theme-toggle {
  appearance: none;
  -webkit-appearance: none;
  width: 66px;
  height: 34px;
  flex: 0 0 auto;
  margin-left: 8px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--accent-soft);
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
  position: relative;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.theme-toggle:hover { border-color: color-mix(in srgb, var(--ink) 28%, transparent); }
.theme-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 22%, transparent);
}
.toggle-icon,
.theme-toggle-icon {
  width: 16px;
  height: 16px;
  z-index: 2;
  position: relative;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.toggle-icon svg,
.theme-toggle-icon svg {
  width: 15px;
  height: 15px;
  display: block;
}
.toggle-moon,
.theme-toggle-moon { color: #c9d4e4; }
.toggle-sun,
.theme-toggle-sun { color: rgba(201, 212, 228, .42); }
html[data-theme="light"] .toggle-moon,
html[data-theme="light"] .theme-toggle-moon,
.theme-toggle[data-theme-state="light"] .toggle-moon,
.theme-toggle[data-theme-state="light"] .theme-toggle-moon { color: rgba(16, 20, 26, .38); }
html[data-theme="light"] .toggle-sun,
html[data-theme="light"] .theme-toggle-sun,
.theme-toggle[data-theme-state="light"] .toggle-sun,
.theme-toggle[data-theme-state="light"] .theme-toggle-sun { color: #121417; }
.toggle-knob,
.theme-toggle-thumb {
  position: absolute;
  width: 28px;
  height: 28px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: linear-gradient(180deg, #2a3340, #151b24);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  transition: transform 280ms cubic-bezier(.2, .8, .2, 1), background 280ms ease;
  z-index: 1;
  pointer-events: none;
}
html[data-theme="light"] .toggle-knob,
html[data-theme="light"] .theme-toggle-thumb,
.theme-toggle[data-theme-state="light"] .toggle-knob,
.theme-toggle[data-theme-state="light"] .theme-toggle-thumb {
  transform: translateX(32px);
  background: linear-gradient(180deg, #ffffff, #e8edf3);
  box-shadow: 0 4px 14px rgba(16, 20, 26, .16);
}

.sv-hero, .sv-page-hero {
  padding: 96px 0 72px;
}
.sv-hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 72px;
  min-height: 680px;
}
.sv-page-hero { max-width: 900px; }
.sv-kicker {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); }
h1 { font-size: clamp(3.1rem, 6vw, 6.2rem); line-height: .97; letter-spacing: -.065em; margin-bottom: 24px; max-width: 1050px; }
.sv-page-hero h1 { font-size: clamp(3rem, 5vw, 5.2rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3.5rem); line-height: 1.03; letter-spacing: -.045em; margin-bottom: 16px; }
h3 { font-size: 1.2rem; line-height: 1.2; letter-spacing: -.02em; margin-bottom: 10px; }
p { color: var(--muted); }
.sv-hero-lead, .sv-page-hero > p, .sv-section-heading > p { font-size: 1.12rem; max-width: 780px; }

.sv-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.subtle { background: transparent; }

.sv-status-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.sv-status-pill, .sv-state, .sv-role {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: .76rem;
  font-weight: 760;
  letter-spacing: .02em;
}

.sv-positioning-card, .sv-card, .sv-team-card, .sv-section-panel, .sv-cta-band, .sv-validation-list article, .sv-roadmap article, .contact-form, .section-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.sv-positioning-card { border-radius: var(--radius-xl); padding: 26px; }
.sv-positioning-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 18px; }
.sv-positioning-head span { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.sv-positioning-head strong { font-size: 1.35rem; }
.sv-positioning-list { display: grid; gap: 10px; }
.sv-positioning-item { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 2px 10px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-strong); }
.sv-positioning-item small { grid-row: span 2; color: var(--blue); font-weight: 800; }
.sv-positioning-item strong { font-size: .98rem; }
.sv-positioning-item span { color: var(--muted); font-size: .84rem; }
.sv-note { margin: 16px 2px 0; font-size: .78rem; }

.sv-section { padding: 74px 0; }
.sv-section-heading { margin-bottom: 30px; max-width: 900px; }
.sv-section-heading.compact { margin: 0; }
.sv-section-panel { border-radius: var(--radius-xl); padding: 42px; margin: 54px 0; }
.sv-grid-3, .sv-process-grid, .sv-two-column, .field-grid { display: grid; gap: 16px; }
.sv-grid-3 { grid-template-columns: repeat(3, 1fr); }
.sv-process-grid { grid-template-columns: repeat(4, 1fr); margin-top: 28px; }
.sv-two-column { grid-template-columns: repeat(2, 1fr); }
.sv-team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.sv-team-card { flex: 0 1 calc((100% - 32px) / 3); }
.sv-card, .sv-team-card { border-radius: var(--radius-lg); padding: 26px; }
.sv-card-index { display: block; color: var(--blue); font-weight: 800; margin-bottom: 28px; }
.sv-process-grid article { border-top: 1px solid var(--line-strong); padding: 22px 4px 4px; }
.sv-process-grid strong { display: block; font-size: 1.08rem; margin-bottom: 8px; }

.sv-validation-list, .sv-roadmap { display: grid; gap: 12px; }
.sv-validation-list article { display: grid; grid-template-columns: 1.1fr 1.6fr auto; align-items: center; gap: 24px; padding: 22px 24px; border-radius: var(--radius-lg); }
.sv-validation-list article > div { display: flex; align-items: center; gap: 12px; }
.sv-validation-list h3, .sv-validation-list p { margin-bottom: 0; }
.sv-stage { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--ink); font-size: .76rem; font-weight: 800; flex: 0 0 auto; }
.sv-state-evidence { color: var(--green); }
.sv-state-progress { color: var(--blue); }
.sv-roadmap article { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 22px 24px; border-radius: var(--radius-lg); }
.sv-roadmap article > span { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); font-weight: 800; }
.sv-roadmap p { margin-bottom: 0; }

.sv-cta-band { border-radius: var(--radius-xl); padding: 40px; margin: 54px 0 84px; display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.sv-cta-band > div:first-child { max-width: 760px; }
.sv-cta-band h2 { margin-bottom: 12px; }

.sv-role { margin-bottom: 18px; color: var(--blue); }
.sv-team-card h2 { font-size: 1.55rem; margin-bottom: 10px; }

.contact-form { border-radius: var(--radius-lg); padding: 26px; margin-top: 26px; }
.field-grid { grid-template-columns: repeat(2, 1fr); }
.field { display: grid; gap: 7px; }
.field label { font-size: .82rem; font-weight: 750; color: var(--ink); }
.field input, .field textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface-strong); color: var(--ink); padding: 13px 14px; outline: none; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 16%, transparent); }
.contact-honey { position: absolute !important; left: -10000px !important; }
.contact-form-actions { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.contact-status { margin: 0; font-size: .86rem; }

.section-card { border-radius: var(--radius-xl); padding: 36px; margin: 74px 0; }
.section-head { margin-bottom: 28px; max-width: 850px; }
.section-head h2 { margin-bottom: 12px; }
.legal-copy { max-width: 840px; }
.legal-copy h3 { margin-top: 28px; }
.cookie-center, .cookie-summary-grid, .cookie-preference-panel { max-width: 100%; }
.cookie-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; }
.cookie-summary-card { padding: 22px; border: 1px solid var(--line); border-radius: 16px; }
.pill { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: var(--accent-soft); font-size: .72rem; font-weight: 800; margin-bottom: 12px; }
.cookie-preference-panel { display: flex; justify-content: space-between; gap: 30px; align-items: center; border-top: 1px solid var(--line); padding-top: 24px; }
.cookie-preference-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.footer { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 32px 0 42px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 30px; color: var(--muted); font-size: .85rem; }
.footer > div { display: grid; gap: 4px; }
.footer strong { color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.footer-links a:hover { color: var(--ink); }

@media (max-width: 980px) {
  .sv-hero { grid-template-columns: 1fr; min-height: auto; gap: 34px; padding-top: 72px; }
  .sv-grid-3 { grid-template-columns: 1fr 1fr; }
  .sv-team-card { flex-basis: calc((100% - 16px) / 2); }
  .sv-process-grid { grid-template-columns: 1fr 1fr; }
  .sv-validation-list article { grid-template-columns: 1fr; gap: 10px; }
  .nav { gap: 2px; }
  .nav > a { padding: 9px 8px; font-size: .86rem; }
}

@media (max-width: 720px) {
  main, .bar-inner, .footer { width: min(100% - 24px, var(--max)); }
  .bar-inner {
    min-height: 64px;
    padding: 14px 0 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand toggle" "nav nav";
    gap: 10px 12px;
    align-items: center;
  }
  .bar-inner .brand { grid-area: brand; margin-right: 0; }
  .nav { grid-area: nav; width: 100%; overflow-x: auto; padding-bottom: 3px; }
  .theme-toggle { grid-area: toggle; margin-left: 0; }
  h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
  .sv-page-hero h1 { font-size: clamp(2.45rem, 12vw, 3.8rem); }
  .sv-hero, .sv-page-hero { padding: 58px 0 42px; }
  .sv-section { padding: 48px 0; }
  .sv-grid-3, .sv-process-grid, .sv-two-column, .field-grid, .cookie-summary-grid { grid-template-columns: 1fr; }
  .sv-team-card { flex-basis: 100%; }
  .sv-section-panel, .sv-cta-band, .section-card { padding: 26px; border-radius: 20px; }
  .sv-cta-band, .cookie-preference-panel, .footer { flex-direction: column; align-items: stretch; }
  .footer { padding-bottom: 28px; }
}
