:root {
  --bg-primary: #080b12;
  --bg-secondary: #0e1424;
  --bg-card: rgba(18, 26, 44, 0.72);
  --bg-card-hover: rgba(26, 38, 64, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(147, 95, 255, 0.35);
  --border-cyan: rgba(0, 195, 255, 0.35);
  
  --text-main: #f3f4f6;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --ae-purple: #9d4edd;
  --ae-glow: #7b2cbf;
  --ae-gradient: linear-gradient(135deg, #b5179e 0%, #7209b7 50%, #4361ee 100%);
  
  --ps-blue: #00b4d8;
  --ps-glow: #0077b6;
  --ps-gradient: linear-gradient(135deg, #0077b6 0%, #0096c7 50%, #48cae4 100%);
  
  --creative-gradient: linear-gradient(135deg, #7038ff 0%, #00b4d8 50%, #00f0ff 100%);
  --agent-emerald: #10b981;
  --agent-glow: rgba(16, 185, 129, 0.4);
  
  --terminal-bg: #070a10;
  --terminal-bar: #101726;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Consolas, Monaco, monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-glow: 0 0 35px rgba(112, 56, 255, 0.25);
  --shadow-cyan: 0 0 35px rgba(0, 180, 216, 0.25);
  --transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

.nowrap {
  white-space: nowrap;
}

/* Background canvas for motion particle grid */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* Ambient Radial Glows */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.38;
}

.ambient-purple {
  top: 10%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #7209b7, transparent 70%);
}

.ambient-cyan {
  top: 45%;
  right: -10%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, #0077b6, transparent 70%);
}

.ambient-bottom {
  bottom: -15%;
  left: 30%;
  width: 700px;
  height: 500px;
  background: radial-gradient(circle, #4361ee, transparent 70%);
  opacity: 0.25;
}

/* Layout container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Glass panel mixin */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.glass:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(8, 11, 18, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-main);
}

.app-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.5px;
  box-shadow: 0 0 12px rgba(0,0,0,0.5);
  user-select: none;
}

.app-badge.ae {
  background: #00005b;
  color: #9999ff;
  border: 1.5px solid #9999ff;
  box-shadow: 0 0 14px rgba(153, 153, 255, 0.4);
}

.app-badge.ps {
  background: #001e36;
  color: #31a8ff;
  border: 1.5px solid #31a8ff;
  box-shadow: 0 0 14px rgba(49, 168, 255, 0.4);
}

.badge-plus {
  font-weight: 700;
  color: var(--text-dim);
  font-size: 13px;
}

.badge-mcp {
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  background: linear-gradient(90deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: #fff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Language Toggle Button */
.lang-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.github-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.github-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.github-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(112, 56, 255, 0.12);
  border: 1px solid rgba(112, 56, 255, 0.3);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 28px;
  font-size: 13px;
  color: #c4b5fd;
  backdrop-filter: blur(10px);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.gradient-text {
  background: var(--creative-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 0 30px rgba(112, 56, 255, 0.3));
}

.hero-desc {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
  max-width: 820px;
  margin: 0 auto 38px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--creative-gradient);
  color: #fff;
  box-shadow: 0 4px 25px rgba(112, 56, 255, 0.4);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 35px rgba(0, 180, 216, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Quick Status Strip */
.quick-status-strip {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  background: rgba(14, 20, 36, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 10px 24px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.quick-status-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.quick-status-strip code {
  font-family: var(--font-mono);
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Interactive Architecture Section */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #38bdf8;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
}

/* Architecture Diagram Visual */
.arch-diagram-card {
  padding: 36px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(14, 20, 36, 0.85) 0%, rgba(9, 13, 22, 0.95) 100%);
  border: 1px solid rgba(112, 56, 255, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.arch-visual {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  position: relative;
}

.arch-node {
  background: rgba(18, 26, 44, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  transition: var(--transition);
}

.arch-node:hover {
  transform: translateY(-4px);
}

.arch-node.agent-node {
  border-color: rgba(16, 185, 129, 0.4);
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.15), rgba(18, 26, 44, 0.9) 70%);
}

.arch-node.mcp-node {
  border-color: rgba(112, 56, 255, 0.5);
  background: radial-gradient(circle at 50% 0%, rgba(112, 56, 255, 0.2), rgba(18, 26, 44, 0.9) 70%);
  box-shadow: 0 0 30px rgba(112, 56, 255, 0.25);
}

.arch-node.ae-node {
  border-color: rgba(153, 153, 255, 0.4);
  background: radial-gradient(circle at 50% 0%, rgba(112, 9, 183, 0.2), rgba(18, 26, 44, 0.9) 70%);
}

.arch-node.ps-node {
  border-color: rgba(49, 168, 255, 0.4);
  background: radial-gradient(circle at 50% 0%, rgba(0, 119, 182, 0.2), rgba(18, 26, 44, 0.9) 70%);
}

.node-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 20px;
  font-weight: 800;
}

.node-icon.agent {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid #10b981;
}

.node-icon.mcp {
  background: rgba(112, 56, 255, 0.2);
  color: #c4b5fd;
  border: 1px solid #8b5cf6;
}

.node-icon.ae {
  background: #00005b;
  color: #9999ff;
  border: 1px solid #9999ff;
}

.node-icon.ps {
  background: #001e36;
  color: #31a8ff;
  border: 1px solid #31a8ff;
}

.node-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.node-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.node-tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #38bdf8;
}

/* Connector wires */
.arch-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.wire {
  width: 60px;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.wire::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
  animation: wire-packet 1.8s infinite linear;
}

@keyframes wire-packet {
  0% { left: -100%; }
  100% { left: 200%; }
}

.connector-label {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-dim);
  margin-top: 8px;
  white-space: nowrap;
}

.dual-hosts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ==========================================================================
   THE PLAYGROUND: Visual Simulator & Timeline
   ========================================================================== */
.playground-wrapper {
  margin-top: 20px;
}

.scenario-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.scenario-btn {
  background: rgba(18, 26, 44, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.scenario-btn:hover {
  background: rgba(30, 42, 70, 0.9);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.scenario-btn.active {
  background: rgba(112, 56, 255, 0.25);
  border-color: #8b5cf6;
  color: #fff;
  box-shadow: 0 0 15px rgba(112, 56, 255, 0.3);
}

/* 3-Column Simulator Board */
.simulator-board {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.3fr;
  gap: 18px;
}

@media (max-width: 1024px) {
  .simulator-board {
    grid-template-columns: 1fr;
  }
}

/* Common App Window styling */
.app-window {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.window-header {
  background: rgba(14, 20, 36, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.window-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.window-tag {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Photoshop Mock View */
.ps-viewport {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #090c14;
  min-height: 380px;
}

.psd-canvas-preview {
  background: #131a2b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-image: 
    linear-gradient(45deg, #0e1424 25%, transparent 25%), 
    linear-gradient(-45deg, #0e1424 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, #0e1424 75%), 
    linear-gradient(-45deg, transparent 75%, #0e1424 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.psd-text-box {
  background: rgba(0, 0, 0, 0.65);
  border: 1.5px dashed #38bdf8;
  padding: 12px 24px;
  border-radius: 6px;
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.psd-text-box.active-pulse {
  animation: box-glow 1s ease-in-out;
}

@keyframes box-glow {
  0%, 100% { border-color: #38bdf8; }
  50% { border-color: #f43f5e; box-shadow: 0 0 20px rgba(244, 63, 94, 0.6); }
}

.psd-main-text {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.psd-sub-text {
  font-size: 11px;
  color: #38bdf8;
  margin-top: 4px;
  font-family: var(--font-mono);
}

.psd-layer-tree {
  flex: 1;
  background: rgba(14, 20, 36, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 8px;
  font-size: 12px;
}

.tree-header {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 6px;
  padding-left: 6px;
}

.layer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 4px;
  color: var(--text-muted);
  transition: var(--transition);
}

.layer-item:hover, .layer-item.active {
  background: rgba(56, 189, 248, 0.12);
  color: #fff;
}

.layer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.layer-icon {
  font-size: 13px;
  color: #38bdf8;
}

.layer-type {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

/* Terminal Console View (Center) */
.terminal-window {
  background: var(--terminal-bg);
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.12);
}

.terminal-header {
  background: var(--terminal-bar);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mac-dots {
  display: flex;
  gap: 6px;
}

.mac-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mac-dot.red { background: #ff5f56; }
.mac-dot.yellow { background: #ffbd2e; }
.mac-dot.green { background: #27c93f; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #34d399;
  font-weight: 600;
}

.terminal-body {
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  min-height: 380px;
  max-height: 440px;
  overflow-y: auto;
  color: #e2e8f0;
}

.term-line {
  margin-bottom: 6px;
  word-break: break-all;
}

.term-agent { color: #34d399; font-weight: 700; }
.term-mcp { color: #818cf8; }
.term-ae { color: #c084fc; }
.term-ps { color: #38bdf8; }
.term-json { color: #fde047; }
.term-success { color: #4ade80; font-weight: 600; }

.term-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: #34d399;
  vertical-align: middle;
  animation: term-blink 1s infinite;
}

@keyframes term-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* After Effects Mock View (Right) */
.ae-viewport {
  background: #090c14;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 380px;
}

.ae-comp-preview {
  background: #101626;
  border: 1px solid rgba(157, 78, 221, 0.3);
  border-radius: 8px;
  height: 180px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comp-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: #c77dff;
  background: rgba(0, 0, 0, 0.6);
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
}

.comp-element {
  text-align: center;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.comp-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 20px rgba(157, 78, 221, 0.8);
}

.comp-subtitle {
  font-size: 12px;
  color: #cbd5e1;
  margin-top: 4px;
}

/* After Effects Timeline UI */
.ae-timeline {
  background: #0d121f;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 10px;
}

.timeline-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.timecode {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #93c5fd;
  font-weight: 700;
}

.timeline-controls {
  display: flex;
  gap: 6px;
}

.tl-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.tl-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.timeline-track-container {
  position: relative;
  height: 60px;
  background: #080b12;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
  cursor: pointer;
}

.timeline-ruler {
  height: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 9px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  line-height: 18px;
}

.timeline-layers {
  position: relative;
  height: 42px;
  padding: 4px 0;
}

.layer-bar {
  position: absolute;
  height: 14px;
  background: rgba(157, 78, 221, 0.5);
  border: 1px solid #c77dff;
  border-radius: 3px;
  font-size: 9px;
  color: #fff;
  padding: 0 6px;
  display: flex;
  align-items: center;
  line-height: 1;
}

.layer-bar.psd-source {
  top: 4px;
  left: 5%;
  width: 85%;
  background: rgba(0, 180, 216, 0.4);
  border-color: #38bdf8;
}

.layer-bar.fx-track {
  top: 22px;
  left: 15%;
  width: 70%;
  background: rgba(157, 78, 221, 0.5);
  border-color: #c77dff;
}

.keyframe-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #facc15;
  transform: rotate(45deg);
  border-radius: 1px;
  top: 2px;
}

.playhead {
  position: absolute;
  top: 0;
  left: 25%;
  width: 2px;
  height: 100%;
  background: #ef4444;
  z-index: 10;
  transition: left 0.05s linear;
}

.playhead-head {
  position: absolute;
  top: 0;
  left: -5px;
  width: 12px;
  height: 10px;
  background: #ef4444;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* ==========================================================================
   TOOLS EXPLORER SECTION
   ========================================================================== */
.tools-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.tool-tab {
  background: rgba(18, 26, 44, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}

.tool-tab:hover {
  color: #fff;
  background: rgba(30, 42, 70, 0.8);
}

.tool-tab.active {
  background: rgba(112, 56, 255, 0.2);
  border-color: #8b5cf6;
  color: #fff;
  box-shadow: 0 0 15px rgba(112, 56, 255, 0.3);
}

.tool-details-card {
  padding: 30px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .tool-details-card {
    grid-template-columns: 1fr;
  }
}

.tool-info-pane h3 {
  font-size: 22px;
  font-family: var(--font-mono);
  color: #38bdf8;
  margin-bottom: 10px;
}

.tool-desc {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.param-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 20px;
}

.param-table th, .param-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.param-table th {
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
}

.param-name {
  font-family: var(--font-mono);
  color: #c77dff;
}

.param-type {
  font-family: var(--font-mono);
  color: #38bdf8;
  font-size: 11px;
}

.code-preview-pane {
  background: var(--terminal-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #cbd5e1;
  overflow-x: auto;
  position: relative;
}

.code-copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  transition: var(--transition);
}

.code-copy-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

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

@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  padding: 30px;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}

.feature-card:nth-child(1) .feature-icon-box {
  background: rgba(157, 78, 221, 0.18);
  color: #c77dff;
  border: 1px solid rgba(157, 78, 221, 0.4);
}

.feature-card:nth-child(2) .feature-icon-box {
  background: rgba(0, 180, 216, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(0, 180, 216, 0.4);
}

.feature-card:nth-child(3) .feature-icon-box {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.feature-card:nth-child(4) .feature-icon-box {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.feature-card:nth-child(5) .feature-icon-box {
  background: rgba(244, 63, 94, 0.18);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.4);
}

.feature-card:nth-child(6) .feature-icon-box {
  background: rgba(168, 85, 247, 0.18);
  color: #e879f9;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.feature-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

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

/* ==========================================================================
   CONFIG & QUICKSTART GUIDE
   ========================================================================== */
.config-box {
  background: var(--terminal-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 30px;
}

.config-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(14, 20, 36, 0.95);
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.config-tabs {
  display: flex;
  gap: 8px;
}

.config-tab-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.config-tab-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.config-code-view {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #e2e8f0;
  overflow-x: auto;
  line-height: 1.6;
}

/* Steps workflow */
.steps-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

@media (max-width: 992px) {
  .steps-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .steps-container {
    grid-template-columns: 1fr;
  }
}

.step-card {
  background: rgba(14, 20, 36, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
}

.step-number {
  font-size: 12px;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 12px;
  display: inline-block;
  background: rgba(56, 189, 248, 0.12);
  padding: 4px 10px;
  border-radius: 4px;
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.step-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 40px;
  background: rgba(5, 7, 12, 0.95);
  margin-top: 60px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}

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

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.footer-link:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 24px;
}

/* Toast notification */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(16, 185, 129, 0.95);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   PROMINENT REPO DISPLAY & AI AGENT INGESTION SECTION
   ========================================================================== */
.hero-repo-card {
  max-width: 780px;
  margin: 0 auto 34px;
  background: rgba(13, 19, 33, 0.9);
  border: 1px solid rgba(112, 56, 255, 0.4);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(112, 56, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.repo-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
}

.repo-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.repo-icon-svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.repo-full-url {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.repo-full-url:hover {
  color: #38bdf8;
  text-decoration: underline;
}

.repo-meta-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.repo-tag-badge {
  font-size: 11px;
  font-family: var(--font-mono);
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
}

.repo-clone-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #060910;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #a5b4fc;
  gap: 10px;
}

.clone-text {
  overflow-x: auto;
  white-space: nowrap;
  user-select: all;
}

.clone-prefix {
  color: #34d399;
  user-select: none;
  margin-right: 6px;
}

.repo-copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-family: var(--font-sans);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.repo-copy-btn:hover {
  background: rgba(112, 56, 255, 0.4);
  border-color: #8b5cf6;
}

/* AI Agent Ingest Banner Section */
.ai-ingest-container {
  margin: 0 auto 50px;
  max-width: 1000px;
}

.ai-ingest-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(14, 20, 36, 0.85) 50%, rgba(112, 56, 255, 0.08) 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 30px rgba(16, 185, 129, 0.15);
}

.ai-ingest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.ai-ingest-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-icon-pulse {
  font-size: 24px;
}

.ai-ingest-title {
  font-size: 18px;
  font-weight: 800;
  color: #34d399;
}

.ai-ingest-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ai-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-family: var(--font-mono);
  text-decoration: none;
  transition: var(--transition);
}

.ai-pill-link:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
  color: #fff;
}

.ai-prompt-box {
  background: #050810;
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ai-prompt-text {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
  user-select: all;
}

.ai-prompt-copy-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.ai-prompt-copy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

