:root {
  --bg: #ffffff;
  --fg: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --primary: #1e3a8a;
  --primary-2: #1d4ed8;
  --accent: #f1f5f9;
  --card: rgba(255,255,255,0.92);
  --shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
  --radius: 16px;
}

[data-theme="dark"] {
  --bg: #0f172a;
  --fg: #e2e8f0;
  --muted: #a5b4c9;
  --line: #1f2937;
  --primary: #60a5fa;
  --primary-2: #93c5fd;
  --accent: rgba(30, 41, 59, 0.75);
  --card: rgba(30,41,59,0.92);
  --shadow: 0 18px 40px rgba(2, 6, 23, 0.45);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
a {
  color: inherit;
  text-decoration: none;
}
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 16px;
  top: 10px;
  width: auto;
  height: auto;
  padding: 10px 16px;
  border-radius: 12px;
  background: #ffffff;
  border: 2px solid var(--primary);
  z-index: 1000;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 8px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}
[data-theme="dark"] header {
  background: rgba(15, 23, 42, 0.92);
}
header.scrolled {
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-img {
  height: 48px;
  width: auto;
}
.brand-tagline {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--accent);
  padding: 0;
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.menu-toggle .bar {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--fg);
  transform: translate(-50%, 0);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle .bar:nth-child(1) { top: 15px; }
.menu-toggle .bar:nth-child(2) { top: 21px; }
.menu-toggle .bar:nth-child(3) { top: 27px; }
header.menu-open .menu-toggle .bar:nth-child(1) {
  transform: translate(-50%, 6px) rotate(45deg);
}
header.menu-open .menu-toggle .bar:nth-child(2) {
  opacity: 0;
}
header.menu-open .menu-toggle .bar:nth-child(3) {
  transform: translate(-50%, -6px) rotate(-45deg);
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 18px;
}
.navlinks a {
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
}
.navlinks a:hover { color: var(--fg); }
.navlinks a.active {
  color: var(--primary);
  font-weight: 600;
}
[data-theme="dark"] .navlinks a.active { color: var(--primary-2); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.12);
  border-color: rgba(99, 102, 241, 0.35);
}
.btn.primary {
  background: var(--primary);
  border-color: transparent;
  color: #ffffff;
}
.btn.primary:hover { background: var(--primary-2); }
.btn.ghost {
  background: transparent;
}
.btn.small {
  padding: 8px 14px;
  font-size: 13px;
}

.iconbtn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: var(--fg);
}
.iconbtn:hover { background: var(--accent); }
.iconbtn svg { width: 20px; height: 20px; display: block; }

.hero {
  position: relative;
  padding: clamp(80px, 18vh, 150px) 0 clamp(60px, 12vh, 100px);
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(37, 99, 235, 0.08), transparent 60%),
    radial-gradient(780px 540px at -5% 110%, rgba(148, 163, 184, 0.12), transparent 60%),
    var(--bg);
}
[data-theme="dark"] .hero {
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(96, 165, 250, 0.14), transparent 60%),
    radial-gradient(780px 540px at -5% 110%, rgba(14, 116, 144, 0.22), transparent 60%),
    var(--bg);
}
.hero .hero-body {
  display: grid;
  gap: 18px;
  max-width: 820px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
}
[data-theme="dark"] .tag {
  background: rgba(96, 165, 250, 0.16);
  border-color: rgba(96, 165, 250, 0.45);
  color: var(--primary-2);
}

h1, h2, h3 {
  font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
  letter-spacing: -0.02em;
  margin: 0;
}
h1 { font-size: clamp(34px, 4vw, 48px); line-height: 1.2; }
h2 { font-size: clamp(26px, 3vw, 32px); line-height: 1.25; margin-bottom: 18px; }
h3 { font-size: clamp(20px, 2.6vw, 24px); line-height: 1.3; margin-bottom: 14px; }

p {
  margin: 0 0 16px;
  color: var(--muted);
  max-width: 75ch;
}
strong { color: var(--fg); }
ul, ol { color: var(--muted); }

.section {
  padding: clamp(48px, 10vh, 72px) 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}
.section:last-of-type { border-bottom: none; }

.grid-two {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
}
@media (min-width: 860px) {
  .grid-two { grid-template-columns: 1.2fr 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }

.list-check {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.list-check li {
  position: relative;
  padding-left: 26px;
}
.list-check li::before {
  content: '✔';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-size: 16px;
  line-height: 1.2;
}
[data-theme="dark"] .list-check li::before {
  color: var(--primary-2);
}

.callout {
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 12px;
  margin: 24px 0;
}
[data-theme="dark"] .callout {
  background: rgba(37, 99, 235, 0.16);
  border-left-color: var(--primary-2);
}

.table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: var(--card);
}
.table-wrapper table {
  width: 100%;
  border-collapse: collapse;
}
.table-wrapper th,
.table-wrapper td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--muted);
}
.table-wrapper th {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--fg);
  background: rgba(37, 99, 235, 0.05);
}
.table-wrapper tr:last-child td { border-bottom: none; }

blockquote {
  margin: 24px 0;
  padding: 18px 24px;
  background: rgba(15, 23, 42, 0.04);
  border-left: 4px solid var(--primary);
  color: var(--muted);
  border-radius: 12px;
}
[data-theme="dark"] blockquote {
  background: rgba(30, 41, 59, 0.6);
  border-left-color: var(--primary-2);
}
blockquote cite { display: block; margin-top: 10px; font-style: normal; color: var(--fg); }

.meta-line {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}
.meta-line time { font-weight: 600; color: var(--fg); }

footer {
  padding: clamp(40px, 8vh, 60px) 0 32px;
  border-top: 1px solid var(--line);
  background: rgba(248, 250, 252, 0.9);
}
[data-theme="dark"] footer {
  background: rgba(15, 23, 42, 0.92);
}
.footer-grid {
  display: grid;
  gap: clamp(18px, 3vw, 32px);
}
@media (min-width: 860px) {
  .footer-grid {
    grid-template-columns: 1.1fr 1fr 1fr;
    align-items: start;
  }
}
.footlinks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footlinks a {
  color: var(--muted);
  font-size: 15px;
}
.footlinks a:hover { color: var(--fg); }

.legal-line {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  font-size: 13px;
}
[data-theme="dark"] .badge {
  background: rgba(96, 165, 250, 0.18);
  color: var(--primary-2);
}

.checklist {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}
.checklist li { margin-bottom: 10px; }

.summary-card {
  margin: 28px 0;
  display: grid;
  gap: 18px;
  background: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 18px;
  padding: clamp(22px, 3vw, 32px);
}
[data-theme="dark"] .summary-card {
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(96, 165, 250, 0.28);
}
.summary-card strong { color: inherit; }

.anchor-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0 0;
}
.anchor-menu a {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  color: var(--muted);
}
.anchor-menu a:hover {
  border-color: var(--primary);
  color: var(--primary);
}
[data-theme="dark"] .anchor-menu a:hover {
  border-color: var(--primary-2);
  color: var(--primary-2);
}

@media (max-width: 900px) {
  .navlinks {
    position: fixed;
    inset: 80px 16px auto 16px;
    background: var(--card);
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 28px 40px rgba(15, 23, 42, 0.18);
    padding: 22px;
    display: grid;
    gap: 14px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }
  header.menu-open .navlinks {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .menu-toggle { display: inline-flex; }
  .navlinks .btn { justify-content: flex-start; }
  .iconbtn { justify-self: start; }
}

@media (max-width: 680px) {
  .hero { padding-top: 72px; }
  .hero .hero-body { gap: 16px; }
}
