/* ============================================================
   Toeverything Inc. — Global Stylesheet (Light Theme Redesign)
   Inspired by Linear, Notion, Vercel — clean, minimal, enterprise
   ============================================================ */

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

:root {
  --bg: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFC;
  --bg-elevated: #F1F5F9;
  --border: #E2E8F0;
  --border-light: #CBD5E1;
  --text: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-dim: #94A3B8;
  --accent: #6366F1;
  --accent-light: #818CF8;
  --accent-bg: rgba(99, 102, 241, 0.06);
  --accent-bg-strong: rgba(99, 102, 241, 0.1);
  --gradient-start: #6366F1;
  --gradient-end: #8B5CF6;
  --success: #16A34A;
  --success-bg: rgba(22, 163, 74, 0.08);
  --warning: #D97706;
  --warning-bg: rgba(217, 119, 6, 0.08);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* ============================================================
   Navigation
   ============================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.875rem 2rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 1.125rem; font-weight: 400; color: var(--text-muted);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo strong {
  font-weight: 700;
  color: var(--text);
}

.nav-links {
  display: flex; gap: 2rem; align-items: center;
}
.nav-links a {
  color: var(--text-muted); text-decoration: none; font-size: 0.875rem;
  transition: color 0.2s;
  position: relative;
  font-weight: 450;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active {
  color: var(--text);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.btn-nav {
  padding: 0.5rem 1.25rem;
  background: var(--accent);
  color: #fff !important;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.875rem;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}
.btn-nav:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-nav::after { display: none !important; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.25rem;
}
.menu-toggle svg { width: 24px; height: 24px; }

/* ============================================================
   Sections & Layout
   ============================================================ */
section {
  padding: 6rem 2rem;
  max-width: 1080px;
  margin: 0 auto;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center { text-align: center; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding-top: 10rem;
  padding-bottom: 5rem;
  text-align: center;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: var(--accent-bg);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 100px;
  font-size: 0.8125rem;
  color: var(--accent);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
  font-weight: 500;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 780px;
  margin: 0 auto 1.5rem;
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.125rem;
  max-width: 580px;
  margin: 0 auto 2.5rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--accent);
  color: #fff;
  border: none; border-radius: var(--radius);
  font-size: 1rem; font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 1px 3px rgba(99, 102, 241, 0.3);
  font-family: inherit;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
  background: #5558E6;
}
.btn-primary svg { width: 18px; height: 18px; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem; font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.btn-secondary:hover {
  border-color: var(--border-light);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-sm);
}
.btn-secondary svg { width: 18px; height: 18px; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem; font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  font-family: inherit;
}
.btn-outline:hover {
  background: var(--accent-bg);
  border-color: rgba(99, 102, 241, 0.4);
}

/* ============================================================
   Divider
   ============================================================ */
.divider {
  width: 100%; max-width: 1080px; margin: 0 auto;
  height: 1px;
  background: var(--border);
}

/* ============================================================
   Section Headings
   ============================================================ */
.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-desc {
  font-size: 1.0625rem;
  max-width: 560px;
  color: var(--text-muted);
  margin-bottom: 3.5rem;
  line-height: 1.75;
}
.section-desc.centered {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   Feature Cards
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
  box-shadow: var(--shadow-card);
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-light);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-bg);
  border-radius: 10px;
  margin-bottom: 1.25rem;
  color: var(--accent);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-icon.purple { background: rgba(139, 92, 246, 0.08); color: #7C3AED; }
.feature-icon.green { background: var(--success-bg); color: var(--success); }
.feature-icon.amber { background: var(--warning-bg); color: var(--warning); }
.feature-card h3 {
  font-size: 1.125rem; font-weight: 600; color: var(--text);
  margin-bottom: 0.625rem;
}
.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   Steps
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  counter-reset: step;
}
.step {
  counter-increment: step;
  position: relative;
}
.step::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--accent-bg);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 10px;
  font-size: 0.875rem; font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}
.step h3 {
  font-size: 1rem; font-weight: 600; color: var(--text);
  margin-bottom: 0.5rem;
}
.step p { font-size: 0.875rem; color: var(--text-muted); }

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow 0.25s, border-color 0.25s;
  box-shadow: var(--shadow-card);
}
.testimonial-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-md);
}
.testimonial-stars {
  color: #F59E0B;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}
.testimonial-card blockquote {
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: normal;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 600; color: #fff;
  flex-shrink: 0;
}
.testimonial-info strong {
  display: block;
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 600;
}
.testimonial-info span {
  font-size: 0.8125rem;
  color: var(--text-dim);
}
.testimonial-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: var(--accent-bg);
  border-radius: 4px;
  font-size: 0.6875rem;
  color: var(--accent);
  margin-left: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ============================================================
   CTA Section
   ============================================================ */
.cta {
  text-align: center;
  padding: 5rem 2rem 7rem;
}
.cta h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700; color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.cta p {
  font-size: 1.0625rem;
  max-width: 480px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
}

/* ============================================================
   Use Cases Page
   ============================================================ */
.use-cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.use-case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
  box-shadow: var(--shadow-card);
}
.use-case-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-light);
  transform: translateY(-2px);
}
.use-case-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.use-case-icon svg { width: 26px; height: 26px; }
.use-case-icon.indigo { background: var(--accent-bg); color: var(--accent); }
.use-case-icon.emerald { background: var(--success-bg); color: var(--success); }
.use-case-icon.amber { background: var(--warning-bg); color: var(--warning); }
.use-case-icon.violet { background: rgba(139, 92, 246, 0.08); color: #7C3AED; }
.use-case-card h3 {
  font-size: 1.25rem; font-weight: 600; color: var(--text);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.use-case-card > p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.use-case-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.use-case-list li {
  font-size: 0.875rem;
  color: var(--text-body);
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}
.use-case-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.7rem;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.use-case-card .btn-outline {
  margin-top: 1rem;
}

/* ============================================================
   About Page
   ============================================================ */
.about-mission {
  max-width: 680px;
}
.about-mission p {
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--text-body);
}
.about-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}
.value-card h3 {
  font-size: 1.125rem; font-weight: 600; color: var(--text);
  margin-bottom: 0.625rem;
}
.value-card p {
  font-size: 0.9375rem; color: var(--text-muted); line-height: 1.65;
}
.value-number {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}
.team-note {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 680px;
  box-shadow: var(--shadow-card);
}
.team-note h3 {
  font-size: 1.25rem; font-weight: 600; color: var(--text);
  margin-bottom: 1rem;
}
.team-note p {
  font-size: 0.9375rem; color: var(--text-muted); line-height: 1.7;
  margin-bottom: 1rem;
}
.team-note p:last-of-type { margin-bottom: 0; }

/* ============================================================
   Page Header (inner pages)
   ============================================================ */
.page-header {
  padding-top: 9rem;
  padding-bottom: 3rem;
  text-align: center;
  position: relative;
}
.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.page-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ============================================================
   How It Works — Animated Demos
   ============================================================ */
.demo-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}
.demo-section.reverse {
  direction: rtl;
}
.demo-section.reverse > * {
  direction: ltr;
}
.demo-content h3 {
  font-size: 1.5rem; font-weight: 700; color: var(--text);
  margin-bottom: 0.75rem; letter-spacing: -0.02em;
}
.demo-content p {
  font-size: 1rem; color: var(--text-muted); line-height: 1.7;
  margin-bottom: 1rem;
}
.demo-content ul {
  list-style: none; padding: 0;
}
.demo-content ul li {
  font-size: 0.9375rem; color: var(--text-body);
  padding: 0.35rem 0;
  padding-left: 1.5rem;
  position: relative;
}
.demo-content ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.7rem;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Demo Window Chrome */
.demo-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.demo-titlebar {
  display: flex; align-items: center; gap: 6px;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
.demo-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.demo-dot.red { background: #EF4444; }
.demo-dot.yellow { background: #F59E0B; }
.demo-dot.green { background: #22C55E; }
.demo-body {
  padding: 1.25rem;
  min-height: 280px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

/* --- Chat Demo Animation --- */
.chat-demo { display: flex; flex-direction: column; gap: 0.75rem; }
.chat-msg {
  display: flex; gap: 0.625rem; align-items: flex-start;
  opacity: 0;
  animation: chatFadeIn 0.4s ease forwards;
}
.chat-msg:nth-child(1) { animation-delay: 0.5s; }
.chat-msg:nth-child(2) { animation-delay: 2s; }
.chat-msg:nth-child(3) { animation-delay: 3.5s; }
.chat-msg:nth-child(4) { animation-delay: 5s; }
.chat-msg:nth-child(5) { animation-delay: 6.5s; }
.chat-msg:nth-child(6) { animation-delay: 8s; }

.chat-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6875rem; font-weight: 700; color: #fff;
  flex-shrink: 0; margin-top: 2px;
}
.chat-avatar.human { background: #3B82F6; }
.chat-avatar.agent { background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); }
.chat-bubble {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-body);
  max-width: 85%;
  line-height: 1.5;
}
.chat-bubble .sender {
  font-size: 0.6875rem; font-weight: 600; color: var(--text);
  margin-bottom: 0.2rem;
}
.chat-bubble.agent-bubble {
  border-left: 2px solid var(--accent);
  background: var(--accent-bg);
}
.typing-indicator {
  display: flex; gap: 4px; padding: 0.5rem 0.75rem;
  opacity: 0;
  animation: chatFadeIn 0.3s ease forwards;
  animation-delay: 1.2s;
}
.typing-indicator.delay2 { animation-delay: 4.2s; }
.typing-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-dim);
  animation: typingBounce 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}

/* --- Task Board Demo Animation --- */
.task-board {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
}
.task-column h4 {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.625rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.task-card-mini {
  background: var(--bg-secondary);
  border-radius: 6px;
  padding: 0.5rem 0.625rem;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-body);
  border-left: 3px solid var(--border);
  transition: all 0.3s ease;
}
.task-card-mini.accent { border-left-color: var(--accent); }
.task-card-mini.green { border-left-color: var(--success); }
.task-card-mini.amber { border-left-color: var(--warning); }
.task-tag {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-size: 0.625rem;
  margin-top: 0.25rem;
}
.task-tag.agent-tag {
  background: var(--accent-bg);
  color: var(--accent);
}
.task-tag.human-tag {
  background: rgba(59, 130, 246, 0.08);
  color: #2563EB;
}

/* Task movement animation */
.task-move-1 {
  animation: taskSlideRight 0.6s ease 3s forwards;
}
.task-move-2 {
  animation: taskSlideRight 0.6s ease 5s forwards;
}
.task-move-3 {
  animation: taskFadeComplete 0.6s ease 7s forwards;
}

@keyframes taskSlideRight {
  0% { opacity: 1; transform: translateX(0); }
  40% { opacity: 0.5; transform: translateX(20px); }
  41% { opacity: 0; transform: translateX(20px); }
  100% { opacity: 0; transform: translateX(20px); }
}
@keyframes taskFadeComplete {
  0% { border-left-color: var(--warning); }
  100% { border-left-color: var(--success); background: rgba(22, 163, 74, 0.04); }
}

/* Appear in new column */
.task-appear-1 {
  opacity: 0;
  animation: taskAppear 0.4s ease 3.4s forwards;
}
.task-appear-2 {
  opacity: 0;
  animation: taskAppear 0.4s ease 5.4s forwards;
}
@keyframes taskAppear {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Knowledge Graph Demo Animation --- */
.knowledge-graph {
  position: relative;
  width: 100%;
  height: 260px;
}
.kg-node {
  position: absolute;
  width: auto;
  padding: 0.4rem 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-body);
  white-space: nowrap;
  opacity: 0;
  animation: nodeAppear 0.5s ease forwards;
  box-shadow: var(--shadow-sm);
}
.kg-node.core {
  background: var(--accent-bg);
  border-color: rgba(99, 102, 241, 0.25);
  color: var(--accent);
  font-weight: 600;
}
/* Positions for nodes */
.kg-node:nth-child(1) { top: 45%; left: 38%; animation-delay: 0.3s; }
.kg-node:nth-child(2) { top: 12%; left: 20%; animation-delay: 0.8s; }
.kg-node:nth-child(3) { top: 12%; left: 60%; animation-delay: 1.2s; }
.kg-node:nth-child(4) { top: 45%; left: 5%; animation-delay: 1.6s; }
.kg-node:nth-child(5) { top: 45%; left: 72%; animation-delay: 2s; }
.kg-node:nth-child(6) { top: 78%; left: 15%; animation-delay: 2.5s; }
.kg-node:nth-child(7) { top: 78%; left: 52%; animation-delay: 3s; }
.kg-node:nth-child(8) { top: 25%; left: 42%; animation-delay: 3.5s; }
.kg-node:nth-child(9) { top: 65%; left: 38%; animation-delay: 4s; }

@keyframes nodeAppear {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* Connection lines via SVG */
.kg-lines {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.kg-lines line {
  stroke: var(--border-light);
  stroke-width: 1;
  opacity: 0;
  animation: lineAppear 0.4s ease forwards;
}
.kg-lines line:nth-child(1) { animation-delay: 1s; }
.kg-lines line:nth-child(2) { animation-delay: 1.4s; }
.kg-lines line:nth-child(3) { animation-delay: 1.8s; }
.kg-lines line:nth-child(4) { animation-delay: 2.2s; }
.kg-lines line:nth-child(5) { animation-delay: 2.7s; }
.kg-lines line:nth-child(6) { animation-delay: 3.2s; }
.kg-lines line:nth-child(7) { animation-delay: 3.7s; }
.kg-lines line:nth-child(8) { animation-delay: 4.2s; }

@keyframes lineAppear {
  from { opacity: 0; }
  to { opacity: 0.6; }
}

/* Pulse for "memory growing" effect */
.kg-pulse {
  position: absolute;
  top: 50%; left: 50%;
  width: 120px; height: 120px;
  margin: -60px 0 0 -60px;
  border-radius: 50%;
  background: var(--accent-bg);
  animation: kgPulse 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes kgPulse {
  0%, 100% { transform: scale(0.8); opacity: 0.4; }
  50% { transform: scale(1.3); opacity: 0.1; }
}

/* --- Multi-Agent Coordination Demo --- */
.multi-agent-demo {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.agent-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  opacity: 0;
  animation: chatFadeIn 0.4s ease forwards;
}
.agent-row:nth-child(1) { animation-delay: 0.3s; }
.agent-row:nth-child(2) { animation-delay: 0.6s; }
.agent-row:nth-child(3) { animation-delay: 0.9s; }
.agent-row:nth-child(4) { animation-delay: 1.2s; }

.agent-status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}
.agent-status-dot.online { background: var(--success); animation: dotPulse 2s ease-in-out infinite; }
.agent-status-dot.busy { background: var(--warning); animation: dotPulse 2s ease-in-out infinite 0.5s; }

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

.agent-info-bar {
  flex: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.agent-info-bar .agent-name {
  font-size: 0.8125rem;
  color: var(--text);
  font-weight: 500;
}
.agent-info-bar .agent-task {
  font-size: 0.6875rem;
  color: var(--text-dim);
}
.agent-progress {
  width: 60px; height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}
.agent-progress-bar {
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  animation: progressFill 4s ease-in-out infinite;
}
.agent-progress-bar.slow { animation-duration: 6s; }
.agent-progress-bar.fast { animation-duration: 3s; }

@keyframes progressFill {
  0% { width: 10%; }
  80% { width: 95%; }
  100% { width: 100%; }
}

/* Coordination log box in demo */
.coordination-log {
  margin-top: 0.75rem;
  padding: 0.625rem 0.75rem;
  background: var(--accent-bg);
  border-radius: 6px;
  border: 1px solid rgba(99, 102, 241, 0.12);
  opacity: 0;
  animation: chatFadeIn 0.4s ease 1.8s forwards;
}
.coordination-log .log-title {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}
.coordination-log .log-entries {
  font-size: 0.6875rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
  line-height: 1.6;
}

/* ============================================================
   Stats Row
   ============================================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat-item .stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.stat-item .stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ============================================================
   Footer
   ============================================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 4rem 2rem 2rem;
  background: var(--bg-secondary);
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-dim);
  max-width: 280px;
  margin-top: 0.75rem;
  line-height: 1.65;
}
.footer-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 1rem;
  font-weight: 600;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 0.625rem;
}
.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-col ul li a:hover {
  color: var(--text);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-dim);
}
.footer-bottom a {
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-bottom a:hover { color: var(--text-muted); }
.footer-legal {
  display: flex;
  gap: 1.5rem;
}

/* ============================================================
   Scroll Reveal Animations
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Hero Product Mock
   ============================================================ */
.hero-mock {
  margin-top: 3.5rem;
  perspective: 1200px;
}
.mock-window {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.02);
  overflow: hidden;
  background: var(--bg);
  transform: rotateX(2deg);
  transition: transform 0.4s ease;
}
.mock-window:hover {
  transform: rotateX(0deg);
}
.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.625rem 1rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
.mock-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.mock-dot.red { background: #EF4444; }
.mock-dot.yellow { background: #F59E0B; }
.mock-dot.green { background: #22C55E; }
.mock-title {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-left: 0.5rem;
  font-weight: 450;
}
.mock-body {
  display: grid;
  grid-template-columns: 160px 1fr 150px;
  min-height: 320px;
}

/* Sidebar */
.mock-sidebar {
  border-right: 1px solid var(--border);
  padding: 0.75rem;
  background: var(--bg-secondary);
  font-size: 0.75rem;
}
.mock-workspace-name {
  font-weight: 700;
  color: var(--text);
  font-size: 0.8125rem;
  margin-bottom: 0.875rem;
  padding: 0.25rem 0.375rem;
}
.mock-channel-group {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 600;
  margin: 0.75rem 0 0.375rem;
  padding: 0 0.375rem;
}
.mock-channel {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  color: var(--text-muted);
  font-weight: 450;
  cursor: default;
}
.mock-channel.active {
  background: var(--accent-bg-strong);
  color: var(--accent);
  font-weight: 600;
}
.mock-agent-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.25rem 0.5rem;
  color: var(--text-muted);
  font-weight: 450;
}
.mock-status {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.mock-status.online { background: #22C55E; }
.mock-status.busy { background: #F59E0B; }

/* Chat area */
.mock-chat {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.mock-chat-header {
  padding: 0.625rem 1rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--text);
}
.mock-messages {
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: hidden;
}
.mock-msg {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
.mock-avatar {
  width: 26px; height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.mock-avatar.human { background: #3B82F6; }
.mock-avatar.agent { background: var(--accent); }
.mock-msg-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.mock-sender {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 4px;
}
.mock-agent-badge {
  font-size: 0.5625rem;
  background: var(--accent-bg);
  color: var(--accent);
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.mock-text {
  font-size: 0.6875rem;
  color: var(--text-body);
  line-height: 1.55;
}
.mock-text code {
  background: var(--bg-elevated);
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 0.625rem;
  color: var(--accent);
}

/* Task sidebar */
.mock-tasks {
  border-left: 1px solid var(--border);
  padding: 0.75rem;
  background: var(--bg-secondary);
  font-size: 0.6875rem;
}
.mock-tasks-header {
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--text);
  margin-bottom: 0.75rem;
  padding: 0 0.25rem;
}
.mock-task {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.375rem 0.25rem;
  color: var(--text-muted);
  font-weight: 450;
}
.mock-task.done {
  color: var(--text-dim);
  text-decoration: line-through;
}
.mock-task-check {
  color: var(--success);
  font-size: 0.625rem;
  font-weight: 700;
  width: 14px;
  text-align: center;
}
.mock-task-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.mock-task-circle {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--border-light);
  flex-shrink: 0;
}
.mock-task.in-progress {
  color: var(--text);
  font-weight: 500;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  nav { padding: 0.875rem 1.25rem; }

  .nav-links {
    display: none;
    position: fixed;
    top: 57px; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1rem; }
  .btn-nav { text-align: center; }

  .menu-toggle { display: block; }

  section { padding: 4rem 1.25rem; }

  .hero { padding-top: 7rem; }
  .hero-actions { flex-direction: column; align-items: center; }

  .mock-window { transform: none; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-sidebar { display: none; }
  .mock-tasks { display: none; }
  .mock-chat { border: none; }

  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }

  .demo-section { grid-template-columns: 1fr; gap: 2rem; }
  .demo-section.reverse { direction: ltr; }

  .testimonials-grid { grid-template-columns: 1fr; }

  .use-cases-grid { grid-template-columns: 1fr; }

  .stats-row { grid-template-columns: 1fr 1fr; gap: 1rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-legal { justify-content: center; }

  .about-values-grid { grid-template-columns: 1fr; }

  .task-board { grid-template-columns: 1fr; }

  .page-header { padding-top: 7rem; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .stats-row { grid-template-columns: 1fr; }
}
