:root {
  --bg: #0b0d12;
  --panel: #121620;
  --text: #e6e9ef;
  --muted: #a8b0bd;
  --brand: #6aa2ff;
  --accent: #80eec0;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; scroll-behavior: smooth; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; transition: all 0.2s ease; }
a:hover { text-decoration: underline; transform: translateY(-1px); }

/* Accessibility: Skip navigation link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--brand);
  color: #0a0c10;
  padding: 12px 16px;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  z-index: 1000;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  text-decoration: none;
}

/* Accessibility: Focus indicators */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
button:focus-visible, .cta:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(128, 238, 192, 0.2);
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.site-header { position: sticky; top: 0; background: rgba(11,13,18,.95); backdrop-filter: blur(8px); border-bottom: 1px solid #1b2230; z-index: 100; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.brand img { width: 40px; height: 40px; }
.nav { display: flex; gap: 0; }
.nav a { padding: 8px 16px; color: var(--text); opacity: .9; white-space: nowrap; font-size: 15px; }
.nav a:hover { opacity: 1; }

/* Mobile navigation toggle */
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle:hover { color: var(--accent); }

/* Hero banner with larger logo area */
.hero { padding: 48px 0; background: radial-gradient(1200px 600px at 0% -20%, rgba(106,162,255,.2), transparent), radial-gradient(800px 400px at 100% 0%, rgba(128,238,192,.18), transparent); border-bottom: 1px solid #1b2230; position: relative; }
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-logo-area { text-align: center; }
.hero-logo-area img { width: 100%; max-width: 280px; height: auto; margin: 0 auto; }
.hero-text h1 { font-size: 40px; line-height: 1.2; margin: 0 0 12px; }
.hero-text p { max-width: 640px; color: var(--muted); margin: 0 0 24px; }
.cta { display: inline-block; padding: 12px 24px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #0a0c10; font-weight: 700; transition: all 0.3s ease; }
.cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(106, 162, 255, 0.3); text-decoration: none; }

.section { padding: 56px 0; border-bottom: 1px solid #1b2230; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--panel); padding: 20px; border: 1px solid #1b2230; border-radius: 12px; transition: all 0.3s ease; }
.card:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: 0 8px 25px rgba(106, 162, 255, 0.1); }
.card h3 { margin-top: 0; color: var(--text); }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--brand); transform: none; }

/* Blog cards */
.blog-card { background: var(--panel); padding: 24px; border: 1px solid #1b2230; border-radius: 12px; transition: all 0.3s ease; }
.blog-card:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: 0 8px 25px rgba(106, 162, 255, 0.1); }
.blog-card-meta { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.blog-card h3 { margin: 12px 0; color: var(--text); }
.blog-card p { margin: 0 0 16px; color: var(--muted); }
.blog-card a { font-size: 14px; }

/* Research cards */
.research-card { background: var(--panel); padding: 24px; border: 1px solid #1b2230; border-radius: 12px; transition: all 0.3s ease; }
.research-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 8px 25px rgba(128, 238, 192, 0.1); }
.research-card-type { font-size: 12px; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.research-card h3 { margin: 12px 0; color: var(--text); }
.research-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* Additional layout helpers */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin: 32px 0; }
.stat { text-align: center; padding: 20px; }
.stat-number { font-size: 32px; font-weight: 700; color: var(--brand); margin-bottom: 8px; }
.stat-label { font-weight: 600; margin-bottom: 4px; }

/* Podcast Promo Band */
.promo-band {
  background: linear-gradient(90deg, rgba(106,162,255,0.10) 0%, rgba(128,238,192,0.10) 100%);
  border-top: 2px solid var(--brand);
  border-bottom: 2px solid var(--accent);
  padding: 36px 0 32px 0;
  margin-bottom: 0;
}
.promo-episode {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.promo-ep-meta {
  font-size: 15px;
  color: var(--brand);
  margin-bottom: 8px;
  font-weight: 600;
}
.promo-ep-title {
  margin: 0 0 8px 0;
  color: var(--text);
  font-size: 1.4em;
}
.promo-ep-desc {
  color: var(--muted);
  margin: 0 0 16px 0;
  font-size: 1em;
}
.promo-ep-audio {
  width: 100%;
  max-width: 420px;
  margin: 0 auto 16px auto;
  display: block;
}
.promo-ep-cta {
  margin-top: 12px;
  display: inline-block;
}
.promo-empty, .promo-loading {
  text-align: center;
  color: var(--muted);
  font-size: 1.1em;
  padding: 18px 0;
}
.stat-detail { color: var(--muted); font-size: 14px; }

.narrative-block, .investment-block, .roadmap-quarter { margin: 32px 0; }
.narrative-block h3, .investment-block h3, .roadmap-quarter h3 { color: var(--accent); }

/* Quick Access Link System */
.quick-access-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin: 32px 0; }
.access-card { background: var(--panel); padding: 28px; border-radius: 12px; border: 1px solid #1b2230; text-decoration: none; color: inherit; transition: all 0.3s ease; display: flex; flex-direction: column; }
.access-card:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: 0 12px 32px rgba(106, 162, 255, 0.15); }
.access-card-icon { font-size: 48px; margin-bottom: 16px; }
.access-card h3 { margin: 0 0 12px; color: var(--text); font-size: 18px; }
.access-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* Navigation improvements */
.nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* Article prose styling */
.prose { line-height: 1.8; color: var(--text); }
.prose h1 { font-size: 2em; margin: 1.5em 0 0.5em; color: var(--text); }
.prose h2 { font-size: 1.6em; margin: 1.4em 0 0.5em; color: var(--accent); border-bottom: 2px solid var(--panel); padding-bottom: 8px; }
.prose h3 { font-size: 1.3em; margin: 1.2em 0 0.5em; color: var(--text); }
.prose h4 { font-size: 1.1em; margin: 1em 0 0.5em; color: var(--muted); }
.prose p { margin: 1em 0; }
.prose a { color: var(--brand); text-decoration: underline; }
.prose a:hover { color: var(--accent); }
.prose ul, .prose ol { margin: 1em 0; padding-left: 2em; }
.prose li { margin: 0.5em 0; }
.prose code { background: var(--panel); padding: 2px 6px; border-radius: 4px; font-family: 'Courier New', monospace; font-size: 0.9em; color: var(--accent); }
.prose pre { background: var(--panel); padding: 16px; border-radius: 8px; overflow-x: auto; border: 1px solid #1b2230; }
.prose pre code { background: none; padding: 0; color: var(--text); }
.prose blockquote { border-left: 4px solid var(--brand); padding-left: 16px; margin: 1.5em 0; color: var(--muted); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.prose th, .prose td { padding: 12px; border: 1px solid #1b2230; text-align: left; }
.prose th { background: var(--panel); font-weight: 600; color: var(--brand); }
.prose img { margin: 1.5em 0; border-radius: 8px; }
.prose hr { border: none; border-top: 2px solid var(--panel); margin: 2em 0; }
.tag { background: var(--panel); padding: 4px 10px; border-radius: 4px; font-size: 12px; color: var(--muted); display: inline-block; margin: 0 4px 4px 0; }
.blog-card-tags { margin-top: 12px; }

.site-footer { padding: 40px 0; color: var(--muted); }

/* ===== RESPONSIVE DESIGN: TABLET (768px and below) ===== */
@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; gap: 24px; }
  .hero-text h1 { font-size: 32px; }
  .hero-logo-area img { max-width: 200px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .nav a { padding: 6px 12px; font-size: 14px; }
  .nav { gap: 4px; }
}

/* ===== RESPONSIVE DESIGN: MOBILE (480px and below) ===== */
@media (max-width: 480px) {
  /* Header adjustments */
  .site-header .container { padding: 12px 16px; }
  .brand img { width: 32px; height: 32px; }
  .brand span { font-size: 14px; }
  .nav { display: none; flex-direction: column; position: fixed; top: 56px; left: 0; right: 0; background: rgba(11,13,18,.98); border-bottom: 1px solid #1b2230; gap: 0; }
  .nav.active { display: flex; }
  .nav a { padding: 16px 20px; border-bottom: 1px solid #1b2230; }
  .nav a:hover { background: rgba(128, 238, 192, 0.05); }
  .nav-toggle { display: block; }

  /* Hero section */
  .hero { padding: 32px 0; }
  .hero-content { grid-template-columns: 1fr; gap: 16px; }
  .hero-logo-area img { max-width: 160px; }
  .hero-text h1 { font-size: 24px; line-height: 1.3; margin-bottom: 8px; }
  .hero-text p { font-size: 14px; margin-bottom: 16px; }
  .cta { padding: 10px 20px; font-size: 14px; }

  /* Grid layouts */
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .stats-grid { grid-template-columns: 1fr; gap: 16px; }
  
  /* Section spacing */
  .section { padding: 32px 0; }
  .container { padding: 0 16px; }

  /* Card adjustments */
  .card, .blog-card, .research-card { padding: 16px; border-radius: 8px; }
  .blog-card h3, .research-card h3 { font-size: 16px; }
  .blog-card-meta { font-size: 12px; }
  .stat-number { font-size: 28px; }
  .stat-label { font-size: 14px; }

  /* Ensure touch targets are adequate */
  .nav a { min-height: 48px; display: flex; align-items: center; }
  .cta { min-height: 44px; display: inline-flex; align-items: center; }
}

/* ===== RESPONSIVE DESIGN: SMALL MOBILE (320px and below) ===== */
@media (max-width: 320px) {
  .hero-text h1 { font-size: 20px; }
  .hero-text p { font-size: 13px; }
  .stat-number { font-size: 24px; }
  html, body { font-size: 14px; }
}
