/* ═══════════════════════════════════════════════════════════
   411bz.ai — Design System
   Static CSS. No Tailwind. No PostCSS. No build step.
   Hono JSX frontend + static asset serving.
   ═══════════════════════════════════════════════════════════ */

:root {
  --black: #000; --white: #fff;
  --gray-50: #f9fafb; --gray-100: #f3f4f6; --gray-200: #e5e7eb;
  --gray-400: #9ca3af; --gray-500: #6b7280; --gray-600: #4b5563;
  --gray-700: #374151; --gray-800: #1f2937; --gray-900: #111827;
  --yellow-300: #fde047; --yellow-400: #facc15;
  --blue-600: #2563eb; --red-500: #ef4444; --green-600: #16a34a;
  --purple-600: #9333ea; --amber-600: #d97706;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--gray-800); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ── Layout ── */
.container { max-width: 56rem; margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 1.5rem; }
.hero { background: linear-gradient(135deg, #111827, #000); color: #fff; padding: 5rem 1.5rem; }
.hero-subtitle { font-size: 1.25rem; line-height: 1.6; max-width: 40rem; margin-top: 1rem; color: rgba(255,255,255,.8); }

/* ── Typography ── */
h1 { font-size: 3rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: 1.875rem; font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.375rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
@media (min-width: 768px) { h1 { font-size: 3.75rem; } }

/* ── Nav ── */
.nav { background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 0.75rem 0; position: sticky; top: 0; z-index: 100; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--gray-900); font-weight: 800; font-size: 1.25rem; }
.nav-logo:hover { text-decoration: none; }
.nav-wordmark { letter-spacing: -0.02em; display: inline; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-link { color: var(--gray-600); font-size: 0.875rem; font-weight: 500; text-decoration: none; }
.nav-link:hover { color: var(--gray-900); text-decoration: none; }
@media (max-width: 768px) { .nav-links { display: none; } }

/* ── Governance Banner ── */
.governance-banner { background: var(--gray-900); color: var(--gray-400); padding: 0.375rem 1.5rem; font-size: 0.75rem; text-align: center; }
.governance-label { margin-right: 0.5rem; }
.governance-primitives abbr { text-decoration: none; color: var(--yellow-400); font-weight: 600; }

/* ── Buttons ── */
.btn-primary {
  display: inline-block; padding: 0.875rem 2rem; background: var(--yellow-400);
  color: var(--black); font-weight: 700; border-radius: 0.5rem; border: none;
  font-size: 1rem; cursor: pointer; text-decoration: none; transition: background 0.2s;
}
.btn-primary:hover { background: var(--yellow-300); text-decoration: none; }
.btn-secondary {
  display: inline-block; padding: 0.875rem 2rem;
  border: 1px solid rgba(255,255,255,0.4); color: #fff;
  font-weight: 600; border-radius: 0.5rem; text-decoration: none; transition: background 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); text-decoration: none; }

/* ── Cards ── */
.card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: 0.5rem; padding: 1.5rem; transition: border-color 0.2s;
  text-decoration: none; color: inherit; display: block;
}
.card:hover { border-color: var(--gray-400); text-decoration: none; }

/* ── Badges ── */
.badge-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.badge {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 9999px; padding: 0.375rem 1rem; font-size: 0.875rem; font-weight: 500;
}

/* ── Grid ── */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2,1fr); } .grid-3 { grid-template-columns: repeat(3,1fr); } }

/* ── Breadcrumb ── */
.breadcrumb { font-size: 0.875rem; color: var(--gray-500); padding: 1rem 1.5rem; }
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--gray-700); }
.breadcrumb-sep { margin: 0 0.5rem; }
.breadcrumb-current { color: var(--gray-900); }

/* ── Definition Block ── */
.definition-block {
  background: var(--gray-50); border-left: 4px solid var(--black);
  padding: 1.5rem; border-radius: 0 0.5rem 0.5rem 0; margin-top: 1.5rem;
  font-size: 1.125rem; line-height: 1.7;
}

/* ── Callouts ── */
.callout { border-left: 4px solid var(--gray-400); padding-left: 1.5rem; margin-bottom: 1.5rem; }
.callout-green { border-left-color: var(--green-600); }
.callout-red { border-left-color: var(--red-500); }
.callout-purple { border-left-color: var(--purple-600); }
.callout-amber { border-left-color: var(--amber-600); }

/* ── Phase / Step List ── */
.phase-list { display: flex; flex-direction: column; gap: 1.5rem; }
.phase-item { border-left: 4px solid var(--gray-200); padding-left: 1.5rem; }
.phase-item h3 { color: var(--gray-900); }

/* ── Category Block ── */
.category-block { margin: 2rem 0; }
.category-description { color: var(--gray-600); font-style: italic; margin-bottom: 0.75rem; }

/* ── Pillar Card ── */
.pillar-card {
  border: 1px solid var(--gray-200); border-radius: 0.5rem;
  padding: 1.25rem; background: #fff; margin-bottom: 1rem;
}

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--gray-200); padding-bottom: 1.25rem; margin-bottom: 1.25rem; }
.faq-item:last-child { border-bottom: none; margin-bottom: 0; }
.faq-item h3 { margin-bottom: 0.5rem; }

/* ── Glossary ── */
.glossary-entry { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--gray-100); }
.glossary-entry:last-child { border-bottom: none; }

/* ── Tables ── */
.comparison-table, .metrics-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.comparison-table th, .comparison-table td,
.metrics-table th, .metrics-table td {
  text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--gray-200);
}
.comparison-table th, .metrics-table th { background: var(--gray-50); font-weight: 700; }

/* ── Pricing ── */
.price-card {
  border: 2px solid var(--gray-200); border-radius: 0.75rem; padding: 2rem;
  background: #fff; text-align: center; transition: border-color 0.2s, transform 0.2s;
}
.price-card:hover { border-color: var(--yellow-400); transform: translateY(-2px); }
.price-card.featured { border-color: var(--yellow-400); box-shadow: 0 4px 20px rgba(250,204,21,0.15); }
.price-amount { font-size: 2.5rem; font-weight: 800; margin: 1rem 0 0.25rem; }
.price-period { font-size: 0.875rem; color: var(--gray-500); margin-bottom: 1rem; }

/* ── CTA Block ── */
.cta-block {
  background: linear-gradient(135deg, var(--gray-900), #000); color: #fff;
  border-radius: 0.75rem; padding: 3rem; text-align: center;
}
.cta-block h2, .cta-block h3 { color: #fff; }
.cta-block p { color: rgba(255,255,255,.7); margin-bottom: 1.5rem; }

/* ── Code Block ── */
.code-block {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: 0.375rem; padding: 1rem; font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem; overflow-x: auto; white-space: pre; line-height: 1.6;
}
code { background: var(--gray-100); padding: 0.125rem 0.375rem; border-radius: 0.25rem; font-size: 0.875em; }

/* ── KPI ── */
.kpi-card { border: 1px solid var(--gray-200); border-radius: 0.5rem; padding: 1.5rem; }
.kpi-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.kpi-item { text-align: center; }
.kpi-label { display: block; font-size: 0.75rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.05em; }
.kpi-value { display: block; font-size: 1.5rem; font-weight: 800; }
.kpi-error { color: var(--red-500); font-style: italic; }

/* ── Dashboard ── */
.dashboard-panel { background: var(--white); border: 1px solid var(--gray-200); border-radius: 0.5rem; padding: 2rem; min-height: 200px; }
.loading-text { color: var(--gray-400); font-style: italic; }

/* ── Metric Value ── */
.metric-value { font-size: 1.5rem; font-weight: 800; color: var(--gray-900); }

/* ── Lists ── */
ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.5rem; }
.capability-list li { margin-bottom: 0.75rem; }
.gap-list li, .intervention-list li { margin-bottom: 0.5rem; }

/* ── Footer ── */
.footer { background: #000; color: #fff; padding: 3rem 1.5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.5fr repeat(4,1fr); } }
.footer-heading { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; color: var(--gray-400); }
.footer-link { display: block; color: var(--gray-400); font-size: 0.875rem; margin-bottom: 0.5rem; text-decoration: none; }
.footer-link:hover { color: #fff; text-decoration: none; }
.footer-bottom { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.1); font-size: 0.875rem; color: var(--gray-500); }

/* ── Home Hero ── */
.hero-home { padding: 5rem 1.5rem 3rem; }
.eyebrow {
  display: inline-block; font-size: 0.875rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--yellow-400); margin-bottom: 1.25rem;
}
.text-yellow { color: var(--yellow-400); }
.hero-description-box {
  border-left: 3px solid var(--yellow-400); padding: 1.25rem 1.5rem;
  background: rgba(255,255,255,0.05); border-radius: 0 0.5rem 0.5rem 0;
  margin-top: 2rem; max-width: 44rem;
}
.hero-description-box p { color: rgba(255,255,255,.85); font-size: 0.9375rem; line-height: 1.7; margin: 0; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.llm-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.5rem; }
.llm-badge {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 9999px; padding: 0.375rem 0.875rem;
  font-size: 0.8125rem; color: rgba(255,255,255,.7); font-weight: 500;
}
.section-intro { color: var(--gray-600); max-width: 40rem; margin: 0.5rem auto 0; line-height: 1.7; }

/* ── Stats ── */
.stat-row { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; margin-top: 2rem; }
.stat-item { text-align: center; flex: 1; min-width: 160px; }
.stat-number { display: block; font-size: 2.5rem; font-weight: 800; color: var(--yellow-400); line-height: 1; }
.stat-label { display: block; font-size: 0.875rem; color: var(--gray-600); margin-top: 0.5rem; line-height: 1.4; }

/* ── Solution Cards ── */
.solution-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: 0.75rem;
  padding: 2rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.solution-card:hover { border-color: var(--yellow-400); box-shadow: 0 4px 20px rgba(250,204,21,0.1); }
.solution-icon {
  width: 3rem; height: 3rem; border-radius: 0.5rem;
  background: var(--gray-900); color: var(--yellow-400);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.25rem; margin-bottom: 1.25rem;
}

/* ── Metric Cards (dark bg) ── */
.metric-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5rem; padding: 1.5rem;
}
.metric-card h4 { color: var(--yellow-400); margin-bottom: 0.5rem; }
.metric-card p { color: rgba(255,255,255,.65); font-size: 0.875rem; margin: 0; }

/* ── Type Comparison Cards ── */
.type-card { border-radius: 0.75rem; padding: 2rem; }
.type-card h3 { margin-bottom: 1rem; }
.type-card ul { list-style: none; padding: 0; }
.type-card li { padding: 0.375rem 0; padding-left: 1.5rem; position: relative; }
.type-card-good { background: var(--yellow-400); color: var(--black); }
.type-card-good li::before { content: '✓'; position: absolute; left: 0; font-weight: 700; }
.type-card-bad { background: var(--gray-100); color: var(--gray-700); }
.type-card-bad li::before { content: '✗'; position: absolute; left: 0; font-weight: 700; color: var(--red-500); }

/* ── Footer Brand ── */
.footer-brand { display: flex; align-items: center; gap: 0.5rem; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.125rem; }
.footer-brand:hover { text-decoration: none; }
.footer-tagline { color: var(--gray-500); font-size: 0.8125rem; margin-top: 0.5rem; }
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.footer-legal-link { color: var(--gray-400); font-size: 0.8125rem; text-decoration: none; }
.footer-legal-link:hover { color: #fff; text-decoration: underline; }

/* ── Q&A Section ── */
.qa-list { display: flex; flex-direction: column; gap: 0; }
.qa-item { border-bottom: 1px solid var(--gray-200); }
.qa-item:first-child { border-top: 1px solid var(--gray-200); }
.qa-question { cursor: pointer; padding: 1.25rem 0; font-weight: 600; font-size: 1rem; color: var(--gray-900); list-style: none; }
.qa-question::-webkit-details-marker { display: none; }
.qa-question::before { content: '+'; display: inline-block; width: 1.5rem; font-weight: 700; color: var(--yellow-400); }
details[open] .qa-question::before { content: '−'; }
.qa-answer { padding: 0 0 1.25rem 1.5rem; color: var(--gray-600); font-size: 0.9375rem; line-height: 1.7; }

/* ── Utility ── */
.hidden { display: none; }
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

/* ── Scan Form (for static scan.html passthrough) ── */
.scan-form { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.scan-input {
  flex: 1; min-width: 200px; padding: 0.875rem 1rem;
  border: 2px solid var(--gray-200); border-radius: 0.5rem;
  font-size: 1rem; font-family: var(--font); outline: none;
}
.scan-input:focus { border-color: var(--gray-900); }
.scan-submit {
  padding: 0.875rem 2rem; background: var(--gray-900); color: #fff;
  border: none; border-radius: 0.5rem; font-size: 1rem; font-weight: 700;
  font-family: var(--font); cursor: pointer;
}
.scan-submit:hover { background: var(--black); }

.progress-bar { height: 4px; background: var(--gray-200); border-radius: 2px; margin: 1.5rem 0; overflow: hidden; }
.progress-fill { height: 100%; background: var(--yellow-400); border-radius: 2px; transition: width 0.5s; width: 0; }
