/* ═══════════════════════════════════════════════
   NovaCode Pro v2 — Estilos principales
   Stack: CSS puro, variables, dark mode
   ═══════════════════════════════════════════════ */

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

:root {
  /* Colores */
  --bg:        #08090f;
  --bg-alt:    #0d0e1a;
  --bg-card:   #0f1020;
  --border:    rgba(99, 102, 241, 0.18);
  --border-2:  rgba(255, 255, 255, 0.06);

  --blue:      #6366f1;
  --purple:    #8b5cf6;
  --cyan:      #06b6d4;
  --green:     #10b981;
  --pink:      #ec4899;

  --text:      #f1f5f9;
  --text-2:    #94a3b8;
  --text-3:    #64748b;

  /* Gradientes */
  --grad-main:   linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
  --grad-blue:   linear-gradient(135deg, #6366f1, #818cf8);
  --grad-purple: linear-gradient(135deg, #8b5cf6, #a78bfa);
  --grad-cyan:   linear-gradient(135deg, #06b6d4, #22d3ee);
  --grad-green:  linear-gradient(135deg, #10b981, #34d399);

  /* Tipografía */
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Espaciado */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Bordes */
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Sombras */
  --shadow-glow-blue:   0 0 40px rgba(99, 102, 241, 0.25);
  --shadow-glow-purple: 0 0 40px rgba(139, 92, 246, 0.25);
  --shadow-glow-cyan:   0 0 40px rgba(6, 182, 212, 0.25);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);

  /* Transiciones */
  --ease:    cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --dur:     300ms;
}

html { scroll-behavior: smooth; }

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

/* ─── Utilidades globales ─── */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

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

/* ─── Botones ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.btn--sm  { padding: var(--space-2) var(--space-5); font-size: 0.875rem; }
.btn--lg  { padding: var(--space-3) var(--space-8); font-size: 1rem; }
.btn--xl  { padding: var(--space-4) var(--space-10); font-size: 1.05rem; }

.btn--primary {
  background: var(--grad-blue);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.55);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid var(--border-2);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* ─── Animaciones de entrada ─── */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════
   NAVEGACIÓN
══════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: var(--space-4);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.nav.is-scrolled {
  background: rgba(8, 9, 15, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border-2);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--text);
  font-size: 1rem;
  flex-shrink: 0;
}
.nav__logo span { font-weight: 400; }
.nav__logo strong { font-weight: 700; }

.nav__links {
  display: flex;
  list-style: none;
  gap: var(--space-2);
  margin-right: auto;
}

.nav__link {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav__link:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.nav__cta { flex-shrink: 0; }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}
.nav__burger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6) var(--space-6);
  border-top: 1px solid var(--border-2);
  background: rgba(8, 9, 15, 0.98);
  backdrop-filter: blur(16px);
}
.nav__mobile.is-open { display: flex; }
.nav__mobile .nav__link { font-size: 1rem; padding: var(--space-3) var(--space-4); }
.nav__mobile .btn { align-self: flex-start; }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__orb {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(80px);
  animation: orbFloat 8s ease-in-out infinite alternate;
}
.hero__orb--1 {
  width: 600px;
  height: 600px;
  top: -200px;
  left: -200px;
  background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, transparent 70%);
  animation-delay: 0s;
}
.hero__orb--2 {
  width: 500px;
  height: 500px;
  top: 100px;
  right: -150px;
  background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, transparent 70%);
  animation-delay: -3s;
}
.hero__orb--3 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: 40%;
  background: radial-gradient(circle, rgba(6,182,212,0.12) 0%, transparent 70%);
  animation-delay: -6s;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 20%, transparent 75%);
}

@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.05); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-block: var(--space-20);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.3);
  color: #a5b4fc;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-8);
  text-transform: uppercase;
}
.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

.hero__title {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-2);
  max-width: 580px;
  margin-inline: auto;
  margin-bottom: var(--space-10);
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-16);
}

.hero__stats {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-8);
  padding: var(--space-6) var(--space-8);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(8px);
  max-width: 600px;
  margin-inline: auto;
}

.stat { text-align: center; }
.stat__value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: var(--space-1);
}
.stat__label {
  font-size: 0.78rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat__divider {
  width: 1px;
  height: 40px;
  background: var(--border-2);
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
}
.scroll__indicator {
  width: 2px;
  height: 48px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  border-radius: 2px;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1; transform: scaleY(1.2); }
}

/* ══════════════════════════════════════
   SECCIONES COMUNES
══════════════════════════════════════ */
.section {
  padding-block: var(--space-24);
}
.section--alt {
  background: var(--bg-alt);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section__tag {
  display: inline-block;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  color: #a5b4fc;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.section__title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-4);
  line-height: 1.15;
}

.section__subtitle {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 520px;
  margin-inline: auto;
  line-height: 1.7;
}

/* ══════════════════════════════════════
   PASOS (CÓMO FUNCIONA)
══════════════════════════════════════ */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.step:hover {
  border-color: rgba(99,102,241,0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-blue);
}

.step__number {
  font-size: 5rem;
  font-weight: 900;
  color: rgba(99,102,241,0.08);
  line-height: 1;
  position: absolute;
  top: var(--space-4);
  right: var(--space-5);
  pointer-events: none;
  user-select: none;
  font-family: var(--font-mono);
}

.step__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.25);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-5);
}
.step__icon--purple {
  background: rgba(139,92,246,0.15);
  border-color: rgba(139,92,246,0.25);
  color: var(--purple);
}
.step__icon--cyan {
  background: rgba(6,182,212,0.15);
  border-color: rgba(6,182,212,0.25);
  color: var(--cyan);
}

.step__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.step__desc {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.step__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(99,102,241,0.12);
  color: #a5b4fc;
  font-size: 0.75rem;
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid rgba(99,102,241,0.2);
}
.step__tag--purple {
  background: rgba(139,92,246,0.12);
  color: #c4b5fd;
  border-color: rgba(139,92,246,0.2);
}
.step__tag--cyan {
  background: rgba(6,182,212,0.12);
  color: #67e8f9;
  border-color: rgba(6,182,212,0.2);
}

.step__connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-inline: var(--space-3);
  padding-top: 80px;
  flex-shrink: 0;
  color: var(--text-3);
}
.connector__line {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--border), transparent);
  margin-bottom: var(--space-2);
}

/* ══════════════════════════════════════
   CARDS (CAPACIDADES)
══════════════════════════════════════ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-5);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover {
  border-color: rgba(99,102,241,0.35);
  transform: translateY(-6px);
}
.card:hover .card__glow { opacity: 1; }

.card__glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
  border-radius: inherit;
}
.card__glow--blue   { box-shadow: inset 0 0 60px rgba(99,102,241,0.08); }
.card__glow--purple { box-shadow: inset 0 0 60px rgba(139,92,246,0.08); }
.card__glow--cyan   { box-shadow: inset 0 0 60px rgba(6,182,212,0.08); }
.card__glow--green  { box-shadow: inset 0 0 60px rgba(16,185,129,0.08); }

.card__icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-5);
}
.card__icon-wrap--blue   { background: rgba(99,102,241,0.12); color: var(--blue); border: 1px solid rgba(99,102,241,0.2); }
.card__icon-wrap--purple { background: rgba(139,92,246,0.12); color: var(--purple); border: 1px solid rgba(139,92,246,0.2); }
.card__icon-wrap--cyan   { background: rgba(6,182,212,0.12); color: var(--cyan); border: 1px solid rgba(6,182,212,0.2); }
.card__icon-wrap--green  { background: rgba(16,185,129,0.12); color: var(--green); border: 1px solid rgba(16,185,129,0.2); }

.card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.card__desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.card__list li {
  font-size: 0.82rem;
  color: var(--text-3);
  padding-left: var(--space-5);
  position: relative;
}
.card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}

/* ══════════════════════════════════════
   DEMO TERMINAL
══════════════════════════════════════ */
.demo {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-5);
  align-items: start;
}

.demo__sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.demo__prompt-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

.demo__prompts {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.demo__prompt {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  padding: var(--space-3) var(--space-4);
  text-align: left;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.demo__prompt:hover {
  background: rgba(99,102,241,0.1);
  border-color: rgba(99,102,241,0.3);
  color: var(--text);
}
.demo__prompt--active {
  background: rgba(99,102,241,0.15);
  border-color: rgba(99,102,241,0.4);
  color: #a5b4fc;
  font-weight: 600;
}
.demo__prompt:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.demo__result-item { margin-top: var(--space-2); }

.result__title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-bottom: var(--space-3);
}

.result__files {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-height: 80px;
}

.result__file {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-2);
  padding: var(--space-2) var(--space-3);
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-2);
  animation: fileAppear 0.3s var(--ease-out) both;
}
@keyframes fileAppear {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: none; }
}

.file__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.file__dot--blue   { background: var(--blue); }
.file__dot--purple { background: var(--purple); }
.file__dot--cyan   { background: var(--cyan); }
.file__dot--green  { background: var(--green); }

/* Terminal */
.demo__terminal {
  background: #0a0b0f;
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-glow-blue), 0 24px 60px rgba(0,0,0,0.5);
  min-height: 380px;
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.terminal__dots { display: flex; gap: 6px; }
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot--red    { background: #ff5f57; }
.dot--yellow { background: #febc2e; }
.dot--green  { background: #28c840; }

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

.terminal__status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.72rem;
  color: var(--text-3);
  font-family: var(--font-mono);
}

.status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-3);
}
.status__dot--active {
  background: var(--green);
  animation: pulse 1.5s ease infinite;
}
.status__dot--done { background: var(--green); animation: none; }

.terminal__body {
  padding: var(--space-5);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
  overflow: hidden;
  min-height: 320px;
  position: relative;
}

.terminal__output { color: var(--text-2); }

.t-prompt   { color: var(--cyan); }
.t-cmd      { color: var(--text); }
.t-comment  { color: var(--text-3); }
.t-success  { color: var(--green); }
.t-info     { color: var(--blue); }
.t-warning  { color: #facc15; }
.t-file     { color: var(--purple); }
.t-url      { color: var(--cyan); text-decoration: underline; }

.terminal__cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--cyan);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ══════════════════════════════════════
   CTA SECTION
══════════════════════════════════════ */
.cta-section {
  padding-block: var(--space-24);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-section__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}
.cta__orb--1 {
  width: 600px;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-60%, -50%);
  background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, transparent 70%);
}
.cta__orb--2 {
  width: 400px;
  height: 400px;
  top: 50%;
  left: 50%;
  transform: translate(20%, -50%);
  background: radial-gradient(circle, rgba(6,182,212,0.12) 0%, transparent 70%);
}

.cta-section__inner {
  position: relative;
  z-index: 1;
}

.cta__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  color: #6ee7b7;
  font-size: 0.8rem;
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-8);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cta__title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-5);
}

.cta__subtitle {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: var(--space-10);
  line-height: 1.7;
}

.cta__actions { margin-bottom: var(--space-6); }

.cta__note {
  font-size: 0.85rem;
  color: var(--text-3);
}

.cta__link {
  color: var(--cyan);
  text-decoration: none;
}
.cta__link:hover { text-decoration: underline; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border-2);
  padding-top: var(--space-12);
  padding-bottom: var(--space-6);
}

.footer__inner {
  display: flex;
  gap: var(--space-16);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--border-2);
}

.footer__brand {
  flex: 1;
}

.footer__tagline {
  font-size: 0.875rem;
  color: var(--text-3);
  margin-top: var(--space-3);
}

.footer__links {
  display: flex;
  gap: var(--space-12);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-bottom: var(--space-1);
}

.footer__link {
  font-size: 0.875rem;
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.footer__link:hover { color: var(--text); }

.footer__bottom {
  padding-top: var(--space-6);
  font-size: 0.8rem;
  color: var(--text-3);
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
  .steps {
    flex-direction: column;
    gap: var(--space-5);
  }
  .step__connector {
    flex-direction: row;
    padding: 0;
    width: 40px;
    align-self: center;
  }
  .connector__line {
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, var(--border), transparent);
    margin-bottom: 0;
    margin-right: var(--space-2);
  }

  .demo {
    grid-template-columns: 1fr;
  }
  .demo__sidebar {
    order: 2;
  }
  .demo__terminal {
    order: 1;
  }
  .demo__prompts {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .footer__inner {
    flex-direction: column;
    gap: var(--space-8);
  }
  .footer__links {
    gap: var(--space-8);
  }
}

@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__mobile { display: none; }

  .hero__stats {
    gap: var(--space-5);
    padding: var(--space-5);
  }
  .stat__divider { display: none; }

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

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

@media (max-width: 480px) {
  .container { padding-inline: var(--space-4); }

  .hero__title { font-size: 2.2rem; }

  .section { padding-block: var(--space-16); }

  .section__header { margin-bottom: var(--space-10); }

  .btn--xl { padding: var(--space-3) var(--space-8); font-size: 0.95rem; }
}
