/* ============================================================
   Amplify — Landing Page Styles
   Dark tech theme with neon accents
   ============================================================ */

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #0f0f18;
  --bg-card: #12121c;
  --bg-card-hover: #181826;

  --text-primary: #e8e8f0;
  --text-secondary: #9a9ab0;
  --text-muted: #6a6a80;

  --accent-cyan: #00e5ff;
  --accent-purple: #b24dff;
  --accent-blue: #3b82f6;
  --accent-green: #22c55e;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;

  --gradient-primary: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  --gradient-glow: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(178, 77, 255, 0.15));

  --border-color: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(0, 229, 255, 0.2);

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

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 24px;
}

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

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

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---- Particle Canvas ---- */
#particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---- Container ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border-color);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.2rem;
}

.logo-icon {
  font-size: 1.4rem;
  filter: drop-shadow(0 0 8px var(--accent-cyan));
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.nav-github {
  display: flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.nav-github:hover { opacity: 1; }

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

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

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

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 20%, transparent 70%);
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(0, 229, 255, 0.08) 0%, rgba(178, 77, 255, 0.05) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--border-glow);
  background: rgba(0, 229, 255, 0.05);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-cyan);
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent-cyan); }
  50% { opacity: 0.5; box-shadow: 0 0 16px var(--accent-cyan); }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

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

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #0a0a0f;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

/* ---- Hero Stats ---- */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

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

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -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);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

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

/* ---- Sections ---- */
.section {
  position: relative;
  z-index: 1;
  padding: 120px 0;
}

.section-dark {
  background: var(--bg-secondary);
}

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

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-cyan);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
}

.section-desc strong {
  color: var(--text-primary);
}

/* ---- Problem Cards ---- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s;
}

.problem-card:hover {
  border-color: rgba(239, 68, 68, 0.3);
  transform: translateY(-4px);
}

.problem-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent-red);
}

.problem-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

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

/* ---- Solution Banner ---- */
.solution-banner {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 40px;
  overflow: hidden;
}

.solution-glow {
  position: absolute;
  top: -50%;
  left: -10%;
  width: 120%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(0, 229, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.solution-content {
  position: relative;
  text-align: center;
}

.solution-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.solution-content p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
}

.solution-content strong { color: var(--text-primary); }

/* ---- Pipeline (Phases + Gates) ---- */
.pipeline {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}

.pipeline-line {
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom,
    var(--accent-cyan) 0%,
    var(--accent-purple) 50%,
    var(--accent-cyan) 100%);
  opacity: 0.3;
}

.phase-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 16px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.phase-card::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 28px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan);
  z-index: 1;
}

.phase-card:hover {
  border-color: var(--border-glow);
  transform: translateX(4px);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.05);
}

.phase-number {
  min-width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient-glow);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.phase-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.phase-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}

.phase-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-purple);
  background: rgba(178, 77, 255, 0.1);
  padding: 3px 10px;
  border-radius: 100px;
}

/* Gate markers */
.gate-marker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 8px -6px;
  padding-left: 0;
}

.gate-diamond {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--bg-primary);
  flex-shrink: 0;
  z-index: 2;
}

.gate-diamond::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  border-radius: 4px;
  transform: rotate(45deg);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.4);
  z-index: -1;
}

.gate-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transform: rotate(0);
  margin-left: 8px;
}

/* ---- Architecture Stack ---- */
.arch-stack {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.arch-layer {
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border-color);
  transition: transform 0.3s, box-shadow 0.3s;
}

.arch-layer:hover {
  transform: translateY(-4px);
}

.arch-meta {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), rgba(239, 68, 68, 0.04));
  border-color: rgba(245, 158, 11, 0.2);
}
.arch-meta:hover { box-shadow: 0 0 30px rgba(245, 158, 11, 0.1); }
.arch-meta .arch-layer-icon { color: var(--accent-amber); background: rgba(245, 158, 11, 0.1); }

.arch-discipline {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.06), rgba(178, 77, 255, 0.04));
  border-color: rgba(59, 130, 246, 0.2);
}
.arch-discipline:hover { box-shadow: 0 0 30px rgba(59, 130, 246, 0.1); }
.arch-discipline .arch-layer-icon { color: var(--accent-blue); background: rgba(59, 130, 246, 0.1); }

.arch-workflow {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.06), rgba(34, 197, 94, 0.04));
  border-color: rgba(0, 229, 255, 0.2);
}
.arch-workflow:hover { box-shadow: 0 0 30px rgba(0, 229, 255, 0.1); }
.arch-workflow .arch-layer-icon { color: var(--accent-cyan); background: rgba(0, 229, 255, 0.1); }

.arch-layer-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.arch-layer-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arch-layer-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.arch-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.arch-question {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding-left: 60px;
}

.arch-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 60px;
}

.skill-chip {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s;
}

.skill-chip:hover {
  border-color: var(--border-glow);
  color: var(--text-primary);
}

/* ---- Features Grid ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--gradient-glow);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 20px;
}

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

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

/* ---- Comparison Table ---- */
.comparison-table {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}

.comp-header {
  display: grid;
  grid-template-columns: 160px 1fr 1fr;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 24px;
}

.comp-row {
  display: grid;
  grid-template-columns: 160px 1fr 1fr;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.2s;
}

.comp-row:last-child { border-bottom: none; }
.comp-row:hover { background: rgba(255, 255, 255, 0.02); }

.comp-col {
  font-size: 0.88rem;
  line-height: 1.6;
  padding: 0 8px;
}

.comp-label-col {
  font-weight: 600;
  color: var(--text-primary);
}

.comp-before { color: var(--text-muted); }
.comp-after { color: var(--accent-cyan); }

.comp-badge {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 100px;
}

.comp-badge-before {
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-red);
}

.comp-badge-after {
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent-cyan);
}

/* ---- Control Grid ---- */
.control-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.control-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}

.control-card:hover {
  transform: translateY(-4px);
}

.control-card-highlight {
  border-color: var(--border-glow);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.04), rgba(178, 77, 255, 0.03));
}

.control-level {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.control-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.control-best {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- Steps / Getting Started ---- */
.steps {
  max-width: 720px;
  margin: 0 auto 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step-number {
  min-width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--bg-primary);
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.code-block {
  background: #0d0d14;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-color);
}

.code-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.code-dot:nth-child(1) { background: #ff5f57; }
.code-dot:nth-child(2) { background: #febc2e; }
.code-dot:nth-child(3) { background: #28c840; }

.code-title {
  margin-left: 8px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.code-block pre {
  padding: 16px 20px;
  overflow-x: auto;
}

.code-block code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.code-comment { color: var(--text-muted); }

/* Prerequisites */
.prereq {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.prereq h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.prereq-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.prereq-chip {
  font-size: 0.82rem;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 500;
}

.prereq-note {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---- Footer ---- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-color);
  padding: 48px 0 32px;
  background: var(--bg-primary);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand .logo-icon { font-size: 1.2rem; }
.footer-brand .logo-text { font-size: 1.1rem; font-weight: 700; }

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  text-align: center;
}

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

/* ---- Animations ---- */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.animate-in:nth-child(1) { animation-delay: 0.1s; }
.animate-in:nth-child(2) { animation-delay: 0.25s; }
.animate-in:nth-child(3) { animation-delay: 0.4s; }
.animate-in:nth-child(4) { animation-delay: 0.55s; }
.animate-in:nth-child(5) { animation-delay: 0.7s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
  }
  .nav-toggle { display: flex; }

  .section { padding: 80px 0; }

  .hero { padding: 100px 20px 60px; min-height: auto; }
  .hero-stats { gap: 20px; }
  .stat-divider { display: none; }

  .pipeline { padding-left: 32px; }
  .pipeline-line { left: 12px; }
  .phase-card::before { left: -26px; }
  .phase-card { padding: 20px; }

  .comp-header,
  .comp-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .comp-label-col { font-size: 0.82rem; }
  .comp-before::before { content: '✗ '; color: var(--accent-red); }
  .comp-after::before { content: '✓ '; }

  .arch-question,
  .arch-skills { padding-left: 0; }

  .step-card { flex-direction: column; }

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

  .footer-inner { flex-direction: column; gap: 24px; }
}
