
/* ============================================================
   DESIGN SYSTEM & VARIABLES (精密暗核科技风)
   ============================================================ */
:root {
  --bg-deep: #030712;
  --bg-surface: #080D1A;
  --bg-card: rgba(13, 20, 36, 0.65);
  --bg-card-hover: rgba(18, 28, 52, 0.85);
  --bg-hud: rgba(6, 11, 23, 0.9);
  
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(16, 185, 129, 0.5);
  --border-cyan: rgba(6, 182, 212, 0.4);
  --border-indigo: rgba(99, 102, 241, 0.35);
  
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --text-hud: #475569;
  
  --accent-emerald: #10B981;
  --accent-emerald-light: #34D399;
  --accent-cyan: #06B6D4;
  --accent-indigo: #6366F1;
  --accent-amber: #F59E0B;
  --accent-rose: #F43F5E;
  
  --font-sans: 'Plus Jakarta Sans', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; background-color: var(--bg-deep); }
body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  cursor: default;
}

::selection {
  background: var(--accent-emerald);
  color: #000;
}

a { color: inherit; text-decoration: none; cursor: pointer; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ============================================================
   HIGH-END DYNAMIC CANVAS & NOISE OVERLAY
   ============================================================ */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.hud-grid-cross {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: 
    radial-gradient(rgba(16, 185, 129, 0.15) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 80px 80px, 20px 20px;
  background-position: 0 0, 0 0;
  mask-image: radial-gradient(circle at 50% 40%, black 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, black 30%, transparent 85%);
}

/* ============================================================
   CUSTOM INTERACTIVE CURSOR
   ============================================================ */
#cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.08s ease;
  box-shadow: 0 0 10px var(--accent-emerald);
}

#cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              height 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.2s ease, 
              background-color 0.2s ease;
}

body:hover #cursor-dot, body:hover #cursor-ring { opacity: 1; }
.cursor-hover #cursor-ring {
  width: 56px;
  height: 56px;
  border-color: var(--accent-emerald);
  background-color: rgba(16, 185, 129, 0.08);
  backdrop-filter: blur(2px);
}

@media (pointer: coarse) {
  #cursor-dot, #cursor-ring { display: none !important; }
}

/* ============================================================
   GLOBAL LAYOUT & TOP SCROLL PROGRESS
   ============================================================ */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

#scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-emerald), var(--accent-cyan), var(--accent-indigo));
  box-shadow: 0 0 10px var(--accent-emerald);
  z-index: 1000;
  pointer-events: none;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease;
}

.nav-bar {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-glyph {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-emerald);
  position: relative;
}

.brand-glyph::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent-emerald), transparent 60%);
  opacity: 0.3;
  z-index: -1;
}

.brand-text {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.3px;
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s ease;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover { color: var(--text-main); }
.nav-link.active { color: var(--accent-emerald); }
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-emerald);
  transition: width 0.25s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-link .mono-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-right: 4px;
}

.status-indicator-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 5px 12px;
  border-radius: 9999px;
  color: var(--accent-emerald-light);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse-beacon 2s infinite;
}

@keyframes pulse-beacon {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

/* ============================================================
   HERO: ARCHITECTURAL SPEC & LIVE TELEMETRY
   ============================================================ */
.hero-wrapper {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 52px;
  align-items: center;
}

.hero-tag-strip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 22px;
}

.hero-tag-strip .accent {
  color: var(--accent-emerald);
  font-weight: 600;
}

.hero-title {
  font-size: clamp(38px, 4.6vw, 60px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin-bottom: 22px;
}

.hero-title .glow-emerald {
  background: linear-gradient(120deg, #10B981, #34D399 40%, #06B6D4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 25px rgba(16, 185, 129, 0.25));
}

.hero-statement {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 600px;
  margin-bottom: 32px;
}

.hero-statement strong {
  color: var(--text-main);
}

/* Engineering Philosophy Box */
.eng-philosophy-box {
  background: rgba(13, 20, 36, 0.5);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-emerald);
  padding: 16px 20px;
  border-radius: 0 10px 10px 0;
  margin-bottom: 36px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: #CBD5E1;
  position: relative;
  overflow: hidden;
}

.eng-philosophy-box::after {
  content: "";
  position: absolute;
  top: 0; right: 0; width: 60px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.05));
  pointer-events: none;
}

.hero-btn-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-cyber {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-cyber-primary {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #030712;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.btn-cyber-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.btn-cyber-ghost {
  background: rgba(13, 20, 36, 0.7);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  backdrop-filter: blur(10px);
}

.btn-cyber-ghost:hover {
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Interactive Telemetry Inspector Card */
.hud-telemetry-console {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
}

.hud-telemetry-console::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-emerald), transparent);
}

.hud-title-bar {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hud-dots { display: flex; gap: 6px; }
.hud-dots span { width: 8px; height: 8px; border-radius: 50%; }
.hud-dots span:nth-child(1) { background: #EF4444; }
.hud-dots span:nth-child(2) { background: #F59E0B; }
.hud-dots span:nth-child(3) { background: #10B981; }

.hud-console-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-console-body {
  padding: 22px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.telemetry-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.telemetry-item:last-child { border-bottom: none; }
.telemetry-item .label { color: var(--text-dim); font-size: 11.5px; }
.telemetry-item .value { color: var(--text-main); font-weight: 500; }
.telemetry-item .value.active { color: var(--accent-emerald); }
.telemetry-item .value.warn { color: var(--accent-amber); }

/* Mini Waveform in Console */
.waveform-container {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.waveform-canvas {
  flex: 1;
  height: 38px;
}

.waveform-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-align: right;
}

/* ============================================================
   METRICS HUD STRIP
   ============================================================ */
.stats-hud-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 56px;
}

.stats-hud-cell {
  background: var(--bg-surface);
  padding: 26px;
  position: relative;
  transition: all 0.3s ease;
}

.stats-hud-cell:hover {
  background: rgba(18, 28, 52, 0.7);
}

.stats-hud-cell::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 14px; height: 14px;
  border-top: 2px solid var(--accent-emerald);
  border-left: 2px solid var(--accent-emerald);
  opacity: 0.3;
}

.stats-cell-num {
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-main);
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.stats-cell-num span.unit {
  font-size: 16px;
  color: var(--text-dim);
  font-weight: 400;
}

.stats-cell-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.stats-cell-sub {
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* ============================================================
   INTERACTIVE ARCHITECTURE SANDBOX (核心功底展示区)
   ============================================================ */
.section-block {
  padding: 96px 0;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.section-head {
  margin-bottom: 52px;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-emerald);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-kicker::before {
  content: "■";
  font-size: 8px;
  color: var(--accent-emerald);
}

.section-h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 14px;
}

.section-lead {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.7;
}

/* Architecture Console Tab System */
.arch-card-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.arch-tab-strip {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.arch-tab-btn {
  padding: 18px 26px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.arch-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
}

.arch-tab-btn.active {
  color: var(--text-main);
  border-bottom-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.06);
}

.arch-tab-btn .badge {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
}

.arch-content-panel {
  display: none;
  padding: 36px;
}

.arch-content-panel.active {
  display: block;
}

/* Flow Nodes with interactive click details */
.flow-track {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 32px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.flow-node {
  flex: 1;
  min-width: 180px;
  background: rgba(13, 20, 36, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 18px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.flow-node:hover, .flow-node.active {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.flow-node-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.flow-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-emerald);
  font-weight: 600;
}

.flow-latency {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.1);
  padding: 1px 6px;
  border-radius: 3px;
}

.flow-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.flow-tech {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
}

.flow-arrow {
  display: flex;
  align-items: center;
  color: var(--text-dim);
  flex-shrink: 0;
}

/* Sandbox Console Split */
.sandbox-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  background: rgba(3, 7, 18, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 26px;
}

.sandbox-controls h4, .sandbox-telemetry h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sandbox-action-row {
  display: flex;
  gap: 12px;
  margin: 16px 0;
}

.btn-ctrl {
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-ctrl-run {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald-light);
}

.btn-ctrl-run:hover {
  background: var(--accent-emerald);
  color: #000;
}

.btn-ctrl-abort {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid var(--accent-rose);
  color: #FDA4AF;
}

.btn-ctrl-abort:hover {
  background: var(--accent-rose);
  color: #FFF;
}

.terminal-log-screen {
  background: #000;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 16px;
  min-height: 200px;
  max-height: 240px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: #94A3B8;
}

/* ============================================================
   SYSTEMS SPOTLIGHT CARDS (六大系统深度工程)
   ============================================================ */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.spotlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* Mouse Spotlight Effect */
.spotlight-card::before {
  content: "";
  position: absolute;
  top: var(--mouse-y, -1000px);
  left: var(--mouse-x, -1000px);
  width: 500px;
  height: 500px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.spotlight-card:hover::before { opacity: 1; }

.spotlight-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 25px rgba(16, 185, 129, 0.08);
}

.card-top-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.card-sys-id {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.card-metrics-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.card-header-group h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-main);
  margin-bottom: 4px;
}

.card-header-group .sys-sub {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 18px;
  display: block;
}

.card-description {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Engineering Feature Highlights */
.spec-bullet-list {
  list-style: none;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 18px 0;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spec-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.spec-bullet-item svg {
  width: 17px;
  height: 17px;
  color: var(--accent-emerald);
  flex-shrink: 0;
  margin-top: 2px;
}

.spec-bullet-item strong {
  color: var(--text-main);
  font-weight: 600;
}

.card-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.tag-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  border: 1px solid var(--border-subtle);
  padding: 3px 9px;
  border-radius: 4px;
}

.tag-pill.active {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.15);
}

/* ============================================================
   OPEN SOURCE REPOS
   ============================================================ */
.oss-container-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.oss-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.oss-box:hover {
  border-color: var(--border-glass);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.oss-repo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.oss-title-link {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.oss-title-link svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.oss-license-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.oss-desc-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 22px;
}

.oss-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.oss-meta-tags {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.oss-action-btn {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.oss-action-btn:hover {
  color: var(--accent-emerald);
}

/* ============================================================
   ENGINEERING TRANSITION & PHILOSOPHY
   ============================================================ */
.philosophy-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
}

.philosophy-essay p {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 20px;
}

.philosophy-essay strong {
  color: var(--text-main);
}

.matrix-comparison {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 28px;
}

.matrix-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13.5px;
}

.matrix-row:last-child { border-bottom: none; }

.matrix-head {
  background: rgba(255, 255, 255, 0.02);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
}

.matrix-body {
  padding: 16px 20px;
  color: var(--text-muted);
}

.matrix-body strong {
  color: var(--accent-emerald);
}

/* Timeline Track */
.stepper-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
}

.stepper-timeline::before {
  content: "";
  position: absolute;
  left: 110px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: var(--border-glass);
}

.stepper-step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 34px;
  position: relative;
}

.stepper-date {
  width: 90px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent-emerald);
  flex-shrink: 0;
  margin-top: 2px;
}

.stepper-pip {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--accent-emerald);
  margin: 6px 16px 0 16px;
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.stepper-body {
  flex: 1;
}

.stepper-body h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 5px;
}

.stepper-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   CONTACT & PLATFORM MATRIX
   ============================================================ */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

.platform-link-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.platform-link-card:hover {
  border-color: var(--border-glass);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.platform-glyph {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

.platform-details h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 3px;
}

.platform-details p {
  font-size: 12px;
  color: var(--text-dim);
}

.platform-arrow {
  margin-left: auto;
  color: var(--text-dim);
  opacity: 0.3;
  transition: all 0.2s ease;
}

.platform-link-card:hover .platform-arrow {
  opacity: 1;
  color: var(--accent-emerald);
  transform: translateX(3px);
}

/* Commission Banner */
.coop-dock {
  background: linear-gradient(135deg, rgba(13, 20, 36, 0.95), rgba(8, 13, 26, 0.95));
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 36px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  align-items: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.coop-left h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
}

.coop-left p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 22px;
}

.coop-bullets {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.coop-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 7px 14px;
  border-radius: 6px;
  color: var(--text-muted);
}

.coop-right {
  display: flex;
  align-items: center;
  gap: 22px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px;
}

.wechat-box {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  background: #FFF;
  padding: 4px;
  flex-shrink: 0;
}

.wechat-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.wechat-meta h4 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.wechat-meta p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 8px;
}

.wechat-id-badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-block;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 56px 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  font-size: 13px;
  color: var(--text-dim);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  font-weight: 700;
  color: var(--text-main);
  font-size: 15px;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid, .philosophy-split, .coop-dock { grid-template-columns: 1fr; gap: 40px; }
  .platform-grid, .stats-hud-strip { grid-template-columns: repeat(2, 1fr); }
  .sandbox-split { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .systems-grid, .oss-container-grid { grid-template-columns: 1fr; }
  .nav-menu { display: none; }
  .stepper-timeline::before { left: 80px; }
  .stepper-date { width: 65px; font-size: 12px; }
  .platform-grid { grid-template-columns: 1fr; }
  .coop-right { flex-direction: column; text-align: center; }
}
/* ---- 平板/移动端适配：实测台纵向 + 按钮全宽 ---- */
@media (max-width: 1024px) {
  .flow-track { flex-direction: column; align-items: stretch; gap: 6px; overflow-x: visible; }
  .flow-arrow { transform: rotate(90deg); justify-content: center; padding: 2px 0; }
  .flow-node { min-width: 0; }
}
@media (max-width: 768px) {
  .sandbox-action-row { flex-direction: column; }
  .sandbox-action-row .btn-ctrl { width: 100%; justify-content: center; white-space: nowrap; }
  .sandbox-controls h4, .sandbox-telemetry h4 { flex-direction: column; align-items: flex-start; gap: 4px; }
  .arch-tab-strip { overflow-x: auto; }
  .arch-tab-btn { white-space: nowrap; }
  .status-indicator-box { font-size: 11px; }
  .hero-tag-strip { font-size: 10.5px; }
  .project-window-title { gap: 8px; }
  .pw-id { display: none; }
}


/* ---- 持久化动效：状态机循环指示器 ---- */
.state-machine-loop {
  background: rgba(3,7,18,0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 24px;
}
.sml-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}
.sml-track {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.sml-node {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(148,163,184,0.06);
  color: var(--text-dim);
  border: 1px solid transparent;
  transition: all 0.3s;
}
.sml-node.active {
  background: rgba(16,185,129,0.12);
  color: var(--accent-emerald);
  border-color: rgba(16,185,129,0.4);
  box-shadow: 0 0 12px rgba(16,185,129,0.15);
}
.sml-arrow { color: var(--text-dim); font-size: 11px; }
.sml-current { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.sml-state-text { color: var(--accent-emerald); font-weight: 600; }

/* ---- 持久化动效：卡片呼吸边框 ---- */
.spotlight-card {
  animation: card-glow 3s ease-in-out infinite;
}
.spotlight-card:hover { animation-play-state: paused; }
@keyframes card-glow {
  0%, 100% { box-shadow: 0 4px 24px rgba(0,0,0,0.35), 0 0 0 1px rgba(16,185,129,0.18), 0 0 18px rgba(16,185,129,0.06); }
  50% { box-shadow: 0 4px 24px rgba(0,0,0,0.35), 0 0 0 1.5px rgba(16,185,129,0.55), 0 0 32px rgba(16,185,129,0.18); }
}
@media (max-width: 768px) {
  .sml-track { gap: 4px; }
  .sml-node { font-size: 10.5px; padding: 3px 7px; }
}


/* ---- 持久化动效：平台图标呼吸 ---- */
.platform-glyph {
  animation: icon-breathe 3s ease-in-out infinite;
  transition: transform 0.2s;
}
.platform-link-card:hover .platform-glyph {
  animation-play-state: paused;
  transform: scale(1.1);
}
@keyframes icon-breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 var(--glow, rgba(255,255,255,0)); }
  50% { transform: scale(1.06); box-shadow: 0 0 16px 3px var(--glow, rgba(255,255,255,0.2)); }
}

/* ---- 持久化动效：标题文字渐变流动 ---- */
.section-h2 {
  background: linear-gradient(90deg, var(--text-main) 0%, #34D399 35%, var(--accent-emerald) 50%, #34D399 65%, var(--text-main) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: title-gradient-flow 5s ease-in-out infinite;
}
@keyframes title-gradient-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---- 持久化动效：眉标文字+方块呼吸 ---- */
.section-kicker {
  animation: kicker-text-pulse 2s ease-in-out infinite;
}
.section-kicker::before {
  animation: kicker-pulse 2s ease-in-out infinite;
  display: inline-block;
}
@keyframes kicker-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}
@keyframes kicker-text-pulse {
  0%, 100% { opacity: 1; letter-spacing: 1.5px; }
  50% { opacity: 0.55; letter-spacing: 2.5px; }
}

/* ---- 持久化动效：关键字颜色呼吸+微缩放 ---- */
.spec-bullet-item strong, .card-description strong, .hero-statement strong, .stepper-body strong, .stepper-body h4 {
  animation: keyword-color-pulse 3s ease-in-out infinite;
  display: inline-block;
}
@keyframes keyword-color-pulse {
  0%, 100% { color: var(--text-main); transform: scale(1); }
  50% { color: var(--accent-emerald); transform: scale(1.03); }
}


/* ============================================================
   PROJECT DETAIL OVERLAY (项目专区)
   ============================================================ */
.project-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.project-overlay-bg {
  position: absolute; inset: 0;
  background: rgba(2, 6, 16, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: overlayFadeIn .25s ease;
}
@keyframes overlayFadeIn { from { opacity: 0; } to { opacity: 1; } }
.project-window {
  position: relative; z-index: 1;
  width: 100%; max-width: 1200px; height: 90vh; max-height: 900px;
  background: var(--bg-deep, #030712);
  border: 1px solid var(--border-subtle, rgba(148,163,184,0.15));
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(16,185,129,0.08);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: windowSlideUp .3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes windowSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.project-window.closing {
  animation: windowSlideDown .2s ease forwards;
}
@keyframes windowSlideDown {
  to { opacity: 0; transform: translateY(20px) scale(0.98); }
}
.project-window-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px;
  background: rgba(8, 15, 30, 0.95);
  border-bottom: 1px solid var(--border-subtle, rgba(148,163,184,0.12));
  flex-shrink: 0;
}
.project-window-title {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono, monospace);
}
.pw-id {
  font-size: 11px; color: var(--accent-cyan, #22d3ee);
  background: rgba(34,211,238,0.08);
  padding: 3px 8px; border-radius: 4px;
  border: 1px solid rgba(34,211,238,0.2);
  letter-spacing: 0.5px;
}
.pw-name {
  font-size: 16px; font-weight: 700; color: var(--text-primary, #f1f5f9);
  letter-spacing: 0.3px;
}
.pw-status {
  font-size: 11px; color: var(--accent-emerald, #10b981);
  background: rgba(16,185,129,0.08);
  padding: 3px 10px; border-radius: 12px;
  border: 1px solid rgba(16,185,129,0.2);
}
.project-window-close {
  width: 32px; height: 32px;
  background: transparent; border: 1px solid var(--border-subtle, rgba(148,163,184,0.2));
  border-radius: 6px; color: var(--text-dim, #64748b);
  font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.project-window-close:hover {
  background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3);
  color: #ef4444;
}
.project-window-body {
  display: flex; flex: 1; overflow: hidden;
}
.project-anchor-nav {
  width: 180px; flex-shrink: 0;
  padding: 28px 0;
  border-right: 1px solid var(--border-subtle, rgba(148,163,184,0.1));
  background: rgba(5, 10, 22, 0.5);
  display: flex; flex-direction: column; gap: 2px;
  overflow-y: auto;
}
.anchor-link {
  display: block; padding: 10px 22px;
  font-family: var(--font-mono, monospace);
  font-size: 12px; color: var(--text-dim, #64748b);
  text-decoration: none; cursor: pointer;
  border-left: 2px solid transparent;
  transition: all .2s;
  letter-spacing: 0.3px;
}
.anchor-link:hover {
  color: var(--text-primary, #f1f5f9);
  background: rgba(148,163,184,0.04);
}
.anchor-link.active {
  color: var(--accent-emerald, #10b981);
  border-left-color: var(--accent-emerald, #10b981);
  background: rgba(16,185,129,0.05);
}
.project-content {
  flex: 1; overflow-y: auto;
  padding: 32px 40px 60px;
  scroll-behavior: smooth;
}
.project-content::-webkit-scrollbar { width: 6px; }
.project-content::-webkit-scrollbar-track { background: transparent; }
.project-content::-webkit-scrollbar-thumb { background: rgba(148,163,184,0.2); border-radius: 3px; }
.pw-section { margin-bottom: 48px; scroll-margin-top: 20px; }
.pw-section-title {
  font-family: var(--font-mono, monospace);
  font-size: 11px; color: var(--accent-cyan, #22d3ee);
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.pw-section-title::before {
  content: ''; width: 20px; height: 1px;
  background: var(--accent-cyan, #22d3ee);
}
.pw-section-h2 {
  font-size: 24px; font-weight: 700; color: var(--text-primary, #f1f5f9);
  margin-bottom: 16px; letter-spacing: -0.3px;
}
.pw-lead {
  font-size: 14px; color: var(--text-muted, #94a3b8);
  line-height: 1.8; margin-bottom: 24px;
  max-width: 720px;
}
.pw-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-bottom: 28px;
}
.pw-stat-card {
  background: rgba(13, 20, 36, 0.5);
  border: 1px solid var(--border-subtle, rgba(148,163,184,0.12));
  border-radius: 10px; padding: 16px;
}
.pw-stat-value {
  font-family: var(--font-mono, monospace);
  font-size: 22px; font-weight: 700;
  color: var(--accent-emerald, #10b981);
  margin-bottom: 4px;
}
.pw-stat-label {
  font-size: 11px; color: var(--text-dim, #64748b);
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.5px;
}
.pw-arch-diagram {
  background: rgba(3, 7, 18, 0.8);
  border: 1px solid var(--border-subtle, rgba(148,163,184,0.12));
  border-radius: 10px; padding: 24px;
  margin-bottom: 20px;
  font-family: var(--font-mono, monospace);
  font-size: 12px; line-height: 1.9;
  color: var(--text-muted, #94a3b8);
  overflow-x: auto;
  white-space: pre;
}
.pw-arch-layer {
  display: flex; align-items: stretch; gap: 12px;
  margin-bottom: 10px;
}
.pw-layer-tag {
  width: 50px; flex-shrink: 0;
  font-family: var(--font-mono, monospace);
  font-size: 11px; font-weight: 700;
  color: var(--accent-cyan, #22d3ee);
  display: flex; align-items: center; justify-content: center;
  background: rgba(34,211,238,0.06);
  border: 1px solid rgba(34,211,238,0.15);
  border-radius: 6px;
}
.pw-layer-content {
  flex: 1;
  background: rgba(13, 20, 36, 0.4);
  border: 1px solid var(--border-subtle, rgba(148,163,184,0.1));
  border-radius: 6px; padding: 12px 16px;
}
.pw-layer-name {
  font-weight: 600; color: var(--text-primary, #f1f5f9);
  font-size: 13px; margin-bottom: 4px;
}
.pw-layer-desc {
  font-size: 12px; color: var(--text-muted, #94a3b8);
  line-height: 1.6;
}
.pw-design-decision {
  background: rgba(16,185,129,0.04);
  border-left: 3px solid var(--accent-emerald, #10b981);
  padding: 14px 18px; border-radius: 0 8px 8px 0;
  margin-bottom: 14px;
}
.pw-decision-title {
  font-weight: 600; color: var(--accent-emerald, #10b981);
  font-size: 13px; margin-bottom: 6px;
}
.pw-decision-body {
  font-size: 13px; color: var(--text-muted, #94a3b8);
  line-height: 1.75;
}
.pw-pitfall-card {
  background: rgba(13, 20, 36, 0.5);
  border: 1px solid var(--border-subtle, rgba(148,163,184,0.12));
  border-radius: 10px; padding: 20px;
  margin-bottom: 14px;
  transition: border-color .2s;
}
.pw-pitfall-card:hover {
  border-color: rgba(251,191,36,0.3);
}
.pw-pitfall-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.pw-pitfall-id {
  font-family: var(--font-mono, monospace);
  font-size: 10px; font-weight: 700;
  color: var(--accent-amber, #fbbf24);
  background: rgba(251,191,36,0.08);
  padding: 3px 8px; border-radius: 4px;
  border: 1px solid rgba(251,191,36,0.2);
  letter-spacing: 0.5px;
}
.pw-pitfall-title {
  font-weight: 600; color: var(--text-primary, #f1f5f9);
  font-size: 14px;
}
.pw-pitfall-row {
  margin-bottom: 8px; font-size: 12.5px; line-height: 1.7;
}
.pw-pitfall-label {
  font-family: var(--font-mono, monospace);
  font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  margin-right: 8px;
}
.pw-pitfall-row.phenomenon .pw-pitfall-label { color: #f87171; }
.pw-pitfall-row.rootcause .pw-pitfall-label { color: #fbbf24; }
.pw-pitfall-row.solution .pw-pitfall-label { color: #10b981; }
.pw-pitfall-row.lesson .pw-pitfall-label { color: #22d3ee; }
.pw-pitfall-text { color: var(--text-muted, #94a3b8); }
.pw-tech-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.pw-tech-group {
  background: rgba(13, 20, 36, 0.5);
  border: 1px solid var(--border-subtle, rgba(148,163,184,0.12));
  border-radius: 10px; padding: 18px;
}
.pw-tech-group-title {
  font-family: var(--font-mono, monospace);
  font-size: 11px; color: var(--accent-cyan, #22d3ee);
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 12px;
}
.pw-tech-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pw-tech-tag {
  font-family: var(--font-mono, monospace);
  font-size: 11px; color: var(--text-muted, #94a3b8);
  background: rgba(148,163,184,0.06);
  border: 1px solid rgba(148,163,184,0.12);
  padding: 4px 10px; border-radius: 4px;
}
.pw-enter-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px;
  font-family: var(--font-mono, monospace);
  font-size: 12px; color: var(--accent-emerald, #10b981);
  text-decoration: none; cursor: pointer;
  border: 1px solid rgba(16,185,129,0.25);
  padding: 8px 16px; border-radius: 6px;
  background: rgba(16,185,129,0.04);
  transition: all .2s;
  animation: pw-btn-pulse 3s ease-in-out infinite;
}
.pw-enter-btn:hover {
  background: rgba(16,185,129,0.15);
  border-color: rgba(16,185,129,0.7);
  animation-play-state: paused;
  box-shadow: 0 0 28px rgba(16,185,129,0.4), inset 0 0 14px rgba(16,185,129,0.1);
}
.pw-enter-btn svg { flex-shrink: 0; }
.card-footer { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.card-footer .pw-enter-btn { margin-top: 0; }
.pw-experience-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 12px; font-weight: 600; color: #0a0a0a;
  text-decoration: none; cursor: pointer;
  border: 1px solid rgba(245,158,11,0.6);
  padding: 8px 16px; border-radius: 6px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  transition: all .2s;
  box-shadow: 0 0 16px rgba(245,158,11,0.25);
}
.pw-experience-btn:hover {
  box-shadow: 0 0 28px rgba(245,158,11,0.5);
  transform: translateY(-1px);
}
.pw-demo-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 12px; font-weight: 600; color: #0a0a0a;
  text-decoration: none; cursor: pointer;
  border: 1px solid rgba(56,189,248,0.6);
  padding: 8px 16px; border-radius: 6px;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  transition: all .2s;
  box-shadow: 0 0 16px rgba(56,189,248,0.25);
}
.pw-demo-btn:hover {
  box-shadow: 0 0 28px rgba(56,189,248,0.5);
  transform: translateY(-1px);
}
.pw-github-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 12px; color: var(--text-primary, #e2e8f0);
  text-decoration: none; cursor: pointer;
  border: 1px solid rgba(148,163,184,0.3);
  padding: 8px 16px; border-radius: 6px;
  background: rgba(148,163,184,0.06);
  transition: all .2s;
}
.pw-github-btn:hover {
  background: rgba(148,163,184,0.15);
  border-color: rgba(148,163,184,0.6);
}
.platform-group-label {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 8px;
  font-family: var(--font-mono, monospace);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary, #e2e8f0);
  letter-spacing: 2px;
}
.platform-group-label::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--accent-emerald, #10b981);
  border-radius: 2px;
  flex-shrink: 0;
}
.platform-group-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(148,163,184,0.25), transparent);
}
@keyframes pw-btn-pulse {
  0%, 100% {
    border-color: rgba(16,185,129,0.2);
    background: rgba(16,185,129,0.03);
    box-shadow: 0 0 0 rgba(16,185,129,0), inset 0 0 0 rgba(16,185,129,0);
    color: rgba(16,185,129,0.65);
    transform: scale(1);
  }
  50% {
    border-color: rgba(16,185,129,0.85);
    background: rgba(16,185,129,0.14);
    box-shadow: 0 0 26px rgba(16,185,129,0.4), inset 0 0 12px rgba(16,185,129,0.09);
    color: rgba(16,185,129,1);
    transform: scale(1.02);
  }
}

@media (max-width: 768px) {
  .project-overlay { padding: 0; }
  .project-window { height: 100vh; max-height: 100vh; border-radius: 0; }
  .project-window-body { flex-direction: column; }
  .project-anchor-nav {
    width: 100%; flex-direction: row;
    padding: 10px 16px; overflow-x: auto;
    border-right: none; border-bottom: 1px solid var(--border-subtle);
  }
  .anchor-link {
    border-left: none; border-bottom: 2px solid transparent;
    padding: 8px 14px; white-space: nowrap;
  }
  .anchor-link.active { border-left: none; border-bottom-color: var(--accent-emerald); }
  .project-content { padding: 24px 20px 40px; }
  .pw-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pw-tech-grid { grid-template-columns: 1fr; }
}

