/* ═══════════════════════════════════════════════════════
   ViZzo Showcase — styles.css
   Design system oscuro + burdeos/vino
   ═══════════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700;800;900&display=swap");

/* ── Design Tokens ── */
:root {
  /* Fondos */
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: rgba(22, 22, 31, 0.92);
  --bg-elevated: #1c1c28;

  /* Acento burdeos */
  --accent: #59041a;
  --accent-hover: #8b0a2e;
  --accent-soft: rgba(89, 4, 26, 0.3);
  --accent-glow: rgba(139, 10, 46, 0.15);
  --accent-text: #d4364f;
  --accent-bright: #e8435a;

  /* Metálicos / premium */
  --copper: #b8734a;
  --copper-light: #c4956a;
  --copper-glow: rgba(184, 115, 74, 0.2);
  --gold: #c4a24a;

  /* GooeyNav Colores ViZzo */
  --gooey-color-1: #59041a;
  --gooey-color-2: #8b0a2e;
  --gooey-color-3: #d4364f;
  --gooey-color-4: #b8734a;

  /* Texto */
  --text-primary: #e8e8f0;
  --text-secondary: rgba(200, 200, 220, 0.65);
  --text-muted: rgba(200, 200, 220, 0.35);

  /* Bordes */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(89, 4, 26, 0.5);
  --border-copper: rgba(184, 115, 74, 0.3);

  /* Sombras */
  --shadow-accent: 0 4px 30px rgba(89, 4, 26, 0.35);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(89, 4, 26, 0.2);

  /* Tipografía */
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "Consolas", monospace;

  /* Espaciado */
  --section-pad: clamp(80px, 10vw, 140px);
  --container-max: 1200px;

  /* Transiciones */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-med: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: normal;
  scrollbar-color: var(--accent-hover) var(--bg-primary);
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    var(--accent) 0%,
    var(--accent-hover) 50%,
    var(--accent-text) 100%
  );
  border-radius: 999px;
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    var(--accent-hover) 0%,
    var(--accent-text) 50%,
    var(--accent-bright) 100%
  );
  box-shadow: 0 0 12px rgba(212, 54, 79, 0.6);
}

::-webkit-scrollbar-corner {
  background: var(--bg-primary);
}

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

/* ── Noise/Grain overlay ── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ── Scroll Progress Bar ── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--accent-text) 50%,
    var(--copper) 100%
  );
  z-index: 10000;
  transition: width 0.1s linear;
  box-shadow:
    0 0 8px rgba(89, 4, 26, 0.6),
    0 0 20px rgba(212, 54, 79, 0.3);
}

/* ── Utilidades ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

.glow-line {
  height: 1px;
  position: relative;
  z-index: 2;
  clear: both;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent),
    var(--accent-text),
    var(--accent),
    transparent
  );
  box-shadow:
    0 0 8px rgba(89, 4, 26, 0.4),
    0 0 20px rgba(212, 54, 79, 0.15);
  margin: 40px 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid var(--border-accent);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent-soft);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.badge:hover {
  border-color: var(--border-accent);
  color: var(--accent-text);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--copper);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.section-label::before {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  background: var(--copper);
  box-shadow: 0 0 6px var(--copper-glow);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.8;
}

/* ── Scroll Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--transition-slow),
    transform 0.7s var(--transition-slow);
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}
.reveal-delay-5 {
  transition-delay: 0.5s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition: all var(--transition-med);
}

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  background: rgba(8, 8, 14, 0.7);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all var(--transition-med);
}

#navbar.scrolled {
  background: rgba(6, 6, 10, 0.92);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-bottom: 1px solid rgba(212, 54, 79, 0.25);
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.6),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(20px, 4vw, 60px);
  max-width: 1380px;
  margin: 0 auto;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
  transition: transform var(--transition-fast);
}

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

.nav-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(212, 54, 79, 0.45));
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--text-primary);
}

.nav-logo-text span {
  color: var(--accent-text);
  text-shadow: 0 0 12px rgba(212, 54, 79, 0.4);
}

/* ══════════════════════════════════════════
   GOOEY NAV CONTAINER & PARTICLES
══════════════════════════════════════════ */
.gooey-nav-container {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 auto;
}

.gooey-nav-container .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  list-style: none;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.gooey-nav-container .nav-links li {
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 0.5px 1.5px transparent;
}

.gooey-nav-container .nav-links li a {
  text-decoration: none;
  color: rgba(232, 232, 240, 0.75);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  transition: all var(--transition-fast);
  letter-spacing: 0.02em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
}

.gooey-nav-container .nav-links li a:hover {
  color: #ffffff;
}

.gooey-nav-container .nav-links li a.active-section {
  color: var(--accent-text);
  font-weight: 600;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  text-shadow: 0 0 10px rgba(212, 54, 79, 0.45);
}

.gooey-nav-container .nav-links li::after {
  display: none;
}

.gooey-nav-container .effect {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  opacity: 1;
  pointer-events: none;
  display: grid;
  place-items: center;
  z-index: 1;
  border-radius: 999px;
  transition:
    left 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    top 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.gooey-nav-container .effect.text {
  display: none;
}

.gooey-nav-container .effect.filter {
  filter: blur(3px) contrast(5);
  opacity: 0.75;
}

.gooey-nav-container .effect.filter::after {
  display: none;
}

.particle,
.point {
  display: block;
  opacity: 0;
  width: 14px;
  height: 14px;
  border-radius: 100%;
  transform-origin: center;
}

.particle {
  --time: 5s;
  position: absolute;
  top: calc(50% - 7px);
  left: calc(50% - 7px);
  animation: particle calc(var(--time)) ease 1 -350ms;
}

.point {
  background: var(--color);
  opacity: 0.8;
  box-shadow: 0 0 4px var(--color);
  animation: point calc(var(--time)) ease 1 -350ms;
}

@keyframes particle {
  0% {
    transform: rotate(0deg)
      translate(calc(var(--start-x)), calc(var(--start-y)));
    opacity: 1;
    animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45);
  }

  70% {
    transform: rotate(calc(var(--rotate) * 0.5))
      translate(calc(var(--end-x) * 1.2), calc(var(--end-y) * 1.2));
    opacity: 1;
    animation-timing-function: ease;
  }

  85% {
    transform: rotate(calc(var(--rotate) * 0.66))
      translate(calc(var(--end-x)), calc(var(--end-y)));
    opacity: 1;
  }

  100% {
    transform: rotate(calc(var(--rotate) * 1.2))
      translate(calc(var(--end-x) * 0.5), calc(var(--end-y) * 0.5));
    opacity: 1;
  }
}

@keyframes point {
  0% {
    transform: scale(0);
    opacity: 0;
    animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45);
  }

  25% {
    transform: scale(calc(var(--scale) * 0.25));
  }

  38% {
    opacity: 1;
  }

  65% {
    transform: scale(var(--scale));
    opacity: 1;
    animation-timing-function: ease;
  }

  85% {
    transform: scale(var(--scale));
    opacity: 1;
  }

  100% {
    transform: scale(0);
    opacity: 0;
  }
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--accent-hover) 100%
  );
  color: #fff;
  box-shadow: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, #d4364f 100%);
  transform: translateY(-1px);
  box-shadow: none;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-lang:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* Hamburguesa móvil */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

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

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ══════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 20px 80px;
}

/* WebGL Molten Metal background wrapper */
.hero-molten-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Mesh gradient blob */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.hero-blob-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  left: -200px;
  background: radial-gradient(
    circle,
    rgba(89, 4, 26, 0.25) 0%,
    transparent 70%
  );
  animation: blobFloat 8s ease-in-out infinite;
}

.hero-blob-2 {
  width: 500px;
  height: 500px;
  bottom: -100px;
  right: -100px;
  background: radial-gradient(
    circle,
    rgba(139, 10, 46, 0.18) 0%,
    transparent 70%
  );
  animation: blobFloat 11s ease-in-out infinite reverse;
}

.hero-blob-3 {
  width: 300px;
  height: 300px;
  top: 40%;
  left: 60%;
  background: radial-gradient(
    circle,
    rgba(184, 115, 74, 0.1) 0%,
    transparent 70%
  );
  animation: blobFloat 14s ease-in-out infinite;
}

@keyframes blobFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -20px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 15px) scale(0.97);
  }
}

/* Dot grid background */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px
  );
  background-size: 40px 40px;
  mask-image: radial-gradient(
    ellipse 80% 60% at center,
    black 30%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 80% 60% at center,
    black 30%,
    transparent 100%
  );
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--border-copper);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper-light);
  background: rgba(184, 115, 74, 0.08);
  margin-bottom: 28px;
}

.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 6px var(--copper);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.hero-logo-img {
  height: clamp(100px, 18vw, 170px);
  width: auto;
  margin: 12px auto 16px;
  display: block;
  filter: drop-shadow(0 6px 24px rgba(139, 10, 46, 0.45));
  transition: transform var(--transition-med);
}

.hero-logo-img:hover {
  transform: scale(1.04);
}

.hero-logo-text {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 16px;
  text-shadow: none;
}

.hero-logo-text .vi {
  background: linear-gradient(135deg, #e8e8f0 0%, #c8c8d8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-logo-text .zzo {
  background: linear-gradient(
    135deg,
    var(--accent-text) 0%,
    var(--accent-hover) 50%,
    var(--copper) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline-short {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.btn-hero-primary {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--accent-hover) 100%
  );
  color: #fff;
  font-weight: 700;
  box-shadow:
    var(--shadow-accent),
    0 0 40px rgba(89, 4, 26, 0.25);
  letter-spacing: 0.03em;
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 40px rgba(89, 4, 26, 0.5),
    0 0 60px rgba(212, 54, 79, 0.2);
}

.btn-hero-ghost {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  font-weight: 600;
}

.btn-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-copper);
  color: var(--copper-light);
  transform: translateY(-2px);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  animation: fadeInUp 1s 1.5s both;
}

.scroll-arrow {
  width: 20px;
  height: 32px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-arrow::after {
  content: "";
  width: 4px;
  height: 8px;
  background: var(--accent-text);
  border-radius: 2px;
  animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  70% {
    transform: translateY(8px);
    opacity: 0;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ══════════════════════════════════════════
   THE PROBLEM SECTION
══════════════════════════════════════════ */
#problem {
  padding: 100px 20px;
  background: #050508;
  position: relative;
  text-align: center;
}

.problem-quote {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  max-width: 800px;
  margin: 0 auto 24px;
  position: relative;
}

.problem-quote em {
  font-style: normal;
  color: var(--accent-text);
}

.problem-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════
   THE SOLUTION — SPLIT SCREEN
══════════════════════════════════════════ */
#solution {
  padding: var(--section-pad) 0;
  position: relative;
}

.solution-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 0 clamp(20px, 5vw, 60px);
  max-width: var(--container-max);
  margin: 0 auto;
}

.solution-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.solution-visual img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--border-accent);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-med);
}

.solution-visual img:hover {
  border-color: var(--accent-hover);
  box-shadow:
    var(--shadow-card),
    0 0 30px rgba(89, 4, 26, 0.3);
  transform: translateY(-4px);
}

.solution-text .section-title {
  margin-bottom: 20px;
}

.solution-steps {
  list-style: none;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.solution-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-text);
  margin-top: 2px;
}

.step-text strong {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 4px;
}

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

/* Screenshot placeholder */
.screenshot-placeholder {
  position: relative;
  border-radius: 16px;
  border: 2px dashed rgba(89, 4, 26, 0.4);
  background: linear-gradient(
    135deg,
    rgba(22, 22, 31, 0.8) 0%,
    rgba(15, 15, 22, 0.8) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-align: center;
  gap: 12px;
  padding: 32px;
  backdrop-filter: blur(8px);
  transition: all var(--transition-med);
}

.screenshot-placeholder:hover {
  border-color: rgba(89, 4, 26, 0.7);
  background: linear-gradient(
    135deg,
    rgba(22, 22, 31, 0.9) 0%,
    rgba(15, 15, 22, 0.9) 100%
  );
}

.screenshot-placeholder .ph-icon {
  width: 48px;
  height: 48px;
  border: 2px dashed rgba(89, 4, 26, 0.5);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: rgba(89, 4, 26, 0.6);
}

.screenshot-placeholder .ph-label {
  color: var(--accent-soft);
  color: rgba(212, 54, 79, 0.5);
  font-size: 0.78rem;
}

/* ══════════════════════════════════════════
   FEATURES — TIMELINE VERTICAL
══════════════════════════════════════════ */
#features {
  padding: var(--section-pad) 0;
  position: relative;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(89, 4, 26, 0.04) 50%,
    transparent 100%
  );
}

.features-header {
  text-align: center;
  margin-bottom: 80px;
  padding: 0 clamp(20px, 5vw, 60px);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

/* Línea central */
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    transparent,
    var(--border-accent) 10%,
    var(--border-accent) 90%,
    transparent
  );
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 0;
  margin-bottom: 60px;
  align-items: start;
}

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

.timeline-content {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  backdrop-filter: blur(16px);
  transition: all var(--transition-med);
  position: relative;
}

.timeline-content:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow:
    var(--shadow-card),
    0 0 30px rgba(89, 4, 26, 0.1);
}

.timeline-item.left .timeline-content {
  grid-column: 1;
}

.timeline-item.right .timeline-content {
  grid-column: 3;
}

.timeline-item.left .timeline-empty {
  grid-column: 3;
}
.timeline-item.right .timeline-empty {
  grid-column: 1;
}

.timeline-node {
  grid-column: 2;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 24px;
}

.node-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow:
    0 0 0 4px rgba(89, 4, 26, 0.15),
    0 0 20px rgba(89, 4, 26, 0.25);
  animation: nodePulse 3s ease-in-out infinite;
}

@keyframes nodePulse {
  0%,
  100% {
    box-shadow:
      0 0 0 4px rgba(89, 4, 26, 0.15),
      0 0 20px rgba(89, 4, 26, 0.25);
  }
  50% {
    box-shadow:
      0 0 0 8px rgba(89, 4, 26, 0.08),
      0 0 30px rgba(89, 4, 26, 0.4);
  }
}

.node-icon {
  font-size: 1.1rem;
}

.feature-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.feature-tag::before {
  content: "";
  width: 12px;
  height: 1px;
  background: var(--accent-text);
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

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

/* ══════════════════════════════════════════
   CHARTS GALLERY — CAROUSEL HORIZONTAL
══════════════════════════════════════════ */
#charts {
  padding: var(--section-pad) 0;
  overflow: hidden;
  position: relative;
}

.charts-header {
  padding: 0 clamp(20px, 5vw, 60px);
  margin-bottom: 50px;
}

.carousel-wrapper {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 24px;
  padding: 20px clamp(20px, 5vw, 60px);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}
.carousel-track.dragging {
  cursor: grabbing;
}

.chart-card {
  flex-shrink: 0;
  width: 340px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  transition: all var(--transition-med);
}

.chart-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.chart-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #0f0f18, #161624);
  border-bottom: 1px dashed rgba(89, 4, 26, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(89, 4, 26, 0.5);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-align: center;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.chart-img-placeholder .chart-icon-bg {
  font-size: 2.5rem;
  opacity: 0.3;
  margin-bottom: 4px;
}

.chart-img-placeholder .chart-ph-text {
  color: rgba(212, 54, 79, 0.4);
  font-size: 0.7rem;
}

.chart-img-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 2;
  transition: transform var(--transition-med);
}

.chart-card:hover .chart-img-placeholder img {
  transform: scale(1.03);
}

.chart-body {
  padding: 20px;
}

.chart-component {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--copper);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.chart-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.chart-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 24px clamp(20px, 5vw, 60px) 0;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-default);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.carousel-btn:hover {
  border-color: var(--border-accent);
  color: var(--accent-text);
  background: var(--accent-soft);
}

/* ══════════════════════════════════════════
   APIs & TECH STACK — BLUEPRINT GRID
══════════════════════════════════════════ */
#apis {
  padding: var(--section-pad) 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 20, 0) 0%,
    rgba(10, 10, 20, 0.8) 50%,
    rgba(10, 10, 20, 0) 100%
  );
  position: relative;
}

/* Dot grid pattern en apis */
#apis::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(89, 4, 26, 0.08) 1px,
    transparent 1px
  );
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.6;
}

.apis-inner {
  padding: 0 clamp(20px, 5vw, 60px);
  max-width: var(--container-max);
  margin: 0 auto;
}

.apis-header {
  margin-bottom: 60px;
}

.apis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 80px;
}

.api-card {
  background: rgba(22, 22, 31, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 28px 24px;
  backdrop-filter: blur(16px);
  transition: all var(--transition-med);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.api-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-soft) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-med);
  border-radius: 14px;
}

.api-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow:
    var(--shadow-card),
    0 0 30px rgba(89, 4, 26, 0.15);
}

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

.api-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  position: relative;
}

.api-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.api-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.api-type {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.api-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  position: relative;
}

.api-expand-content {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding var(--transition-fast);
}

.api-expand-content.open {
  max-height: 200px;
  padding-top: 14px;
}

.api-expand-content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.api-expand-content li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding-left: 14px;
  position: relative;
}

.api-expand-content li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-text);
  font-size: 0.75rem;
}

/* Tech Stack */
.stack-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.stack-item {
  background: rgba(22, 22, 31, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 16px 18px;
  transition: all var(--transition-fast);
}

.stack-item:hover {
  border-color: var(--border-copper);
  background: rgba(22, 22, 31, 0.8);
}

.stack-layer {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--copper);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.stack-tech {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* ══════════════════════════════════════════
   INSTALLATION — TERMINAL EMBED
══════════════════════════════════════════ */
#install {
  padding: var(--section-pad) 0;
  position: relative;
}

.install-inner {
  padding: 0 clamp(20px, 5vw, 60px);
  max-width: var(--container-max);
  margin: 0 auto;
}

.install-header {
  margin-bottom: 50px;
}

/* Tabs */
.tab-nav {
  display: flex;
  gap: 4px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border-subtle);
}

.tab-btn {
  padding: 12px 24px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  letter-spacing: 0.03em;
  margin-bottom: -1px;
  font-family: var(--font-sans);
}

.tab-btn:hover {
  color: var(--text-secondary);
}

.tab-btn.active {
  color: var(--accent-text);
  border-bottom-color: var(--accent-text);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Terminal */
.terminal {
  background: #080810;
  border: 1px solid var(--border-subtle);
  border-top: none;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

.terminal-bar {
  background: #111118;
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.red {
  background: #ff5f57;
}
.terminal-dot.yellow {
  background: #ffbd2e;
}
.terminal-dot.green {
  background: #28ca41;
}

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

.terminal-copy-btn {
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-mono);
  transition: all var(--transition-fast);
}

.terminal-copy-btn:hover {
  border-color: var(--border-accent);
  color: var(--accent-text);
}

.terminal-copy-btn.copied {
  color: #28ca41;
  border-color: rgba(40, 202, 65, 0.4);
}

.terminal-body {
  padding: 28px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 2;
  overflow-x: auto;
}

.terminal-body .comment {
  color: rgba(120, 120, 160, 0.7);
}

.terminal-body .prompt {
  color: var(--accent-text);
  user-select: none;
}

.terminal-body .cmd {
  color: #c8c8f0;
}

.terminal-body .path {
  color: var(--copper-light);
}

/* Env vars */
.env-block {
  margin-top: 32px;
}

.env-block-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.env-block-title::before {
  content: "";
  width: 12px;
  height: 1px;
  background: var(--copper);
}

.env-key {
  color: var(--copper-light);
}
.env-val {
  color: rgba(130, 200, 120, 0.8);
}
.env-placeholder {
  color: var(--text-muted);
}

/* ══════════════════════════════════════════
   VIDEO TUTORIALS — THEATER MODE
══════════════════════════════════════════ */
#videos {
  padding: var(--section-pad) 0;
  background: #050508;
  position: relative;
}

.videos-inner {
  padding: 0 clamp(20px, 5vw, 60px);
  max-width: var(--container-max);
  margin: 0 auto;
}

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

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.video-card {
  background: #0a0a12;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  transition: all var(--transition-med);
}

.video-card:hover {
  border-color: var(--border-accent);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(89, 4, 26, 0.2);
  transform: translateY(-4px);
}

.video-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #0c0c18, #0f0f1a);
  border-bottom: 1px solid rgba(89, 4, 26, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.video-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-image: linear-gradient(
      135deg,
      rgba(89, 4, 26, 0.5),
      transparent,
      rgba(89, 4, 26, 0.3)
    )
    1;
  pointer-events: none;
}

.video-placeholder video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.video-play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(89, 4, 26, 0.7);
  border: 2px solid var(--accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: 0 0 30px rgba(89, 4, 26, 0.5);
  transition: all var(--transition-fast);
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.video-placeholder.playing .video-play-btn {
  opacity: 0;
  pointer-events: none;
}

.video-placeholder:hover .video-play-btn {
  background: var(--accent-hover);
  transform: scale(1.1);
  box-shadow: 0 0 40px rgba(89, 4, 26, 0.7);
}

.video-ph-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(89, 4, 26, 0.5);
  text-align: center;
}

.video-body {
  padding: 20px;
}

.video-duration {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--copper);
  margin-bottom: 8px;
}

.video-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.video-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.video-tip {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(184, 115, 74, 0.08);
  border: 1px solid rgba(184, 115, 74, 0.3);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--copper-light);
  line-height: 1.5;
}

.video-tip code {
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-text);
  font-size: 0.78rem;
}

/* ══════════════════════════════════════════
   STATS STRIP
══════════════════════════════════════════ */
#stats {
  padding: 60px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 0 clamp(20px, 5vw, 60px);
  max-width: var(--container-max);
  margin: 0 auto;
  text-align: center;
}

.stat-item .stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--accent-text);
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
#footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border-subtle);
  background: #060608;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.footer-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(89, 4, 26, 0.4));
}

.footer-logo-text span {
  color: var(--accent-text);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}

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

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

.footer-divider {
  height: 1px;
  background: var(--border-subtle);
  margin-bottom: 24px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

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

.footer-copy strong {
  color: var(--text-secondary);
}

.footer-tech {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.footer-tech span {
  color: var(--copper);
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 992px) {
  .solution-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .timeline::before {
    left: 24px;
  }

  .timeline-item {
    grid-template-columns: 60px 1fr;
    grid-template-rows: auto;
  }

  .timeline-item.left .timeline-content,
  .timeline-item.right .timeline-content {
    grid-column: 2;
    grid-row: 1;
  }

  .timeline-node {
    grid-column: 1;
    grid-row: 1;
    padding-top: 20px;
  }

  .timeline-item.left .timeline-empty,
  .timeline-item.right .timeline-empty {
    display: none;
  }

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

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(20px);
    padding: 24px;
    border-bottom: 1px solid var(--border-subtle);
    gap: 4px;
  }

  .nav-cta.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: calc(60px + 200px);
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(20px);
    padding: 0 24px 24px;
    gap: 8px;
  }

  .nav-hamburger {
    display: flex;
  }
}

@media (max-width: 768px) {
  .videos-grid {
    grid-template-columns: 1fr;
  }
  .apis-grid {
    grid-template-columns: 1fr;
  }
  .stack-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    flex-direction: column;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .chart-card {
    width: 290px;
  }
}

@media (max-width: 480px) {
  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  .stack-grid {
    grid-template-columns: 1fr;
  }
  .carousel-btn {
    display: none;
  }
}
