/* ═══════════════════════════════════════════════════
   Flowgraph Landing Page — styles.css
   Organized: Reset → Tokens → Base → Components → Responsive → Performance
   ═══════════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Design Tokens ── */
:root {
  --bg-primary: #050510;
  --bg-secondary: #0a0a1a;
  --bg-card: #0f0f23;
  --bg-card-hover: #141430;
  --border: #1a1a3e;
  --border-light: #2a2a5e;
  --text-primary: #f0f0ff;
  --text-secondary: #a0a0cc;
  --text-muted: #6a6a99;
  --accent: #1a3af5;
  --accent-light: #5b7cfa;
  --accent-glow: rgba(26, 58, 245, 0.3);
  --gradient-1: linear-gradient(135deg, #0033cc, #3366ff);
  --gradient-2: linear-gradient(135deg, #00cec9, #0033cc);
  --gradient-3: linear-gradient(135deg, #fd79a8, #0033cc);
  --success: #00b894;
  --warning: #fdcb6e;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 60px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f5f6fa;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f1f8;
  --border: #dddde8;
  --border-light: #c0c0d4;
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-muted: #7a7a99;
  --accent-light: #1a3af5;
  --accent-glow: rgba(26, 58, 245, 0.15);
  --gradient-1: linear-gradient(135deg, #0033cc, #3366ff);
  --gradient-2: linear-gradient(135deg, #00b3ae, #0033cc);
  --gradient-3: linear-gradient(135deg, #e0608a, #0033cc);
  --success: #00996b;
  --shadow: 0 4px 40px rgba(0, 0, 0, 0.06);
}

/* ── Base ── */
html { scroll-padding-top: 70px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Skip Navigation (Accessibility) ── */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-nav:focus { top: 0; }

/* ── Utility ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section   { padding: 120px 0; position: relative; }
.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-2 {
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Ambient Background ── */
.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  contain: strict;
}
.ambient-glow::before {
  content: '';
  position: absolute;
  top: -40%; left: -20%;
  width: 80%; height: 80%;
  background: radial-gradient(ellipse, rgba(0, 51, 204, 0.08) 0%, transparent 70%);
  will-change: transform;
  animation: float-slow 20s ease-in-out infinite;
}
.ambient-glow::after {
  content: '';
  position: absolute;
  bottom: -30%; right: -20%;
  width: 70%; height: 70%;
  background: radial-gradient(ellipse, rgba(0, 206, 201, 0.06) 0%, transparent 70%);
  will-change: transform;
  animation: float-slow 25s ease-in-out infinite reverse;
}
@keyframes float-slow {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(40px, -30px, 0); }
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s, backdrop-filter 0.3s;
}
nav.scrolled {
  background: rgba(5, 5, 16, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}
.nav-logo-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.nav-logo-icon img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: screen; filter: drop-shadow(0 0 6px rgba(91, 124, 250, 0.9)); }
img[src="logo.png"] { mix-blend-mode: screen; }
[data-theme="light"] .nav-logo-icon img,
[data-theme="light"] img[src="logo.png"] { mix-blend-mode: normal; filter: none; }
.nav-logo span { font-weight: 700; font-size: 20px; letter-spacing: -0.5px; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-cta {
  background: var(--gradient-1);
  color: white !important;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

/* ── Theme Toggle ── */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  width: 36px; height: 36px;
}
.theme-toggle:hover {
  color: var(--text-primary);
  border-color: var(--border-light);
  background: var(--bg-card);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun  { display: block; }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun  { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 100px;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--border-light);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: 32px;
  animation: fade-in-up 0.8s ease-out;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}
.hero h1 {
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 24px;
  animation: fade-in-up 0.8s ease-out 0.1s both;
}
.hero p {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 48px;
  animation: fade-in-up 0.8s ease-out 0.2s both;
}
.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fade-in-up 0.8s ease-out 0.3s both;
}

/* ── Buttons ── */
.btn-primary {
  background: var(--gradient-1);
  color: white;
  padding: 16px 36px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  padding: 16px 36px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid var(--border-light);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--accent);
}

/* ── Hero Visual ── */
.hero-visual {
  margin-top: 56px;
  position: relative;
  animation: fade-in-up 1s ease-out 0.5s both;
}

/* ── Canvas Demo (Shared Node/Edge Styles) ── */
.canvas-demo {
  max-width: 820px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 80px rgba(0, 51, 204, 0.1);
  background: var(--bg-card);
}
.canvas-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
.canvas-dots       { display: flex; gap: 6px; }
.canvas-dots span  { width: 10px; height: 10px; border-radius: 50%; }
.canvas-dots .r    { background: #ff5f57; }
.canvas-dots .y    { background: #ffbd2e; }
.canvas-dots .g    { background: #28c840; }
.canvas-topbar-title {
  flex: 1;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.canvas-prompt-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 51, 204, 0.04);
  min-height: 42px;
}
.canvas-prompt-icon {
  width: 20px; height: 20px;
  border-radius: 6px;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.canvas-prompt-icon svg { width: 12px; height: 12px; }
.canvas-prompt-text {
  font-size: 13px;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
}
.canvas-prompt-text .typed {
  border-right: 2px solid var(--accent-light);
  animation: blink-caret 0.7s step-end infinite;
  padding-right: 1px;
}
.canvas-prompt-text .typed:empty::before { content: '\200b'; }
@keyframes blink-caret { 50% { border-color: transparent; } }

.canvas-area {
  position: relative;
  height: 500px;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 14px 14px;
  display: flex;
  justify-content: center;
}
.canvas-inner {
  position: relative;
  width: 700px;
  height: 100%;
  flex-shrink: 0;
}

/* ── Flow Nodes ── */
.cv-node {
  position: absolute;
  width: 200px; height: 50px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  opacity: 0;
  transform: scale(0.85) translateY(10px);
  transition: border-color 0.3s, box-shadow 0.3s;
  contain: layout style;
}
.cv-node.visible { animation: node-pop 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.cv-node.glow       { border-color: rgba(34, 197, 94, 0.6); box-shadow: 0 0 12px rgba(34, 197, 94, 0.25); }
.cv-node.glow-green { border-color: rgba(34, 197, 94, 0.6); box-shadow: 0 0 12px rgba(34, 197, 94, 0.25); }
.cv-node.glow-amber { border-color: rgba(245, 158, 11, 0.6); box-shadow: 0 0 12px rgba(245, 158, 11, 0.25); }
.cv-node.glow-red   { border-color: rgba(239, 68, 68, 0.6); box-shadow: 0 0 12px rgba(239, 68, 68, 0.25); }

@keyframes node-pop {
  0%   { opacity: 0; transform: scale(0.85) translateY(10px); }
  60%  { opacity: 1; transform: scale(1.03) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.cv-node-icon {
  width: 30px; height: 30px;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 4px;
  background: var(--bg-card);
}
.cv-node-icon img { width: 100%; height: 100%; object-fit: contain; }
.cv-node-text { display: flex; flex-direction: column; gap: 1px; overflow: hidden; }
.cv-node-text strong {
  font-size: 12px; font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cv-node-text span { font-size: 10px; color: var(--text-muted); white-space: nowrap; }

.cv-trigger-tab {
  position: absolute;
  top: -19px; left: -1px;
  padding: 3px 10px;
  font-size: 10px; font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
}

/* ── Flow Edges ── */
.cv-edge {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.cv-edge line, .cv-edge path {
  stroke: rgba(163, 163, 163, 0.45);
  stroke-width: 1.5;
  fill: none;
}
.cv-edge .edge-dot { opacity: 0; transition: opacity 0.2s; }
.cv-edge.visible .edge-dot { opacity: 1; }
.cv-edge .edge-draw { stroke-dasharray: 500; stroke-dashoffset: 500; }
.cv-edge.visible .edge-draw { animation: edge-draw 0.4s ease-out forwards; }
.cv-edge.glow .edge-draw { stroke: rgba(34, 197, 94, 0.5); filter: drop-shadow(0 0 3px rgba(34, 197, 94, 0.3)); }
.cv-edge.branch-green.visible .edge-draw { stroke: rgba(34, 197, 94, 0.5); }
.cv-edge.branch-amber.visible .edge-draw { stroke: rgba(245, 158, 11, 0.5); }
.cv-edge.branch-red.visible   .edge-draw { stroke: rgba(239, 68, 68, 0.5); }
.cv-edge.glow.branch-green .edge-draw { stroke: rgba(34, 197, 94, 0.7); filter: drop-shadow(0 0 4px rgba(34,197,94,0.4)); }
.cv-edge.glow.branch-amber .edge-draw { stroke: rgba(245, 158, 11, 0.7); filter: drop-shadow(0 0 4px rgba(245,158,11,0.4)); }
.cv-edge.glow.branch-red   .edge-draw { stroke: rgba(239, 68, 68, 0.7); filter: drop-shadow(0 0 4px rgba(239,68,68,0.4)); }
@keyframes edge-draw { to { stroke-dashoffset: 0; } }

/* ── Branch Labels ── */
.cv-branch-label {
  position: absolute;
  font-size: 9px; font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  letter-spacing: 0.3px;
  transform: translateX(-50%);
  z-index: 5;
}
.cv-branch-label.visible { opacity: 1; }
.cv-branch-label.label-simple { color: #22c55e; background: #0b1a10; border: 1px solid rgba(34, 197, 94, 0.35); }
.cv-branch-label.label-bug    { color: #f59e0b; background: #1a1408; border: 1px solid rgba(245, 158, 11, 0.35); }
.cv-branch-label.label-vip    { color: #ef4444; background: #1a0b0b; border: 1px solid rgba(239, 68, 68, 0.35); }

/* ── AI Cursor ── */
.cv-ai-cursor {
  position: absolute;
  width: 32px; height: 32px;
  opacity: 0;
  z-index: 10;
  transition: left 0.45s cubic-bezier(0.4, 0, 0.2, 1), top 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: left, top;
}
.cv-ai-cursor.visible { opacity: 1; }
.cv-ai-cursor img { width: 100%; height: 100%; display: block; user-select: none; -webkit-user-drag: none; }

/* ── Section Headers ── */
.section-header { text-align: center; max-width: 700px; margin: 0 auto 72px; }
.section-label  {
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--accent-light);
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800; letter-spacing: -1px;
  line-height: 1.15; margin-bottom: 20px;
}
.section-header p { font-size: 18px; color: var(--text-secondary); }

/* ── Feature Cards ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  contain: layout style;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(0, 51, 204, 0.12);
  border: 1px solid rgba(0, 51, 204, 0.2);
  padding: 10px;
}
.feature-icon img { width: 100%; height: 100%; object-fit: contain; }
.feature-card h3  { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-card p   { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }

/* ── Architecture Section ── */
.architecture-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.arch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.arch-content h2 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800; letter-spacing: -1px;
  line-height: 1.15; margin-bottom: 20px;
}
.arch-content > p {
  font-size: 17px; color: var(--text-secondary); margin-bottom: 36px;
}
.arch-features    { list-style: none; }
.arch-features li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.arch-features li:last-child { border-bottom: none; }
.arch-check {
  width: 24px; height: 24px;
  background: rgba(0, 184, 148, 0.12);
  border: 1.5px solid rgba(0, 184, 148, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.arch-check svg { width: 12px; height: 12px; }
.arch-features li strong { display: block; font-size: 15px; margin-bottom: 2px; }
.arch-features li span   { color: var(--text-secondary); font-size: 14px; }

.arch-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}
.arch-diagram { display: flex; flex-direction: column; gap: 16px; }

.arch-layer {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  contain: layout style;
}
.arch-layer:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 51, 204, 0.1);
  transform: translateY(-2px) scale(1.02);
}
.arch-layer.arch-visible {
  animation: arch-layer-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.arch-layer.arch-settled {
  animation: none;
  opacity: 1;
  transform: translateY(0) scale(1);
}
@keyframes arch-layer-in {
  0%   { opacity: 0; transform: translateY(20px) scale(0.97); }
  60%  { opacity: 1; transform: translateY(-3px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.arch-layer.arch-visible.arch-glow {
  animation: arch-layer-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards,
             arch-pulse 0.6s ease-out 0.4s forwards;
}
@keyframes arch-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 51, 204, 0.3); }
  50%  { box-shadow: 0 0 20px 4px rgba(0, 51, 204, 0.15); }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.arch-layer-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 8px;
}
.arch-layer-icon img { width: 100%; height: 100%; object-fit: contain; }
.arch-layer-icon.purple { background: rgba(0, 51, 204, 0.2); }
.arch-layer-icon.teal   { background: rgba(0, 206, 201, 0.2); }
.arch-layer-icon.pink   { background: rgba(253, 121, 168, 0.2); }
.arch-layer-icon.green  { background: rgba(0, 184, 148, 0.2); }
.arch-layer-icon.yellow { background: rgba(253, 203, 110, 0.2); }
.arch-layer strong { font-size: 14px; display: block; }
.arch-layer span   { font-size: 13px; color: var(--text-muted); }

.arch-connector {
  width: 2px; height: 16px;
  margin-left: 44px;
  position: relative;
  overflow: hidden;
}
.arch-connector::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--border-light);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease-out;
}
.arch-connector.arch-visible::before { transform: scaleY(1); }
.arch-connector::after {
  content: '';
  position: absolute;
  top: 0; left: -1px;
  width: 4px; height: 6px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0;
  filter: blur(1px);
}
.arch-connector.arch-visible::after {
  animation: connector-flow 0.4s ease-out forwards;
}
@keyframes connector-flow {
  0%   { top: 0;    opacity: 0.8; }
  100% { top: 100%; opacity: 0; }
}

/* ── AI Capabilities ── */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.ai-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s;
  contain: layout style;
}
.ai-card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.ai-card-icon {
  width: 48px; height: 48px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-card-icon img { width: 100%; height: 100%; object-fit: contain; }
.ai-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.ai-card p   { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ── Enterprise Section ── */
.enterprise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.enterprise-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  contain: layout style;
}
.enterprise-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}
.enterprise-card-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }

.enterprise-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.enterprise-icon img { width: 100%; height: 100%; object-fit: contain; }
.enterprise-icon.timeout { background: rgba(253, 203, 110, 0.15); border: 1px solid rgba(253, 203, 110, 0.2); }
.enterprise-icon.memory  { background: rgba(0, 206, 201, 0.15); border: 1px solid rgba(0, 206, 201, 0.2); }
.enterprise-icon.sandbox { background: rgba(0, 51, 204, 0.15); border: 1px solid rgba(0, 51, 204, 0.2); }
.enterprise-icon.lambda  { background: rgba(253, 121, 168, 0.15); border: 1px solid rgba(253, 121, 168, 0.2); }

.enterprise-card h3  { font-size: 20px; font-weight: 700; }
.enterprise-card > p {
  font-size: 15px; color: var(--text-secondary);
  margin-bottom: 24px; line-height: 1.6; flex: 1;
}

.enterprise-slider-group { display: flex; flex-direction: column; gap: 16px; }
.enterprise-slider       { display: flex; flex-direction: column; gap: 10px; }
.enterprise-slider-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px; font-weight: 500;
}
.enterprise-slider-label span:first-child { color: var(--text-secondary); }
.enterprise-slider-label .slider-value {
  color: var(--accent-light);
  font-size: 14px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.enterprise-range-wrap {
  position: relative;
  width: 100%; height: 16px;
  display: flex;
  align-items: center;
  touch-action: none;
  user-select: none;
}
.enterprise-range-track {
  position: absolute; left: 0; right: 0;
  height: 6px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.enterprise-range-fill {
  height: 100%;
  border-radius: 100px;
  background: var(--accent);
  transition: width 0.05s;
}
.enterprise-range-thumb {
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1px solid rgba(91, 124, 250, 0.5);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  cursor: grab;
  transition: box-shadow 0.15s, border-color 0.15s;
  transform: translateX(-50%);
  z-index: 1;
}
.enterprise-range-thumb:hover {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(91, 124, 250, 0.15), 0 1px 3px rgba(0,0,0,0.3);
}
.enterprise-range-thumb:active  { cursor: grabbing; }
.enterprise-range-thumb.dragging {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 4px rgba(91, 124, 250, 0.2), 0 1px 3px rgba(0,0,0,0.3);
}

.enterprise-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.enterprise-badge {
  padding: 6px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px; font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.enterprise-badge:hover { border-color: var(--border-light); color: var(--text-primary); }
.enterprise-badge.active { border-color: var(--accent); color: var(--accent-light); background: rgba(0, 51, 204, 0.1); }

.enterprise-upcoming {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(167, 139, 250, 0.05);
  border: 1px solid rgba(167, 139, 250, 0.1);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.upcoming-badge {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.15);
  border: 1px solid rgba(167, 139, 250, 0.3);
  white-space: nowrap;
}

/* ── Stats ── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
  padding: 80px 0;
  border-top: 1px solid rgba(167, 139, 250, 0.25);
  border-bottom: 1px solid rgba(167, 139, 250, 0.25);
}
.stats > div { padding: 0 32px; position: relative; }
.stats > div:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 10%; height: 80%; width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(167, 139, 250, 0.4), transparent);
}
.stat-number {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -1px;
}
.stat-label { font-size: 15px; color: var(--text-secondary); margin-top: 6px; }

/* ── Waitlist CTA ── */
.waitlist-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 120px 0;
}
.waitlist-wrapper {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.waitlist-wrapper h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800; letter-spacing: -1px; margin-bottom: 16px;
}
.waitlist-wrapper > p { font-size: 18px; color: var(--text-secondary); margin-bottom: 40px; }

.waitlist-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.waitlist-form-row { display: flex; gap: 12px; }
#turnstile-container { display: flex; justify-content: center; min-height: 65px; }
#turnstile-container:empty { min-height: 65px; }
.waitlist-form input {
  flex: 1;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.waitlist-form input::placeholder { color: var(--text-muted); }
.waitlist-form input:focus { border-color: var(--accent); }
.waitlist-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.waitlist-form button {
  padding: 16px 32px;
  background: var(--gradient-1);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 16px; font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.waitlist-form button:hover { transform: translateY(-1px); box-shadow: 0 6px 24px var(--accent-glow); }
.waitlist-form button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.waitlist-note    { font-size: 13px; color: var(--text-muted); }
.waitlist-success {
  display: none;
  padding: 20px;
  background: rgba(0, 184, 148, 0.1);
  border: 1px solid rgba(0, 184, 148, 0.3);
  border-radius: var(--radius);
  color: var(--success);
  font-weight: 600; font-size: 16px;
  margin-bottom: 16px;
}
.waitlist-success.visible { display: block; }
.waitlist-count { margin-top: 24px; font-size: 14px; color: var(--text-muted); }
.waitlist-count strong { color: var(--accent-light); }

/* ── Footer ── */
footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
}
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.footer-brand-icon img { width: 100%; height: 100%; object-fit: contain; }
.footer-brand span { font-weight: 700; font-size: 18px; }

.footer-links { display: flex; gap: 28px; list-style: none; }
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-copy {
  text-align: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}
.footer-disclaimer {
  margin-top: 8px;
  display: inline-block;
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ── Interactive Demo (Try It) ── */
.try-demo-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.try-demo-card {
  max-width: 820px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 80px rgba(0, 51, 204, 0.1);
  background: var(--bg-card);
}
.try-demo-reset {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  transition: all 0.2s;
}
.try-demo-reset:hover { border-color: var(--border-light); color: var(--text-primary); }

.try-demo-step-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 51, 204, 0.03);
}
.try-demo-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px; font-weight: 600;
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: 6px;
  transition: all 0.3s;
  white-space: nowrap;
}
.try-demo-step .step-num {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px; font-weight: 700;
  transition: all 0.3s;
}
.try-demo-step.active { color: var(--accent-light); }
.try-demo-step.active .step-num { background: var(--accent); border-color: var(--accent); color: white; }
.try-demo-step.done { color: var(--success); }
.try-demo-step.done .step-num { background: rgba(0, 184, 148, 0.2); border-color: var(--success); color: var(--success); }
.try-demo-step-line { width: 32px; height: 1px; background: var(--border); flex-shrink: 0; }

.try-demo-prompt {
  text-align: center;
  font-size: 14px; font-weight: 500;
  color: var(--text-secondary);
  padding: 0 20px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

.try-demo-palette {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  align-content: center;
  padding: 0 24px;
  flex-wrap: wrap;
  height: 148px;
  overflow: hidden;
}
.try-demo-piece {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s;
  user-select: none;
}
.try-demo-piece:hover {
  border-color: var(--accent);
  background: rgba(0, 51, 204, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 51, 204, 0.15);
}
.try-demo-piece.selected {
  border-color: var(--success) !important;
  background: rgba(0, 184, 148, 0.08) !important;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}
.try-demo-piece-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 4px;
  background: var(--bg-card);
}
.try-demo-piece-icon img { width: 100%; height: 100%; object-fit: contain; }
.try-demo-piece-text strong {
  font-size: 13px; font-weight: 600;
  color: var(--text-primary);
  display: block; line-height: 1.2;
}
.try-demo-piece-text span { font-size: 11px; color: var(--text-muted); }

.try-demo-canvas {
  position: relative;
  height: 380px;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 14px 14px;
  display: flex;
  justify-content: center;
}
.try-demo-inner {
  position: relative;
  width: 700px;
  height: 100%;
  flex-shrink: 0;
}
.try-demo-inner .cv-node.visible { animation: node-pop 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.try-demo-inner .cv-edge.visible .edge-draw { animation: edge-draw 0.25s ease-out forwards; }
.try-demo-inner .cv-branch-label { transition: opacity 0.15s; }

.try-demo-ghost {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
  opacity: 0.4;
  transition: opacity 0.3s;
}

.try-demo-config {
  width: 100%;
  padding: 4px 4px 0;
  animation: config-fade 0.15s ease-out;
}
@keyframes config-fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.try-demo-config-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.try-demo-config-header img { width: 20px; height: 20px; object-fit: contain; }
.try-demo-config-header span { font-size: 13px; font-weight: 600; color: var(--text-primary); }

.try-demo-config-fields { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.try-demo-field { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 160px; }
.try-demo-field label {
  font-size: 11px; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.try-demo-field input,
.try-demo-field select,
.try-demo-field textarea {
  padding: 8px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.try-demo-field input:focus,
.try-demo-field select:focus,
.try-demo-field textarea:focus { border-color: var(--accent); }
.try-demo-field input::placeholder,
.try-demo-field textarea::placeholder { color: var(--text-muted); }
.try-demo-field textarea { resize: none; height: 34px; line-height: 1.4; }
.try-demo-field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%236a6a99' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
  cursor: pointer;
}

.try-demo-config-actions { display: flex; align-items: center; gap: 16px; }
.try-demo-config-add {
  background: var(--gradient-1); color: white;
  padding: 8px 20px; border-radius: 8px;
  font-weight: 600; font-size: 13px;
  border: none; cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: transform 0.2s, box-shadow 0.2s;
}
.try-demo-config-add:hover { transform: translateY(-1px); box-shadow: 0 4px 16px var(--accent-glow); }
.try-demo-config-skip {
  font-size: 12px; color: var(--text-muted);
  cursor: pointer; transition: color 0.2s;
  background: none; border: none;
  font-family: 'Inter', sans-serif;
}
.try-demo-config-skip:hover { color: var(--text-secondary); }

.try-demo-done-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(6px);
  animation: config-fade 0.3s ease-out 0.1s forwards;
}
.try-demo-done-actions .btn-primary,
.try-demo-done-actions .btn-secondary {
  padding: 10px 24px;
  font-size: 14px; font-weight: 600;
  border-radius: 10px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ── Team Use Cases ── */
.team-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.team-tab {
  padding: 10px 24px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  font-family: 'Inter', sans-serif;
}
.team-tab:hover { border-color: var(--border-light); color: var(--text-primary); }
.team-tab.active { border-color: var(--accent); color: var(--accent-light); background: rgba(0, 51, 204, 0.1); }

.team-demo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.team-demo-canvas {
  position: relative;
  height: 500px;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 14px 14px;
  display: flex;
  justify-content: center;
}
.team-demo-inner {
  position: relative;
  width: 700px; height: 100%;
  flex-shrink: 0;
}

/* ── Integrations Marquee ── */
.integrations-marquee {
  overflow: hidden;
  padding: 40px 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.integrations-track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
  animation: scroll-left 40s linear infinite;
}
@keyframes scroll-left {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}
.integration-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 14px; font-weight: 500;
  white-space: nowrap;
  color: var(--text-secondary);
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.integration-pill:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.integration-pill img {
  width: 22px; height: 22px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}

/* ── Scroll Animations ── */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════
   Light-mode overrides for hardcoded colors
   ═══════════════════════════════════════════════════ */
[data-theme="light"] nav.scrolled { background: rgba(255, 255, 255, 0.88); }

[data-theme="light"] .ambient-glow::before { background: radial-gradient(ellipse, rgba(0, 51, 204, 0.04) 0%, transparent 70%); }
[data-theme="light"] .ambient-glow::after  { background: radial-gradient(ellipse, rgba(0, 206, 201, 0.03) 0%, transparent 70%); }

[data-theme="light"] .canvas-area,
[data-theme="light"] .try-demo-canvas,
[data-theme="light"] .team-demo-canvas { background-image: radial-gradient(circle, rgba(0, 0, 0, 0.07) 1px, transparent 1px); }

[data-theme="light"] .canvas-demo,
[data-theme="light"] .try-demo-card,
[data-theme="light"] .team-demo-card { box-shadow: 0 2px 40px rgba(0, 0, 0, 0.08), 0 0 60px rgba(0, 51, 204, 0.04); }

[data-theme="light"] .cv-branch-label.label-simple { color: #16873e; background: #e8f5e9; border-color: rgba(34, 197, 94, 0.4); }
[data-theme="light"] .cv-branch-label.label-bug    { color: #b57d08; background: #fff8e1; border-color: rgba(245, 158, 11, 0.4); }
[data-theme="light"] .cv-branch-label.label-vip    { color: #c53030; background: #fce4ec; border-color: rgba(239, 68, 68, 0.4); }

[data-theme="light"] .enterprise-range-track { background: rgba(0, 0, 0, 0.08); }
[data-theme="light"] .enterprise-range-thumb { border-color: rgba(91, 124, 250, 0.4); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }

[data-theme="light"] .enterprise-upcoming   { background: rgba(167, 139, 250, 0.06); border-color: rgba(167, 139, 250, 0.15); }
[data-theme="light"] .upcoming-badge        { color: #6d28d9; background: rgba(109, 40, 217, 0.08); border-color: rgba(109, 40, 217, 0.2); }

[data-theme="light"] .cv-edge line,
[data-theme="light"] .cv-edge path   { stroke: rgba(100, 100, 140, 0.35); }
[data-theme="light"] .cv-edge circle { fill: rgba(100, 100, 140, 0.4); }

[data-theme="light"] .feature-icon { background: rgba(0, 51, 204, 0.07); border-color: rgba(0, 51, 204, 0.14); }

[data-theme="light"] .arch-layer-icon.purple { background: rgba(0, 51, 204, 0.1); }
[data-theme="light"] .arch-layer-icon.teal   { background: rgba(0, 206, 201, 0.1); }
[data-theme="light"] .arch-layer-icon.pink   { background: rgba(253, 121, 168, 0.1); }
[data-theme="light"] .arch-layer-icon.green  { background: rgba(0, 184, 148, 0.1); }
[data-theme="light"] .arch-layer-icon.yellow { background: rgba(253, 203, 110, 0.15); }
[data-theme="light"] .arch-check { background: rgba(0, 184, 148, 0.08); }

[data-theme="light"] .enterprise-icon.timeout { background: rgba(253, 203, 110, 0.1); border-color: rgba(253, 203, 110, 0.25); }
[data-theme="light"] .enterprise-icon.memory  { background: rgba(0, 206, 201, 0.1); border-color: rgba(0, 206, 201, 0.25); }
[data-theme="light"] .enterprise-icon.sandbox { background: rgba(0, 51, 204, 0.08); border-color: rgba(0, 51, 204, 0.18); }
[data-theme="light"] .enterprise-icon.lambda  { background: rgba(253, 121, 168, 0.08); border-color: rgba(253, 121, 168, 0.18); }

[data-theme="light"] .feature-card:hover    { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08); }
[data-theme="light"] .ai-card:hover         { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07); }
[data-theme="light"] .enterprise-card:hover  { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08); }
[data-theme="light"] .arch-layer:hover       { box-shadow: 0 0 20px rgba(0, 51, 204, 0.06); }
[data-theme="light"] .integration-pill:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06); }
[data-theme="light"] .try-demo-piece:hover   { background: rgba(0, 51, 204, 0.05); box-shadow: 0 4px 16px rgba(0, 51, 204, 0.08); }
[data-theme="light"] .try-demo-piece.selected { background: rgba(0, 184, 148, 0.06) !important; }
[data-theme="light"] .team-tab.active         { background: rgba(0, 51, 204, 0.06); }
[data-theme="light"] .enterprise-badge.active  { background: rgba(0, 51, 204, 0.06); }
[data-theme="light"] .waitlist-success         { background: rgba(0, 184, 148, 0.08); border-color: rgba(0, 184, 148, 0.25); }
[data-theme="light"] .canvas-prompt-bar        { background: rgba(0, 51, 204, 0.03); }
[data-theme="light"] .try-demo-step-bar        { background: rgba(0, 51, 204, 0.02); }

/* ═══════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════ */

/* ── Hamburger button (hidden on desktop) ─────── */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-primary);
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
}
.nav-hamburger:hover { border-color: var(--border-light); background: var(--bg-card); }
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-grid       { grid-template-columns: repeat(2, 1fr); }
  .arch-grid     { grid-template-columns: 1fr; gap: 40px; }
  .stats         { grid-template-columns: repeat(2, 1fr); }
  .stats > div   { padding: 24px 32px; }
  .stats > div:nth-child(2)::after { display: none; }
  .stats > div:nth-child(1),
  .stats > div:nth-child(2) { border-bottom: 1px solid rgba(167, 139, 250, 0.25); }
}

@media (max-width: 840px) {
  .canvas-demo     { margin: 0 -12px; border-radius: 12px; }
  .canvas-area     { overflow-x: auto; overflow-y: hidden; }
  .try-demo-card   { margin: 0 -12px; border-radius: 12px; }
  .try-demo-canvas { overflow-x: auto; overflow-y: hidden; }
  .try-demo-step   { font-size: 11px; padding: 4px 6px; }
  .try-demo-step-line { width: 16px; }
  .try-demo-palette   { height: 180px; padding: 0 12px; }
  .try-demo-field     { min-width: 120px; }
  .team-demo-card     { margin: 0 -12px; border-radius: 12px; }
  .team-demo-canvas   { overflow-x: auto; overflow-y: hidden; }
}

@media (max-width: 768px) {
  .section           { padding: 80px 0; }
  .features-grid     { grid-template-columns: 1fr; }
  .enterprise-grid   { grid-template-columns: 1fr; }
  .ai-grid           { grid-template-columns: 1fr; }
  .stats             { grid-template-columns: repeat(2, 1fr); }
  .stats > div       { padding: 16px 24px; }
  .nav-links         { display: none; }
  .nav-links.open    {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 12px 0 16px;
    gap: 0;
    z-index: 999;
  }
  .nav-links.open li a {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    font-size: 15px;
    color: var(--text-primary);
    text-decoration: none;
    min-height: 48px;
  }
  .nav-links.open li a:hover { color: var(--accent-light); }
  .nav-hamburger     { display: flex; }
  .nav-cta           { padding: 8px 16px; font-size: 13px; }
  .hero              { padding: 120px 24px 60px; }
  .hero h1           { letter-spacing: -1px; }
  .waitlist-form-row { flex-direction: column; }
  .footer-content    { flex-direction: column; gap: 24px; text-align: center; }
  .footer-links      { flex-wrap: wrap; justify-content: center; }
}

/* ── Blog grid (replaces inline style) ───────── */
.home-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

/* ── Scrollable comparison table wrapper ─────── */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 8px 0;
}

/* ── 480px (small phones) ─────────────────────── */
@media (max-width: 480px) {
  .section           { padding: 56px 0; }
  .hero              { padding: 100px 16px 40px; }
  .container         { max-width: 100%; padding: 0 12px; }
  .footer-links      { gap: 16px; }
  .vs-cta-section    { padding: 32px 20px; }
  .vs-winner-bar     { padding: 20px 16px; }

  /* Stats: stack to single column */
  .stats             { grid-template-columns: 1fr; }
  .stats > div       { text-align: center; }
  .stats > div:nth-child(1),
  .stats > div:nth-child(2) { border-bottom: 1px solid rgba(167, 139, 250, 0.25); }
  .stats > div:nth-child(3) { border-bottom: 1px solid rgba(167, 139, 250, 0.25); }

  /* Blog cards: single column */
  .home-blog-grid    { grid-template-columns: 1fr; }

  /* Canvas: horizontal scroll like try-demo section */
  .canvas-area       { height: 380px; }
  .team-demo-canvas  { height: 380px; }
  .try-demo-palette  { height: 140px; }

  /* Comparison tables */
  .cmp-table th:not(:first-child) { width: 120px; }
  .cmp-table th,
  .cmp-table td      { padding: 10px 12px; font-size: 12px; }
}

/* ═══════════════════════════════════════════════════
   FAQ Section
   ═══════════════════════════════════════════════════ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-item:hover,
.faq-item[open] {
  border-color: var(--border-light);
}

.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-primary);
  user-select: none;
  transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.25s ease, color 0.25s ease;
}

.faq-item[open] summary::after {
  content: '\2212';
  color: var(--accent-light);
}

.faq-item summary:hover {
  color: var(--accent-light);
}

.faq-answer {
  padding: 0 24px 20px;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════
   Comparison (vs/) Pages — shared styles
   ═══════════════════════════════════════════════════ */

/* Hero */
.vs-hero { padding: 140px 24px 80px; text-align: center; position: relative; }
.vs-breadcrumb { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.vs-breadcrumb a { color: var(--accent-light); text-decoration: none; }
.vs-breadcrumb span { opacity: .5; }
.vs-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border: 1px solid var(--border-light); border-radius: 100px; font-size: 13px; font-weight: 500; color: var(--accent-light); margin-bottom: 28px; }
.vs-hero h1 { font-size: clamp(36px, 6vw, 68px); font-weight: 900; letter-spacing: -2px; line-height: 1.05; margin-bottom: 20px; }
.vs-hero p { font-size: clamp(16px, 1.8vw, 20px); color: var(--text-secondary); max-width: 620px; margin: 0 auto 40px; }
.vs-cta-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Winner banner */
.vs-winner-bar { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 40px; display: flex; align-items: center; gap: 32px; margin: 60px 0; flex-wrap: wrap; }
.vs-winner-col { flex: 1; min-width: 200px; text-align: center; }
.vs-winner-col.winner { background: linear-gradient(135deg, rgba(26,58,245,0.12), rgba(91,124,250,0.08)); border-radius: var(--radius); padding: 24px; border: 1px solid rgba(91,124,250,0.25); }
.vs-winner-col h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.vs-winner-col p { font-size: 14px; color: var(--text-muted); }
.vs-winner-tag { display: inline-block; background: var(--gradient-1); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 100px; margin-bottom: 10px; letter-spacing: .5px; }
.vs-vs { font-size: 28px; font-weight: 900; color: var(--text-muted); flex-shrink: 0; }

/* Section */
.vs-section { padding: 72px 0; }
.vs-section-label { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-light); margin-bottom: 12px; text-align: center; }
.vs-section h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -1px; margin-bottom: 16px; line-height: 1.15; text-align: center; }
.vs-section > p { font-size: 16px; color: var(--text-secondary); max-width: 640px; margin: 0 auto 40px; text-align: center; }

/* Comparison table */
.cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-top: 8px; }
.cmp-table th { padding: 16px 24px; font-size: 14px; font-weight: 700; background: var(--bg-secondary); text-align: left; }
.cmp-table th:not(:first-child) { text-align: center; width: 160px; }
.cmp-table th.fg-col { color: var(--accent-light); background: linear-gradient(180deg, rgba(26,58,245,0.1), rgba(26,58,245,0.05)); }
.cmp-table td { padding: 14px 24px; font-size: 14px; border-top: 1px solid var(--border); color: var(--text-secondary); }
.cmp-table td:not(:first-child) { text-align: center; }
.cmp-table td.fg-col { background: rgba(26,58,245,0.04); }
.cmp-table tr:hover td { background: var(--bg-secondary); }
.cmp-table tr:hover td.fg-col { background: rgba(26,58,245,0.08); }
.cmp-table .cat-row td { background: var(--bg-secondary); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); padding: 10px 24px; }
.cmp-table .cat-row td.fg-col { background: linear-gradient(180deg, rgba(26,58,245,0.1), rgba(26,58,245,0.05)); }
.check { color: #00b894; font-size: 18px; }
.cross { color: #ff6b6b; font-size: 18px; }
.partial { color: #f9ca24; font-size: 14px; font-weight: 600; }

/* Reasons grid */
.reasons-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 8px; }
.reason-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.reason-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: flex-start; gap: 10px; }
.reason-card h3 .num { width: 28px; height: 28px; background: var(--gradient-1); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #fff; flex-shrink: 0; margin-top: -2px; }
.reason-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* Quote */
.vs-quote { background: var(--bg-card); border: 1px solid var(--border); border-left: 4px solid var(--accent-light); border-radius: var(--radius); padding: 28px 32px; margin: 48px 0; font-size: 17px; color: var(--text-secondary); font-style: italic; line-height: 1.7; }
.vs-quote strong { color: var(--text-primary); font-style: normal; }

/* CTA section */
.vs-cta-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 56px 48px; text-align: center; margin: 72px 0; }
.vs-cta-section h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -1px; margin-bottom: 16px; }
.vs-cta-section p { color: var(--text-secondary); font-size: 17px; margin-bottom: 32px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* Footer */
.vs-footer { border-top: 1px solid var(--border); padding: 32px 0; text-align: center; font-size: 13px; color: var(--text-muted); }
.vs-footer a { color: var(--accent-light); text-decoration: none; }
.vs-footer .footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }

@media (max-width: 768px) {
  .vs-winner-bar { flex-direction: column; gap: 16px; padding: 24px; }
  .vs-vs { transform: rotate(90deg); }
  .vs-cta-section { padding: 40px 24px; }
  .cmp-table th, .cmp-table td { padding: 12px 14px; font-size: 13px; }
}

/* ═══════════════════════════════════════════════════
   Blog
   ═══════════════════════════════════════════════════ */

/* Blog listing */
.blog-hero { padding: 140px 24px 60px; text-align: center; }
.blog-hero h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 900; letter-spacing: -2px; line-height: 1.1; margin-bottom: 16px; }
.blog-hero p { font-size: clamp(16px, 1.8vw, 20px); color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; padding-bottom: 80px; }
.blog-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; text-decoration: none; color: var(--text-primary); transition: border-color 0.2s, transform 0.2s; display: flex; flex-direction: column; }
.blog-card:hover { border-color: var(--accent-light); transform: translateY(-2px); }
.blog-card-tag { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-light); margin-bottom: 12px; }
.blog-card h2 { font-size: 20px; font-weight: 700; line-height: 1.3; margin-bottom: 12px; letter-spacing: -0.3px; }
.blog-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; flex: 1; }
.blog-card-meta { margin-top: 16px; font-size: 13px; color: var(--text-muted); display: flex; gap: 16px; }

/* Blog article */
.article-hero { padding: 140px 24px 48px; text-align: center; max-width: 820px; margin: 0 auto; }
.article-hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 900; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 20px; }
.article-hero .article-subtitle { font-size: clamp(16px, 1.8vw, 20px); color: var(--text-secondary); max-width: 600px; margin: 0 auto 24px; }
.article-meta { display: flex; gap: 20px; justify-content: center; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.article-meta span { display: flex; align-items: center; gap: 6px; }

.article-body { max-width: 740px; margin: 0 auto; padding: 48px 24px 80px; }
.article-body h2 { font-size: clamp(24px, 3.5vw, 32px); font-weight: 800; letter-spacing: -0.8px; margin: 56px 0 20px; line-height: 1.2; }
.article-body h3 { font-size: 20px; font-weight: 700; margin: 40px 0 14px; }
.article-body p { font-size: 17px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 20px; }
.article-body ul, .article-body ol { margin: 0 0 24px 24px; color: var(--text-secondary); }
.article-body li { font-size: 16px; line-height: 1.7; margin-bottom: 8px; }
.article-body a { color: var(--accent-light); text-decoration: none; border-bottom: 1px solid rgba(91,124,250,0.3); transition: border-color 0.2s; }
.article-body a:hover { border-color: var(--accent-light); }
.article-body strong { color: var(--text-primary); }
.article-body blockquote { border-left: 4px solid var(--accent-light); padding: 20px 24px; margin: 32px 0; background: var(--bg-card); border-radius: 0 var(--radius) var(--radius) 0; }
.article-body blockquote p { color: var(--text-secondary); font-style: italic; margin-bottom: 0; }
.article-body .cmp-table { margin: 32px 0; }
.article-body .table-wrap { overflow-x: auto; margin: 32px 0; -webkit-overflow-scrolling: touch; }

.article-callout { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; margin: 32px 0; }
.article-callout h4 { font-size: 15px; font-weight: 700; margin-bottom: 10px; color: var(--accent-light); }
.article-callout p { font-size: 15px; margin-bottom: 0; }
.article-callout a { color: var(--accent-light); text-decoration: none; font-weight: 600; border-bottom: 1px solid rgba(91,124,250,0.3); }
.article-callout a:hover { border-color: var(--accent-light); }

.article-toc { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; margin: 0 0 48px; }
.article-toc h4 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; color: var(--text-muted); }
.article-toc ol { margin: 0 0 0 20px; }
.article-toc li { font-size: 15px; color: var(--accent-light); margin-bottom: 6px; }
.article-toc a { color: var(--accent-light); text-decoration: none; }
.article-toc a:hover { text-decoration: underline; }

/* Related articles at bottom of article page */
.related-articles { max-width: 740px; margin: 0 auto; padding: 0 24px 48px; }
.related-articles h3 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.related-articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.related-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--text-primary); transition: border-color 0.2s; }
.related-card:hover { border-color: var(--accent-light); }
.related-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.related-card p { font-size: 13px; color: var(--text-muted); margin: 0; }

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .article-body { padding: 32px 20px 60px; }
  .article-body h2 { margin-top: 40px; }
}

/* ═══════════════════════════════════════════════════
   Accessibility: prefers-reduced-motion
   ═══════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ambient-glow { display: none; }
  .integrations-track { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
