:root {
  color-scheme: light;
  --brand-navy: #13233a;
  --brand-blue: var(--dova-color-brand);
  --brand-teal: #0f766e;
  --text: var(--dova-color-text);
  --muted: var(--dova-color-muted);
  --line: var(--dova-color-border);
  --surface: var(--dova-color-surface);
  --surface-alt: var(--dova-color-surface-subtle);
  --surface-raised: #ffffff;
  --header-surface: rgba(255, 255, 255, .97);
  --hero-surface: #f5f8fc;
  --copy: #40506a;
  --body-copy: #4b5b73;
  --security-surface: #13233a;
  --security-line: #334762;
  --security-copy: #c9d7e8;
  --footer-surface: #09121f;
  --footer-copy: #dbe6f3;
  --footer-link: #ffffff;
  --menu-shadow: rgba(19, 35, 58, .15);
  --content: 1180px;
}

html[data-dova-theme="night"] {
  color-scheme: dark;
  --brand-navy: #e6eef8;
  --brand-blue: #8ab4f8;
  --brand-teal: #5eead4;
  --text: var(--dova-color-text);
  --muted: var(--dova-color-muted);
  --line: #405063;
  --surface: #101820;
  --surface-alt: #151f29;
  --surface-raised: #19232d;
  --header-surface: rgba(16, 24, 32, .97);
  --hero-surface: #111d2a;
  --copy: #c6d2de;
  --body-copy: #b7c5d2;
  --security-surface: #09131e;
  --security-line: #34475b;
  --security-copy: #c9d7e8;
  --footer-surface: #070d14;
  --footer-copy: #cbd7e3;
  --footer-link: #ffffff;
  --menu-shadow: rgba(0, 0, 0, .4);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--surface); }
body { min-width: 320px; margin: 0; background: var(--surface); color: var(--text); font-family: var(--dova-font-family); }
a { color: inherit; }
img { max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 8px max(24px, calc((100vw - var(--content)) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--header-surface);
  backdrop-filter: blur(12px);
}

.brand { display: inline-flex; align-items: center; width: 150px; }
.brand img { display: block; width: 150px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { display: inline-flex; min-height: var(--dova-control-default); align-items: center; font-size: var(--dova-text-control); font-weight: 700; text-decoration: none; }
.main-nav a:hover { color: var(--brand-blue); }
.header-action { color: white !important; }
.language-control select { min-width: 64px; height: var(--dova-control-default); border: 1px solid var(--line); border-radius: var(--dova-radius-md); background: var(--surface-raised); color: var(--text); font-weight: 700; }
.menu-button { display: none; }

.hero { border-bottom: 1px solid var(--line); background: var(--hero-surface); }
.hero-inner { width: min(var(--content), calc(100% - 48px)); margin: 0 auto; padding: 64px 0 48px; }
.eyebrow { margin: 0 0 12px; color: var(--brand-teal); font-size: 13px; font-weight: 800; letter-spacing: 0; }
h1, h2, h3, p { letter-spacing: 0; }
h1 { max-width: 760px; margin: 0; color: var(--brand-navy); font-size: clamp(48px, 7vw, 84px); line-height: 1; }
.hero-lead { max-width: 760px; margin: 24px 0 0; color: var(--copy); font-size: 21px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 980px; margin: 46px 0 0; padding: 0; border-top: 1px solid var(--line); }
.facts div { min-height: 88px; padding: 20px 22px 12px 0; }
.facts dt { color: var(--muted); font-size: 13px; font-weight: 700; }
.facts dd { margin: 7px 0 0; color: var(--brand-navy); font-size: 16px; font-weight: 800; }

.section { padding: 72px max(24px, calc((100vw - var(--content)) / 2)); }
.section-alt { background: var(--surface-alt); }
.section-heading { max-width: 760px; margin-bottom: 34px; }
.section h2 { margin: 0; color: var(--brand-navy); font-size: clamp(30px, 4vw, 48px); line-height: 1.08; }
.section-heading > p:last-child, .security-section > div > p:last-child, .documents-section > div > p:last-child { color: var(--muted); font-size: 18px; line-height: 1.6; }

.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 3px solid var(--brand-blue); border-left: 1px solid var(--line); }
.module-grid article { min-height: 210px; padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.module-grid span { color: var(--brand-teal); font-size: 12px; font-weight: 800; }
.module-grid h3 { margin: 34px 0 10px; color: var(--brand-navy); font-size: 21px; }
.module-grid p { margin: 0; color: var(--body-copy); line-height: 1.6; }

.workflow-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; counter-reset: step; list-style: none; border-top: 1px solid var(--line); }
.workflow-list li { position: relative; min-height: 154px; padding: 28px 24px 24px 58px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); counter-increment: step; }
.workflow-list li::before { position: absolute; left: 18px; top: 27px; content: counter(step, decimal-leading-zero); color: var(--brand-blue); font-weight: 900; }
.workflow-list strong, .workflow-list span { display: block; }
.workflow-list strong { margin-bottom: 8px; color: var(--brand-navy); font-size: 19px; }
.workflow-list span { color: var(--body-copy); line-height: 1.55; }

.policy-list { border-top: 3px solid var(--brand-teal); }
.policy-list p { display: grid; grid-template-columns: minmax(230px, .8fr) 1.6fr; gap: 24px; margin: 0; padding: 15px 12px; border-bottom: 1px solid var(--line); }
.policy-list span { color: var(--body-copy); }
.policy-note { margin: 22px 0 0; padding-left: 16px; border-left: 4px solid var(--brand-teal); color: var(--muted); line-height: 1.55; }

.security-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; background: var(--security-surface); color: white; }
.security-section h2 { color: white; }
.security-section > div > p:last-child { color: var(--security-copy); }
.security-section ul { margin: 0; padding: 0; list-style: none; }
.security-section li { position: relative; padding: 18px 0 18px 30px; border-bottom: 1px solid var(--security-line); line-height: 1.55; }
.security-section li::before { position: absolute; left: 0; content: "\2713"; color: #55c2a7; font-weight: 900; }

.documents-section { display: grid; grid-template-columns: 1.4fr .6fr; align-items: center; gap: 50px; }
.document-actions { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
.text-action { color: var(--brand-blue); font-weight: 800; text-align: center; }

.site-footer { display: flex; justify-content: space-between; gap: 24px; padding: 34px max(24px, calc((100vw - var(--content)) / 2)); background: var(--footer-surface); color: var(--footer-copy); }
.site-footer div { display: flex; flex-direction: column; gap: 8px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.site-footer a { display: inline-flex; min-height: var(--dova-control-default); align-items: center; color: var(--footer-link); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

@media (max-width: 880px) {
  .site-header { min-height: 64px; padding-inline: 18px; }
  .brand { width: 126px; }
  .brand img { width: 126px; }
  .menu-button { display: inline-flex; }
  .main-nav { position: absolute; inset: 64px 14px auto; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 10px; border: 1px solid var(--line); background: var(--surface-raised); box-shadow: 0 18px 40px var(--menu-shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { min-height: var(--dova-control-large); padding: 0 12px; }
  .language-control { padding: 8px 12px; }
  .language-control select { height: var(--dova-control-large); }
  .header-action { text-align: center; }
  .hero { background: var(--hero-surface); }
  .hero-inner { width: min(100% - 36px, var(--content)); padding: 42px 0 34px; }
  h1 { font-size: 50px; }
  .hero-lead { font-size: 18px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 54px 18px; }
  .module-grid, .workflow-list { grid-template-columns: 1fr 1fr; }
  .security-section, .documents-section { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 560px) {
  .hero-actions, .hero-actions .DOVA_BUTTON { width: 100%; }
  .facts, .module-grid, .workflow-list { grid-template-columns: 1fr; }
  .facts div { min-height: 72px; }
  .module-grid article { min-height: 168px; }
  .policy-list p { grid-template-columns: 1fr; gap: 5px; }
  .site-footer { flex-direction: column; }
  .site-footer nav { align-items: flex-start; flex-direction: column; gap: 12px; }
  .site-footer a { min-height: var(--dova-control-large); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
