:root {
  --surface: #0B0C0F;
  --surface-2: #16171B;
  --surface-3: #1F2025;
  --text: #F4F4F6;
  --text-2: #D8D8DD;
  --muted: #8B8C94;
  --brand: #FF1F3D;
  --brand-deep: #C8102E;
  --gold: #C9CED6;
  --border: #24252B;
  --border-strong: #32333A;
  --glass: rgba(255, 255, 255, 0.05);
  --radius: 20px;
  --max: 820px;
  --header: 88px;
}

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

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--surface);
  color: var(--text);
  font-family: Inter, "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 520px at 50% -120px, rgba(255, 31, 61, 0.16), transparent 60%),
    radial-gradient(800px 400px at 100% 0, rgba(201, 206, 214, 0.06), transparent 50%),
    var(--surface);
}

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

a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 206, 214, 0.28);
  transition: color 160ms ease, border-color 160ms ease;
}
a:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.7); }
a:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-bottom-color: transparent; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--brand);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 100;
  border: 0;
}
.skip:focus { left: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  background: rgba(11, 12, 15, 0.78);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  border-bottom: 0;
  flex: 0 0 auto;
}
.brand:hover { border-bottom: 0; }
.brand img.logo {
  display: block;
  height: 72px;
  width: auto;
  object-fit: contain;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
  justify-content: flex-end;
}
nav a {
  color: var(--text-2);
  border-bottom: 0;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}
nav a:hover,
nav a[aria-current="page"] {
  color: #fff;
  background: var(--glass);
  border-bottom: 0;
}
nav a[aria-current="page"] {
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.hero {
  text-align: center;
  padding: 12px 0 40px;
}
.hero .hero-logo {
  width: min(340px, 82vw);
  margin: 0 auto 8px;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
}
.hero .tagline {
  margin: 0 0 18px;
  color: var(--gold);
  letter-spacing: 0.28em;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 500;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  line-height: 1.15;
}
.hero p.lead {
  margin: 0 auto;
  max-width: 560px;
  color: var(--text-2);
  font-size: 17px;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 36px 0 48px;
}
.card {
  display: block;
  border-bottom: 0;
  background: linear-gradient(180deg, var(--surface-2), #121316);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  color: var(--text);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  color: var(--text);
  border-bottom: 1px solid var(--border-strong);
}
.card h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 32px;
  letter-spacing: 0.02em;
}

h1.page-title {
  font-size: clamp(28px, 4.6vw, 40px);
  font-weight: 500;
  letter-spacing: -0.035em;
  margin: 0 0 10px;
  line-height: 1.15;
}

h2 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 36px 0 10px;
  color: #fff;
}
h3 {
  font-size: 16.5px;
  font-weight: 500;
  margin: 22px 0 8px;
  color: var(--gold);
}

p { margin: 0 0 14px; color: var(--text-2); }
ul, ol { margin: 0 0 16px; padding-left: 1.25em; color: var(--text-2); }
li { margin: 0 0 8px; }
li::marker { color: var(--muted); }

strong { color: var(--text); font-weight: 500; }

.note, .callout {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 20px 0 24px;
  color: var(--text-2);
}
.callout.safety {
  border-left-color: var(--gold);
}

.toc {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 0 0 32px;
}
.toc h2 { margin: 0 0 10px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin: 0 0 4px; }
.toc a { border-bottom: 0; color: var(--text-2); font-size: 14.5px; }
.toc a:hover { color: #fff; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 14.5px;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
}
th {
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 24px 48px;
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
}
.site-footer .footer-logo {
  height: 64px;
  width: auto;
  margin: 0 auto 12px;
  display: block;
  opacity: 0.9;
}
.site-footer nav {
  justify-content: center;
  margin-bottom: 12px;
}
.site-footer p { color: var(--muted); margin: 0 0 6px; }

@media (max-width: 720px) {
  .header-inner { flex-direction: column; align-items: center; padding: 8px 16px 12px; }
  .brand img.logo { height: 64px; }
  nav { justify-content: center; }
  nav a { padding: 6px 10px; font-size: 12.5px; }
  main { padding: 28px 18px 64px; }
  .cards { grid-template-columns: 1fr; }
  th, td { padding: 8px 0; }
}
