:root {
  --bg: #0b0e14;
  --surface: #121722;
  --surface-2: #181f2e;
  --text: #efe7d6;
  --muted: #9ca7bc;
  --accent: #d4a853;
  --accent-hover: #ecc472;
  --accent-2: #38bdf8;
  --border: #263044;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .35);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .brand-text strong, .footer-brand {
  font-family: "Cinzel", Georgia, serif;
  line-height: 1.2;
  margin: 0;
  color: var(--text);
}

h1 { font-size: 36px; font-weight: 700; }
h2 { font-size: 28px; font-weight: 700; margin-top: 48px; margin-bottom: 16px; }
h3 { font-size: 18px; font-weight: 700; margin-top: 24px; margin-bottom: 8px; color: var(--accent-hover); }

p { margin: 0 0 16px; max-width: 70ch; color: #d3d9e6; }
a { color: var(--accent-hover); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 2px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 14, 20, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand:hover { text-decoration: none; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--accent);
  color: var(--accent-hover);
  font-family: "Cinzel", Georgia, serif;
  font-weight: 700;
  font-size: 18px;
}

.brand-text { display: flex; flex-direction: column; }
.brand-text strong { font-size: 16px; color: var(--text); }
.brand-text small { font-size: 12px; color: var(--muted); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #cbd5e1;
}

.nav-link:hover {
  background: var(--surface-2);
  color: var(--accent-hover);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.main-content {
  padding-top: 24px;
  padding-bottom: 64px;
}

.hero-card {
  background: var(--surface);
  border: 1px solid rgba(212, 168, 83, 0.45);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--accent-hover);
}

.badge-verified {
  border-color: rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
}

.badge-progress {
  border-color: rgba(56, 189, 248, 0.45);
  color: #7dd3fc;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 20px;
  border-radius: var(--radius);
  border: none;
  background: var(--accent);
  color: #0b0e14;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  background: var(--surface-2);
  color: var(--accent-hover);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn-secondary:hover {
  background: #20293d;
  text-decoration: none;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.pill-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.pill-link:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
  text-decoration: none;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.card h3 { margin-top: 0; }
.card p { font-size: 14px; color: var(--muted); margin-bottom: 12px; }

.tool-stage {
  margin: 24px 0 32px;
}

.prose {
  margin-top: 32px;
}

.prose ul, .prose ol {
  margin: 0 0 16px;
  padding-left: 24px;
  max-width: 70ch;
  color: #d3d9e6;
}

.prose li { margin-bottom: 8px; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}

.prose th, .prose td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.prose th {
  background: var(--surface-2);
  color: var(--accent-hover);
  font-weight: 600;
}

.ad-slot {
  margin: 32px 0;
  padding: 20px 16px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: rgba(18, 23, 34, 0.7);
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #080a0f;
  padding: 48px 0 32px;
  font-size: 14px;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.footer-brand { font-size: 18px; margin-bottom: 8px; }
.footer-copy { font-size: 14px; color: var(--muted); }
.footer-meta { font-size: 12px; color: var(--accent); }
.footer-heading { font-weight: 600; color: var(--text); margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--accent-hover); }

.footer-disclaimer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #1e2636;
  font-size: 12px;
  color: #828ea6;
}

.footer-disclaimer p { max-width: none; margin: 0; }

@media (max-width: 768px) {
  .card-grid, .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0;
  }
  .site-nav.open { display: flex; }
  .header-inner { flex-wrap: wrap; padding: 8px 0; }
  .btn-primary, .btn-secondary { width: 100%; }
}
