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

:root {
  --bg: #07070c;
  --surface: #0f1019;
  --surface2: #151620;
  --gold: #c9a84c;
  --gold-dim: rgba(201,168,76,0.12);
  --gold-line: rgba(201,168,76,0.2);
  --text: #eeeef4;
  --muted: #7a7a92;
  --body: #b0b0c8;
  --border: rgba(255,255,255,0.07);
  --radius: 8px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
  padding: 0 48px;
  background: rgba(7,7,12,0.82);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 19px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 40%, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:hover { color: var(--text); text-decoration: none; }

.nav-cta {
  padding: 9px 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--gold), #e8c060);
  color: #07070c !important;
  font-weight: 700 !important;
}

.content-wrap {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 120px 0 80px;
}

.page-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-line);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

h1 {
  max-width: 820px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  font-weight: 900;
  margin-bottom: 20px;
}

.lead {
  max-width: 780px;
  color: var(--body);
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 44px;
}

h2 {
  font-size: 24px;
  line-height: 1.25;
  margin: 44px 0 14px;
}

h3 {
  font-size: 17px;
  line-height: 1.35;
  margin: 24px 0 8px;
}

p { color: var(--body); margin-bottom: 14px; }

ul, ol {
  color: var(--body);
  padding-left: 22px;
  margin: 12px 0 18px;
}

li { margin-bottom: 6px; }

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.fact-card, .qa, .example-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.fact-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.fact-value {
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
}

.qa { margin: 14px 0; }
.qa h2, .qa h3 { margin-top: 0; }
.qa p:last-child, .example-card p:last-child { margin-bottom: 0; }

.source-table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
  font-size: 14px;
}

.source-table th {
  background: var(--surface2);
  color: var(--text);
  font-weight: 700;
  text-align: left;
}

.source-table th, .source-table td {
  border: 1px solid var(--border);
  padding: 13px 14px;
  vertical-align: top;
}

.source-table td { color: var(--body); }
.source-table tr:nth-child(even) td { background: rgba(255,255,255,0.02); }

.example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(201,168,76,0.1);
  border: 1px solid var(--gold-line);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}

.note {
  border-left: 3px solid var(--gold);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 24px 0;
}

footer {
  border-top: 1px solid var(--border);
  padding: 30px 48px 36px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a, .footer-copy {
  color: var(--muted);
  font-size: 13px;
}

.footer-social {
  display: flex;
  gap: 14px;
  align-items: center;
}
.footer-social a {
  color: var(--muted);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--text); }

.footer-legal {
  width: 100%;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 720px) {
  nav {
    height: auto;
    min-height: 64px;
    padding: 14px 20px;
    align-items: flex-start;
  }

  .nav-links {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .nav-links a { font-size: 13px; }
  .content-wrap { width: min(100% - 36px, 920px); padding-top: 132px; }
  .source-table { display: block; overflow-x: auto; }
  footer { padding: 28px 20px; }
}
