:root {
  --color-bg: #ffffff;
  --color-elev: #ffffff;
  --color-panel: #ffffff;
  --color-border: #e5e7eb;
  --color-primary: #2563eb;
  --color-primary-contrast: #ffffff;
  --color-text: #111827;
  --color-muted: #6b7280;
  --container: 1200px;
  --radius: 12px;
  --shadow-1: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --shadow-2: 0 1px 2px rgba(0,0,0,.06), 0 12px 36px rgba(0,0,0,.08);
}

* {
  box-sizing: border-box;
}

html, body {
  padding: 0;
  margin: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--color-text);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3 {
  margin: 0 0 12px 0;
}

p {
  margin: 0 0 16px 0;
  color: var(--color-muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.center {
  text-align: center;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.subhead {
  font-size: 18px;
  line-height: 1.6;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: #f3f4f6;
  color: #111827;
  text-decoration: none;
  font-weight: 600;
  transition: transform .05s ease, background .25s ease, border-color .25s ease, color .25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-lg {
  height: 48px;
  padding: 0 22px;
  border-radius: 12px;
}

.btn-primary {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

.btn-outline {
  background: transparent;
  border-color: #111827;
  color: #111827;
}

.btn-ghost {
  background: transparent;
  color: #111827;
}

.btn-outline:hover {
  background: #111827;
  color: #ffffff;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
}

.header-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .02em;
}

.logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: #ffffff;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--color-text);
  border: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu a {
  color: var(--color-muted);
  text-decoration: none;
  font-weight: 500;
}

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

.header-cta {
  display: flex;
  gap: 10px;
}

/* Hero */
.hero {
  padding: 72px 0 40px 0;
  background:
    /* capa 1: gradientes suaves */
    radial-gradient(900px 380px at 20% 0%, rgba(37, 99, 235, .10), transparent 60%),
    radial-gradient(700px 360px at 80% 10%, rgba(16, 185, 129, .08), transparent 60%),
    /* capa 2: patrón de puntos sutil */
    radial-gradient(circle at 1px 1px, rgba(0,0,0,.06) 1px, transparent 1px),
    radial-gradient(circle at 1px 1px, rgba(0,0,0,.04) 1px, transparent 1px);
  background-size:
    100% 100%,
    100% 100%,
    16px 16px,
    32px 32px;
  background-position:
    center,
    center,
    0 0,
    0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  place-items: center;
}

.hero-content h1 {
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0 10px 0;
}

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

.cta-group {
  justify-content: center;
}

.logo-bar {
  display: flex;
  gap: 16px;
  align-items: center;
  opacity: .9;
  margin-top: 16px;
  filter: grayscale(100%);
}

.hero-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.card {
  border: 1px solid var(--color-border);
  background: var(--color-elev);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-1);
}

/* Feature hover */
.feature.card {
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}

.feature.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: #d1d5db;
}

.card.stat h3 {
  margin-bottom: 6px;
  font-size: 16px;
}

.icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4338ca;
  background: #e0e7ff;
  border: 1px solid #c7d2fe;
  margin-bottom: 10px;
}

/* Features */
.features {
  padding: 64px 0;
}

.features h2 {
  font-size: 32px;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .08s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}

.feature-header {
  display: flex;
  align-items: center;
}

.feature-header h3 {
  margin: 0 0 8px 0;
}

.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: #cbd5e1;
  background: #ffffff;
}

.feature .icon-square {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  background: #f3f4f6;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  margin: 0 8px 8px 0;
  vertical-align: middle;
  min-width: 36px;
}

.feature .icon-square img {
  max-width: 22px;
  max-height: 22px;
}

/* Override for selected brand icons to fill the square */
.feature .icon-square img[src*="instagram"],
.feature .icon-square img[src*="linkedin"],
.feature .icon-square img[src*="tiktok"],
.feature .icon-square img[src*="whatsapp"],
.feature .icon-square img[src*="snov.io"],
.feature .icon-square img[src*="phantombuster.com"] {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

.feature-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  color: var(--color-muted);
  font-weight: 600;
  align-self: flex-end;
}

.feature h3 {
  display: inline-block;
  vertical-align: middle;
  margin: 0 0 8px 0;
}

.feature-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Feature meta (downloads and rating) */
.feature .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--color-muted);
}

.feature .meta .stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.feature .meta svg {
  width: 16px;
  height: 16px;
}

/* Integrations */
.integrations {
  padding: 64px 0 24px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

.integrations h2 {
  font-size: 28px;
  margin-bottom: 6px;
}

.section-lead {
  margin-bottom: 16px;
}

.integration-icons {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  padding: 0;
  margin: 26px 0 0 0;
  list-style: none;
}

.integration-icons img {
  width: 36px;
  height: 36px;
  margin: 0 auto;
}

/* Boxed treatment for logos that need neutral background */
.integration-icons .logo-box {
  display: grid;
  place-items: center;
}

.integration-icons .logo-box img {
  width: 36px;
  height: 36px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 6px 10px;
}

/* Code sample */
.code-sample {
  padding: 64px 0;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.tabs {
  display: inline-flex;
  background: #f3f4f6;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 4px;
}

.tab {
  background: transparent;
  color: var(--color-muted);
  border: 0;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.tab.active {
  background: #ffffff;
  color: #111827;
}

.code-panels {
  border: 1px solid var(--color-border);
  background: #0b0e1b;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-2);
}

.code-panel {
  display: none;
  margin: 0;
  padding: 18px;
  line-height: 1.6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: #c7d2fe;
}

.code-panel.active {
  display: block;
}

/* Marketplace */
.marketplace {
  padding: 64px 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 14px;
  padding: 0;
  margin: 16px 0;
  list-style: none;
}

.media img {
  border-radius: 12px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-2);
}

/* Enterprise */
.enterprise {
  padding: 64px 0;
}

.enterprise .logo-wall {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  filter: grayscale(100%);
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 14px;
}

.testimonial {
  border: 1px solid var(--color-border);
  background: var(--color-panel);
  border-radius: 12px;
  padding: 16px;
}

.testimonial blockquote {
  font-size: 16px;
  line-height: 1.6;
}

.testimonial figcaption {
  margin-top: 10px;
  color: var(--color-muted);
}

/* Pro services */
.pro-services {
  padding: 64px 0;
}

/* Final CTA */
.final-cta {
  padding: 72px 0;
}

/* Campaigns */
.campaigns {
  padding: 64px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

.campaigns h2 {
  font-size: 32px;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.final-cta h2 {
  font-size: 32px;
  margin-bottom: 16px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: #f9fafb;
  padding: 36px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 2.8fr;
  gap: 24px;
}

.footer-brand p {
  color: var(--color-muted);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.footer-nav .col h3 {
  font-size: 14px;
  margin-bottom: 10px;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav a {
  color: var(--color-muted);
  text-decoration: none;
}

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

.social {
  display: grid;
  gap: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-cards {
    grid-template-columns: repeat(4, 1fr);
  }

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

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

@media (max-width: 768px) {
  .header-row {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    padding: 12px 20px;
  }

  .nav-menu.open {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .hero-content h1 {
    font-size: 34px;
  }

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

  .integration-icons {
    grid-template-columns: repeat(3, 1fr);
  }

  .two-col {
    grid-template-columns: 1fr;
  }

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

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

  .footer-nav {
    grid-template-columns: 1fr 1fr;
  }
}
