:root {
  color-scheme: light dark;
  --bg: #f5f7fa;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --ink: #101827;
  --muted: #5d6878;
  --line: rgba(15, 31, 51, 0.12);
  --blue: #1167d8;
  --blue-strong: #0752b5;
  --mint: #12a785;
  --wash: #eaf2ff;
  --shadow: 0 18px 50px rgba(33, 55, 82, 0.1);
  --radius: 24px;
  --shell: min(1120px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 85% 8%, rgba(67, 139, 255, 0.14), transparent 28rem),
    var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-underline-offset: 0.2em; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px);
}
.nav-shell { min-height: 72px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; text-decoration: none; letter-spacing: -0.02em; }
.brand-mark { position: relative; width: 27px; height: 27px; display: inline-block; transform: rotate(-8deg); }
.brand-mark span { position: absolute; width: 10px; height: 24px; border-radius: 8px; background: var(--blue); }
.brand-mark span:first-child { left: 2px; top: 0; }
.brand-mark span:last-child { right: 2px; bottom: 0; background: var(--mint); }
nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
nav a, .language-link { color: var(--muted); font-size: 0.91rem; font-weight: 650; text-decoration: none; }
nav a:hover, nav a:focus-visible, .language-link:hover, .language-link:focus-visible, nav a[aria-current="page"] { color: var(--ink); }
.language-link { padding-left: 22px; border-left: 1px solid var(--line); }
.hero { min-height: 680px; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 72px; align-items: center; padding-block: 100px 110px; }
.eyebrow { margin: 0 0 14px; color: var(--blue); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.12; letter-spacing: -0.04em; }
h1 { max-width: 760px; margin-bottom: 26px; font-size: clamp(2.1rem, 4vw, 3.4rem); }
h2 { margin-bottom: 18px; font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
h3 { margin-bottom: 12px; font-size: 1.15rem; }
p { color: var(--muted); }
.hero-lede { max-width: 650px; margin: 0; font-size: clamp(1.08rem, 2vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 10px 20px; border: 1px solid var(--line); border-radius: 14px; font-weight: 720; text-decoration: none; }
.button.primary { border-color: var(--blue); background: var(--blue); color: white; opacity: 0.82; }
.button.secondary { background: var(--surface); }
.button.secondary:hover { border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); }
.availability-note { margin: 13px 0 0; font-size: 0.86rem; }
.signal-panel { position: relative; overflow: hidden; padding: 28px; border: 1px solid var(--line); border-radius: 30px; background: var(--surface); box-shadow: var(--shadow); }
.signal-panel::before { position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--blue), var(--mint)); content: ""; }
.signal-topline, .signal-path, .signal-rule { display: flex; align-items: center; gap: 12px; }
.signal-topline { justify-content: space-between; color: var(--muted); font-size: 0.84rem; font-weight: 700; }
.status-pass { padding: 4px 9px; border-radius: 999px; background: color-mix(in srgb, var(--mint) 14%, transparent); color: var(--mint); }
.signal-path { overflow: hidden; margin: 24px 0; padding: 14px; border-radius: 14px; background: color-mix(in srgb, var(--ink) 5%, transparent); font-size: 0.78rem; }
.signal-path code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.method { color: var(--blue); font-size: 0.7rem; font-weight: 850; }
.signal-rule { padding: 15px 0; border-top: 1px solid var(--line); }
.signal-rule > span { width: 11px; height: 11px; flex: 0 0 auto; border: 3px solid color-mix(in srgb, var(--mint) 25%, var(--surface-solid)); border-radius: 50%; background: var(--mint); }
.signal-rule div { display: grid; }
.signal-rule strong { font-size: 0.9rem; }
.signal-rule small { color: var(--muted); }
.trace-line { display: grid; grid-template-columns: 1fr 1fr 1fr 0.4fr; gap: 6px; margin-top: 18px; }
.trace-line i { height: 4px; border-radius: 4px; background: var(--blue); opacity: 0.26; }
.trace-line i:last-child { background: var(--mint); opacity: 0.8; }
.signal-panel > p { margin: 19px 0 0; font-size: 0.82rem; }
.section { padding-block: 104px; }
.section-heading { max-width: 680px; }
.section-heading > p:last-child { font-size: 1.08rem; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 48px; }
.feature-card, .principle-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.feature-card { position: relative; min-height: 230px; padding: 30px; }
.feature-index { display: block; margin-bottom: 42px; color: var(--blue); font-family: ui-monospace, monospace; font-size: 0.75rem; font-weight: 800; }
.feature-card p { margin-bottom: 0; }
.evidence-section { padding-block: 108px; background: #091524; color: #f7fbff; }
.evidence-section p { color: #aebdce; }
.evidence-section .eyebrow { color: #61d8bd; }
.evidence-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 90px; align-items: start; }
.evidence-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.evidence-list li { display: flex; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.evidence-list li span { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #61d8bd; box-shadow: 0 0 0 6px rgba(97, 216, 189, 0.09); }
.principle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.principle-card { padding: 38px; }
.principle-card p:not(.eyebrow) { min-height: 112px; }
.principle-card a { color: var(--blue); font-weight: 720; text-decoration: none; }
.accent-card { background: linear-gradient(145deg, color-mix(in srgb, var(--wash) 88%, var(--surface-solid)), var(--surface)); }
.site-footer { padding-block: 50px 28px; border-top: 1px solid var(--line); }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; }
.footer-brand { margin-bottom: 12px; }
.footer-grid p { max-width: 460px; margin: 0; font-size: 0.9rem; }
.footer-links { display: flex; gap: 24px; align-items: start; }
.footer-links a { color: var(--muted); font-size: 0.9rem; text-decoration: none; }
.footer-meta { margin-top: 35px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.78rem; }
.page-hero { max-width: 900px; margin-inline: auto; padding-block: 118px 96px; text-align: center; }
.page-hero h1 { max-width: none; font-size: clamp(1.9rem, 3vw, 2.6rem); }
.page-hero > p:not(.eyebrow, .effective-date) { max-width: 720px; margin: 0 auto; font-size: 1.16rem; }
.compact-hero { padding-bottom: 68px; }
.effective-date { margin-top: 24px; font-size: 0.84rem; }
.content-section { padding-block: 88px 118px; }
.content-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 80px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { padding: 22px 36px 22px 0; cursor: pointer; font-weight: 720; list-style-position: outside; }
.faq-item summary::marker { color: var(--blue); }
.faq-item p { margin: -6px 0 24px; }
.support-band { padding-block: 96px; background: #091524; color: #f7fbff; }
.support-band p, .support-band li, .support-band small { color: #aebdce; }
.support-band .eyebrow { color: #61d8bd; }
.support-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 68px; align-items: start; }
.support-grid ul, .policy-content ul { padding-left: 1.25rem; }
.support-grid li, .policy-content li { margin-bottom: 9px; }
.warning-note { margin-top: 26px; padding: 16px 18px; border-left: 3px solid #f0b65c; background: rgba(240, 182, 92, 0.08); }
.contact-card { padding: 34px; border: 1px solid rgba(255, 255, 255, 0.13); border-radius: var(--radius); background: rgba(255, 255, 255, 0.05); }
.contact-card .active-button { margin: 12px 0 20px; opacity: 1; }
.contact-card small { display: block; }
.policy-layout { display: grid; grid-template-columns: 0.42fr 1fr; gap: 80px; padding-bottom: 120px; align-items: start; }
.policy-summary { position: sticky; top: 104px; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.policy-summary p { margin-bottom: 0; font-size: 0.9rem; }
.policy-content { min-width: 0; }
.policy-section { padding: 0 0 52px; margin-bottom: 52px; border-bottom: 1px solid var(--line); }
.policy-section:last-child { border-bottom: 0; }
.policy-section h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 65%, transparent); outline-offset: 4px; border-radius: 4px; }

@media (max-width: 820px) {
  :root { --shell: min(100% - 30px, 680px); }
  .nav-shell { min-height: 64px; gap: 16px; }
  nav { display: none; }
  .language-link { margin-left: auto; padding-left: 0; border-left: 0; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 56px; padding-block: 76px 84px; }
  .signal-panel { max-width: 620px; }
  .feature-grid, .principle-grid, .evidence-grid, .content-grid, .support-grid, .policy-layout { grid-template-columns: 1fr; }
  .evidence-grid { gap: 46px; }
  .content-grid, .support-grid, .policy-layout { gap: 46px; }
  .policy-summary { position: static; }
  .principle-card p:not(.eyebrow) { min-height: auto; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  h1 { font-size: 1.95rem; }
  .page-hero h1 { font-size: 1.8rem; }
  .hero-actions { display: grid; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .feature-index { margin-bottom: 28px; }
  .footer-grid { display: grid; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07111f;
    --surface: rgba(17, 32, 50, 0.86);
    --surface-solid: #112032;
    --ink: #f3f7fb;
    --muted: #a9b6c6;
    --line: rgba(205, 224, 245, 0.14);
    --blue: #63a5ff;
    --blue-strong: #87baff;
    --mint: #61d8bd;
    --wash: #112b4a;
    --shadow: 0 20px 56px rgba(0, 0, 0, 0.28);
  }
  .evidence-section { background: #040b13; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
