:root {
  --bg: #ffffff;
  --paper: #ffffff;
  --ink: #111827;
  --muted: #4b5563;
  --line: #e5e7eb;
  --accent: #2563eb;
  --accent-2: #0f172a;
  --hero: #0f172a;
  --radius: 16px;
  --shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  text-align: center;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
.wrap { width: min(1080px, calc(100% - 2rem)); margin-inline: auto; }

.topbar {
  background: var(--hero);
  color: #cbd5e1;
  font-size: .86rem;
  letter-spacing: .02em;
  padding: .55rem 0;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 80px; }
.brand {
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.03em;
  text-align: left;
}
.brand small { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.nav-links { display: flex; gap: .2rem; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
  padding: .7rem 1rem;
  border-radius: 999px;
}
.nav-links a:hover, .nav-links a.active { background: #f3f4f6; color: var(--accent); }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: .7rem 1.1rem;
  font-weight: 800;
  font-size: 1rem;
  font-family: inherit;
}

.hero {
  position: relative;
  min-height: 62vh;
  display: grid;
  align-items: end;
  color: #fff;
  background: var(--hero) center/cover no-repeat;
  isolation: isolate;
  text-align: center;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,.18), rgba(15,23,42,.78));
  z-index: -1;
}
.hero-inner { padding: 5.5rem 0 3.4rem; }
.kicker {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0 0 .8rem;
}
.hero .kicker { color: #93c5fd; }
.hero h1 {
  font-family: var(--font);
  font-size: clamp(2.1rem, 5vw, 3.7rem);
  line-height: 1.12;
  margin: 0 auto 1rem;
  max-width: 18ch;
  font-weight: 800;
  letter-spacing: -.04em;
}
.hero p { max-width: 40rem; font-size: 1.15rem; color: #e2e8f0; margin: 0 auto 1.5rem; }
.page-hero { min-height: 38vh; }
.page-hero h1 { max-width: 22ch; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  border-radius: 999px;
  padding: 1.05rem 1.85rem;
  border: 0;
}
.btn:hover { filter: brightness(1.08); color: #fff; }
.btn-ghost { background: transparent; border: 2px solid rgba(255,255,255,.55); }

.section { padding: 4.2rem 0; }
.section h2, .prose h2 {
  font-family: var(--font);
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  line-height: 1.25;
  margin: 0 auto 1rem;
  letter-spacing: -.03em;
  font-weight: 800;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; margin-inline: auto; }

.grid { display: grid; gap: 1.2rem; }
.cards { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card-body { padding: 1.25rem 1.2rem 1.4rem; }
.card h3 { font-family: var(--font); margin: 0 0 .45rem; font-size: 1.18rem; font-weight: 800; }
.card p { margin: 0; color: var(--muted); }
.card:hover { transform: translateY(-3px); transition: transform .2s ease; }

.media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 46rem;
  margin-inline: auto;
  width: 100%;
}
.media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.caption { font-size: .88rem; color: var(--muted); margin: .55rem 0 0; }

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  justify-items: center;
}
.prose { max-width: 46rem; margin-inline: auto; text-align: center; }
.prose p { margin: 0 auto 1.05rem; }
.prose h2 { margin-top: 2.1rem; }
.prose h3 { margin: 1.5rem auto .5rem; font-size: 1.12rem; font-weight: 800; }
.prose ul, .prose ol { padding-left: 0; list-style-position: inside; margin: 0 auto 1.1rem; }
.prose li { margin: .35rem 0; }
.prose strong { font-weight: 800; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem auto 1.4rem;
  font-size: .95rem;
  text-align: center;
}
.prose th, .prose td {
  border: 1px solid var(--line);
  padding: .7rem .65rem;
  vertical-align: top;
}
.prose th { background: #f8fafc; font-weight: 800; }
.figure { margin: 1.5rem auto 1.8rem; }
.figure img { width: 100%; border-radius: var(--radius); aspect-ratio: 16/10; object-fit: cover; }

.crumbs { font-size: .88rem; color: var(--muted); margin: 0 auto 1rem; }
.crumbs a { color: inherit; }

.related { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem; justify-content: center; }
.related a {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  padding: .65rem 1.15rem;
  font-size: .95rem;
  font-weight: 700;
}
.related a:hover { border-color: var(--accent); color: var(--accent); }

.faq { text-align: center; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.05rem 1.2rem;
  margin: .7rem auto;
  max-width: 46rem;
  text-align: center;
}
.faq summary { cursor: pointer; font-weight: 800; font-size: 1.02rem; }

.footer {
  background: var(--hero);
  color: #cbd5e1;
  padding: 2.6rem 0 1.5rem;
  margin-top: 2rem;
  text-align: center;
}
.footer a { color: #fff; font-weight: 700; }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem; }
.footer h3 { font-family: var(--font); color: #fff; margin: 0 0 .6rem; font-weight: 800; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: .35rem 0; }
.copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 1.6rem; padding-top: 1rem; font-size: .82rem; }

.cta-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  margin: 1.4rem auto;
  background: #f8fafc;
  max-width: 46rem;
}
.cta-box .btn { margin-top: .4rem; }

@media (max-width: 900px) {
  .cards, .split, .footer .wrap { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 80px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: .9rem 1rem 1.1rem;
    flex-direction: column;
    align-items: center;
  }
  .nav-links.open { display: flex; }
  .brand { text-align: left; }
}
