:root {
  --bg-primary: #0a0a0c;
  --bg-secondary: #121216;
  --bg-card: #18181f;
  --bg-card-hover: #20202a;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: #38bdf8;
  --accent-cyan: #38bdf8;
  --accent-blue: #3b82f6;
  --accent-purple: #a855f7;
  --accent-module: #4ec9b0;
  --accent-service: #569cd6;
  --accent-function: #dcdcaa;
  --accent-external: #c586c0;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Background Glowing Grid Pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Navigation */
nav {
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(10, 10, 12, 0.75);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  padding: 16px 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
}

.btn-nav-install {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-nav-install:hover {
  background: var(--accent-cyan);
  color: #000;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

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

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-weight: 500;
  margin-bottom: 24px;
}

.badge-pill span.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  max-width: 900px;
  margin: 0 auto 20px;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1 span.gradient {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Quick Install Box */
.install-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(24, 24, 31, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #e2e8f0;
}

.install-box code {
  color: #38bdf8;
}

.btn-copy {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.btn-copy:hover {
  color: #fff;
}

/* Interactive Demo Showcase */
.demo-section {
  padding: 20px 0 80px;
}

.demo-window {
  background: #121216;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.demo-titlebar {
  background: #18181f;
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.window-controls {
  display: flex;
  gap: 8px;
}

.window-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

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

.demo-tab-group {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  padding: 3px;
  border-radius: 6px;
  gap: 4px;
}

.demo-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.demo-tab.active {
  background: #2a2a35;
  color: #fff;
}

/* Extension Native Toolbar */
.ext-toolbar {
  background: #18181f;
  border-bottom: 1px solid #2d2d35;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  font-size: 11.5px;
}

.ext-toolbar-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #e2e4e9;
  padding: 4px 9px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.ext-toolbar-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.ext-toolbar-btn.active {
  background: rgba(0, 120, 212, 0.22);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.45);
}

.ext-toolbar-separator {
  width: 1px;
  height: 18px;
  background: #3d3d45;
  margin: 0 4px;
  flex-shrink: 0;
}

.ext-focus-badge {
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 2px 9px;
  border-radius: 4px;
  font-size: 11px;
  margin-left: 4px;
  animation: fadeIn 0.2s ease;
}

.ext-focus-badge.visible {
  display: inline-flex;
}

.focus-badge-title {
  font-weight: 600;
  color: #ffffff;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.focus-badge-counts {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-family: var(--font-mono);
}

.focus-incoming-dot {
  color: #4ade80;
  font-weight: 600;
}

.focus-outgoing-dot {
  color: #38bdf8;
  font-weight: 600;
}

/* Extension Canvas Viewport */
.demo-viewport {
  position: relative;
  min-height: 500px;
  background-color: #121214;
  background-image: radial-gradient(#2a2a32 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  padding: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  user-select: none;
}

.canvas-container {
  position: relative;
  min-width: 980px;
  width: 100%;
  min-height: 460px;
  transform-origin: 0 0;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1);
}

/* SVG Edges Layer */
.canvas-edges-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.canvas-edge {
  stroke: #969696;
  stroke-width: 2;
  stroke-dasharray: 5, 5;
  fill: none;
  transition: stroke 0.2s, stroke-width 0.2s, opacity 0.2s, filter 0.2s;
}

.canvas-edge.dimmed {
  opacity: 0.12 !important;
}

.canvas-edge.outgoing {
  stroke: #38bdf8 !important;
  stroke-width: 2.5 !important;
  filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.9));
  animation: edgeFlow 0.8s linear infinite;
  opacity: 1 !important;
}

.canvas-edge.incoming {
  stroke: #4ade80 !important;
  stroke-width: 2.5 !important;
  filter: drop-shadow(0 0 5px rgba(74, 222, 128, 0.9));
  animation: edgeFlow 0.8s linear infinite;
  opacity: 1 !important;
}

@keyframes edgeFlow {
  from { stroke-dashoffset: 20; }
  to { stroke-dashoffset: 0; }
}

/* Node Cards Layout */
.canvas-nodes-layer {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 460px;
}

/* Real Extension LLD Card Styles */
.lld-card {
  position: absolute;
  width: 260px;
  background: #28282d;
  border: 1px solid #3d3d45;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
  color: #e2e4e9;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.25s, opacity 0.2s, filter 0.2s;
}

.lld-card:hover {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65);
}

.lld-card.primary {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px #38bdf8, 0 8px 24px rgba(0, 0, 0, 0.6) !important;
  opacity: 1 !important;
}

.lld-card.connected {
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.5), 0 4px 16px rgba(0, 0, 0, 0.5) !important;
  opacity: 1 !important;
}

.lld-card.dimmed {
  opacity: 0.18 !important;
  filter: grayscale(40%);
}

/* Connection Handles */
.rf-handle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0078d4;
  border: 2px solid #28282d;
  z-index: 10;
  transition: transform 0.15s, background-color 0.15s;
}

.rf-handle-left {
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
}

.rf-handle-right {
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
}

.lld-card:hover .rf-handle {
  transform: translateY(-50%) scale(1.25);
  background: #38bdf8;
}

/* Card Header */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 6px 12px;
  gap: 8px;
}

.card-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.grip-dots {
  color: #9aa0aa;
  opacity: 0.5;
  font-size: 13px;
  cursor: grab;
  user-select: none;
  line-height: 1;
}

.type-badge {
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.6px;
  flex-shrink: 0;
}

.badge-module { color: #4ec9b0; background: rgba(78, 201, 176, 0.12); }
.badge-service { color: #569cd6; background: rgba(86, 156, 214, 0.12); }
.badge-function { color: #dcdcaa; background: rgba(220, 220, 170, 0.12); }
.badge-external { color: #c586c0; background: rgba(197, 134, 192, 0.12); }

.card-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #e2e4e9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.card-action-btn {
  background: none;
  border: none;
  color: #9aa0aa;
  cursor: pointer;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 12px;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.15s, color 0.15s;
}

.card-action-btn:hover {
  opacity: 1;
  color: #f14c4c;
  background: rgba(255, 255, 255, 0.08);
}

/* Card Body */
.card-content {
  padding: 6px 12px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.card-desc-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 11px;
  color: #9aa0aa;
  line-height: 1.4;
}

.card-field-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 5px;
  padding: 5px 8px;
}

.card-field-label {
  font-size: 8px;
  text-transform: uppercase;
  font-weight: 700;
  color: #9aa0aa;
  letter-spacing: 0.5px;
}

.card-field-value {
  font-size: 10.5px;
  color: #cbd5e1;
  font-family: var(--font-mono);
}

.tech-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #e2e4e9;
  font-weight: 500;
}

.tech-badge-row svg {
  width: 14px;
  height: 14px;
  color: #38bdf8;
}

/* React Flow UI Controls (Bottom-Left) */
.rf-controls-panel {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(24, 24, 28, 0.95);
  border: 1px solid #3d3d45;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  z-index: 20;
}

.rf-control-btn {
  background: transparent;
  border: none;
  border-bottom: 1px solid #3d3d45;
  color: #e2e4e9;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.rf-control-btn:last-child {
  border-bottom: none;
}

.rf-control-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #38bdf8;
}

/* MiniMap (Bottom-Right) */
.rf-minimap-panel {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 140px;
  height: 90px;
  background: #121214;
  border: 1px solid #3d3d45;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  z-index: 20;
  pointer-events: none;
}

.minimap-svg {
  width: 100%;
  height: 100%;
}

.minimap-node-module { fill: #4ec9b0; }
.minimap-node-service { fill: #569cd6; }
.minimap-node-function { fill: #dcdcaa; }
.minimap-node-external { fill: #c586c0; }
.minimap-mask {
  stroke: rgba(56, 189, 248, 0.5);
  stroke-width: 1;
  fill: rgba(56, 189, 248, 0.08);
}

/* JSON Viewer Mockup */
.json-mockup {
  display: none;
  width: 100%;
  max-width: 800px;
  background: #0d0d11;
  border-radius: 8px;
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #94a3b8;
  overflow-x: auto;
  line-height: 1.6;
}

.json-mockup.active {
  display: block;
}

.json-key { color: #569cd6; }
.json-str { color: #ce9178; }
.json-num { color: #b5cea8; }

/* Features Grid */
.features-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
}

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

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 30px;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-3px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Guardrails Rule Table */
.rules-section {
  padding: 60px 0 80px;
}

.rules-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 32px;
  overflow-x: auto;
}

.rules-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.rules-table th {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.rules-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* AI Agent Skills Section */
.agent-skills-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.06) 0%, transparent 60%);
}

.agent-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  color: #c084fc;
  font-weight: 600;
  margin-bottom: 20px;
}

.agent-logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 20px 0 40px;
}

.agent-logo-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #cbd5e1;
}

.terminal-card {
  background: #0d0d12;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
  max-width: 860px;
  margin: 32px auto 0;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.terminal-header {
  background: #17171e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-body {
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: #94a3b8;
  overflow-x: auto;
}

.term-cmd {
  color: #38bdf8;
  font-weight: 600;
}

.term-success {
  color: #4ade80;
}

.term-comment {
  color: #64748b;
}

/* Documentation Center & Docs Tab */
.docs-center-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
  background: rgba(14, 14, 18, 0.5);
}

.docs-tab-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.docs-nav-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.docs-nav-btn:hover {
  background: var(--bg-card-hover);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.docs-nav-btn.active {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
}

.docs-content-panel {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 36px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.25s ease;
}

.docs-content-panel.active {
  display: block;
}

.docs-content-panel h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.docs-content-panel p.subhead {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.docs-code-card {
  background: #0d0d12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin: 16px 0 24px;
  position: relative;
  overflow: hidden;
}

.docs-code-card-header {
  background: #15151c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.docs-code-copy-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-family: var(--font-sans);
  transition: color 0.15s;
}

.docs-code-copy-btn:hover {
  color: #fff;
}

.docs-code-content {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: #cbd5e1;
  overflow-x: auto;
}

.docs-prompt-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.docs-prompt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.docs-prompt-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #94a3b8;
  background: rgba(0, 0, 0, 0.4);
  padding: 10px 14px;
  border-radius: 6px;
  border-left: 3px solid #38bdf8;
}

/* Demo window docs view */
.demo-docs-view {
  display: none;
  width: 100%;
  max-width: 860px;
  background: #0d0d12;
  border-radius: 8px;
  padding: 24px;
  font-size: 13px;
  color: #cbd5e1;
  overflow-x: auto;
  line-height: 1.6;
}

.demo-docs-view.active {
  display: block;
}
.steps-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.step-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 28px;
  position: relative;
}

.step-num {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Call to Action Banner */
.cta-banner {
  margin: 60px auto 80px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 16px;
  padding: 50px 32px;
  text-align: center;
}

.cta-banner h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-banner p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 30px;
}

/* Star Promotions & Announcement Banner */
.announcement-banner {
  background: linear-gradient(90deg, rgba(234, 179, 8, 0.12) 0%, rgba(56, 189, 248, 0.12) 100%);
  border-bottom: 1px solid rgba(234, 179, 8, 0.25);
  padding: 8px 16px;
  font-size: 0.85rem;
  text-align: center;
  position: relative;
  z-index: 101;
}

.banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.banner-star-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(234, 179, 8, 0.2);
  border: 1px solid rgba(234, 179, 8, 0.5);
  color: #fef08a;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.banner-star-btn:hover {
  background: #eab308;
  color: #000;
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.6);
  transform: translateY(-1px);
}

.nav-star-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f1f5f9;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.nav-star-btn:hover {
  background: rgba(234, 179, 8, 0.15);
  border-color: rgba(234, 179, 8, 0.4);
  color: #fef08a;
  transform: translateY(-1px);
}

.nav-star-btn svg {
  color: #eab308;
  transition: transform 0.2s;
}

.nav-star-btn:hover svg {
  transform: scale(1.2) rotate(10deg);
}

/* Dedicated Star Promotion Card */
.star-promo-section {
  padding: 20px 0 60px;
}

.star-promo-card {
  background: radial-gradient(circle at 50% 0%, rgba(234, 179, 8, 0.12) 0%, rgba(24, 24, 31, 0.95) 75%);
  border: 1px solid rgba(234, 179, 8, 0.35);
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.7), 0 0 30px rgba(234, 179, 8, 0.1);
}

.star-icon-burst {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #eab308;
  box-shadow: 0 0 24px rgba(234, 179, 8, 0.35);
  animation: pulse-glow 3s infinite alternate ease-in-out;
}

@keyframes pulse-glow {
  0% { transform: scale(1); box-shadow: 0 0 16px rgba(234, 179, 8, 0.25); }
  100% { transform: scale(1.08); box-shadow: 0 0 32px rgba(234, 179, 8, 0.5); }
}

.star-promo-card h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fef08a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.star-promo-card p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.btn-star-glow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
  color: #000;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(234, 179, 8, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-star-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(234, 179, 8, 0.55);
}

.btn-star-glow svg {
  fill: #000;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

footer a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.1rem;
    letter-spacing: -0.5px;
  }
  .rf-minimap-panel {
    display: none;
  }
  .rf-controls-panel {
    bottom: 12px;
    left: 12px;
  }
  .ext-toolbar {
    padding: 6px 8px;
    gap: 3px;
  }
  .banner-inner {
    font-size: 0.8rem;
  }
}
