/* ============================================
   KING DEAN PROD — Landing Page Styles
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg-primary: #0A0A0F;
  --bg-secondary: #0E0E16;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-card-hover: rgba(255, 255, 255, 0.14);
  --text-primary: #F5F5F5;
  --text-secondary: rgba(245, 245, 245, 0.6);
  --text-muted: rgba(245, 245, 245, 0.4);
  --accent-blue: #3B82F6;
  --accent-violet: #8B5CF6;
  --accent-cyan: #06B6D4;
  --gradient-primary: linear-gradient(135deg, #3B82F6, #8B5CF6);
  --gradient-text: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 50%, #06B6D4 100%);
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --container-max: 1200px;
  --section-pad: clamp(80px, 10vw, 140px);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Manual vs AI comparison */
  --color-manual: #EF4444;
  --color-manual-muted: rgba(239, 68, 68, 0.15);
  --color-ai-glow: rgba(59, 130, 246, 0.15);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul {
  list-style: none;
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* --- Typography --- */
.section-headline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.body-text {
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  max-width: 680px;
}

.body-text--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.accent-text {
  color: var(--text-primary);
  font-weight: 500;
}

.label-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 1rem;
  padding: 6px 14px;
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 100px;
  background: rgba(59, 130, 246, 0.08);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 0 50px rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.1rem;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-base);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-card);
  padding: 12px 0;
}

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

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo-king {
  color: var(--text-primary);
}

.logo-dean {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-prod {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.9em;
  margin-left: 2px;
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color var(--transition-base);
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  padding: 8px 20px !important;
  border-radius: var(--radius-sm) !important;
  background: var(--gradient-primary);
  color: #fff !important;
  font-weight: 500 !important;
}

.nav-cta:hover {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.4;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.hero-glow--1 {
  width: 600px;
  height: 600px;
  background: rgba(59, 130, 246, 0.12);
  top: -10%;
  right: -5%;
}

.hero-glow--2 {
  width: 500px;
  height: 500px;
  background: rgba(139, 92, 246, 0.1);
  bottom: -10%;
  left: -5%;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 2rem;
  padding: 8px 20px;
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 100px;
  background: rgba(6, 182, 212, 0.06);
}

.hero-headline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.hero-cta {
  margin-bottom: 4rem;
}

/* Stats Bar */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  padding: 32px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 clamp(16px, 3vw, 40px);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-card);
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent-blue), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* --- Section Base --- */
.section {
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}

.section-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(150px);
  pointer-events: none;
  opacity: 0.5;
}

.section-glow--left {
  background: rgba(59, 130, 246, 0.08);
  left: -200px;
  top: 20%;
}

.section-glow--right {
  background: rgba(139, 92, 246, 0.08);
  right: -200px;
  top: 30%;
}

.section-glow--center {
  background: rgba(59, 130, 246, 0.06);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
}

.center-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- Origin Story --- */
.origin-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 60px;
  align-items: start;
}

/* --- Comparison Section --- */
.section-comparison {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: stretch;
  margin-top: 3rem;
}

.comparison-card {
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all var(--transition-base);
}

.comparison-card--manual {
  background: var(--color-manual-muted);
  border-color: rgba(239, 68, 68, 0.2);
}

.comparison-card--ai {
  background: var(--color-ai-glow);
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 0 60px rgba(59, 130, 246, 0.08);
}

.comparison-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.comparison-header h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
}

.comparison-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparison-icon--manual {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
}

.comparison-icon--ai {
  background: rgba(59, 130, 246, 0.15);
  color: #3B82F6;
}

.comparison-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.comparison-list li:last-child {
  border-bottom: none;
}

.comparison-metric {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.comparison-value {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: right;
}

.comparison-value--manual {
  color: rgba(239, 68, 68, 0.8);
}

.comparison-value--ai {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.comparison-vs {
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparison-vs span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Tech Cards --- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 3.5rem;
}

.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.tech-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.tech-card:hover::before {
  opacity: 1;
}

.tech-card--wide {
  grid-column: 1 / -1;
}

.tech-card-icon {
  margin-bottom: 20px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.08);
  border-radius: var(--radius-md);
  border: 1px solid rgba(59, 130, 246, 0.12);
}

.tech-card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.tech-card-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.tech-card-caps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.tech-card-caps li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}

.tech-card-caps li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-primary);
}

.tech-card-stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border-card);
}

.tech-stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tech-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Tools Grid (inside wide card) */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.tool-item {
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-base);
}

.tool-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.tool-item h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.tool-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Multi-Agent Flow --- */
.agents-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 3rem 0 2rem;
}

.agent-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-base);
  min-width: 100px;
}

.agent-node:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-card-hover);
  transform: translateY(-4px);
}

.agent-node--review {
  border-color: rgba(6, 182, 212, 0.2);
  background: rgba(6, 182, 212, 0.05);
}

.agent-node--human {
  border-color: rgba(139, 92, 246, 0.25);
  background: rgba(139, 92, 246, 0.08);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.1);
}

.agent-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
}

.agent-node--review .agent-icon {
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.15);
}

.agent-node--human .agent-icon {
  color: var(--accent-violet);
  background: rgba(139, 92, 246, 0.15);
}

.agent-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.agent-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.agent-connector {
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.3), rgba(139, 92, 246, 0.3));
  flex-shrink: 0;
}

.agent-connector--final {
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.3), rgba(139, 92, 246, 0.3));
}

.agents-footnote {
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-top: 1rem;
}

/* --- Pipeline --- */
.section-pipeline {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
}

.pipeline-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 3rem;
}

.pipeline-step {
  padding: 28px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  position: relative;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.5;
}

.pipeline-step.active {
  opacity: 1;
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.06);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.08);
  transform: translateY(-4px);
}

.pipeline-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
  margin-bottom: 16px;
  line-height: 1;
  transition: opacity 0.5s;
}

.pipeline-step.active .pipeline-number {
  opacity: 1;
}

.pipeline-step h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.pipeline-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- KingFlow --- */
.kingflow-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3rem;
}

.kingflow-badge {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  padding: 6px 16px;
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 100px;
  background: rgba(6, 182, 212, 0.06);
  margin-top: 0.5rem;
}

.kingflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.kingflow-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all var(--transition-base);
}

.kingflow-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-card-hover);
  transform: translateY(-4px);
}

.kingflow-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.12);
  color: var(--accent-blue);
  margin-bottom: 16px;
}

.kingflow-card h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.kingflow-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Results --- */
.section-results {
  text-align: center;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 3rem;
}

.result-card {
  padding: 40px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-base);
}

.result-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-card-hover);
  transform: translateY(-4px);
}

.result-value {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.2rem);
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.result-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- CTA --- */
.section-cta {
  position: relative;
}

.cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box {
  position: relative;
  text-align: center;
  padding: 80px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-box .section-headline {
  margin-bottom: 1rem;
}

.cta-box .body-text {
  margin-bottom: 2rem;
}

/* --- Footer --- */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border-card);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

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

.footer-address {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.5;
}

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

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition-base);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.4s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .comparison-vs {
    padding: 8px 0;
  }

  .pipeline-track {
    grid-template-columns: repeat(2, 1fr);
  }

  .kingflow-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .origin-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: 80px 32px 40px;
    gap: 20px;
    transition: right var(--transition-base);
    border-left: 1px solid var(--border-card);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero-headline {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .stats-bar {
    flex-direction: column;
    gap: 16px;
    padding: 24px 20px;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .pipeline-track {
    grid-template-columns: 1fr;
  }

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

  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .agents-flow {
    gap: 8px;
  }

  .agent-connector {
    width: 16px;
  }

  .agent-node {
    padding: 12px 10px;
    min-width: 70px;
  }

  .agent-label {
    font-size: 0.65rem;
  }

  .agent-desc {
    display: none;
  }

  .cta-box {
    padding: 48px 24px;
  }

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

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

  .agents-flow {
    flex-direction: column;
  }

  .agent-connector {
    width: 2px;
    height: 16px;
  }

  .agent-desc {
    display: block;
  }

  .agent-node {
    min-width: 140px;
  }
}
