*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-mute: #64748b;
  --surface: #f8fafc;
  --surface-raised: #ffffff;
  --surface-subtle: #f1f5f9;
  --accent: #2563eb;
  --accent-deep: #1d4ed8;
  --accent-light: #eff6ff;
  --green: #10b981;
  --green-light: #ecfdf5;
  --amber: #f59e0b;
  --amber-light: #fffbeb;
  --border: #e2e8f0;
  --border-subtle: #eef2f7;
  --max: 1180px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-popover: 0 14px 36px rgba(15, 23, 42, 0.09), 0 2px 8px rgba(15, 23, 42, 0.05);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0, var(--surface) 430px, #ffffff 100%);
  background-size: 72px 72px, 72px 72px, auto;
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.page-shell {
  min-height: 100vh;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(226, 232, 240, 0.88);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-inner,
.hero,
.section,
.footer-inner {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

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

.nav-logo {
  display: inline-flex;
  align-items: center;
  min-width: 148px;
}

.nav-logo img {
  width: 154px;
  height: 44px;
  display: block;
  object-fit: contain;
}

.nav-links,
.footer-links {
  display: flex;
  align-items: center;
  list-style: none;
}

.nav-links {
  gap: 24px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 650;
}

.nav-links a,
.footer-links a,
.nav-logo,
.btn {
  text-decoration: none;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.btn-primary {
  background: var(--ink);
  color: #ffffff;
}

.btn-primary:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #ffffff;
  border-color: var(--border);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: #cbd5e1;
  background: var(--surface-subtle);
}

.hero {
  padding: 76px 0 30px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
}

h1,
h2,
h3 {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  letter-spacing: 0;
}

h1 {
  margin-top: 22px;
  max-width: 920px;
  font-size: clamp(2.35rem, 4.4vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
}

.hero-copy {
  max-width: 850px;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.72;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 34px;
}

.hero-panel,
.toc,
.metric-card,
.note-card,
.faq-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--border-subtle);
}

.hero-stat {
  min-height: 140px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px;
  background: #ffffff;
}

.hero-stat strong {
  color: var(--ink);
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
}

.hero-stat span {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.toc {
  padding: 20px;
}

.toc h2 {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.toc-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  list-style: none;
}

.toc-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.toc-list a:hover {
  border-color: #cbd5e1;
  color: var(--ink);
}

.section {
  padding: 42px 0;
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.46fr);
  align-items: end;
  gap: 32px;
  margin-bottom: 20px;
}

.section-kicker {
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-header h2 {
  margin-top: 10px;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  font-weight: 800;
  line-height: 1.12;
}

.section-copy {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.65;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.metric-card h3 {
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.3;
}

.definition {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.58;
}

.metric-details {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.48;
}

.detail-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.detail-label {
  color: var(--ink);
  font-weight: 800;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.73rem;
  font-weight: 800;
  white-space: nowrap;
}

.note-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.note-card,
.faq-card {
  padding: 18px;
}

.note-card h3,
.faq-card h3 {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

.note-card p,
.faq-card p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.58;
}

.comparison-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
}

.comparison-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.comparison-table caption {
  padding: 14px 16px 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  color: var(--ink);
  font-weight: 800;
}

.comparison-table thead th {
  background: var(--surface);
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
  border-bottom: 0;
}

.source-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  list-style: none;
}

.source-list a {
  color: var(--accent-deep);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
}

.source-list a:hover {
  text-decoration: underline;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.status-pill {
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
}

.status-pill strong {
  color: var(--ink);
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.status-pill span {
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.45;
}

.link-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 24px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: linear-gradient(135deg, #eff6ff, #ffffff 58%, #ecfdf5);
}

.link-panel h2 {
  margin-bottom: 8px;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}

.link-panel p {
  max-width: 780px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.6;
}

footer {
  margin-top: 54px;
  border-top: 1px solid var(--border);
  background: var(--surface-raised);
}

.footer-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.footer-brand {
  color: var(--ink);
  font-weight: 850;
}

.footer-links {
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .hero-grid,
  .section-header,
  .link-panel {
    grid-template-columns: 1fr;
  }

  .note-grid,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-strip {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 720px) {
  .nav-inner,
  .hero,
  .section,
  .footer-inner {
    width: min(100% - 28px, var(--max));
  }

  .nav-logo img {
    width: 128px;
  }

  .nav-actions .btn-secondary {
    display: none;
  }

  .hero {
    padding-top: 54px;
  }

  .hero-panel,
  .metric-grid,
  .note-grid,
  .faq-grid,
  .status-strip {
    grid-template-columns: 1fr;
  }

  .hero-stat {
    min-height: auto;
  }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 0;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
