:root {
  --bg: #07131b;
  --bg-soft: #0d202a;
  --panel: #102a35;
  --panel-2: #163844;
  --text: #f3fbff;
  --muted: #b6ccd5;
  --accent: #3dd6c5;
  --accent-2: #7de8dd;
  --warning: #ffd166;
  --line: rgba(125, 232, 221, 0.22);
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.28);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 8%, rgba(61, 214, 197, 0.12), transparent 27rem),
    linear-gradient(180deg, #07131b 0%, #091922 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: inherit; }

img { max-width: 100%; height: auto; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  background: var(--accent);
  color: #04110f;
  border-radius: 0.5rem;
  font-weight: 800;
}

.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 19, 27, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  width: min(var(--max), calc(100% - 2rem));
  min-height: 72px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand img { width: 42px; height: 42px; object-fit: contain; }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.55rem 0.72rem;
  color: var(--muted);
  border-radius: 0.55rem;
  text-decoration: none;
  font-size: 0.94rem;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: rgba(61, 214, 197, 0.13);
}

main { overflow: hidden; }

.hero {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 5.5rem 0 3.5rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent-2);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1, h2, h3 { line-height: 1.18; letter-spacing: -0.025em; }

h1 { margin: 0; font-size: clamp(2.35rem, 6vw, 4.7rem); }

h2 { margin: 0 0 1rem; font-size: clamp(1.75rem, 4vw, 2.7rem); }

h3 { margin: 0 0 0.55rem; font-size: 1.18rem; }

.lead { max-width: 68ch; color: var(--muted); font-size: 1.08rem; }

.hero-art {
  padding: 1.2rem;
  background: linear-gradient(145deg, rgba(61, 214, 197, 0.13), rgba(16, 42, 53, 0.78));
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  box-shadow: var(--shadow);
}

.hero-art img { display: block; border-radius: 1rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.05rem;
  border-radius: 0.72rem;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 850;
}

.button.primary { background: var(--accent); color: #031410; border-color: transparent; }
.button.secondary { background: rgba(255,255,255,0.035); color: var(--text); }

.notice {
  margin-top: 1.2rem;
  padding: 0.85rem 1rem;
  color: #ffe7a3;
  background: rgba(255, 209, 102, 0.08);
  border-left: 3px solid var(--warning);
  border-radius: 0.45rem;
  font-size: 0.92rem;
}

.section {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 3.7rem 0;
}

.section.alt {
  width: 100%;
  padding-inline: max(1rem, calc((100% - var(--max)) / 2));
  background: rgba(255, 255, 255, 0.025);
  border-block: 1px solid rgba(255,255,255,0.045);
}

.section-head { max-width: 760px; margin-bottom: 1.5rem; }
.section-head p, .muted { color: var(--muted); }

.grid-2, .grid-3 {
  display: grid;
  gap: 1rem;
}

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

.card {
  padding: 1.35rem;
  background: linear-gradient(145deg, rgba(22, 56, 68, 0.78), rgba(13, 32, 42, 0.92));
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.card p { margin-bottom: 0; color: var(--muted); }
.card a { color: var(--accent-2); font-weight: 800; }

.checklist { margin: 0; padding-left: 1.25rem; }
.checklist li { margin: 0.65rem 0; }

.fact-table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 0.8rem; }
.fact-table th, .fact-table td { padding: 0.85rem; text-align: left; border-bottom: 1px solid var(--line); }
.fact-table th { color: var(--accent-2); width: 30%; }

.breadcrumbs { width: min(var(--max), calc(100% - 2rem)); margin: 1.4rem auto 0; color: var(--muted); font-size: 0.9rem; }
.breadcrumbs a { color: var(--accent-2); }

.article-shell { width: min(860px, calc(100% - 2rem)); margin: auto; padding: 3rem 0 4rem; }
.article-shell > section { margin-top: 2.8rem; }

details {
  margin: 0.7rem 0;
  padding: 1rem 1.1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
}

summary { cursor: pointer; font-weight: 800; }
details p { color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--line);
  background: #050e14;
}

.footer-wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin: auto;
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-wrap p { margin: 0; }
.footer-wrap a { color: var(--accent-2); }

@media (max-width: 820px) {
  .nav-wrap { align-items: flex-start; padding: 0.85rem 0; flex-direction: column; }
  .nav-links { justify-content: flex-start; }
  .hero { grid-template-columns: 1fr; padding-top: 3.6rem; gap: 2rem; }
  .hero-art { max-width: 560px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 580px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .actions .button { width: 100%; }
  .footer-wrap { flex-direction: column; }
  .fact-table th, .fact-table td { display: block; width: 100%; }
  .fact-table th { padding-bottom: 0.15rem; border-bottom: 0; }
}

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