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

:root {
  --red: #D93025;
  --red-dark: #a8200d;
  --red-light: #fce8e6;
  --orange: #E8710A;
  --yellow: #EAB308;
  --ink: #1f2328;
  --muted: #5a6272;
  --border: #e1e4e8;
  --surface: #f6f8fa;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

/* ── Utilities ─────────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red-light);
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ── Screenshot placeholder ────────────────────────────────────────── */
.screenshot {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.screenshot-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  padding: 60px 24px;
  text-align: center;
}

.screenshot-inner svg {
  opacity: 0.4;
}

.screenshot-inner strong {
  display: block;
  font-size: 13px;
  color: #8b949e;
}

.screenshot-sm .screenshot-inner {
  padding: 40px 16px;
  font-size: 13px;
}

/* ── Announcement bar ──────────────────────────────────────────────── */
.announcement-bar {
  background: linear-gradient(90deg, #1a0a00 0%, #2d1200 50%, #1a0a00 100%);
  border-bottom: 1px solid rgba(217, 48, 37, 0.35);
  padding: 10px 0;
  text-align: center;
}

.announcement-inner {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: center;
}

.announcement-badge {
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  animation: pulse-badge 2.5s ease-in-out infinite;
}

@keyframes pulse-badge {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(217, 48, 37, 0.5);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(217, 48, 37, 0);
  }
}

.announcement-text {
  font-size: 13px;
  font-weight: 500;
  color: #e5c9a0;
}

.announcement-link {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}

.announcement-link:hover {
  color: #fca5a5;
}

.announcement-sparkle {
  color: var(--yellow);
  flex-shrink: 0;
  animation: spin-slow 6s linear infinite;
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ── Nav ───────────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
}

.nav-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

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

.nav-cta {
  margin-left: 16px;
  padding: 8px 18px;
  font-size: 14px;
}

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
  padding: 96px 0 72px;
  background: linear-gradient(180deg, #fff 0%, var(--surface) 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--red);
}

.hero p {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

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

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero-stat strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
}

.hero-stat span {
  font-size: 13px;
  color: var(--muted);
}

/* ── Logos / trust bar ─────────────────────────────────────────────── */
.trust {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.trust p {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #8b949e;
  margin-bottom: 20px;
  font-weight: 600;
}

.trust-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.trust-logo {
  font-size: 14px;
  font-weight: 700;
  color: #c1c8d0;
  letter-spacing: 0.5px;
}

/* ── Features grid ─────────────────────────────────────────────────── */
.section {
  padding: 88px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .tag {
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}

.section-header p {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}

.features-hero-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 0;
}

.feature-card--hero {
  background: linear-gradient(135deg, var(--surface) 0%, #fff 100%);
  border: 1.5px solid var(--border);
}

.feature-card--upcoming {
  position: relative;
  background: linear-gradient(135deg, #fafafa 0%, #fff 100%);
  border: 1.5px dashed var(--border);
  opacity: 0.85;
}

.feature-card--upcoming:hover {
  opacity: 1;
}

.upcoming-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
}

.feature-card--hero .feature-icon {
  width: 52px;
  height: 52px;
  font-size: 26px;
  flex-shrink: 0;
  margin-bottom: 0;
}

.feature-hero-body {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.feature-hero-body h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.feature-hero-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.pill-red {
  background: var(--red-light);
  color: var(--red-dark);
}

.pill-orange {
  background: #fff3e6;
  color: #b45309;
}

.pill-yellow {
  background: #fefce8;
  color: #713f12;
}

.pill-blue {
  background: #eff6ff;
  color: #1d4ed8;
}

.pill-purple {
  background: #faf5ff;
  color: #6b21a8;
}

.pill-muted {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
}

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

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

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

.feature-icon.red {
  background: var(--red-light);
}

.feature-icon.orange {
  background: #fff3e6;
}

.feature-icon.yellow {
  background: #fefce8;
}

.feature-icon.blue {
  background: #eff6ff;
}

.feature-icon.green {
  background: #f0fdf4;
}

.feature-icon.purple {
  background: #faf5ff;
}

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

.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── How it works ──────────────────────────────────────────────────── */
.how {
  background: var(--surface);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(100% / 6);
  width: calc(100% * 2/3);
  height: 2px;
  background: linear-gradient(90deg, var(--red-light), var(--red-light));
  border-top: 2px dashed var(--border);
}

.step {
  text-align: center;
  padding: 0 24px;
  position: relative;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 14px rgba(217, 48, 37, 0.35);
}

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

.step p {
  font-size: 14px;
  color: var(--muted);
}

/* ── Scanner deep-dive ─────────────────────────────────────────────── */
.scanner-section {
  padding: 88px 0;
}

.scanner-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.scanner-section.reverse .container {
  direction: rtl;
}

.scanner-section.reverse .container>* {
  direction: ltr;
}

.scanner-content h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 14px;
  line-height: 1.25;
}

.scanner-content p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 24px;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
}

.check-list li::before {
  content: '✓';
  color: var(--red);
  font-weight: 700;
  margin-top: 1px;
  flex-shrink: 0;
}

/* ── Rules table ───────────────────────────────────────────────────── */
.rules-section {
  background: var(--surface);
  padding: 88px 0;
}

.rules-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 32px;
  background: var(--border);
  border-radius: 10px;
  padding: 4px;
  width: fit-content;
  max-width: 100%;
}

.rules-tab {
  padding: 8px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: none;
  border-radius: 7px;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  color: var(--muted);
  white-space: nowrap;
  flex: 1;
}

.rules-tab.active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.rules-tab:hover:not(.active) {
  color: var(--ink);
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.rules-panel {
  display: none;
}

.rules-panel.is-active {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
}

.rule-badge {
  flex-shrink: 0;
  width: 32px;
  height: 20px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rule-badge.a {
  background: #fce8e6;
  color: var(--red-dark);
}

.rule-badge.aa {
  background: #fff3e6;
  color: #b45309;
}

.rule-badge.aaa {
  background: #fefce8;
  color: #713f12;
}

.rule-item p {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.4;
}

.rule-item small {
  font-size: 11px;
  color: var(--muted);
}

/* ── AI section ────────────────────────────────────────────────────── */
.ai-section {
  padding: 88px 0;
}

.ai-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.ai-providers {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.ai-provider-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.ai-provider-chip span {
  font-size: 16px;
}

/* ── Pricing / CTA ─────────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  padding: 88px 0;
  text-align: center;
  color: #fff;
}

.cta-section h2 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 14px;
}

.cta-section p {
  font-size: 18px;
  opacity: 0.85;
  margin-bottom: 36px;
}

.cta-section .btn-primary {
  background: #fff;
  color: var(--red-dark);
}

.cta-section .btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.cta-section .btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-note {
  margin-top: 20px;
  font-size: 13px;
  opacity: 0.7;
}

/* ── Ticker strip ───────────────────────────────────────────────────── */
.ticker-strip {
  background: var(--ink);
  border-top: 1px solid #2d333b;
  border-bottom: 1px solid #2d333b;
  padding: 14px 0;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: ticker-scroll 28s linear infinite;
}

.ticker-strip:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #8b949e;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.ticker-dot {
  color: var(--red);
  font-size: 8px;
}

/* ── Footer ────────────────────────────────────────────────────────── */
footer {
  background: var(--ink);
  color: #8b949e;
  padding: 64px 0 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand {
  font-weight: 700;
  font-size: 17px;
  color: #fff;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
  transition: background 0.15s, transform 0.15s;
}

.footer-cta-btn:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #2d333b;
  color: #8b949e;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.footer-social-link:hover {
  background: #444c56;
  color: #fff;
}

footer h4 {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

footer ul a {
  text-decoration: none;
  color: #8b949e;
  font-size: 14px;
  transition: color 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}

footer ul a:hover {
  color: #fff;
}

.footer-standard-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.footer-std-pill {
  border: 1px solid #2d333b;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #8b949e;
}

.footer-bottom {
  border-top: 1px solid #2d333b;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.made-with-love {
  font-size: 13px;
  color: #8b949e;
  display: flex;
  align-items: center;
  gap: 5px;
}

.made-with-love strong {
  color: #fff;
  font-weight: 700;
}

.love-heart {
  color: var(--red);
  animation: heartbeat 1.4s ease-in-out infinite;
  display: inline-block;
}

@keyframes heartbeat {

  0%,
  100% {
    transform: scale(1);
  }

  14% {
    transform: scale(1.3);
  }

  28% {
    transform: scale(1);
  }

  42% {
    transform: scale(1.2);
  }

  56% {
    transform: scale(1);
  }
}

.footer-wcag {
  display: flex;
  gap: 8px;
}

.wcag-badge {
  border: 1px solid #2d333b;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
}

.wcag-badge.a {
  color: #f87171;
  border-color: #f87171;
}

.wcag-badge.aa {
  color: #fb923c;
  border-color: #fb923c;
}

.wcag-badge.aaa {
  color: #facc15;
  border-color: #facc15;
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .features-hero-row {
    grid-template-columns: 1fr;
  }

  .hero .container,
  .scanner-section .container,
  .ai-section .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .scanner-section.reverse .container {
    direction: ltr;
  }

  .hero h1 {
    font-size: 36px;
  }

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

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

  .steps::before {
    display: none;
  }

  .rules-grid,
  .rules-panel.is-active {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 64px 0 48px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero-actions {
    justify-content: center;
  }

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

  .features-hero-row {
    grid-template-columns: 1fr;
  }

  .feature-hero-body {
    flex-direction: column;
    gap: 12px;
  }

  /* Nav: push CTA to the right */
  .nav-links {
    display: none;
  }

  .nav-cta {
    margin-left: auto;
  }

  .trust {
    padding: 20px 0;
  }

  .trust-logos {
    gap: 16px 24px;
  }

  /* Scanner / readability sections: reduce padding to kill empty space */
  .scanner-section {
    padding: 48px 0;
  }

  /* Rules tabs: stack vertically on small screens */
  .rules-tabs {
    width: 100%;
    flex-direction: column;
    border-radius: 10px;
  }

  .rules-tab {
    text-align: center;
    padding: 10px 16px;
    white-space: normal;
  }

  .rules-panel.is-active {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-cta-btn {
    width: 100%;
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-wcag {
    justify-content: center;
  }

  .made-with-love {
    justify-content: center;
  }

  /* Section headings */
  .section-header h2 {
    font-size: 28px;
  }

  .cta-section h2 {
    font-size: 30px;
  }

  .scanner-content h2 {
    font-size: 26px;
  }
}

/* ── Docs page ─────────────────────────────────────────────────────── */
.docs-hero {
  background: linear-gradient(180deg, #fff 0%, var(--surface) 100%);
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
}

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

.docs-hero h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--ink);
}

.docs-hero h1 span {
  color: var(--red);
}

.docs-hero > .container > p {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.docs-hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.docs-hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Docs layout: sidebar + content */
.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  padding-top: 56px;
  padding-bottom: 96px;
  align-items: start;
}

/* Sidebar TOC */
.docs-sidebar {
  position: sticky;
  top: 80px;
}

.docs-toc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.docs-toc {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.docs-toc li a {
  display: block;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  padding: 5px 10px;
  border-left: 2px solid var(--border);
  transition: color 0.15s, border-color 0.15s;
  line-height: 1.4;
}

.docs-toc li a:hover,
.docs-toc li a.is-active {
  color: var(--red);
  border-left-color: var(--red);
}

.docs-toc li.toc-sub a {
  padding-left: 20px;
  font-size: 13px;
}

/* Docs main content */
.docs-content {
  min-width: 0;
}

.docs-section {
  padding-bottom: 64px;
  margin-bottom: 64px;
  border-bottom: 1px solid var(--border);
}

.docs-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.docs-section-label {
  margin-bottom: 16px;
}

.docs-h2 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.2;
}

.docs-h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 36px;
  margin-bottom: 10px;
}

.docs-h3:first-of-type {
  margin-top: 24px;
}

.docs-p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.docs-p:last-child {
  margin-bottom: 0;
}

.docs-content strong {
  font-weight: 600;
  color: var(--ink);
}

.docs-tab-card-body strong,
.docs-ai-provider-body strong {
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.88em;
  white-space: nowrap;
}

.docs-p code,
.docs-h3 code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.82em;
  background: var(--surface);
  color: var(--ink);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* Features table in docs */
.docs-features-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 24px;
}

.docs-features-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
}

.docs-features-table td {
  padding: 12px 14px;
  border: 1px solid var(--border);
  vertical-align: top;
  color: var(--ink);
  line-height: 1.5;
}

.docs-features-table tr:hover td {
  background: var(--surface);
}

.docs-features-table td:first-child {
  width: 36px;
  text-align: center;
  font-size: 18px;
}

.docs-features-table td:nth-child(2) {
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
}

.docs-features-table td:last-child {
  color: var(--muted);
}

/* Installation steps */
.docs-install-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}

.docs-install-step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.docs-install-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(217, 48, 37, 0.3);
}

.docs-install-body h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 5px;
}

.docs-install-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.docs-install-body code,
.docs-content code {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 0.82em;
  background: var(--surface);
  color: var(--ink);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* How-to-use subsections */
.docs-tab-group {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 28px;
}

.docs-tab-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.docs-tab-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.docs-tab-card-header .feature-icon {
  margin-bottom: 0;
}

.docs-tab-card-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.docs-tab-card-body {
  padding: 20px 22px;
}

.docs-tab-card-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.docs-tab-card-body li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
}

.docs-tab-card-body li::before {
  content: '→';
  color: var(--red);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* AI provider cards */
.docs-ai-providers {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.docs-ai-provider {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.docs-ai-provider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.docs-ai-provider-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.docs-ai-provider-models {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.docs-ai-provider-body {
  padding: 16px 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.docs-ai-provider-body a {
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
}

.docs-ai-provider-body a:hover {
  text-decoration: underline;
}

/* Callout boxes */
.docs-callout {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.6;
}

.docs-callout-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.docs-callout p {
  margin: 0;
}

.docs-callout.info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.docs-callout.warning {
  background: #fff3e6;
  border: 1px solid #fed7aa;
  color: #92400e;
}

.docs-callout.tip {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #14532d;
}

/* Limitations / Privacy lists */
.docs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.docs-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.6;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
}

.docs-list li .docs-list-icon {
  flex-shrink: 0;
  font-size: 16px;
  margin-top: 1px;
}

/* Code blocks */
.docs-code-block {
  background: var(--ink);
  color: #e2e8f0;
  border-radius: var(--radius);
  padding: 20px 22px;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
  margin: 16px 0;
}

.docs-code-block .code-comment {
  color: #8b949e;
}

/* Responsive for docs */
@media (max-width: 900px) {
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 32px;
  }

  .docs-sidebar {
    position: static;
  }

  .docs-toc {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }

  .docs-toc li a {
    border-left: none;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 13px;
  }

  .docs-toc li.toc-sub a {
    padding-left: 12px;
  }

  .docs-toc li a:hover,
  .docs-toc li a.is-active {
    border-color: var(--red);
    background: var(--red-light);
    color: var(--red-dark);
  }

  .docs-toc-label {
    width: 100%;
  }

  .docs-h2 {
    font-size: 24px;
  }

  .docs-hero h1 {
    font-size: 32px;
  }
}

@media (max-width: 600px) {
  .docs-features-table thead {
    display: none;
  }

  .docs-features-table,
  .docs-features-table tbody,
  .docs-features-table tr,
  .docs-features-table td {
    display: block;
  }

  .docs-features-table tr {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
  }

  .docs-features-table td {
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 10px 14px;
  }

  .docs-features-table td:last-child {
    border-bottom: none;
  }

  .docs-features-table td:first-child {
    width: auto;
    text-align: left;
    background: var(--surface);
    font-size: 20px;
  }

  .docs-install-step {
    flex-direction: column;
    gap: 12px;
  }

  .docs-hero h1 {
    font-size: 26px;
  }
}