/* ============================================
   YFlow Landing Page - Aurora Design System
   Aligned with admin-frontend design tokens
   ============================================ */

/* CSS Variables - Aurora Theme */
:root {
  /* Midnight Color Palette */
  --midnight-50: #f8fafc;
  --midnight-100: #f1f5f9;
  --midnight-200: #e2e8f0;
  --midnight-300: #cbd5e1;
  --midnight-400: #94a3b8;
  --midnight-500: #64748b;
  --midnight-600: #475569;
  --midnight-700: #334155;
  --midnight-800: #1e293b;
  --midnight-900: #0f172a;
  --midnight-950: #020617;

  /* Background Colors */
  --bg-primary: #020617;
  --bg-secondary: #0f172a;
  --bg-tertiary: #1e293b;
  --bg-card: #1e293b;
  --bg-card-hover: #334155;

  /* Text Colors */
  --text-primary: #fafafa;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Aurora Accent Colors */
  --accent-cyan: #06b6d4;
  --accent-teal: #14b8a6;
  --accent-gradient: linear-gradient(135deg, #06b6d4 0%, #14b8a6 100%);
  --accent-gradient-spread: linear-gradient(135deg, #06b6d4 0%, #14b8a6 50%, #0d9488 100%);
  --accent-gradient-ocean: linear-gradient(135deg, #06b6d4 0%, #0891b2 50%, #14b8a6 100%);
  --accent-gradient-midnight: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);

  /* Semantic Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #06b6d4;

  /* Spacing */
  --section-padding: 120px;
  --container-max: 1280px;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.6);
  --shadow-aurora: 0 0 20px rgba(6, 182, 212, 0.2), 0 0 40px rgba(20, 184, 166, 0.1);
  --shadow-aurora-strong: 0 0 30px rgba(6, 182, 212, 0.3), 0 0 60px rgba(20, 184, 166, 0.2);

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

code {
  font-family: var(--font-mono);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(6, 182, 212, 0.1);
  transition: background var(--transition-base);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: transform var(--transition-fast);
}

.logo:hover {
  transform: scale(1.02);
}

.logo-icon {
  width: 32px;
  height: 32px;
  color: var(--accent-cyan);
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width var(--transition-base);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.github-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: all var(--transition-fast);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.github-link:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-aurora);
}

.github-link svg {
  width: 20px;
  height: 20px;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid rgba(6, 182, 212, 0.2);
  transition: all var(--transition-fast);
}

.lang-switcher:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-aurora);
}

.lang-btn {
  background: transparent;
  border: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.15);
}

.lang-divider {
  color: var(--text-muted);
  opacity: 0.5;
  font-size: 0.75rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--accent-cyan);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--accent-teal);
  bottom: -100px;
  left: -100px;
  animation-delay: -7s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: var(--accent-cyan);
  top: 50%;
  left: 50%;
  animation-delay: -14s;
  opacity: 0.2;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -50px) scale(1.1); }
  50% { transform: translate(-30px, 30px) scale(0.95); }
  75% { transform: translate(40px, 20px) scale(1.05); }
}

.hero-container {
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  max-width: 560px;
}

.badge-wrapper {
  margin-bottom: 24px;
}

.badge {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(20, 184, 166, 0.15));
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-cyan);
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

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

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
}

.btn svg {
  width: 20px;
  height: 20px;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: var(--shadow-aurora);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-aurora-strong);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-aurora);
}

.hero-command {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
}

.copy-btn svg {
  width: 16px;
  height: 16px;
}

/* Terminal Demo */
.hero-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.terminal {
  background: var(--bg-secondary);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: var(--font-mono);
  box-shadow: var(--shadow-aurora);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid rgba(6, 182, 212, 0.1);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-card);
}

.terminal-dots span:nth-child(1) { background: #ff5f56; }
.terminal-dots span:nth-child(2) { background: #ffbd2e; }
.terminal-dots span:nth-child(3) { background: #27ca40; }

.terminal-title {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.terminal-content {
  padding: 16px;
}

.cli-step {
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

.cli-step:nth-child(1) { animation-delay: 0.5s; }
.cli-step:nth-child(2) { animation-delay: 2s; }
.cli-step:nth-child(3) { animation-delay: 4s; }

@keyframes fadeIn {
  to { opacity: 1; }
}

.cli-prompt {
  color: var(--accent-cyan);
  margin-right: 8px;
}

.cli-command {
  color: var(--text-primary);
}

.cli-output {
  margin-top: 8px;
  padding-left: 24px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.scanning-animation,
.push-animation {
  color: var(--accent-cyan);
}

.dots::after {
  content: '';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

.scan-result,
.push-result {
  color: var(--success);
}

.ui-preview {
  background: var(--bg-card);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-aurora);
}

.ui-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid rgba(6, 182, 212, 0.1);
}

.ui-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.ui-badge {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: rgba(6, 182, 212, 0.2);
  color: var(--accent-cyan);
  border-radius: var(--radius-full);
}

.ui-content {
  padding: 12px;
}

.ui-row {
  display: grid;
  grid-template-columns: 140px 1fr 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  transition: all var(--transition-base);
}

.ui-row.header-row {
  background: var(--bg-tertiary);
  font-weight: 600;
  color: var(--text-muted);
}

.ui-row:not(.header-row) {
  opacity: 0.5;
}

.ui-row.updated {
  opacity: 1;
  background: rgba(16, 185, 129, 0.1);
  animation: highlight 2s ease forwards;
}

@keyframes highlight {
  0% { background: rgba(16, 185, 129, 0.3); }
  100% { background: rgba(16, 185, 129, 0.1); }
}

.ui-key {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.ui-lang-en,
.ui-lang-zh {
  color: var(--text-secondary);
}

.ui-lang-en.updated {
  color: var(--success);
}

.ui-lang-zh.updated {
  color: var(--text-primary);
}

.ui-change-indicator {
  margin-top: 12px;
  text-align: center;
  padding: 8px;
  background: rgba(6, 182, 212, 0.1);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  opacity: 0;
  animation: fadeIn 0.5s ease 5s forwards;
}

/* Section Common Styles */
.section-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(6, 182, 212, 0.1);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* Features Section */
.features {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
}

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

.feature-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid rgba(6, 182, 212, 0.1);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-aurora-strong);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(20, 184, 166, 0.15));
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent-cyan);
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 12px;
}

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

/* Architecture Section */
.architecture {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
}

.arch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.arch-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid rgba(6, 182, 212, 0.1);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.arch-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-aurora);
}

.arch-header {
  margin-bottom: 20px;
}

.arch-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.arch-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent-teal);
}

.arch-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.arch-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(20, 184, 166, 0.15);
  color: var(--accent-teal);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.arch-features {
  list-style: none;
  margin-bottom: 20px;
}

.arch-features li {
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(6, 182, 212, 0.1);
}

.arch-features li:last-child {
  border-bottom: none;
}

.arch-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(6, 182, 212, 0.1);
}

.arch-stats span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* CLI Section */
.cli-section {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
}

.cli-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.cli-content .section-label {
  display: block;
  text-align: left;
  margin-bottom: 12px;
}

.cli-content .section-title {
  text-align: left;
  margin-bottom: 40px;
}

.workflow-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.workflow-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 2px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.step-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.step-content code {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--accent-cyan);
}

.terminal.large {
  font-size: 0.9rem;
}

.cli-line {
  margin-bottom: 8px;
}

.cli-line.output {
  color: var(--text-secondary);
}

.cli-line.output .success {
  color: var(--success);
  margin-right: 8px;
}

.cli-line.output .scanning,
.cli-line.output .pushing {
  margin-right: 8px;
}

.cli-line.output .found,
.cli-line.output .keys {
  margin-right: 8px;
}

.cli-line.output.indent {
  padding-left: 24px;
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--accent-cyan);
  margin-left: 4px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Docker Section */
.docker-section {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.docker-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.docker-hero {
  text-align: center;
  margin-bottom: 60px;
}

.docker-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(20, 184, 166, 0.2));
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.docker-badge svg {
  width: 48px;
  height: 48px;
  color: var(--accent-cyan);
}

.docker-hero h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.docker-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

.docker-commands {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 700px;
  margin: 0 auto 60px;
}

.command-card {
  background: var(--bg-card);
  border: 1px solid rgba(6, 182, 212, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.command-card:hover {
  border-color: var(--accent-cyan);
}

.command-card.highlight {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-aurora-strong);
}

.command-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid rgba(6, 182, 212, 0.1);
}

.command-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.magic-badge {
  padding: 4px 12px;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
}

.command-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.command-body code {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.command-body code.highlight-code {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.command-note {
  padding: 0 20px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.docker-services h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-secondary);
}

.services-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid rgba(6, 182, 212, 0.1);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.service-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-aurora);
}

.service-icon {
  font-size: 1.25rem;
}

.service-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Roadmap Section */
.roadmap {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
}

.roadmap-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 40px;
}

.roadmap-timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-teal));
}

.timeline-item {
  position: relative;
  padding-bottom: 48px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -40px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 2px solid var(--accent-cyan);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.timeline-marker.pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(6, 182, 212, 0); }
}

.timeline-marker svg {
  width: 16px;
  height: 16px;
  color: var(--success);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid rgba(6, 182, 212, 0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition-base);
}

.timeline-content:hover {
  transform: translateX(4px);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-aurora);
}

.timeline-item.completed .timeline-marker {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.timeline-item.current .timeline-content {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-aurora);
}

.timeline-date {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.timeline-content h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.timeline-content ul {
  list-style: none;
}

.timeline-content li {
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(6, 182, 212, 0.1);
}

.timeline-content li:last-child {
  border-bottom: none;
}

.timeline-content li.in-progress {
  color: var(--accent-cyan);
}

.timeline-content li.future {
  color: var(--text-muted);
}

/* Footer */
.footer {
  padding: 80px 0 40px;
  background: var(--bg-primary);
  border-top: 1px solid rgba(6, 182, 212, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand p {
  margin-top: 12px;
  color: var(--text-secondary);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid rgba(6, 182, 212, 0.1);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-bottom p:first-child {
  margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .arch-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-command {
    justify-content: center;
  }

  .hero-demo {
    max-width: 600px;
    margin: 0 auto;
  }

  .cli-layout {
    grid-template-columns: 1fr;
  }

  .cli-content .section-label,
  .cli-content .section-title {
    text-align: center;
  }

  .workflow-steps {
    max-width: 400px;
    margin: 0 auto;
  }

  .cli-demo-large {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

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

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

  .nav-links {
    display: none;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .services-grid {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 100px 16px 60px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-demo {
    grid-template-columns: 1fr;
  }

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