/* ===================================================
   Anasim — PDNLab Marketing Site
   Clean, light-first, professional EDA.
   =================================================== */

/* ---- CSS Variables ---- */
:root {
  --bg:           #ffffff;
  --bg-surface:   #f8f9fb;
  --bg-card:      #ffffff;
  --bg-card-hover:#f4f6f9;
  --border:       #e2e5eb;
  --border-light: #cdd3dc;

  --text:         #1a1d23;
  --text-secondary:#4b5363;
  --text-muted:   #8b93a1;

  --accent:       #4f46e5;
  --accent-hover: #4338ca;
  --accent-dim:   #3730a3;
  --accent-glow:  rgba(79, 70, 229, 0.05);
  --accent-glow-strong: rgba(79, 70, 229, 0.08);

  --gradient-text: linear-gradient(135deg, #4f46e5 0%, #6366f1 40%, #818cf8 100%);
  --gradient-accent: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  --gradient-surface: linear-gradient(180deg, rgba(79,70,229,0.02) 0%, transparent 100%);

  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', 'Consolas', monospace;

  --max-width:    1200px;
  --nav-height:   64px;
  --radius:       12px;
  --radius-sm:    8px;
  --radius-lg:    16px;
}

[data-theme="dark"] {
  --bg:           #0f1117;
  --bg-surface:   #161922;
  --bg-card:      #1a1e2a;
  --bg-card-hover:#222736;
  --border:       #2a3040;
  --border-light: #3a4256;

  --text:         #e8ecf1;
  --text-secondary:#94a3b8;
  --text-muted:   #64748b;

  --accent:       #818cf8;
  --accent-hover: #6366f1;
  --accent-dim:   #4f46e5;
  --accent-glow:  rgba(129, 140, 248, 0.07);
  --accent-glow-strong: rgba(129, 140, 248, 0.12);

  --gradient-text: linear-gradient(135deg, #818cf8 0%, #a78bfa 40%, #c084fc 100%);
  --gradient-accent: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
  --gradient-surface: linear-gradient(180deg, rgba(129,140,248,0.03) 0%, transparent 100%);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 24px); }
body {
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Typography ---- */
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; }

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2), 0 0 0 0 rgba(99,102,241,0);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99,102,241,0.3), 0 0 0 0 rgba(99,102,241,0);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-glow);
}

/* ===================================================
   NAVIGATION
   =================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
[data-theme="dark"] .nav {
  background: rgba(15, 17, 23, 0.8);
}
.nav.scrolled {
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}
.nav-logo:hover { color: var(--text); }
.nav-logo svg { flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  padding: 8px 20px !important;
  border: 1px solid var(--border-light) !important;
  border-radius: 6px !important;
  color: var(--text) !important;
}
.nav-cta:hover {
  border-color: var(--accent) !important;
  background: var(--accent-glow);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-light); }
:not([data-theme="dark"]) .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }

.nav-toggle { display: none; background: none; border: none; color: var(--text-muted); cursor: pointer; }

/* Nav dark mode for immersive hero pages */
.nav--hero-dark {
  background: transparent;
  border-bottom-color: transparent;
}

/* ---- Nav banner (thin animated strip behind nav on subpages) ---- */
.nav-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 99;
  overflow: hidden;
  background: #0a0c14;
}
.nav-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    #1a1040 0%,
    #0d2137 16%,
    #2a1050 32%,
    #0a2540 48%,
    #1e0a3a 64%,
    #0d3042 80%,
    #2a0e45 100%
  );
  background-size: 400% 400%;
  animation: heroGradientShift 20s ease infinite;
}
[data-theme="dark"] .nav-banner::before {
  display: none;
}
.nav-banner .banner-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}
.nav--hero-dark .nav-logo { color: #e8ecf1; }
.nav--hero-dark .nav-links a { color: rgba(148,163,184,0.7); }
.nav--hero-dark .nav-links a:hover { color: #fff; }
.nav--hero-dark .nav-cta { border-color: rgba(255,255,255,0.15) !important; color: #e8ecf1 !important; }
.nav--hero-dark .nav-cta:hover { border-color: rgba(255,255,255,0.35) !important; background: rgba(255,255,255,0.06); }
.nav--hero-dark .theme-toggle { border-color: rgba(255,255,255,0.12); color: rgba(148,163,184,0.6); }
.nav--hero-dark .theme-toggle:hover { color: #fff; border-color: rgba(255,255,255,0.3); }
.nav--hero-dark.scrolled {
  background: rgba(6,8,14,0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: rgba(255,255,255,0.06);
}

/* ===================================================
   HERO — Immersive abstract
   =================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #0a0c14;
  color: #e8ecf1;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    #1a1040 0%,
    #0d2137 16%,
    #2a1050 32%,
    #0a2540 48%,
    #1e0a3a 64%,
    #0d3042 80%,
    #2a0e45 100%
  );
  background-size: 400% 400%;
  animation: heroGradientShift 20s ease infinite;
  z-index: 0;
}
[data-theme="dark"] .hero::before {
  display: none;
}
@keyframes heroGradientShift {
  0%   { background-position: 0% 50%; }
  25%  { background-position: 100% 25%; }
  50%  { background-position: 100% 50%; }
  75%  { background-position: 0% 75%; }
  100% { background-position: 0% 50%; }
}
.hero-edge-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, transparent 40%, rgba(15,17,23,0.3) 75%, rgba(15,17,23,0.6) 100%),
    linear-gradient(to bottom, rgba(15,17,23,0.4) 0%, transparent 15%, transparent 80%, rgba(15,17,23,0.5) 100%),
    linear-gradient(to right, rgba(15,17,23,0.3) 0%, transparent 15%, transparent 85%, rgba(15,17,23,0.3) 100%);
}
.hero-label {
  position: absolute;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
}
.hero-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-wave {
  vector-effect: non-scaling-stroke;
}
.hero-surface {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.5;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-height);
  padding-bottom: 12vh;
  min-height: 100vh;
}
.hero-copy {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 14vw, 12rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  line-height: 1;
  margin-bottom: 32px;
  color: #fff;
  text-transform: uppercase;
}
/* ── Signal trace title animation ── */
.hero-signal-title {
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 24px);
}
.signal-svg {
  width: clamp(60px, 12vw, 140px);
  height: auto;
  overflow: visible;
  flex-shrink: 0;
}
.signal-pulse {
  stroke: #818cf8;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: var(--path-len, 500);
  stroke-dashoffset: var(--path-len, 500);
  animation: signalDraw 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  filter: drop-shadow(0 0 8px rgba(129,140,248,0.5));
}
.signal-dot {
  fill: #818cf8;
  opacity: 0;
  filter: drop-shadow(0 0 10px rgba(129,140,248,0.8)) drop-shadow(0 0 20px rgba(129,140,248,0.4));
}
.hero-title--reveal {
  opacity: 0;
  animation: titleReveal 0.8s ease forwards;
  animation-delay: 1.3s;
  margin-bottom: 0;
}
@keyframes signalDraw {
  to { stroke-dashoffset: 0; }
}
@keyframes titleReveal {
  to { opacity: 1; }
}
.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,0.7);
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto 40px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.14);
  background: transparent;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-ghost:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.05);
}
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll-hint span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, rgba(148,163,184,0.4), transparent);
  animation: scrollHintPulse 2.4s ease-in-out infinite;
}
@keyframes scrollHintPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.8; transform: scaleY(1.15); }
}
@media (max-width: 768px) {
  .hero-title { font-size: clamp(3rem, 13vw, 6rem); }
  .hero-subtitle { max-width: 100%; }
}

/* ===================================================
   HERO — Chip Grid Canvas (Option A)
   =================================================== */
.hero-chip-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  pointer-events: none;
}
.hero-wordmark {
  font-size: clamp(4.5rem, 15vw, 13rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 0.9;
  color: #fff;
  text-transform: uppercase;
  margin: 0;
  text-align: center;
  mix-blend-mode: difference;
}

/* ===================================================
   VALUE STRIP
   =================================================== */
.value-strip {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.value-item h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.value-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
@media (max-width: 768px) {
  .value-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ===================================================
   PRODUCT TEASER
   =================================================== */
.product-teaser {
  padding: 96px 0;
}
.product-teaser-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.product-teaser-visual {
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(10,12,24,0.98), rgba(6,8,18,1));
  border: 1px solid var(--border);
}
.product-teaser-visual img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 900px) {
  .product-teaser-layout {
    grid-template-columns: 1fr;
  }
}
/* ===================================================
   STATS BAR
   =================================================== */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
  background: var(--bg-surface);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-value {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===================================================
   PRODUCT SECTION
   =================================================== */
.product {
  padding: 120px 0;
}
.product-header {
  text-align: center;
  margin-bottom: 72px;
}
.product-header .section-subtitle {
  margin: 0 auto;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.feature-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow-strong);
  border: 1px solid rgba(79,70,229,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.feature-title {
  font-size: 16px;
  font-weight: 650;
  color: var(--text);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Feature Rows (alternating text + diagram) ── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
.feature-row:last-child {
  border-bottom: none;
}
.feature-row-reverse {
  direction: rtl;
}
.feature-row-reverse > * {
  direction: ltr;
}
.feature-row-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.feature-row-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}
.feature-row-details {
  list-style: none;
  padding: 0;
}
.feature-row-details li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 5px 0;
  padding-left: 20px;
  position: relative;
}
.feature-row-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}
.feature-row-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-row-visual svg {
  max-width: 100%;
  height: auto;
}

/* ===================================================
   HOW IT WORKS
   =================================================== */
.how-it-works {
  padding: 120px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hiw-header {
  text-align: center;
  margin-bottom: 72px;
}
.hiw-header .section-subtitle {
  margin: 0 auto;
}

.hiw-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  position: relative;
}
/* Connector line */
.hiw-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dim) 50%, var(--accent) 100%);
  opacity: 0.2;
}

.hiw-step {
  text-align: center;
  position: relative;
}
.hiw-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  position: relative;
  z-index: 1;
}
.hiw-title {
  font-size: 17px;
  font-weight: 650;
  margin-bottom: 8px;
}
.hiw-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===================================================
   USE CASES
   =================================================== */
.use-cases {
  padding: 120px 0;
}
.use-cases-header {
  text-align: center;
  margin-bottom: 72px;
}
.use-cases-header .section-subtitle { margin: 0 auto; }

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.use-case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 36px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.use-case-card:hover {
  border-color: var(--border-light);
  border-left-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.use-case-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.use-case-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
.use-case-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===================================================
   BLOG / ARTICLES
   =================================================== */
.blog {
  padding: 120px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.blog-header {
  text-align: center;
  margin-bottom: 56px;
}
.blog-header .section-subtitle { margin: 0 auto; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.blog-grid.blog-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Articles section (non-surface background) */
.articles-section {
  padding: 120px 0;
}
.articles-section .blog-header {
  text-align: center;
  margin-bottom: 56px;
}
.articles-section .blog-header .section-subtitle { margin: 0 auto; }

/* Spotlight grid (homepage) */
.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.spotlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
}
.spotlight-card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  color: inherit;
}
.spotlight-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--accent-glow-strong);
  color: var(--accent);
  border: 1px solid var(--accent);
  letter-spacing: 0.02em;
  z-index: 1;
}
.spotlight-card-image {
  width: 100%;
  height: 220px;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}
.spotlight-card-body {
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.spotlight-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.spotlight-card-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.spotlight-card-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}
.spotlight-cta {
  text-align: center;
  margin-top: 40px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.blog-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  color: inherit;
}

.blog-card-image {
  width: 100%;
  height: 200px;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.blog-card-image .blog-visual {
  font-size: 64px;
  opacity: 0.15;
  position: absolute;
}

.blog-card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  gap: 16px;
}
.blog-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
}
.blog-card-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}
.blog-card-link {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ===================================================
   CTA SECTION
   =================================================== */
.cta-section {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  width: 600px; height: 400px;
  background: rgba(79,70,229,0.03);
  border-radius: 50%;
  filter: blur(120px);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
[data-theme="dark"] .cta-glow {
  background: rgba(129,140,248,0.06);
}
.cta-content {
  position: relative;
  z-index: 1;
}
.cta-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.cta-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-brand { max-width: 320px; }
.footer-brand-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  margin-bottom: 12px;
}
.footer-brand-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

.footer-links {
  display: flex;
  gap: 72px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ===================================================
   PAGE HERO (Learn, Articles standalone pages)
   =================================================== */
.page-hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 60px;
  text-align: center;
}
.page-hero .section-subtitle {
  margin: 0 auto;
}

.page-content {
  padding: 0 0 120px;
}

/* ===================================================
   ARTICLES PAGE — Clean block grid
   =================================================== */
.articles-page {
  padding-top: calc(var(--nav-height) + 64px);
  padding-bottom: 120px;
}
.articles-page-header {
  margin-bottom: 48px;
}
.articles-page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.articles-page-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 640px;
}

/* Article block cards */
.articles-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.article-block {
  display: block;
  padding: 32px 28px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  transition: background-color 0.2s, box-shadow 0.2s;
}
.article-block:first-child {
  border-top: 1px solid var(--border);
}
.article-block:hover {
  background: var(--bg-card);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  color: inherit;
}
.article-block:hover .article-block-title {
  color: var(--accent);
}
.article-block-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.article-block-excerpt {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-block-date {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===================================================
   BLOG ARTICLE PAGE
   =================================================== */
.article-page {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 100px;
}
.article-header {
  text-align: center;
  margin-bottom: 56px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.article-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  gap: 20px;
  justify-content: center;
}
.article-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}
.article-lede {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
}
.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 48px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.article-body h3 {
  font-size: 1.15rem;
  font-weight: 650;
  margin: 32px 0 12px;
}
.article-body p {
  margin-bottom: 20px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.article-body strong {
  color: var(--text);
  font-weight: 600;
}
.article-body em {
  color: var(--text-secondary);
}
.article-body ul, .article-body ol {
  margin: 0 0 20px 24px;
  color: var(--text-secondary);
}
.article-body li {
  margin-bottom: 8px;
  line-height: 1.7;
}
.article-body blockquote {
  margin: 24px 0;
  padding: 16px 24px;
  border-left: 3px solid var(--accent);
  background: var(--accent-glow);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
  font-style: italic;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 13px;
}
.article-body th, .article-body td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}
.article-body th {
  background: var(--bg-surface);
  font-weight: 600;
  color: var(--text);
}
.article-body td {
  color: var(--text-secondary);
}
.article-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-surface);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
}
.article-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* References / Citations */
.article-references {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 2px solid var(--border);
}
.article-references h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.article-references ol {
  list-style: none;
  counter-reset: ref-counter;
  margin: 0;
  padding: 0;
}
.article-references li {
  counter-increment: ref-counter;
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.article-references li::before {
  content: "[" counter(ref-counter) "]";
  position: absolute;
  left: 0;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 12px;
}
.article-references li a {
  word-break: break-all;
}
sup a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.75em;
}
sup a:hover {
  text-decoration: underline;
}

/* Article inline diagrams */
.article-diagram {
  margin: 40px 0;
  padding: 32px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  overflow-x: auto;
}
.article-diagram svg {
  max-width: 100%;
  height: auto;
}
.article-diagram-caption {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.5;
}
.article-diagram-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ===================================================
   LEARN — COURSE CATALOG + VISUAL LEARNING PATH
   =================================================== */

/* Hero */
.learn-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 60px) 0 60px;
  overflow: hidden;
  background: var(--bg);
}
.learn-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.35;
}
.learn-hero-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  animation: learnFadeUp 0.6s ease both;
}
.learn-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 300;
  color: var(--text);
  margin-bottom: 14px;
  animation: learnFadeUp 0.6s 0.1s ease both;
}
.learn-hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.65;
  animation: learnFadeUp 0.6s 0.2s ease both;
}

@keyframes learnFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Course Catalog */
.learn-catalog {
  padding: 0 0 60px;
}
.learn-course-card {
  display: grid;
  grid-template-columns: 1fr 320px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-card);
  overflow: hidden;
  cursor: default;
  transition: border-color 0.3s, box-shadow 0.3s;
  animation: learnFadeUp 0.6s 0.3s ease both;
}
/* hover disabled — coming soon */
.learn-course-card-inner {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
}
.learn-course-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.learn-course-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 3px 10px;
  border-radius: 4px;
}
.learn-course-lessons,
.learn-course-level {
  font-size: 12px;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
}
.learn-course-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.3;
}
.learn-course-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 24px;
  flex: 1;
}
.learn-course-parts-preview {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.learn-course-part-pill {
  font-size: 12px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.2s, color 0.2s;
}
.learn-course-part-pill span {
  font-weight: 700;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}
.learn-course-card:hover .learn-course-part-pill {
  border-color: var(--accent);
  color: var(--text);
}
.learn-course-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  align-self: flex-start;
}
.learn-course-cta:hover {
  background: var(--accent-hover);
  transform: translateX(4px);
}
.learn-course-coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0.6;
  align-self: flex-start;
}
.learn-course-card-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border-left: 1px solid var(--border);
  padding: 20px;
}
.learn-course-wave-svg {
  width: 100%;
  max-width: 280px;
  height: auto;
}

/* ---- Learning Path Section ---- */
.learn-path-section {
  display: none;
  padding: 0 0 80px;
  animation: learnPathReveal 0.5s ease both;
}
.learn-path-section.active {
  display: block;
}
@keyframes learnPathReveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Quick-pick cards */
.learn-quickpick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 56px;
  animation: learnFadeUp 0.5s 0.1s ease both;
}
.learn-quickpick-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.learn-quickpick-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}
.learn-quickpick-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bg-surface);
  color: var(--accent);
  flex-shrink: 0;
}
.learn-quickpick-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}
.learn-quickpick-action {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* Part headers */
.learn-path-part {
  margin-bottom: 64px;
}
.learn-path-part:last-of-type {
  margin-bottom: 32px;
}
.learn-path-part-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.learn-path-part-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--bg-surface);
  flex-shrink: 0;
}
.learn-path-part-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 2px;
}
.learn-path-part-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text);
  margin: 0;
}

/* Timeline spine */
.learn-path-timeline {
  position: relative;
  padding: 0 0 16px;
}
.learn-path-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--border) 100%);
  transform: translateX(-50%);
  opacity: 0.4;
}

/* Nodes */
.learn-path-node {
  position: relative;
  display: flex;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.learn-path-node.visible {
  opacity: 1;
  transform: translateY(0);
}
.learn-path-node[data-side="left"] {
  justify-content: flex-start;
  padding-right: calc(50% + 28px);
}
.learn-path-node[data-side="right"] {
  justify-content: flex-end;
  padding-left: calc(50% + 28px);
}

/* Dot on timeline */
.learn-path-dot {
  position: absolute;
  left: 50%;
  top: 28px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  transform: translate(-50%, 0);
  z-index: 2;
  transition: background 0.3s, box-shadow 0.3s;
}
.learn-path-node:hover .learn-path-dot {
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(79, 70, 229, 0.15);
}

/* Cards */
.learn-path-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.learn-path-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.learn-path-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}
.learn-path-card:hover::before {
  transform: scaleX(1);
}

.learn-path-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.learn-path-num {
  font-size: 13px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  opacity: 0.7;
}
.learn-path-badges {
  display: flex;
  gap: 8px;
  align-items: center;
}
.badge-difficulty {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
}
.badge-difficulty.beginner {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}
.badge-difficulty.intermediate {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}
.badge-difficulty.advanced {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}
.badge-time {
  font-size: 11px;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  opacity: 0.7;
}

.learn-path-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--text);
  transition: color 0.2s;
}
.learn-path-card:hover .learn-path-card-title {
  color: var(--accent);
}
.learn-path-card-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}
.learn-path-card-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.learn-path-card:hover .learn-path-card-cta {
  opacity: 1;
  transform: translateX(0);
}

/* Course completion */
.learn-path-finish {
  text-align: center;
  padding: 40px 20px;
  position: relative;
}
.learn-path-finish-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 auto 20px;
  box-shadow: 0 0 0 6px rgba(79, 70, 229, 0.12);
}
.learn-path-finish p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 18px;
  line-height: 1.65;
}
.learn-path-finish-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}
.learn-path-finish-cta:hover {
  opacity: 0.8;
}

/* Mobile: collapse timeline to single column */
@media (max-width: 900px) {
  .learn-course-card {
    grid-template-columns: 1fr;
  }
  .learn-course-card-visual {
    display: none;
  }
  .learn-quickpick {
    grid-template-columns: 1fr;
  }
  .learn-path-line {
    left: 16px;
  }
  .learn-path-dot {
    left: 16px;
    top: 20px;
  }
  .learn-path-node[data-side="left"],
  .learn-path-node[data-side="right"] {
    padding-left: 44px;
    padding-right: 0;
    justify-content: flex-start;
  }
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: calc(var(--nav-height) + 52px);
    padding-bottom: 56px;
  }
  .hero-copy {
    max-width: none;
  }
  .hero-panel {
    min-height: 500px;
    padding: 16px;
  }
  .hero-panel-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-scene {
    min-height: 430px;
  }
  .hero-layer--board { bottom: 70px; }
  .hero-layer--package { bottom: 142px; }
  .hero-layer--chip { bottom: 208px; }
  .hero-layer-surface--board {
    width: 260px;
    height: 140px;
  }
  .hero-layer-surface--package {
    width: 208px;
    height: 100px;
  }
  .hero-layer-surface--chip {
    width: 152px;
    height: 82px;
  }
  .hero-column {
    bottom: 145px;
    height: 96px;
  }
  .hero-column--left { left: 47%; }
  .hero-column--right { left: 58%; }
  .hero-current-path {
    width: 118px;
    height: 196px;
    top: 100px;
  }
  .hero-current-seg--board {
    width: 78px;
    bottom: 16px;
  }
  .hero-current-seg--package {
    left: 74px;
    height: 86px;
    bottom: 16px;
  }
  .hero-current-seg--chip {
    left: 54px;
    top: 34px;
    width: 74px;
  }
  .hero-callout {
    display: none;
  }
  .hero-wave-card {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
  }
  .features-grid { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
  .feature-row-reverse { direction: ltr; }
  .hiw-steps { grid-template-columns: 1fr; gap: 32px; }
  .hiw-steps::before { display: none; }
  .use-cases-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-grid.blog-grid-3 { grid-template-columns: 1fr; }
  .spotlight-grid { grid-template-columns: 1fr; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 20px;
  }
  .nav-toggle { display: block; }

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

  /* Articles page responsive */
  .article-block { padding: 24px 20px; }
  .article-block-title { font-size: 16px; }
}

@media (max-width: 1080px) and (min-width: 769px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
    gap: 36px;
  }
  .hero-panel {
    min-height: 560px;
  }
  .hero-callout--board {
    left: 22px;
  }
  .hero-callout--package {
    right: 16px;
  }
  .hero-callout--chip {
    left: 18px;
  }
}

/* ===================================================
   ANIMATIONS
   =================================================== */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================
   PDN ARCHITECTURE SECTION (3D Stack)
   =================================================== */
.pdn-architecture-section {
  padding: 120px 0;
}
.pdn-stack-viewer {
  position: relative;
  width: 100%;
  margin-top: 56px;
  border-radius: var(--radius);
  overflow: visible;
}
.pdn-stack-viewer canvas {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}
.pdn-labels {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
}
.pdn-label {
  position: absolute;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transform: translateY(-50%);
  transition: opacity 0.2s;
  pointer-events: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.pdn-label-right { transform: translate(0, -50%); }
.pdn-label-left  { transform: translate(-100%, -50%); }
.pdn-controls {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
}
.pdn-ctrl-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.pdn-ctrl-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ===================================================
   VCS / OUTPUT SECTION (4D Voltage Surface)
   =================================================== */
.vcs-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.vcs-split {
  display: flex;
  min-height: calc(100vh - var(--nav-height, 64px));
}

/* Left text panel — mirrors pdn-text-panel */
.vcs-text-panel {
  width: 42%;
  min-width: 360px;
  padding: 56px 40px 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 3;
  background: var(--bg);
}
[data-theme="dark"] .vcs-text-panel {
  background: #0f1117;
}
.vcs-text-panel h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}
.vcs-text-panel > p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Right visual panel */
.vcs-visual-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: var(--bg);
}
[data-theme="dark"] .vcs-visual-panel {
  background: #0f1117;
}

.vcs-showcase {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 56px;
}

/* Visual / GIF */
.vcs-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f8f6f2;
  max-width: 700px;
  width: 100%;
}
[data-theme="dark"] .vcs-visual {
  background: #1a1820;
}
.vcs-visual img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
}
.vcs-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  box-shadow: inset 0 0 40px rgba(0,0,0,0.08);
  pointer-events: none;
}

/* Accent glow behind image on reveal */
.vcs-visual::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius) + 2px);
  background: conic-gradient(from 180deg, var(--accent), transparent 40%, transparent 60%, var(--accent));
  opacity: 0;
  z-index: -1;
  transition: opacity 1.2s ease 0.6s;
  filter: blur(20px);
}
.vcs-section.is-active .vcs-visual::before {
  opacity: 0.25;
}

.vcs-text-panel .vcs-details {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
}
.vcs-detail-item {
  display: flex;
  gap: 16px;
  padding: 24px 20px;
  border-radius: var(--radius);
  border-left: 2px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
  /* Scroll animation */
  opacity: 0;
  transform: translateX(30px);
}
.vcs-detail-item.is-visible {
  opacity: 1;
  transform: translateX(0);
  /* Each gets a unique transition-delay via JS */
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s ease,
              border-color 0.3s ease;
}
.vcs-detail-item:hover {
  background: var(--bg-card);
  border-left-color: var(--accent);
}
.vcs-detail-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  transition: transform 0.3s ease;
}
.vcs-detail-item:hover .vcs-detail-icon {
  transform: scale(1.1);
}
.vcs-detail-text h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.vcs-detail-text p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===================================================
   DESIGN FLOW SECTION
   =================================================== */
.designflow-section {
  padding: 120px 0;
}

/* ---- Flow Pipeline ---- */
.flow-pipeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-top: 64px;
  padding-bottom: 48px;
}
.flow-track {
  position: absolute;
  top: 68px;
  left: 40px;
  right: 40px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  z-index: 0;
}
.flow-track-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #10b981);
  border-radius: 2px;
  transition: width 0.6s ease;
}

/* ---- Flow Card ---- */
.flow-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 12px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.35s ease;
}
.flow-card:hover {
  background: var(--accent-glow);
  border-color: var(--border);
  transform: translateY(-4px);
}
.flow-card.active {
  background: var(--accent-glow-strong);
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(129,140,248,0.12);
}
.flow-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  margin-bottom: 16px;
  transition: color 0.3s;
}
.flow-card-icon svg {
  width: 48px;
  height: 48px;
}
.flow-card.active .flow-card-icon {
  color: var(--accent);
}
.flow-card-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
  opacity: 0.6;
}
.flow-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}
.flow-card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 160px;
}
.flow-card-dot {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  transition: all 0.3s;
  z-index: 2;
}
.flow-card.active .flow-card-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(129,140,248,0.2);
  transform: translateX(-50%) scale(1.3);
}
.flow-card-dot--signoff {
  border-color: #10b981;
}
.flow-card.active .flow-card-dot--signoff {
  background: #10b981;
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16,185,129,0.2);
}

/* ---- PDNLab Hero Card ---- */
.flow-card--pdnlab {
  background: rgba(129,140,248,0.04);
  border: 1.5px solid rgba(129,140,248,0.2);
  border-radius: var(--radius-lg);
  padding: 24px 16px 28px;
}
.flow-card--pdnlab.active {
  background: rgba(129,140,248,0.08);
  border-color: var(--accent);
  box-shadow: 0 16px 48px rgba(129,140,248,0.18), inset 0 1px 0 rgba(255,255,255,0.05);
}
.flow-card-glow {
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(129,140,248,0.08), rgba(167,139,250,0.04));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
}
.flow-card--pdnlab.active .flow-card-glow {
  opacity: 1;
}
.flow-card-icon--pdnlab {
  width: 64px;
  height: 64px;
}
.flow-card-icon--pdnlab svg {
  width: 56px;
  height: 56px;
}
.flow-card-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(129,140,248,0.1);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
}
.flow-card-dot--pdnlab {
  border-color: var(--accent);
}
.flow-card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 10px;
}
.flow-card-features span {
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(129,140,248,0.08);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.flow-card-pulse {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.6); }
}

/* ---- Feedback Arc ---- */
.flow-feedback-arc {
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 50px;
  z-index: 0;
}
.flow-feedback-arc svg {
  width: 100%;
  height: 100%;
}
.flow-feedback-text {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  opacity: 0.7;
}

/* ---- Detail Panel ---- */
.flow-detail-panel {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-top: 72px;
  transition: border-color 0.3s;
}
.flow-detail-panel:hover {
  border-color: var(--border-light);
}
.flow-detail-indicator {
  position: absolute;
  top: -1px;
  left: 40px;
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 0 0 2px 2px;
  transition: left 0.4s ease;
}
.flow-detail-panel h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  transition: opacity 0.2s, transform 0.25s;
}
.flow-detail-content {
  display: none;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.flow-detail-content.active { display: block; }
.flow-detail-content p {
  max-width: 720px;
}
.flow-detail-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.flow-detail-feat {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.flow-detail-feat-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(129,140,248,0.08);
}
.flow-detail-feat strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.flow-detail-feat p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 900px) {
  .flow-pipeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .flow-track { display: none; }
  .flow-card-dot { display: none; }
  .flow-feedback-arc { display: none; }
  .flow-detail-features {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .flow-pipeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===================================================
   LAYER STACK — 3D Animated Visualization
   =================================================== */
.layer-stack-section {
  padding: 100px 0 120px;
  background: var(--bg);
  overflow: hidden;
}

.layer-stack-scene {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  margin-top: 56px;
  min-height: 480px;
}

.layer-stack-perspective {
  perspective: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  transform-style: preserve-3d;
  animation: layerStackFloat 6s ease-in-out infinite;
}

@keyframes layerStackFloat {
  0%, 100% { transform: rotateX(12deg) rotateY(-18deg) rotateZ(1deg); }
  50%      { transform: rotateX(14deg) rotateY(-14deg) rotateZ(-1deg); }
}

/* Individual layer panels */
.layer-panel {
  position: relative;
  width: 340px;
  height: 80px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s ease;
  cursor: default;
}

.layer-panel:hover {
  transform: translateZ(16px) scale(1.03);
}

/* Grid pattern overlay for each layer */
.layer-grid-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(to right, currentColor 1px, transparent 1px),
    linear-gradient(to bottom, currentColor 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.layer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  width: 100%;
}

.layer-icon {
  flex-shrink: 0;
  opacity: 0.7;
}

.layer-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.layer-detail {
  font-size: 11px;
  opacity: 0.55;
  margin-left: auto;
  white-space: nowrap;
}

/* Board layer — deep green */
.layer-board {
  background: linear-gradient(135deg, #0d3320 0%, #164430 50%, #1a5a3a 100%);
  border: 1px solid rgba(52, 211, 153, 0.25);
  box-shadow:
    0 2px 20px rgba(52, 211, 153, 0.08),
    0 0 40px rgba(52, 211, 153, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #a7f3d0;
}
.layer-board .layer-grid-pattern { color: #34d399; }

/* Package layer — warm amber/gold */
.layer-package {
  background: linear-gradient(135deg, #3d2a0a 0%, #4a3510 50%, #5c4216 100%);
  border: 1px solid rgba(251, 191, 36, 0.25);
  box-shadow:
    0 2px 20px rgba(251, 191, 36, 0.08),
    0 0 40px rgba(251, 191, 36, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #fde68a;
}
.layer-package .layer-grid-pattern { color: #fbbf24; }

/* On-Chip layer — indigo/purple */
.layer-chip {
  background: linear-gradient(135deg, #1e1650 0%, #2a1f6a 50%, #332880 100%);
  border: 1px solid rgba(129, 140, 248, 0.3);
  box-shadow:
    0 2px 20px rgba(129, 140, 248, 0.1),
    0 0 40px rgba(129, 140, 248, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #c7d2fe;
}
.layer-chip .layer-grid-pattern { color: #818cf8; }

/* Connectors between layers */
.layer-connectors {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 2px 0;
  transform-style: preserve-3d;
}

.layer-connector {
  width: 2px;
  height: 20px;
  background: linear-gradient(to bottom, rgba(129, 140, 248, 0.4), rgba(129, 140, 248, 0.15));
  border-radius: 1px;
  animation: connectorPulse 2s ease-in-out infinite;
}

.layer-connector:nth-child(2) { animation-delay: 0.3s; }
.layer-connector:nth-child(3) { animation-delay: 0.6s; }
.layer-connector:nth-child(4) { animation-delay: 0.9s; }
.layer-connector:nth-child(5) { animation-delay: 1.2s; }
.layer-connector:nth-child(6) { animation-delay: 0.15s; }
.layer-connector:nth-child(7) { animation-delay: 0.45s; }

@keyframes connectorPulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

.layer-connectors-bumps .layer-connector {
  height: 14px;
  width: 3px;
  background: linear-gradient(to bottom, rgba(251, 191, 36, 0.35), rgba(129, 140, 248, 0.35));
  border-radius: 1.5px;
}
.layer-connectors-bumps {
  gap: 28px;
}

/* Side labels */
.layer-stack-labels {
  display: flex;
  flex-direction: column;
  gap: 58px;
  padding-top: 4px;
}

.layer-label-item {
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.layer-label-item:hover { opacity: 1; }

.layer-label-line {
  width: 40px;
  height: 1px;
  background: linear-gradient(to right, var(--border), var(--accent));
  flex-shrink: 0;
}

.layer-label-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.layer-label-text strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.layer-label-text span {
  font-size: 11px;
  color: var(--text-secondary);
}

/* Scan line effect on the whole stack */
.layer-stack-perspective::after {
  content: '';
  position: absolute;
  left: -10%;
  width: 120%;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(129, 140, 248, 0.4) 30%,
    rgba(129, 140, 248, 0.8) 50%,
    rgba(129, 140, 248, 0.4) 70%,
    transparent 100%);
  animation: scanLine 3.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 10;
  filter: blur(1px);
}

@keyframes scanLine {
  0%   { top: -10px; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: calc(100% + 10px); opacity: 0; }
}

/* Dark theme adjustments */
[data-theme="dark"] .layer-board {
  background: linear-gradient(135deg, #0a2a1a 0%, #0f3d28 50%, #145233 100%);
  box-shadow:
    0 4px 30px rgba(52, 211, 153, 0.1),
    0 0 60px rgba(52, 211, 153, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .layer-package {
  background: linear-gradient(135deg, #2a1d06 0%, #3a2a0c 50%, #4a3512 100%);
  box-shadow:
    0 4px 30px rgba(251, 191, 36, 0.1),
    0 0 60px rgba(251, 191, 36, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .layer-chip {
  background: linear-gradient(135deg, #16103a 0%, #1e1650 50%, #261e68 100%);
  box-shadow:
    0 4px 30px rgba(129, 140, 248, 0.12),
    0 0 60px rgba(129, 140, 248, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
  .layer-stack-scene {
    flex-direction: column;
    gap: 32px;
  }
  .layer-panel {
    width: 280px;
    height: 70px;
  }
  .layer-stack-labels {
    flex-direction: row;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .layer-label-line { display: none; }
  .layer-label-text { align-items: center; text-align: center; }
  .layer-detail { display: none; }
}

/* Responsive for new sections */
@media (max-width: 768px) {
  .vcs-split { flex-direction: column; }
  .vcs-text-panel { width: 100%; min-width: 0; border-right: none; border-bottom: 1px solid var(--border); padding: 40px 24px; }
  .vcs-visual-panel { padding: 24px 16px; overflow: hidden; }
  .vcs-visual { max-width: 100%; }
  .vcs-detail-item { padding: 20px 16px; }
  .pdn-label { display: none !important; }
}

/* ── Team Section ── */
.team-section { padding: 100px 0; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 640px;
  margin-top: 48px;
}
.team-card {
  cursor: pointer;
  transition: transform 0.25s ease;
}
.team-card:hover { transform: translateY(-4px); }
.team-card-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center top;
  background-color: var(--bg-surface);
  border-radius: var(--radius);
  overflow: hidden;
}
.team-card-links {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.team-card:hover .team-card-links { opacity: 1; }
.team-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  transition: background 0.15s ease;
}
.team-link:hover { background: var(--accent-hover); }
.team-link svg { width: 14px; height: 14px; }
.team-card-name {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}
.team-card-role {
  margin-top: 2px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.team-card-creds {
  margin-top: 4px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ── Bio Modal ── */
.team-bio-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.team-bio-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.team-bio-modal-content {
  width: 440px;
  max-width: 90vw;
  height: 100%;
  overflow-y: auto;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  padding: 48px 36px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.team-bio-modal.active .team-bio-modal-content {
  transform: translateX(0);
}
.team-bio-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.team-bio-close:hover { background: var(--bg-surface); }
.team-bio-modal-photo {
  width: 100%;
  aspect-ratio: 1;
  background-size: cover;
  background-position: center top;
  background-color: var(--bg-surface);
  border-radius: var(--radius);
  margin-bottom: 24px;
}
#teamBioName {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
}
.team-bio-modal-role {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 2px;
}
.team-bio-modal-creds {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}
.team-bio-modal-text {
  margin-top: 24px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text);
}

/* ── Horizontal Timeline ── */
.timeline-section { padding: 100px 0; overflow: hidden; }
.timeline-track {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0;
  padding: 48px 24px 32px;
  margin-top: 32px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.timeline-line {
  position: absolute;
  top: 68px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: var(--border);
  pointer-events: none;
}
.timeline-entry {
  position: relative;
  padding: 44px 12px 0 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.timeline-entry.tl-visible {
  opacity: 1;
  transform: translateY(0);
}
.timeline-dot {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  z-index: 2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.timeline-entry:hover .timeline-dot {
  transform: scale(1.4);
  box-shadow: 0 0 0 6px var(--accent-glow-strong);
  border-color: var(--accent);
}
.timeline-dot--accent {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow-strong);
  animation: tlPulse 2s ease-in-out infinite;
}
@keyframes tlPulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-glow-strong); }
  50% { box-shadow: 0 0 0 10px rgba(79, 70, 229, 0); }
}
.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.timeline-body h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.timeline-body p {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-secondary);
}
.timeline-entry--now .timeline-body h4 {
  color: var(--accent);
}

/* ── About-page responsive ── */
@media (max-width: 900px) {
  .timeline-track {
    grid-template-columns: repeat(4, 1fr);
  }
  .timeline-line { display: none; }
}
@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; gap: 20px; }
  .team-bio-modal-content { width: 100%; padding: 32px 24px; }
  .timeline-track {
    grid-template-columns: repeat(2, 1fr);
    padding: 48px 16px 24px;
  }
  .timeline-entry { padding: 36px 8px 0 8px; }
  .timeline-dot { left: 8px; }
}
