:root {
  --bg: #0a0a0c;
  --bg-elevated: #111114;
  --fg: #e8e6e1;
  --fg-muted: #8a877f;
  --accent: #c4ff3b;
  --accent-dim: rgba(196, 255, 59, 0.12);
  --redacted: #1a1a1f;
  --border: #222228;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Hero */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 24px;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.redacted-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.redacted-line {
  position: absolute;
  height: 14px;
  background: var(--redacted);
  border-radius: 2px;
  opacity: 0.5;
  animation: redact-pulse 6s ease-in-out infinite alternate;
}

.redacted-line:nth-child(odd) {
  animation-delay: -3s;
}

@keyframes redact-pulse {
  0% { opacity: 0.3; }
  50% { opacity: 0.6; }
  100% { opacity: 0.3; }
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 32px;
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* Problem/Stats */
.problem {
  padding: 100px 24px;
  border-top: 1px solid var(--border);
}

.problem-inner {
  max-width: 900px;
  margin: 0 auto;
}

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

.stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: 8px;
}

.stat-label {
  display: block;
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.5;
}

.problem-text {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.8;
  max-width: 700px;
}

/* Features */
.features {
  padding: 100px 24px;
  border-top: 1px solid var(--border);
}

.features-inner {
  max-width: 800px;
  margin: 0 auto;
}

.features h2 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 56px;
  letter-spacing: -0.5px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.feature-item {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.feature-icon {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.feature-content p {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* Closing */
.closing {
  padding: 120px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}

.closing-inner {
  max-width: 600px;
  margin: 0 auto;
}

.closing h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.closing p {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.8;
}

/* Footer */
.site-footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-weight: 600;
  font-size: 16px;
}

.footer-copy {
  font-size: 13px;
  color: var(--fg-muted);
  font-family: var(--font-mono);
}

/* Mobile */
@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding: 60px 20px;
  }

  .hero h1 {
    letter-spacing: -1px;
  }

  .stat-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .closing h2 {
    font-size: 28px;
  }

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

  .problem, .features, .closing {
    padding: 64px 20px;
  }
}

/* =====================
   Navigation
   ===================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.nav-brand {
  font-weight: 700;
  font-size: 16px;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.3px;
}

.nav-brand:hover { color: var(--accent); }

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

.nav-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-muted);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.15s;
}

.nav-link:hover { color: var(--accent); }

/* =====================
   Blog Index
   ===================== */
.blog-index {
  padding: 80px 24px 120px;
  min-height: 70vh;
}

.blog-index-inner {
  max-width: 860px;
  margin: 0 auto;
}

.blog-index-header {
  margin-bottom: 64px;
}

.blog-index-header h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.blog-index-sub {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 560px;
}

.article-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.article-card {
  display: block;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.article-card:hover {
  border-color: var(--accent);
  background: rgba(196, 255, 59, 0.04);
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.article-category {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 500;
}

.article-read-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
}

.article-card-title {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.4px;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--fg);
}

.article-card-excerpt {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.article-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.article-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
}

.article-cta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}

.empty-state {
  color: var(--fg-muted);
  font-size: 16px;
}

/* =====================
   Article Detail
   ===================== */
.article-page {
  padding: 64px 24px 120px;
}

.article-page-inner {
  max-width: 720px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.article-header-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.back-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  text-decoration: none;
  letter-spacing: 0.3px;
}

.back-link:hover { color: var(--accent); }

.article-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.article-byline {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* Article body typography */
.article-body {
  font-size: 17px;
  line-height: 1.85;
  color: var(--fg);
}

.article-body p { margin-bottom: 24px; }

.article-body h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--fg);
}

.article-body h3 {
  font-size: 19px;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 12px;
}

.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 24px;
}

.article-body li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.article-body strong { color: var(--fg); font-weight: 600; }

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body pre {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  overflow-x: auto;
  margin-bottom: 24px;
  color: var(--fg-muted);
  line-height: 1.5;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
  font-size: 15px;
}

.article-body th {
  text-align: left;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--fg-muted);
  font-weight: 500;
}

.article-body td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  vertical-align: top;
}

.article-body tr:first-child td { color: var(--fg); font-weight: 500; }

/* Related articles */
.related-articles {
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.related-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--fg-muted);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.related-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  text-decoration: none;
  transition: border-color 0.15s;
}

.related-card:hover { border-color: var(--accent); }

.related-category {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
}

.related-card-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  line-height: 1.4;
}

/* Error page */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 80px 24px;
}

.error-inner {
  max-width: 600px;
  margin: 0 auto;
}

.error-inner h1 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.error-home-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
}

/* Blog-specific mobile overrides */
@media (max-width: 640px) {
  .blog-index { padding: 48px 20px 80px; }
  .article-page { padding: 40px 20px 80px; }
  .article-card { padding: 24px; }
  .article-card-title { font-size: 18px; }
  .article-header-meta { flex-wrap: wrap; gap: 12px; }
  .article-body { font-size: 16px; }
  .article-body h2 { font-size: 20px; margin-top: 36px; }
  .article-body table { font-size: 13px; }
  .article-body th, .article-body td { padding: 8px 10px; }
}