/* NattyKing — Marketing Site
   Warm editorial design · Gold accent palette · Syne + Outfit */

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

:root {
  --bg: #0C0A08;
  --surface: #141210;
  --surface-raised: #1E1A16;
  --border: #2A2520;
  --border-light: #342E27;

  --gold: #C8981E;
  --gold-hover: #DEAD32;
  --gold-subtle: rgba(200, 152, 30, 0.06);
  --gold-muted: #8B6B14;

  --text: #EDE8E0;
  --text-secondary: #9C9488;
  --text-tertiary: #665E54;

  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'Outfit', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold-hover);
}

img {
  max-width: 100%;
  display: block;
}

/* ── Shared ── */

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 20px;
}

/* ── Navigation ── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 10, 8, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--gold);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-tertiary);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 6px;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover {
  background: var(--gold-hover);
  color: var(--bg);
  transform: translateY(-1px);
}

/* ── Shared Section Sub ── */

.section-sub {
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

/* ── Hero ── */

.hero {
  padding: clamp(72px, 12vw, 152px) 24px clamp(56px, 8vw, 96px);
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.hero-screenshot img {
  width: 280px;
  height: auto;
  border-radius: 16px;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.4));
}

.hero::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(200, 152, 30, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
  max-width: 720px;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  max-width: 500px;
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 40px;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
}

.cta-primary:hover {
  background: var(--gold-hover);
  color: var(--bg);
  transform: translateY(-2px);
}

.cta-primary svg {
  flex-shrink: 0;
}

/* ── Stats ── */

.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0 24px;
}

.stat {
  padding: 36px 0;
  text-align: center;
}

.stat:not(:last-child) {
  border-right: 1px solid var(--border);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.stat-label {
  font-size: 13px;
  color: var(--text-tertiary);
  font-weight: 400;
  margin-top: 4px;
}

/* ── Features ── */

.features {
  padding: clamp(64px, 10vw, 120px) 0;
}

.features-header {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px clamp(40px, 6vw, 64px);
}

.features-header h2 {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 700;
  max-width: 480px;
}

.features-list {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.feature-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 24px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.feature-item:last-child {
  border-bottom: 1px solid var(--border);
}

.feature-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-muted);
  padding-top: 4px;
}

.feature-item h3 {
  font-size: clamp(17px, 2.5vw, 22px);
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 560px;
  font-weight: 300;
}

/* ── How It Works ── */

.how-it-works {
  padding: clamp(64px, 10vw, 120px) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.how-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.how-inner > h2 {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 700;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.step-num {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 800;
  color: var(--border-light);
  line-height: 1;
  margin-bottom: 20px;
}

.step h3 {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  margin-bottom: 10px;
}

.step p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  font-weight: 300;
}

/* ── Pricing ── */

.pricing {
  padding: clamp(64px, 10vw, 120px) 0;
}

.pricing-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.pricing-inner > h2 {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 700;
  margin-bottom: 12px;
}

.pricing-sub {
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 300;
  margin-bottom: clamp(40px, 6vw, 56px);
  max-width: 400px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.price-tier {
  background: var(--bg);
  padding: clamp(24px, 3vw, 36px);
}

.price-tier.featured {
  background: var(--surface);
}

.price-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  background: var(--gold-subtle);
  border: 1px solid rgba(200, 152, 30, 0.12);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.price-tier-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.price-tier.featured .price-tier-name {
  color: var(--gold);
}

.price-amount {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.price-amount small {
  font-size: 0.4em;
  font-weight: 400;
  color: var(--text-tertiary);
}

.price-period {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 28px;
}

.price-features {
  list-style: none;
}

.price-features li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 5px 0;
  line-height: 1.5;
  font-weight: 300;
}

.price-features li::before {
  content: '\2014\00a0';
  color: var(--text-tertiary);
}

/* ── FAQ ── */

.faq-section {
  padding: clamp(64px, 10vw, 120px) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.faq-section-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.faq-section-inner > h2 {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 700;
  margin-bottom: clamp(40px, 6vw, 56px);
}

.faq-item {
  border-top: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(15px, 2vw, 17px);
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  transition: color 0.2s;
}

.faq-q:hover {
  color: var(--gold);
}

.faq-q::after {
  content: '+';
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--text-tertiary);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.open .faq-a {
  grid-template-rows: 1fr;
}

.faq-a-inner {
  overflow: hidden;
}

.faq-a p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
  padding-bottom: 24px;
  max-width: 640px;
}

/* ── Final CTA ── */

.final-cta {
  padding: clamp(80px, 14vw, 160px) 24px;
  text-align: center;
}

.final-cta h2 {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}

.final-cta h2 em {
  font-style: normal;
  color: var(--gold);
}

.final-cta > p {
  font-size: 17px;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 40px;
}

/* ── Footer ── */

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

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

.footer-brand {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.footer-brand span {
  color: var(--gold);
}

.footer-disclaimer {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.65;
  max-width: 380px;
  margin-top: 12px;
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  color: var(--text-tertiary);
  font-size: 13px;
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-copy {
  max-width: 1080px;
  margin: 28px auto 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: center;
}

/* ── Legal Pages ── */

.legal {
  padding: clamp(60px, 8vw, 100px) 0;
}

.legal h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 8px;
}

.legal .last-updated {
  color: var(--text-tertiary);
  font-size: 13px;
  margin-bottom: 48px;
}

.legal h2 {
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 12px;
}

.legal h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal p,
.legal li {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 12px;
  font-weight: 300;
}

.legal ul,
.legal ol {
  padding-left: 24px;
  margin-bottom: 12px;
}

.legal li {
  margin-bottom: 6px;
}

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

.legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Support Page ── */

.support-hero {
  text-align: center;
  padding: clamp(60px, 8vw, 100px) 0 clamp(32px, 4vw, 48px);
}

.support-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 12px;
}

.support-hero p {
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 300;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.support-card {
  background: var(--bg);
  padding: 28px;
}

.support-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.support-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 16px;
}

.support-card a.btn {
  display: inline-block;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}

.support-card a.btn:hover {
  border-color: var(--gold-muted);
  background: var(--gold-subtle);
}

.support-faq {
  padding-bottom: clamp(48px, 6vw, 80px);
}

.support-faq h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  margin-bottom: 32px;
}

.support-faq-item {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}

.support-faq-item:last-child {
  border-bottom: 1px solid var(--border);
}

.support-faq-item h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.support-faq-item p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
  font-weight: 300;
}

/* ── Categories Grid ── */

.categories {
  padding: clamp(64px, 10vw, 120px) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.categories-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.categories-inner > h2 {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 700;
  margin-bottom: 12px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.category-card {
  background: var(--bg);
  padding: 24px;
  transition: background 0.2s;
  color: var(--text);
}

.category-card:hover {
  background: var(--surface-raised);
  color: var(--text);
}

.category-icon {
  font-size: 24px;
  display: block;
  margin-bottom: 12px;
}

.category-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.category-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  font-weight: 300;
}

/* ── Featured Protocols ── */

.featured-protocols {
  padding: clamp(64px, 10vw, 120px) 0;
}

.featured-protocols-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.featured-protocols-inner > h2 {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 700;
  margin-bottom: 12px;
}

.protocol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.protocol-card {
  background: var(--bg);
  padding: 24px;
}

.protocol-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.evidence-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.evidence-badge.strong {
  color: #22C55E;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.15);
}

.evidence-badge.moderate {
  color: #FBBF24;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.15);
}

.impact-badge {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
}

.protocol-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.protocol-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 16px;
}

.protocol-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ── Screenshots Gallery ── */

.screenshots {
  padding: clamp(64px, 10vw, 120px) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.screenshots-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.screenshots-inner > h2 {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 700;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.screenshots-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-light) transparent;
}

.screenshots-scroll::-webkit-scrollbar {
  height: 6px;
}

.screenshots-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.screenshots-scroll::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}

.screenshot-item {
  flex: 0 0 200px;
  scroll-snap-align: start;
}

.screenshot-item img {
  width: 200px;
  height: auto;
  border-radius: 12px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
}

.screenshot-label {
  text-align: center;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 12px;
  font-weight: 500;
}

/* ── Popular Stacks ── */

.stacks {
  padding: clamp(64px, 10vw, 120px) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stacks-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.stacks-inner > h2 {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 700;
  margin-bottom: 12px;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.stack-card {
  background: var(--bg);
  padding: 28px;
}

.stack-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.stack-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.stack-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 16px;
}

.stack-count {
  font-size: 12px;
  color: var(--gold-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Generated Pages (shared) ── */

.breadcrumb {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.breadcrumb-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  font-size: 13px;
}

.breadcrumb-inner a {
  color: var(--text-tertiary);
  font-weight: 400;
}

.breadcrumb-inner a:hover {
  color: var(--gold);
}

.breadcrumb-sep {
  color: var(--border-light);
  margin: 0 8px;
}

.page-hero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px);
}

.page-hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-hero-inner h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.page-hero-sub {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
  font-weight: 300;
  max-width: 560px;
}

.page-section {
  padding: clamp(48px, 8vw, 80px) 0;
}

.page-section.alt-bg {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.page-section-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-section-inner > h2 {
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
}

.protocol-grid-index {
  grid-template-columns: repeat(2, 1fr);
}

.protocol-index-card {
  background: var(--bg);
  padding: 24px;
  color: var(--text);
  transition: background 0.2s;
  display: block;
}

.protocol-index-card:hover {
  background: var(--surface-raised);
  color: var(--text);
}

.evidence-badge.anecdotal {
  color: #F87171;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.15);
}

.categories-grid-linked {
  grid-template-columns: repeat(4, 1fr);
}

/* ── Protocol Detail Page ── */

.protocol-detail {
  padding: clamp(48px, 8vw, 80px) 0;
}

.protocol-detail-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.protocol-detail-badges {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.tier-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.category-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--gold-muted);
}

.protocol-detail-inner > h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.protocol-detail-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 32px;
}

.protocol-detail-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 48px;
}

.pds-item {
  background: var(--surface);
  padding: 16px;
  text-align: center;
}

.pds-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.pds-value {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.protocol-detail-section {
  margin-bottom: 40px;
}

.protocol-detail-section h2 {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  margin-bottom: 16px;
}

.protocol-detail-section p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 300;
}

.benefits-list {
  list-style: none;
  padding: 0;
}

.benefits-list li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  font-weight: 300;
  padding: 6px 0;
}

.benefits-list li::before {
  content: '\2713\00a0\00a0';
  color: var(--gold);
  font-weight: 600;
}

.related-protocols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.related-card {
  background: var(--bg);
  padding: 20px;
  color: var(--text);
  display: block;
  transition: background 0.2s;
}

.related-card:hover {
  background: var(--surface-raised);
  color: var(--text);
}

.related-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.related-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  font-weight: 300;
  margin-bottom: 10px;
}

/* ── Page CTA (generated pages) ── */

.page-cta {
  padding: clamp(64px, 10vw, 100px) 24px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.page-cta h2 {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.page-cta > p {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 32px;
}

.stack-meta-hero {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--gold-muted);
  font-weight: 600;
}

/* ── Natty Score Explainer ── */

.natty-score {
  padding: clamp(64px, 10vw, 120px) 0;
}

.natty-score-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
}

.natty-score-text > h2 {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 700;
  margin-bottom: 20px;
}

.natty-score-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 32px;
  max-width: 520px;
}

.natty-levels {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.natty-level {
  display: flex;
  align-items: center;
  gap: 14px;
}

.natty-level-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.natty-level strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  display: block;
}

.natty-level span {
  font-size: 13px;
  color: var(--text-tertiary);
  font-weight: 300;
}

.natty-score-visual img {
  width: 220px;
  height: auto;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.3));
}

/* ── Animations ── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

/* ── Responsive ── */

@media (max-width: 900px) {
  .categories-grid,
  .categories-grid-linked {
    grid-template-columns: repeat(2, 1fr);
  }

  .protocol-grid,
  .protocol-grid-index {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .protocol-detail-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-cta {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-screenshot {
    display: flex;
    justify-content: center;
  }

  .hero-screenshot img {
    width: 220px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }

  .feature-item {
    grid-template-columns: 36px 1fr;
    gap: 0 16px;
  }

  .natty-score-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .natty-score-visual {
    display: flex;
    justify-content: center;
  }

  .natty-score-visual img {
    width: 160px;
  }

  .protocol-grid,
  .protocol-grid-index {
    grid-template-columns: 1fr;
  }

  .stack-grid {
    grid-template-columns: 1fr;
  }

  .protocol-detail-stats {
    grid-template-columns: 1fr;
  }

  .categories-grid-linked {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: 12px;
  }

  .stats-inner {
    grid-template-columns: 1fr;
  }

  .stat {
    padding: 20px 0;
  }

  .stat:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .hero {
    padding: 56px 20px 44px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-item {
    flex: 0 0 160px;
  }

  .screenshot-item img {
    width: 160px;
  }
}
