:root {
  --navy: #0A3161;
  --orange: #D24B14;
  --bg: #ffffff;
  --bg-soft: #f4f6fa;
  --text: #1a1f2b;
  --text-muted: #5b6475;
  --border: #e2e6ee;
  --link: #0A3161;
  --card: #ffffff;
  --max: 960px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1420;
    --bg-soft: #141d2c;
    --text: #e8ecf3;
    --text-muted: #a3adbf;
    --border: #243049;
    --link: #8fb4ff;
    --card: #141d2c;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--link); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--navy);
  color: #fff;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  opacity: 0.85;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, #12407a 100%);
  color: #fff;
  text-align: center;
  padding: 56px 0 64px;
}

.hero img {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hero h1 {
  font-size: 40px;
  line-height: 1.15;
  margin: 24px 0 12px;
}

.hero p {
  font-size: 19px;
  max-width: 560px;
  margin: 0 auto;
  opacity: 0.9;
}

.badge {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

/* Sections */
main { padding: 40px 0 56px; }

h1, h2, h3 { line-height: 1.25; }

.page-title {
  font-size: 32px;
  margin: 0 0 4px;
}

.meta {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0 0 28px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
}

.callout {
  background: var(--bg-soft);
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 24px 0;
}

.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 24px;
  font-size: 16px;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

th { background: var(--bg-soft); }

.table-scroll { overflow-x: auto; }

ol li, ul li { margin-bottom: 6px; }

details {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
  background: var(--card);
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details p { margin-bottom: 0; }

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

@media (prefers-color-scheme: dark) {
  .button { background: var(--orange); }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  padding: 24px 0 32px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.site-footer a { color: var(--text-muted); }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 40px 0 48px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 17px; }
  .page-title { font-size: 26px; }
}
