/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --flux-50: #ECFEFF;
  --flux-100: #CFFAFE;
  --flux-200: #A5F3FC;
  --flux-300: #67E8F9;
  --flux-400: #22D3EE;
  --flux-500: #06B6D4;
  --flux-600: #0891B2;
  --flux-700: #0E7490;
  --flux-800: #155E75;
  --flux-900: #164E63;
  --flux-950: #083344;

  --ai-300: #D8B4FE;
  --ai-400: #C084FC;
  --ai-500: #A855F7;
  --ai-600: #9333EA;
  --ai-700: #7C3AED;
  --ai-800: #6B21A8;
  --ai-900: #581C87;
  --ai-950: #2E1065;

  --surface: #0A0A0B;
  --elevated: #141416;
  --muted: #1C1C1F;
  --border: #27272A;
  --border-light: #3F3F46;

  --text-primary: #F8FAFC;
  --text-secondary: #A1A1AA;
  --text-tertiary: #71717A;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--surface);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

select {
  color-scheme: dark;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--muted);
}
::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--flux-400) 0%, var(--flux-500) 40%, var(--flux-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-ai {
  background: linear-gradient(135deg, var(--ai-400) 0%, var(--ai-500) 50%, var(--ai-700) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-flux {
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.3);
}

.glow-ai {
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.3);
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; box-shadow: 0 0 20px rgba(168, 85, 247, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 40px rgba(168, 85, 247, 0.6); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0) translateX(-50%); }
  50% { transform: translateY(-10px) translateX(-50%); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float 6s ease-in-out 2s infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-bounce {
  animation: bounce 2s ease-in-out infinite;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(10, 10, 11, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(39, 39, 42, 0.5);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo span {
  font-size: 20px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  margin-right: 12px;
  transition: color 0.2s;
}

.nav-hamburger:hover {
  color: var(--flux-400);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--flux-400), var(--flux-600));
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--flux-300), var(--flux-500));
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.btn-outline:hover {
  border-color: var(--border-light);
  color: var(--text-primary);
  background: rgba(255,255,255,0.02);
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 64px;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(39, 39, 42, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 39, 42, 0.3) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
}

.hero-particle {
  position: absolute;
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(46, 16, 101, 0.5);
  border: 1px solid rgba(107, 33, 168, 0.5);
  margin-bottom: 32px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ai-500);
}

.hero-badge span {
  font-size: 14px;
  color: var(--ai-300);
}

.hero-title {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(18px, 3vw, 24px);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
}

.hero-cta .btn-primary {
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.3);
}

.hero-cta .btn-primary:hover {
  transform: scale(1.05);
}

/* Hero Preview */
.hero-preview {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.hero-preview-glow {
  position: absolute;
  inset: -16px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(168, 85, 247, 0.2), rgba(6, 182, 212, 0.2));
  border-radius: 20px;
  filter: blur(24px);
}

.hero-preview-window {
  position: relative;
  background: var(--elevated);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--muted);
  border-bottom: 1px solid var(--border);
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.browser-dot-red { background: rgba(239, 68, 68, 0.8); }
.browser-dot-yellow { background: rgba(234, 179, 8, 0.8); }
.browser-dot-green { background: rgba(34, 197, 94, 0.8); }

.browser-url {
  flex: 1;
  display: flex;
  justify-content: center;
}

.browser-url span {
  padding: 4px 16px;
  border-radius: 6px;
  background: var(--surface);
  font-size: 12px;
  color: var(--text-tertiary);
}

.preview-content {
  padding: 16px;
}

.preview-columns {
  display: flex;
  gap: 12px;
}

.preview-column {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  min-height: 140px;
}

.preview-column-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--text-tertiary);
  font-weight: 500;
  margin-bottom: 8px;
}

.preview-column-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.preview-card {
  background: var(--elevated);
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.preview-card-ai {
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.preview-card-title {
  color: var(--text-primary);
  margin-bottom: 4px;
}

.preview-card-agent {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}

.preview-card-agent svg {
  width: 12px;
  height: 12px;
  color: var(--ai-400);
}

.preview-card-agent span {
  font-size: 10px;
  color: var(--ai-400);
}

.col-backlog { background: rgba(24, 24, 27, 0.5); }
.col-ai { background: rgba(46, 16, 101, 0.3); }
.col-env { background: rgba(5, 46, 22, 0.3); }
.col-merged { background: rgba(30, 27, 75, 0.3); }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-tertiary);
}

/* Logos Section */
.logos {
  padding: 64px 0;
  border-top: 1px solid rgba(39, 39, 42, 0.5);
  border-bottom: 1px solid rgba(39, 39, 42, 0.5);
  background: rgba(20, 20, 22, 0.3);
}

.logos-title {
  text-align: center;
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 32px;
}

.logos-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 48px;
  opacity: 0.5;
}

.logos-grid span {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Features Section */
.features {
  padding: 96px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 24px;
  background: var(--elevated);
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 40px rgba(6, 182, 212, 0.1);
}

.feature-card:nth-child(2):hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 40px rgba(168, 85, 247, 0.1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-icon-ai { background: var(--ai-950); }
.feature-icon-ai svg { color: var(--ai-400); }

.feature-icon-flux { background: var(--flux-950); }
.feature-icon-flux svg { color: var(--flux-400); }

.feature-icon-emerald { background: #052E16; }
.feature-icon-emerald svg { color: #34D399; }

.feature-icon-indigo { background: #1E1B4B; }
.feature-icon-indigo svg { color: #818CF8; }

.feature-icon-amber { background: #451A03; }
.feature-icon-amber svg { color: #FBBF24; }

.feature-icon-rose { background: #4C0519; }
.feature-icon-rose svg { color: #FB7185; }

.feature-icon-workflow { background: linear-gradient(135deg, var(--flux-950), var(--ai-950)); }
.feature-icon-workflow svg { color: var(--flux-300); }

.feature-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 15px;
}

/* How it Works */
.how-it-works {
  padding: 96px 0;
  background: rgba(20, 20, 22, 0.3);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.step {
  position: relative;
  padding-left: 32px;
  padding-top: 32px;
}

.step-number {
  position: absolute;
  top: -16px;
  left: -16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: white;
}

.step-number-1 {
  background: var(--flux-600);
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.3);
}
.step-number-2 {
  background: var(--ai-600);
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.3);
}
.step-number-3 {
  background: #059669;
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.3);
}

.step-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.step-desc {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.step-preview {
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 16px;
}

.step-preview-title {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 8px;
}

.step-preview-text {
  font-size: 12px;
  color: var(--text-tertiary);
}

.step-preview-ai {
  border-color: rgba(168, 85, 247, 0.3);
}

.step-preview-ai-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.step-preview-ai-status svg {
  width: 16px;
  height: 16px;
  color: var(--ai-400);
}

.step-preview-ai-status span {
  font-size: 14px;
  color: var(--ai-300);
}

.step-preview-env {
  border-color: rgba(16, 185, 129, 0.3);
}

.step-preview-env-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.step-preview-env-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
}

.step-preview-env-status span {
  font-size: 14px;
  color: #34D399;
}

/* Pricing */
.pricing {
  padding: 96px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  padding: 32px;
  background: var(--elevated);
  border-radius: 16px;
  border: 1px solid var(--border);
}

.pricing-card-featured {
  position: relative;
  background: linear-gradient(to bottom, rgba(8, 51, 68, 0.5), var(--elevated));
  border-color: rgba(14, 116, 144, 0.5);
  box-shadow: 0 0 80px rgba(6, 182, 212, 0.2);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  background: var(--flux-600);
  font-size: 12px;
  font-weight: 600;
  border-radius: 9999px;
}

.pricing-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.pricing-price {
  margin-bottom: 24px;
}

.pricing-price-value {
  font-size: 40px;
  font-weight: 700;
}

.pricing-price-period {
  color: var(--text-tertiary);
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.pricing-features svg {
  width: 20px;
  height: 20px;
  color: var(--flux-500);
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
  padding: 12px;
}

/* CTA Section */
.cta-section {
  padding: 96px 0;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
}

.cta-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(39, 39, 42, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 39, 42, 0.3) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
}

.cta-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 24px;
}

.cta-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.cta-buttons .btn-primary {
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.3);
}

.cta-link {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.cta-link:hover {
  color: var(--text-primary);
}

/* Footer */
.footer {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand span {
  font-size: 18px;
  font-weight: 700;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-tertiary);
  max-width: 280px;
}

.footer-column h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 8px;
}

.footer-column a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-column a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.footer-copyright {
  font-size: 14px;
  color: var(--text-tertiary);
}


/* Workflow Preview in Hero */
.workflow-preview {
  width: 100%;
  height: auto;
  background: var(--surface);
  border-radius: 8px;
  padding: 24px;
}

.workflow-node {
  cursor: pointer;
  transition: all 0.3s ease;
}

.workflow-node:hover {
  transform: translateY(-2px);
}

.workflow-node-active {
  filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.6));
}

@keyframes flow-animation {
  0% { opacity: 0; transform: translateX(0); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translateX(40px); }
}

.flow-dot {
  animation: flow-animation 2s ease-in-out infinite;
}

.flow-dot-delayed {
  animation: flow-animation 2s ease-in-out 0.7s infinite;
}

.flow-dot-delayed-2 {
  animation: flow-animation 2s ease-in-out 1.4s infinite;
}

.workflow-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(20, 20, 22, 0.5);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.workflow-stat {
  display: flex;
  align-items: center;
  gap: 8px;
}

.workflow-stat-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.workflow-stat-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--flux-400);
}

/* Workflow Showcase Section */
.workflow-showcase {
  padding: 96px 0;
  background: var(--surface);
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--flux-300);
  margin-bottom: 24px;
}

.video-container {
  max-width: 900px;
  margin: 48px auto;
  position: relative;
}

.video-placeholder {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(8, 51, 68, 0.5), rgba(46, 16, 101, 0.3));
  border-radius: 16px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.video-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(39, 39, 42, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 39, 42, 0.2) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
}

.video-play-button {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--flux-500), var(--ai-600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.4);
  position: relative;
  z-index: 1;
}

.video-play-button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 60px rgba(6, 182, 212, 0.6);
}

.video-placeholder-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.video-placeholder-subtext {
  font-size: 14px;
  color: var(--text-tertiary);
  position: relative;
  z-index: 1;
}

.workflow-stats-row {
  display: flex;
  justify-content: center;
  gap: 64px;
  margin-top: 48px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--flux-400), var(--flux-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Node Library Section */
.node-library-section {
  padding: 96px 0;
  background: rgba(20, 20, 22, 0.3);
}

.node-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.node-category {
  background: var(--elevated);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 20px;
  transition: all 0.3s ease;
}

.node-category:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.node-category-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.node-category-icon {
  font-size: 20px;
}

.node-category-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.node-category-count {
  font-size: 12px;
  color: var(--text-tertiary);
  background: var(--muted);
  padding: 2px 8px;
  border-radius: 9999px;
}

.node-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.node-badge {
  padding: 8px 12px;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.node-badge:hover {
  background: var(--surface);
  color: var(--text-primary);
  border-color: var(--flux-700);
}

.node-badge-ai {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(147, 51, 234, 0.1));
  border-color: rgba(168, 85, 247, 0.3);
  color: var(--ai-300);
}

.node-badge-ai:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(147, 51, 234, 0.2));
  border-color: var(--ai-500);
  color: var(--ai-200);
}

.node-badge-git {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.1));
  border-color: rgba(16, 185, 129, 0.3);
  color: #6EE7B7;
}

.node-badge-git:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.2));
  border-color: #10B981;
  color: #A7F3D0;
}

/* Before/After Section */
.before-after {
  padding: 96px 0;
  background: var(--surface);
}

.comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 48px;
}

.comparison-side {
  background: var(--elevated);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 32px;
}

.comparison-before {
  border-color: rgba(239, 68, 68, 0.3);
}

.comparison-after {
  border-color: rgba(16, 185, 129, 0.3);
  background: linear-gradient(to bottom, rgba(5, 46, 22, 0.2), var(--elevated));
}

.comparison-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.comparison-content {
  margin-bottom: 24px;
}

.comparison-content pre {
  margin: 0;
  padding: 20px;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow-x: auto;
}

.comparison-content code {
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.comparison-workflow-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 24px;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow-x: auto;
  margin-bottom: 16px;
}

.mini-node {
  padding: 8px 12px;
  background: var(--muted);
  border-radius: 6px;
  font-size: 11px;
  font-family: 'SF Mono', 'Monaco', monospace;
  color: var(--text-secondary);
  white-space: nowrap;
  border: 1px solid var(--border);
}

.mini-node-trigger {
  background: rgba(8, 51, 68, 0.5);
  border-color: rgba(8, 145, 178, 0.5);
  color: var(--flux-300);
}

.mini-node-git {
  background: rgba(5, 46, 22, 0.5);
  border-color: rgba(5, 150, 105, 0.5);
  color: #6EE7B7;
}

.mini-node-ai {
  background: rgba(46, 16, 101, 0.5);
  border-color: rgba(168, 85, 247, 0.5);
  color: var(--ai-300);
}

.mini-node-logic {
  background: rgba(31, 41, 55, 0.5);
  border-color: rgba(75, 85, 99, 0.5);
  color: #9CA3AF;
}

.mini-node-done {
  background: rgba(5, 46, 22, 0.5);
  border-color: rgba(16, 185, 129, 0.5);
  color: #6EE7B7;
}

.mini-arrow {
  color: var(--text-tertiary);
  font-size: 14px;
}

.comparison-description {
  font-size: 13px;
  color: var(--text-tertiary);
  text-align: center;
  margin: 0;
}

.comparison-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge-problem {
  padding: 6px 12px;
  background: rgba(69, 10, 10, 0.3);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 6px;
  font-size: 12px;
  color: #FCA5A5;
}

.badge-benefit {
  padding: 6px 12px;
  background: rgba(5, 46, 22, 0.3);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 6px;
  font-size: 12px;
  color: #6EE7B7;
}

.comparison-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--elevated);
  border: 1px solid var(--border);
  color: var(--flux-400);
}

/* Workflow Templates */
.workflow-templates {
  padding: 96px 0;
  background: rgba(20, 20, 22, 0.3);
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.template-card {
  background: var(--elevated);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 24px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.template-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3), 0 0 40px rgba(6, 182, 212, 0.1);
}

.template-preview {
  background: var(--surface);
  border-radius: 12px;
  padding: 24px 16px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.template-icon {
  font-size: 40px;
}

.template-nodes {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.template-node {
  padding: 4px 8px;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 10px;
  font-family: 'SF Mono', 'Monaco', monospace;
  color: var(--text-tertiary);
}

.template-node.ai {
  background: rgba(46, 16, 101, 0.3);
  border-color: rgba(168, 85, 247, 0.3);
  color: var(--ai-300);
}

.template-connector {
  color: var(--text-tertiary);
  font-size: 10px;
}

.template-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.template-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.template-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.template-stat {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* Comparison Table */
.comparison-table-section {
  padding: 96px 0;
  background: var(--surface);
}

.comparison-table-wrapper {
  overflow-x: auto;
  margin-top: 48px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--elevated);
}

.comparison-table thead {
  background: var(--muted);
}

.comparison-table th {
  padding: 16px 24px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.comparison-table th.highlight {
  color: var(--flux-300);
  background: rgba(8, 51, 68, 0.5);
}

.comparison-table td {
  padding: 16px 24px;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.table-yes {
  color: #10B981;
  font-size: 18px;
}

.table-yes-highlight {
  color: var(--flux-400);
  filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.5));
}

.table-no {
  color: #71717A;
  font-size: 18px;
}

.table-partial {
  color: #FBBF24;
  font-size: 13px;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--elevated);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
  }

  .nav-links.nav-links-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .preview-columns {
    flex-wrap: wrap;
  }

  .preview-column {
    min-width: calc(50% - 6px);
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .workflow-stats-row {
    flex-direction: column;
    gap: 32px;
  }

  .comparison {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .comparison-divider {
    transform: rotate(90deg);
  }

  .comparison-workflow-preview {
    flex-wrap: wrap;
  }

  .mini-node {
    font-size: 10px;
    padding: 6px 10px;
  }

  .templates-grid {
    grid-template-columns: 1fr;
  }

  .node-categories {
    grid-template-columns: 1fr;
  }

  .comparison-table-wrapper {
    overflow-x: scroll;
  }

  .comparison-table {
    min-width: 600px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 12px 16px;
    font-size: 12px;
  }
}
