/* ═══════════════════════════════════════════════════════════════
   PIPE DOCUMENTATION - STYLES
   A refined, developer-focused documentation site
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Color System */
  --bg-primary: #0a0d14;
  --bg-secondary: #0f1219;
  --bg-tertiary: #151a24;
  --bg-elevated: #1a2030;

  --text-primary: #e8ecf4;
  --text-secondary: #8b95a8;
  --text-muted: #5c6678;

  --accent: #22d3ee;
  --accent-dim: rgba(34, 211, 238, 0.15);
  --accent-glow: rgba(34, 211, 238, 0.4);

  --success: #34d399;
  --warning: #fbbf24;
  --info: #60a5fa;

  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(34, 211, 238, 0.3);

  /* Typography */
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-sans: 'Outfit', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --section-spacing: 5rem;
  --container-max: 1100px;
  --container-padding: 1.5rem;

  /* Animation */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ═══════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

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

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

/* Subtle noise texture */
.noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

img {
  max-width: 100%;
  height: auto;
}

::selection {
  background: var(--accent);
  color: var(--bg-primary);
}

/* ═══════════════════════════════════════════════════════════════
   CONTAINER
   ═══════════════════════════════════════════════════════════════ */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 13, 20, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.logo-icon {
  color: var(--accent);
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

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

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

.nav-github {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  margin-left: 0.5rem;
  border-radius: 0;
  background: var(--bg-tertiary);
  transition: background 0.2s ease;
}

.nav-github:hover {
  background: var(--bg-elevated);
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.2s ease;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links.active {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(15, 18, 25, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }

  .nav-links.active a {
    padding: 1rem var(--container-padding);
    border-bottom: 1px solid var(--border);
    display: block;
  }

  .nav-links.active a:last-child {
    border-bottom: none;
  }

  .nav-links.active .nav-github {
    margin: 0.75rem var(--container-padding);
    width: fit-content;
  }
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 32px var(--accent-glow);
  color: var(--bg-primary);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--text-muted);
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 7rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, var(--accent-dim) 0%, transparent 60%);
  filter: blur(60px);
  opacity: 0.6;
}

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

.hero-badge {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 0;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.gradient-text {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto 1.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Terminal */
.hero-terminal {
  max-width: 600px;
  width: 100%;
  margin: 3rem auto 0;
  border-radius: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  overflow: hidden;
  text-align: left;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  position: relative;
}

/* Scroll fade indicator for terminal on mobile */
.hero-terminal::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: calc(100% - 40px);
  background: linear-gradient(to right, transparent, var(--bg-secondary));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
  .hero-terminal::after {
    opacity: 1;
  }
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
}

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

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

.terminal-dots span:first-child { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #febc2e; }
.terminal-dots span:last-child { background: #28c840; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.8;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar for terminal */
.terminal-body::-webkit-scrollbar {
  height: 6px;
}

.terminal-body::-webkit-scrollbar-track {
  background: transparent;
}

.terminal-body::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
}

.terminal-body::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.terminal-body {
  scrollbar-width: thin;
  scrollbar-color: var(--bg-elevated) transparent;
}

.terminal-line {
  display: flex;
  gap: 0.75rem;
}

.terminal-prompt {
  color: var(--accent);
}

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

.terminal-output {
  color: var(--text-secondary);
  padding-left: 1.5rem;
}

.terminal-step {
  color: var(--text-muted);
}

.terminal-success {
  color: var(--success);
}

.terminal-info {
  color: var(--info);
}

.terminal-complete {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
}

.terminal-check {
  color: var(--success);
}

.terminal-highlight {
  color: var(--accent);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════════ */

.section {
  padding: var(--section-spacing) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════════════════════════ */

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

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 1.5rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 0;
  transition: all 0.2s var(--ease-out);
}

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

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 0;
}

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

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

/* ═══════════════════════════════════════════════════════════════
   QUICK START
   ═══════════════════════════════════════════════════════════════ */

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

.step {
  display: flex;
  gap: 1.5rem;
  position: relative;
  padding-bottom: 2rem;
}

.step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 38px;
  bottom: 0;
  width: 1px;
  background: var(--border);
  transform: translateX(-50%);
}

.step-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--bg-primary);
  background: var(--accent);
  border-radius: 0;
}

.step-content {
  flex: 1;
}

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

.step-note {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════
   CODE BLOCKS
   ═══════════════════════════════════════════════════════════════ */

.code-block {
  border-radius: 0;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  overflow: hidden;
  max-width: 100%;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.copy-btn.copied {
  color: var(--success);
}

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

.code-block pre {
  padding: 0.875rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.code-block code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-primary);
  white-space: pre;
}

/* Custom scrollbars for code blocks */
.code-block pre::-webkit-scrollbar {
  height: 6px;
}

.code-block pre::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

.code-block pre::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
}

.code-block pre::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Firefox scrollbar */
.code-block pre {
  scrollbar-width: thin;
  scrollbar-color: var(--bg-elevated) var(--bg-primary);
}

/* Syntax highlighting */
.token-keyword { color: #c792ea; }
.token-string { color: #c3e88d; }
.token-comment { color: var(--text-muted); }
.token-key { color: var(--accent); }

/* ═══════════════════════════════════════════════════════════════
   INSTALLATION
   ═══════════════════════════════════════════════════════════════ */

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

.install-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.install-card {
  padding: 1.25rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 0;
}

.install-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.install-card > p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.requirements {
  max-width: 600px;
  margin: 0 auto;
  padding: 1.25rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 0;
}

.requirements h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.requirements ul {
  list-style: none;
}

.requirements li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
}

.requirements li strong {
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════════
   CONFIGURATION
   ═══════════════════════════════════════════════════════════════ */

.config-priority {
  max-width: 600px;
  margin: 0 auto 3rem;
}

.config-priority h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
}

.priority-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.priority-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0;
}

.priority-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 0;
}

.priority-item strong {
  display: block;
  margin-bottom: 0.25rem;
}

.priority-item span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.config-example {
  max-width: 600px;
  margin: 0 auto 3rem;
}

.config-example h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.config-reference h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: 0;
  border: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

/* Custom scrollbars for tables */
.table-wrapper::-webkit-scrollbar {
  height: 6px;
}

.table-wrapper::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
}

.table-wrapper::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.table-wrapper {
  scrollbar-width: thin;
  scrollbar-color: var(--bg-elevated) var(--bg-tertiary);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th {
  text-align: left;
  padding: 1rem;
  background: var(--bg-tertiary);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

tr:last-child td {
  border-bottom: none;
}

td code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.15rem 0.4rem;
  background: var(--bg-tertiary);
  border-radius: 0;
  color: var(--accent);
}

.required {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  margin-left: 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #f472b6;
  background: rgba(244, 114, 182, 0.15);
  border-radius: 0;
}

.config-note {
  margin-top: 1.25rem;
  padding: 0.875rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0;
}

/* ═══════════════════════════════════════════════════════════════
   DELTA TRANSFER
   ═══════════════════════════════════════════════════════════════ */

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

.delta-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 900px) {
  .delta-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.delta-explanation p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.delta-explanation strong {
  color: var(--text-primary);
}

.delta-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.delta-stat {
  padding: 1.25rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 0;
  text-align: center;
}

.delta-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

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

/* Layer Diagram */
.layer-diagram {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 100%;
}

.layer-side {
  flex: 1;
  min-width: 0;
}

.layer-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.layer {
  padding: 0.625rem 0.75rem;
  margin-bottom: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  border-radius: 0;
  text-align: center;
}

.layer-base { background: #374151; color: #9ca3af; }
.layer-runtime { background: #4b5563; color: #d1d5db; }
.layer-deps { background: #6b7280; color: #e5e7eb; }
.layer-app { background: var(--accent-dim); color: var(--accent); border: 1px solid var(--border-accent); }

.layer-cached {
  background: var(--bg-tertiary);
  border: 1px dashed var(--border);
  color: var(--text-muted);
}

.layer-changed {
  animation: pulse 2s infinite;
}

.layer-total {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.layer-total.highlight {
  color: var(--success);
  font-weight: 600;
}

.layer-arrow {
  flex-shrink: 0;
}

.layer-arrow svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════
   EXAMPLES
   ═══════════════════════════════════════════════════════════════ */

.example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
  gap: 1.5rem;
}

.example-card {
  padding: 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0;
}

.example-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* ═══════════════════════════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════════════════════════ */

.cta {
  background: linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary));
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cta p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */

.footer {
  padding: 3rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.footer-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.footer-brand .logo-icon {
  color: var(--accent);
}

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

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  :root {
    --section-spacing: 3rem;
    --container-padding: 1.25rem;
  }

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

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

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

  .hero-terminal {
    margin: 2rem -0.5rem 0;
  }

  .terminal-body {
    padding: 0.875rem;
    font-size: 0.75rem;
    line-height: 1.6;
  }

  .terminal-line,
  .terminal-output,
  .terminal-complete {
    white-space: nowrap;
  }

  .code-block pre {
    padding: 0.75rem;
  }

  .code-block code {
    font-size: 0.75rem;
  }
}

@media (max-width: 640px) {
  :root {
    --section-spacing: 2.5rem;
    --container-padding: 1rem;
  }

  .hero {
    padding: 5rem 0 2.5rem;
    min-height: auto;
  }

  .hero-badge {
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
  }

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

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

  .hero-subtitle br {
    display: none;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    width: 100%;
    font-size: 0.85rem;
  }

  .hero-terminal {
    margin: 1.5rem -0.25rem 0;
  }

  .terminal-header {
    padding: 0.5rem 0.6rem;
  }

  .terminal-dots span {
    width: 7px;
    height: 7px;
  }

  .terminal-body {
    padding: 0.75rem;
    font-size: 0.7rem;
  }

  .section-header {
    margin-bottom: 1.5rem;
  }

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

  .section-subtitle {
    font-size: 0.9rem;
  }

  .step {
    gap: 1rem;
  }

  .step:not(:last-child)::before {
    left: 12px;
    top: 30px;
  }

  .step-number {
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
  }

  .step-content h3 {
    font-size: 1rem;
  }

  .feature-card {
    padding: 1.25rem;
  }

  .feature-card h3 {
    font-size: 0.95rem;
  }

  .feature-icon {
    width: 36px;
    height: 36px;
  }

  .feature-icon svg {
    width: 18px;
    height: 18px;
  }

  .install-card {
    padding: 1rem;
  }

  .example-card {
    padding: 1rem;
  }

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

  .delta-stat {
    padding: 1rem;
  }

  .delta-value {
    font-size: 1.5rem;
  }

  .layer-diagram {
    flex-direction: column;
    gap: 0.75rem;
  }

  .layer-arrow {
    transform: rotate(90deg);
  }

  .layer-arrow svg {
    width: 20px;
    height: 20px;
  }

  .layer {
    padding: 0.5rem;
    font-size: 0.7rem;
  }

  .priority-item {
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .priority-num {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }

  .priority-item strong {
    font-size: 0.85rem;
  }

  .priority-item span {
    font-size: 0.8rem;
  }

  table {
    font-size: 0.75rem;
  }

  th, td {
    padding: 0.5rem 0.4rem;
  }

  td code {
    font-size: 0.7rem;
    padding: 0.1rem 0.25rem;
  }

  .required {
    font-size: 0.55rem;
    padding: 0.1rem 0.25rem;
    margin-left: 0.25rem;
  }

  .cta h2 {
    font-size: 1.25rem;
  }

  .cta p {
    font-size: 0.9rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .footer-links {
    gap: 1.25rem;
    font-size: 0.85rem;
  }
}

/* Extra small screens */
@media (max-width: 380px) {
  :root {
    --container-padding: 0.75rem;
  }

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

  .terminal-body {
    font-size: 0.65rem;
  }

  .code-block code {
    font-size: 0.7rem;
  }

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