/* ═══════════════════════════════════════════
   Custom Script Injector — Landing Page CSS
   ═══════════════════════════════════════════ */

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

:root {
  --color-primary:       #4f46e5;
  --color-primary-dark:  #3730a3;
  --color-primary-light: #818cf8;
  --color-accent:        #06b6d4;
  --color-text:          #1f2937;
  --color-text-muted:    #6b7280;
  --color-text-light:    #9ca3af;
  --color-bg:            #ffffff;
  --color-bg-alt:        #f8faff;
  --color-bg-dark:       #0f172a;
  --color-border:        #e5e7eb;
  --color-border-light:  #f3f4f6;

  --font:    'Inter', system-ui, -apple-system, sans-serif;
  --radius:  12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow:    0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.15), 0 8px 20px rgba(0,0,0,.08);
  --transition: 200ms ease;
}

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

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

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }

/* ── Layout ────────────────────────────────── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 760px; }

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.4;
}
.btn-sm  { padding: 7px 16px; font-size: 14px; }
.btn-lg  { padding: 14px 28px; font-size: 16px; border-radius: var(--radius); }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(79,70,229,.35);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 6px 20px rgba(79,70,229,.45);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: rgba(255,255,255,.9);
  border: 2px solid rgba(255,255,255,.3);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.6);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--color-primary);
  font-weight: 700;
  box-shadow: var(--shadow);
}
.btn-white:hover {
  background: var(--color-bg-alt);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: rgba(255,255,255,.85);
  border: 2px solid rgba(255,255,255,.3);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.55);
  color: #fff;
}

/* ── Section helpers ───────────────────────── */
.section { padding: 96px 0; }
.section--alt { background: var(--color-bg-alt); }

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.18;
  color: var(--color-text);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 620px;
  margin-bottom: 56px;
  line-height: 1.65;
}

/* ── Tag badges ────────────────────────────── */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: rgba(255,255,255,.9);
}

/* ════════════════════════════════════════════
   NAV
   ════════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  color: var(--color-text);
  flex-shrink: 0;
}
.nav-icon { width: 24px; height: 24px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--color-text); background: var(--color-border-light); }

.nav-github {
  display: flex !important;
  align-items: center;
  gap: 6px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

/* ── Language toggle button ── */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  min-width: 38px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  line-height: 1;
}
.lang-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-lighter, rgba(99,102,241,.06));
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 16px 24px;
  border-top: 1px solid var(--color-border);
  gap: 4px;
}
.nav-mobile a {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 15px;
  color: var(--color-text-muted);
  transition: all var(--transition);
}
.nav-mobile a:hover { background: var(--color-border-light); color: var(--color-text); }
.nav-mobile .btn { justify-content: center; margin-top: 8px; }

/* ════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 45%, #0f172a 100%);
  padding: 80px 0 80px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(99,102,241,.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(6,182,212,.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -.02em;
}
.hero-title--accent {
  background: linear-gradient(90deg, #818cf8, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 44px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  padding: 0 24px;
}
.hero-stat:first-child { padding-left: 0; }
.hero-stat strong {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.hero-stat span {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  margin-top: 2px;
  white-space: nowrap;
}
.hero-stat-sep {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.15);
}

/* ── Browser mockup ────────────────────────── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.browser-chrome {
  width: 100%;
  max-width: 460px;
  background: #1e293b;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.6), 0 8px 24px rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.08);
}

.browser-bar {
  background: #334155;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.browser-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4b5563;
}
.browser-dots span:nth-child(1) { background: #ef4444; }
.browser-dots span:nth-child(2) { background: #f59e0b; }
.browser-dots span:nth-child(3) { background: #10b981; }

.browser-address {
  flex: 1;
  background: #1e293b;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  color: #94a3b8;
  font-family: monospace;
}

.browser-ext-icon img {
  width: 16px;
  height: 16px;
  opacity: .7;
}

.browser-content {
  position: relative;
  padding: 24px;
  min-height: 280px;
}

.fake-page {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: .25;
}
.fake-line {
  height: 10px;
  border-radius: 4px;
  background: #94a3b8;
}
.fake-line--dark { background: #64748b; height: 14px; }
.fake-line--w30 { width: 30%; }
.fake-line--w40 { width: 40%; }
.fake-line--w50 { width: 50%; }
.fake-line--w60 { width: 60%; }
.fake-line--w70 { width: 70%; }
.fake-line--w80 { width: 80%; }

/* ── Popup mock ────────────────────────────── */
.pm {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 260px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  overflow: hidden;
  font-size: 12px;
}

.pm-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px 8px;
  background: #f8faff;
  border-bottom: 1px solid #e5e7eb;
}
.pm-header img { width: 14px; height: 14px; }
.pm-title { font-weight: 700; font-size: 12px; color: #1f2937; flex: 1; }
.pm-url { font-size: 10px; color: #6b7280; background: #e5e7eb; padding: 2px 6px; border-radius: 4px; }

.pm-actions {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
}

.pm-btn {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.pm-btn--primary { background: #4f46e5; color: #fff; flex: 1; }
.pm-btn--danger  { background: #fee2e2; color: #dc2626; }
.pm-btn--ghost   { background: #f3f4f6; color: #374151; }
.pm-btn--sm      { padding: 3px 7px; font-size: 10px; }

.pm-divider { height: 1px; background: #e5e7eb; margin: 0; }

.pm-section-label {
  padding: 6px 12px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #6b7280;
  text-transform: uppercase;
}

.pm-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  border-bottom: 1px solid #f3f4f6;
  gap: 8px;
}
.pm-item:last-of-type { border-bottom: none; }

.pm-item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.pm-item-name {
  font-weight: 600;
  font-size: 12px;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pm-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  width: fit-content;
}
.pm-badge--domain { background: #dbeafe; color: #1d4ed8; }
.pm-badge--auto   { background: #d1fae5; color: #065f46; }
.pm-badge--global { background: #fef3c7; color: #92400e; }

.pm-item-btns {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}
.pm-icon-btn {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-size: 10px;
  background: #f3f4f6;
  color: #6b7280;
  cursor: pointer;
  transition: all .15s;
}
.pm-icon-btn--red { background: #fee2e2; color: #dc2626; }

.pm-secondary {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  background: #f8faff;
  border-top: 1px solid #e5e7eb;
}

/* ════════════════════════════════════════════
   EXAMPLES / USE CASES
   ════════════════════════════════════════════ */
.examples-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.example-card {
  display: grid;
  grid-template-columns: 340px 1fr;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
  /* La altura la determina solo .example-info; .example-code va en absoluto */
  position: relative;
}
.example-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow);
}

.example-info {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-right: 1px solid var(--color-border);
}

.example-icon {
  font-size: 36px;
  line-height: 1;
}

.example-info h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

.example-info > p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.example-tips {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border-light);
}
.example-tips li {
  font-size: 13px;
  color: var(--color-text-muted);
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}
.example-tips li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* ── Code block ────────────────────────────── */
.example-code {
  /* Posición absoluta: fuera del flujo, no influye en la altura de la tarjeta */
  position: absolute;
  left: 340px;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  background: #0d1117;
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: #161b22;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}

.code-lang {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.35);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.55);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1;
}
.copy-btn:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  color: rgba(255,255,255,.85);
}
.copy-btn.copied {
  background: rgba(16,185,129,.15);
  border-color: rgba(16,185,129,.3);
  color: #34d399;
}

.example-code pre {
  flex: 1;
  overflow-x: auto;
  overflow-y: auto;
  min-height: 0;
  padding: 22px 20px;
  margin: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.15) transparent;
}
.example-code pre::-webkit-scrollbar { width: 5px; height: 5px; }
.example-code pre::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.15);
  border-radius: 3px;
}

.example-code code {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', Consolas, 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.75;
  color: #cdd9e5;
  white-space: pre;
  tab-size: 2;
}

@media (max-width: 900px) {
  .example-card {
    grid-template-columns: 1fr;
  }
  .example-info {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
  /* En móvil vuelve al flujo normal con altura fija scrollable */
  .example-code {
    position: static;
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  .example-info { padding: 24px 20px; }
  .example-code code { font-size: 12px; }
}

/* ════════════════════════════════════════════
   FEATURES
   ════════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: 0 8px 30px rgba(79,70,229,.1);
  transform: translateY(-2px);
}

.feature-card--highlight {
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  border-color: #c7d2fe;
}
.feature-card--highlight:hover { border-color: var(--color-primary); }

.feature-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-primary), #818cf8);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #fff;
}
.feature-icon svg { width: 22px; height: 22px; }

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
  line-height: 1.3;
}

.feature-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ════════════════════════════════════════════
   HOW IT WORKS
   ════════════════════════════════════════════ */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 680px;
  margin-bottom: 64px;
}

.step {
  display: grid;
  grid-template-columns: 52px 2px 1fr;
  gap: 0 24px;
  align-items: start;
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), #818cf8);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(79,70,229,.35);
  position: relative;
  z-index: 1;
}

.step-connector {
  /* grid-row: 1 / 3;
  background: linear-gradient(180deg, var(--color-primary-light), #c7d2fe); */
  width: 2px;
  justify-self: center;
  height: 100%;
  min-height: 60px;
}
.step-connector--last {
  background: transparent;
}

.step-content {
  padding: 0 0 40px 0;
}
.step-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
  padding-top: 12px;
}
.step-content p {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ════════════════════════════════════════════
   INSTALL
   ════════════════════════════════════════════ */
.install-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.install-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-text);
  transition: all var(--transition);
}
.install-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 30px rgba(79,70,229,.1);
  transform: translateY(-2px);
}

.install-card--github:hover { border-color: #374151; box-shadow: 0 8px 30px rgba(0,0,0,.1); }

.install-logo {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.install-logo--github { color: #24292f; }

.install-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.install-store {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.install-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}

.install-arrow {
  font-size: 20px;
  color: var(--color-text-light);
  transition: all var(--transition);
}
.install-card:hover .install-arrow { color: var(--color-primary); transform: translateX(4px); }

.install-note {
  text-align: center;
  font-size: 14px;
  color: var(--color-text-muted);
}
.install-note a { color: var(--color-primary); text-decoration: underline; }
.install-note a:hover { color: var(--color-primary-dark); }

/* ════════════════════════════════════════════
   FAQ
   ════════════════════════════════════════════ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item[open] { border-color: var(--color-primary-light); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  gap: 16px;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--color-bg-alt); }
.faq-item[open] .faq-question { background: #eef2ff; color: var(--color-primary-dark); }

.faq-question::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--color-text-light);
  flex-shrink: 0;
  transition: all var(--transition);
  line-height: 1;
}
.faq-item[open] .faq-question::after {
  content: '−';
  color: var(--color-primary);
  transform: none;
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--color-border-light);
}
.faq-answer p { margin-top: 16px; }
.faq-answer a { color: var(--color-primary); text-decoration: underline; }
.faq-answer a:hover { color: var(--color-primary-dark); }

/* ════════════════════════════════════════════
   CTA FINAL
   ════════════════════════════════════════════ */
.cta-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(79,70,229,.2) 0%, transparent 65%);
  pointer-events: none;
}

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

.cta-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
}

.cta-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}

.cta-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,.65);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
}

.cta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.cta-badges span {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  font-weight: 500;
}

/* ════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════ */
.footer {
  background: #0f172a;
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand img { width: 28px; height: 28px; opacity: .8; }
.footer-brand div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-brand strong {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,.85);
}
.footer-brand span {
  font-size: 12px;
  color: rgba(255,255,255,.4);
}
.footer-brand a {
  color: rgba(255,255,255,.55);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-brand a:hover { color: rgba(255,255,255,.8); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.footer-links a {
  padding: 6px 10px;
  font-size: 13px;
  color: rgba(255,255,255,.45);
  border-radius: 6px;
  transition: all var(--transition);
}
.footer-links a:hover { color: rgba(255,255,255,.8); background: rgba(255,255,255,.06); }

.footer-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}
.footer-copy span {
  font-size: 12px;
  color: rgba(255,255,255,.3);
}
.footer-copy a { color: rgba(255,255,255,.4); text-decoration: underline; }
.footer-copy a:hover { color: rgba(255,255,255,.65); }

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-visual { order: -1; }
  .browser-chrome { max-width: 360px; }
  .pm { width: 220px; }

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

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

@media (max-width: 640px) {
  .section { padding: 64px 0; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile.open { display: flex; }

  .hero { padding: 56px 0 64px; }
  .hero-inner { gap: 32px; }
  .hero-stats { gap: 0; }
  .hero-stat { padding: 0 16px; }

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

  .usecase-list { grid-template-columns: 1fr; }

  .steps { max-width: 100%; }

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

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-copy { text-align: left; }

  .cta-actions { flex-direction: column; align-items: center; }
  .cta-badges { gap: 6px; }
  .cta-badges span { font-size: 12px; }
}

@media (max-width: 440px) {
  .browser-chrome { max-width: 300px; }
  .pm { width: 195px; right: 8px; top: 8px; }
  .pm-item-name { font-size: 11px; }
}
