/* ═══════════════════════════════════════════════════════════════
   PUBLIC SITE STYLES — Front-facing for clients & visitors
   Clean navigation, blog layout, landing page
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #050507;
  --bg-surface: #0a0a0e;
  --bg-card: #0f0f14;
  --bg-card-hover: #151519;
  --text: #f0f0f5;
  --text-dim: #9a9ab0;
  --text-muted: #555568;
  --accent: #dc2626;
  --accent-hover: #ef4444;
  --accent-glow: rgba(220, 38, 38, 0.3);
  --green: #22c55e;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --gold: #f59e0b;
  --border: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.1);
  --glass: rgba(255, 255, 255, 0.03);
  --radius: 16px;
  --radius-sm: 10px;
  --max-w: 1200px;
  --max-w-narrow: 800px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(220, 38, 38, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(192, 192, 208, 0.03) 0%, transparent 50%);
  background-attachment: fixed;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

/* ─── Top Navigation ────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(5, 5, 7, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.site-nav .nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
}

.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1em;
  color: var(--text);
  letter-spacing: -0.02em;
}

.site-nav .brand .icon {
  font-size: 1.4em;
}

.site-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav .nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9em;
  font-weight: 500;
  color: var(--text-dim);
  transition: all 0.2s;
}

.site-nav .nav-links a:hover,
.site-nav .nav-links a.active {
  color: var(--text);
  background: var(--glass);
}

.site-nav .nav-links .btn-cta {
  background: var(--accent);
  color: white;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  margin-left: 8px;
}

.site-nav .nav-links .btn-cta:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* ─── Hero Section ──────────────────────────────────────────── */
.hero {
  padding: 140px 24px 80px;
  text-align: center;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero .badge-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
  font-size: 0.85em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.5em, 6vw, 4.5em);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text) 0%, #c0c0d0 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: clamp(1.1em, 2vw, 1.4em);
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero .hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 1em;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-hero.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-hero.primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 8px 30px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-hero.secondary {
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--border-light);
}

.btn-hero.secondary:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-2px);
}

/* ─── Stats Bar ─────────────────────────────────────────────── */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 40px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  flex-wrap: wrap;
}

.stats-bar .stat {
  text-align: center;
}

.stats-bar .stat-num {
  font-size: 2.2em;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stats-bar .stat-label {
  font-size: 0.85em;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ─── Features Grid ─────────────────────────────────────────── */
.features-section {
  padding: 60px 24px 80px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.features-section h2 {
  text-align: center;
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 12px;
}

.features-section .section-sub {
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 48px;
  font-size: 1.1em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  border-color: rgba(220, 38, 38, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-card .feature-icon {
  font-size: 2em;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-dim);
  font-size: 0.95em;
  line-height: 1.6;
}

/* ─── Ecosystem Map ─────────────────────────────────────────── */
.ecosystem-map-host {
  margin-top: 28px;
}

.ecosystem-map-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) 320px;
  gap: 20px;
}

.ecosystem-map-stage,
.ecosystem-map-detail-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.ecosystem-map-stage {
  padding: 20px;
}

.ecosystem-map-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.ecosystem-map-summary,
.ecosystem-detail-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ecosystem-map-summary span,
.ecosystem-detail-metrics span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-dim);
  font-size: 0.8em;
  font-weight: 600;
}

.ecosystem-map-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ecosystem-map-controls button {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: rgba(255,255,255,0.03);
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.82em;
  font-weight: 600;
  transition: all 0.2s ease;
}

.ecosystem-map-controls button:hover,
.ecosystem-map-controls button.is-active {
  color: var(--text);
  border-color: rgba(220, 38, 38, 0.35);
  background: rgba(220, 38, 38, 0.12);
}

.ecosystem-map-canvas {
  position: relative;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(59,130,246,0.12), transparent 48%),
    linear-gradient(180deg, rgba(10,10,14,0.9), rgba(6,6,10,0.98));
  border: 1px solid rgba(255,255,255,0.06);
}

.ecosystem-map-canvas svg {
  width: 100%;
  height: auto;
  display: block;
}

.ecosystem-orbit {
  fill: none;
  stroke: rgba(255,255,255,0.08);
  stroke-dasharray: 10 10;
}

.ecosystem-link {
  stroke: rgba(148,163,184,0.35);
  stroke-width: 2;
  transition: opacity 0.2s ease;
}

.ecosystem-link-leaf {
  stroke: rgba(148,163,184,0.22);
}

.ecosystem-link.is-muted,
.ecosystem-node.is-muted {
  opacity: 0.18;
}

.ecosystem-node {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.ecosystem-node circle {
  fill: rgba(15,23,42,0.95);
  stroke: var(--node-color, rgba(96,165,250,0.85));
  stroke-width: 2;
  transition: transform 0.2s ease, filter 0.2s ease, stroke-width 0.2s ease;
}

.ecosystem-node text {
  fill: #e5eefb;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  pointer-events: none;
}

.ecosystem-node-item text {
  font-size: 13px;
  fill: #cbd5e1;
}

.ecosystem-node-center circle {
  fill: rgba(13, 26, 49, 0.96);
  stroke: rgba(96,165,250,0.95);
  stroke-width: 3;
}

.ecosystem-node-center text:last-child {
  font-size: 13px;
  fill: #93c5fd;
}

.ecosystem-node.is-active circle,
.ecosystem-node:hover circle {
  filter: drop-shadow(0 0 16px rgba(96,165,250,0.35));
  stroke-width: 3;
}

.ecosystem-map-detail-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ecosystem-detail-kind {
  font-size: 0.78em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.ecosystem-map-detail-panel h3 {
  font-size: 1.35em;
  line-height: 1.25;
}

.ecosystem-map-detail-panel p,
.ecosystem-detail-list li {
  color: var(--text-dim);
}

.ecosystem-detail-list strong {
  font-size: 0.9em;
  color: var(--text);
}

.ecosystem-detail-list ul {
  margin: 10px 0 0 18px;
  display: grid;
  gap: 6px;
}

.ecosystem-detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: auto;
  padding: 11px 16px;
  border-radius: 12px;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.22);
  color: var(--text);
  font-weight: 600;
}

.ecosystem-detail-link:hover {
  background: rgba(220, 38, 38, 0.18);
}

/* ─── Section Label ─────────────────────────────────────────── */
.s-label {
  font-size: 0.72em;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}

/* ─── Step Flow (Career Intelligence Engine) ────────────────── */
.ci-engine { text-align: center; }

.step-flow {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

.step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 160px;
  padding: 0 6px;
}

.step-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.5em;
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.16);
  margin-bottom: 10px;
}

.step-node h4 {
  font-size: 0.88em;
  font-weight: 700;
  margin: 0 0 4px;
}

.step-node p {
  font-size: 0.78em;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.step-arrow {
  display: flex;
  align-items: center;
  padding-top: 18px;
  color: rgba(148, 163, 184, 0.4);
  font-size: 1.4em;
  font-weight: 300;
}

/* ─── System Stack ──────────────────────────────────────────── */
.sys-stack {
  display: grid;
  gap: 12px;
}

.sys-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  align-items: center;
  transition: border-color 0.2s;
}

.sys-row:hover {
  border-color: rgba(220, 38, 38, 0.18);
}

.sys-row .sys-name {
  font-weight: 700;
  font-size: 0.95em;
}

.sys-row .sys-desc {
  color: var(--text-dim);
  font-size: 0.9em;
  line-height: 1.6;
}

.homepage-value-strip {
  padding-top: 20px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  display: grid;
  gap: 10px;
  transition: transform 0.2s, border-color 0.2s;
}

.value-card:hover {
  transform: translateY(-3px);
  border-color: rgba(220, 38, 38, 0.16);
}

.value-card span {
  font-size: 1.4em;
}

.value-card strong {
  font-size: 1em;
}

.value-card p {
  color: var(--text-dim);
  font-size: 0.92em;
  margin: 0;
}

.capability-stack .sys-row {
  grid-template-columns: 120px 1fr;
}

.platform-proof {
  padding-top: 20px;
}

.proof-workspace-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.proof-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  text-align: left;
}

.proof-panel.accent {
  border-color: rgba(220, 38, 38, 0.18);
  background: linear-gradient(180deg, rgba(220, 38, 38, 0.06), rgba(15, 23, 42, 0.82));
}

.proof-panel h3 {
  margin: 0 0 14px;
  font-size: 1.12em;
}

.proof-panel ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--text-dim);
}

.proof-panel li {
  line-height: 1.6;
}

.homepage-trust-block .access-tier h3 {
  font-size: 1em;
  line-height: 1.6;
  margin: 0;
}

/* ─── Profile Showcase ──────────────────────────────────────── */
.profile-showcase {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: stretch;
}

.pf-main {
  background: linear-gradient(180deg, rgba(220, 38, 38, 0.06), rgba(15, 23, 42, 0.85));
  border: 1px solid var(--border-light);
  border-radius: 22px;
  padding: 32px;
}

.pf-main h3 {
  font-size: 1.4em;
  margin: 0 0 6px;
}

.pf-main .pf-role {
  color: var(--accent);
  font-size: 0.9em;
  font-weight: 700;
  margin-bottom: 14px;
}

.pf-main p {
  color: var(--text-dim);
  line-height: 1.75;
  margin: 0 0 16px;
}

.pf-cta {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.pf-side {
  display: grid;
  gap: 14px;
}

.pf-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.pf-card h4 {
  margin: 0 0 6px;
  font-size: 0.95em;
  font-weight: 700;
}

.pf-card p {
  color: var(--text-dim);
  font-size: 0.88em;
  margin: 0;
  line-height: 1.6;
}

/* ─── Audience Grid ─────────────────────────────────────────── */
.aud-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.aud-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.aud-card:hover {
  border-color: rgba(220, 38, 38, 0.18);
  transform: translateY(-3px);
}

.aud-card .aud-icon {
  font-size: 1.8em;
  margin-bottom: 12px;
}

.aud-card h4 {
  font-size: 0.95em;
  font-weight: 700;
  margin: 0 0 6px;
}

.aud-card p {
  color: var(--text-muted);
  font-size: 0.82em;
  margin: 0;
  line-height: 1.55;
}

/* ─── Philosophy Box ────────────────────────────────────────── */
.phil-box {
  background: linear-gradient(180deg, rgba(220, 38, 38, 0.04), rgba(15, 23, 42, 0.8));
  border: 1px solid var(--border-light);
  border-radius: 22px;
  padding: 44px;
  max-width: 760px;
  margin: 0 auto;
}

.phil-box blockquote {
  font-size: 1.15em;
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.phil-box p {
  color: var(--text-dim);
  line-height: 1.7;
  margin: 0 0 12px;
}

.phil-box p:last-child {
  margin: 0;
}

/* ─── Access Model ──────────────────────────────────────────── */
.access-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.access-tier {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  transition: border-color 0.2s;
}

.access-tier:hover {
  border-color: rgba(220, 38, 38, 0.16);
}

.access-tier .at-label {
  font-size: 0.72em;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}

.access-tier h3 {
  font-size: 1.15em;
  font-weight: 700;
  margin: 0 0 10px;
}

.access-tier p {
  color: var(--text-dim);
  font-size: 0.9em;
  margin: 0;
  line-height: 1.6;
}

/* ─── Blog Section ──────────────────────────────────────────── */
.blog-section {
  padding: 80px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.blog-section h2 {
  text-align: center;
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 12px;
}

.blog-section .section-sub {
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 48px;
  font-size: 1.1em;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}

.blog-card:hover {
  border-color: rgba(220, 38, 38, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.blog-card .card-cover {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4em;
  background: linear-gradient(135deg, rgba(220,38,38,0.1), rgba(59,130,246,0.05));
}

.blog-card .card-body {
  padding: 24px;
}

.blog-card .card-category {
  font-size: 0.75em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 8px;
}

.blog-card .card-title {
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
}

.blog-card .card-excerpt {
  font-size: 0.9em;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card .card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8em;
  color: var(--text-muted);
}

/* ─── Blog Article View ─────────────────────────────────────── */
.article-view {
  padding: 100px 24px 80px;
  max-width: var(--max-w-narrow);
  margin: 0 auto;
}

.article-header {
  margin-bottom: 40px;
}

.article-header .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 0.9em;
  margin-bottom: 24px;
}

.article-header .back-link:hover { color: var(--text); }

.article-header .article-cat {
  font-size: 0.8em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 12px;
}

.article-header h1 {
  font-size: 2.4em;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.article-header .article-subtitle {
  font-size: 1.2em;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.article-header .article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85em;
  color: var(--text-muted);
}

.article-meta .dot { opacity: 0.3; }

.article-content {
  font-size: 1.05em;
  line-height: 1.8;
}

.article-content h2 {
  font-size: 1.6em;
  font-weight: 700;
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.article-content h3 {
  font-size: 1.25em;
  font-weight: 600;
  margin: 32px 0 12px;
}

.article-content p {
  margin-bottom: 20px;
  color: #d0d0e0;
}

.article-content ul, .article-content ol {
  margin: 0 0 20px 24px;
  color: #d0d0e0;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content strong {
  color: var(--text);
}

.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  margin: 24px 0;
  background: rgba(220, 38, 38, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-dim);
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95em;
}

.article-content th, .article-content td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.article-content th {
  color: var(--text);
  font-weight: 600;
  background: var(--glass);
}

.article-content td {
  color: var(--text-dim);
}

.article-actions {
  display: flex;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.article-actions button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: var(--glass);
  color: var(--text-dim);
  font-size: 0.9em;
  cursor: pointer;
  transition: all 0.2s;
}

.article-actions button:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-color: var(--accent);
}

/* ─── Blog Categories Nav ───────────────────────────────────── */
.category-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.category-nav button {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  background: var(--glass);
  color: var(--text-dim);
  font-size: 0.85em;
  cursor: pointer;
  transition: all 0.2s;
}

.category-nav button:hover,
.category-nav button.active {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.3);
  color: var(--accent);
}

/* ─── Newsletter / CTA ──────────────────────────────────────── */
.newsletter-section {
  padding: 80px 24px;
  text-align: center;
}

.newsletter-box {
  max-width: 600px;
  margin: 0 auto;
  padding: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.newsletter-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--purple), var(--blue));
}

.newsletter-box h3 {
  font-size: 1.5em;
  margin-bottom: 8px;
}

.newsletter-box p {
  color: var(--text-dim);
  margin-bottom: 24px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95em;
  outline: none;
}

.newsletter-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.newsletter-form button {
  padding: 12px 24px;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: var(--accent-hover);
}

/* ─── Nav Login Button ──────────────────────────────────────── */
.btn-nav-login {
  color: var(--text-dim) !important;
  font-weight: 500;
  transition: color 0.2s;
}

.btn-nav-login:hover {
  color: var(--text) !important;
}

/* ─── Badge Dot (Hero) ──────────────────────────────────────── */
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px transparent; }
}

/* ─── Proof Bar ─────────────────────────────────────────────── */
.proof-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 40px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}

.proof-item {
  text-align: center;
}

.proof-num {
  display: block;
  font-size: 2.2em;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.proof-label {
  display: block;
  font-size: 0.85em;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ─── System Stack Number ───────────────────────────────────── */
.sys-row {
  grid-template-columns: 40px 200px 1fr;
}

.sys-num {
  font-size: 0.85em;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* ─── AI Copilot Showcase ───────────────────────────────────── */
.ai-copilot-section { text-align: center; }

.ai-showcase {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  text-align: left;
  margin-top: 16px;
}

.ai-terminal {
  background: #0d0d14;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
}

.ai-terminal-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.ai-terminal-dots {
  display: flex;
  gap: 6px;
}

.ai-terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.ai-terminal-dots span:nth-child(1) { background: #ff5f57; }
.ai-terminal-dots span:nth-child(2) { background: #febc2e; }
.ai-terminal-dots span:nth-child(3) { background: #28c840; }

.ai-terminal-title {
  font-size: 0.8em;
  color: var(--text-muted);
  font-weight: 600;
}

.ai-terminal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 420px;
  overflow-y: auto;
}

.ai-msg {
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.88em;
  line-height: 1.65;
}

.ai-msg-user {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.15);
  color: var(--text);
  align-self: flex-end;
  max-width: 85%;
}

.ai-msg-ai {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-dim);
  max-width: 90%;
}

.ai-capabilities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: start;
}

.ai-cap-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  transition: border-color 0.2s;
}

.ai-cap-card:hover {
  border-color: rgba(220, 38, 38, 0.18);
}

.ai-cap-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.12);
  margin-bottom: 10px;
  color: var(--accent);
}

.ai-cap-card h4 {
  font-size: 0.88em;
  font-weight: 700;
  margin: 0 0 4px;
}

.ai-cap-card p {
  font-size: 0.78em;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.ai-providers {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.ai-provider-badge {
  padding: 8px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-size: 0.82em;
  color: var(--text-dim);
  font-weight: 600;
}

/* ─── Access Tier Icons ─────────────────────────────────────── */
.access-tier .at-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.14);
  margin: 0 auto 14px;
  color: var(--accent);
}

/* ─── Founder Profile Card ──────────────────────────────────── */
.pf-founder {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.pf-headshot {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(37, 99, 235, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

/* ─── CTA Final Section ─────────────────────────────────────── */
.cta-final {
  padding: 80px 24px 0;
  text-align: center;
}

.cta-final-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 56px 40px;
  background: linear-gradient(180deg, rgba(220, 38, 38, 0.06), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(220, 38, 38, 0.15);
  border-radius: 22px;
}

.cta-final h2 {
  font-size: 2em;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-final p {
  color: var(--text-dim);
  margin-bottom: 32px;
  font-size: 1.05em;
  line-height: 1.6;
}

/* ─── Footer ────────────────────────────────────────────────── */
.site-footer {
  padding: 60px 24px 0;
  border-top: 1px solid var(--border);
}

.site-footer .footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 0.82em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 4px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.88em;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-brand-main {
  font-size: 1.1em;
  font-weight: 700;
  color: var(--text);
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.88em;
  line-height: 1.6;
  max-width: 280px;
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 40px auto 0;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82em;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ─── Page Content Container ────────────────────────────────── */
#site-content {
  min-height: calc(100vh - 64px);
}

/* ─── Toast ─────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.9em;
  z-index: 9999;
  animation: toastIn 0.3s ease;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Hamburger ─────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── Auth Screen ───────────────────────────────────────────── */
#auth-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#auth-screen.auth-exit {
  opacity: 0;
  transform: scale(0.97);
  pointer-events: none;
}

#app-container.app-enter {
  animation: appFadeIn 0.5s ease forwards;
}

@keyframes appFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.auth-container {
  width: 100%;
  max-width: 420px;
  padding: 40px 24px;
}

.auth-brand {
  text-align: center;
  margin-bottom: 40px;
}

.auth-brand .brand {
  font-size: 1.3em;
  justify-content: center;
}

.auth-tagline {
  color: var(--text-muted);
  font-size: 0.88em;
  margin-top: 8px;
  letter-spacing: 0.04em;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-form label {
  font-size: 0.82em;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.auth-form input {
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95em;
  font-family: var(--font);
  transition: border-color 0.2s;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.btn-auth {
  padding: 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95em;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 4px;
}

.btn-auth:hover {
  background: #b91c1c;
}

.btn-auth:active {
  transform: scale(0.98);
}

.btn-auth:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-switch {
  text-align: center;
  margin-top: 24px;
  font-size: 0.88em;
  color: var(--text-muted);
  line-height: 2;
}

.auth-switch a {
  color: var(--accent);
  font-weight: 500;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.auth-error {
  color: #ef4444;
  font-size: 0.88em;
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
}

.auth-status {
  color: #22c55e;
  font-size: 0.88em;
  padding: 10px 14px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 8px;
}

.auth-status.info {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .site-nav .nav-inner { padding: 0 16px; }
  .hamburger { display: flex; }
  .site-nav .nav-links {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 18, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px 20px;
    gap: 0;
    border-bottom: 1px solid var(--border);
    z-index: 1000;
  }
  .site-nav .nav-links.open { display: flex; }
  .site-nav .nav-links a {
    padding: 14px 0;
    font-size: 1.1em;
    border-bottom: 1px solid var(--border);
  }
  .site-nav .nav-links .btn-nav-login {
    border-bottom: 1px solid var(--border);
  }
  .site-nav .nav-links .btn-cta {
    margin-top: 16px;
    text-align: center;
    border-bottom: none;
  }
  .hero { padding: 120px 16px 60px; }
  .proof-bar { gap: 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .proof-workspace-grid { grid-template-columns: 1fr; }
  .ecosystem-map-shell { grid-template-columns: 1fr; }
  .ecosystem-map-stage { padding: 14px; }
  .blog-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .article-header h1 { font-size: 1.8em; }
  .step-flow { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); padding: 6px 0; }
  .sys-row { grid-template-columns: 1fr; }
  .capability-stack .sys-row { grid-template-columns: 1fr; }
  .sys-num { display: none; }
  .profile-showcase { grid-template-columns: 1fr; }
  .pf-founder { flex-direction: column; text-align: center; }
  .access-grid { grid-template-columns: 1fr; }
  .phil-box { padding: 28px 20px; }
  .ai-showcase { grid-template-columns: 1fr; }
  .ai-capabilities { grid-template-columns: 1fr 1fr; }
  .cta-final-inner { padding: 36px 20px; }
  .site-footer .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
