/* AffiliaTracker Landing — Styles */
:root {
  --dark: #1f2937;
  --dark-2: #374151;
  --mid: #6b7280;
  --muted: #9ca3af;
  --bg-light: #f3f4f6;
  --bg-lighter: #f9fafb;
  --border: #e5e7eb;
  --white: #ffffff;
  --crm: #ea580c;
  --leadgen: #16a34a;
  --affiliate: #2563eb;
  --marketing: #4f46e5;
  --grad-cta: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  --grad-hero: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 24px 60px rgba(0,0,0,0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 120px 0; }
@media (max-width: 768px) { section { padding: 80px 0; } }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: 64px; font-weight: 800; letter-spacing: -0.04em; }
h2 { font-size: 48px; }
h3 { font-size: 24px; font-weight: 600; }
p { color: var(--mid); }

@media (max-width: 768px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
  body { font-size: 16px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 980px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  font-family: inherit;
}
.btn-primary {
  background: var(--grad-cta);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover { transform: scale(1.02); filter: brightness(1.08); box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5); }
.btn-outline {
  background: transparent;
  color: var(--affiliate);
  border: 1.5px solid var(--affiliate);
}
.btn-outline:hover { background: var(--affiliate); color: var(--white); }
.btn-outline-white {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.6); }
.btn-ghost { background: transparent; color: var(--dark); padding: 10px 16px; }
.btn-ghost:hover { color: var(--affiliate); }

/* Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  z-index: 100;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 20px;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color 0.3s;
}
.navbar.scrolled .logo { color: var(--dark); }
.logo-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--grad-cta);
  display: grid; place-items: center;
  color: white;
  font-weight: 800;
  font-size: 14px;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
.navbar.scrolled .nav-links a { color: var(--dark); }
.nav-links a:hover { color: var(--affiliate); }
.navbar.scrolled .nav-links a:hover { color: var(--affiliate); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-cta .btn-ghost { color: rgba(255,255,255,0.9); }
.navbar.scrolled .nav-cta .btn-ghost { color: var(--dark); }
.nav-cta .btn-primary { padding: 10px 20px; font-size: 14px; }
.lang-switch {
  display: inline-flex;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 980px;
  padding: 3px;
  margin-right: 8px;
}
.navbar.scrolled .lang-switch { background: var(--bg-light); border-color: var(--border); }
.lang-switch button {
  padding: 5px 12px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  border-radius: 980px;
  transition: all 0.2s;
  font-family: inherit;
}
.navbar.scrolled .lang-switch button { color: var(--mid); }
.lang-switch button.active {
  background: var(--white);
  color: var(--dark);
}
.navbar.scrolled .lang-switch button.active { background: var(--dark); color: white; }

.burger { display: none; background: none; border: none; color: white; cursor: pointer; padding: 8px; }
.navbar.scrolled .burger { color: var(--dark); }
@media (max-width: 900px) {
  .nav-links, .nav-cta .btn-ghost, .nav-cta .btn-primary { display: none; }
  .burger { display: block; }
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--white);
  z-index: 200;
  padding: 80px 24px 24px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-size: 24px;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu .close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none;
  font-size: 32px; cursor: pointer;
}

/* Hero */
.hero {
  min-height: 100vh;
  background: var(--grad-hero);
  color: white;
  position: relative;
  overflow: hidden;
  padding: 140px 0 80px;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(37,99,235,0.25), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(79,70,229,0.22), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(234,88,12,0.08), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 16px;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  margin-bottom: 28px;
}
.hero h1 { color: white; margin-bottom: 24px; }
.hero h1 .accent { background: var(--grad-cta); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .subtitle {
  font-size: 20px;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.55;
}
@media (max-width: 1024px) { .hero .subtitle { margin-left: auto; margin-right: auto; } }
@media (max-width: 768px) { .hero .subtitle { font-size: 16px; } }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
@media (max-width: 1024px) { .hero-ctas { justify-content: center; } }
.social-strip {
  display: flex; flex-wrap: wrap; gap: 32px;
  color: rgba(255,255,255,0.55);
  font-size: 14px;
}
.social-strip b { color: rgba(255,255,255,0.9); font-weight: 700; }
@media (max-width: 1024px) { .social-strip { justify-content: center; } }

/* Hero visual */
.hero-visual {
  position: relative;
  height: 480px;
  perspective: 1600px;
}
.dash-card {
  position: absolute;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.06);
  background: var(--dark-2);
}
.dash-card img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.dash-primary {
  inset: 0;
  transform: rotateY(-10deg) rotateX(6deg) rotateZ(-1deg);
  transform-origin: center;
}
.dash-secondary {
  width: 60%; height: 55%;
  bottom: -20px; right: -30px;
  transform: rotateY(-8deg) rotateX(4deg) rotateZ(2deg);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255,255,255,0.1);
}
.floating-kpi {
  position: absolute;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 14px 18px;
  color: white;
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.kpi-1 { top: 10%; left: -20px; animation-delay: 0s; }
.kpi-2 { top: 55%; right: -10px; animation-delay: 2s; }
.floating-kpi .kpi-label { font-size: 11px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.floating-kpi .kpi-value { font-size: 20px; font-weight: 700; }
.floating-kpi .kpi-value .trend { color: #4ade80; font-size: 13px; margin-left: 4px; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@media (max-width: 1024px) { .hero-visual { height: 380px; margin-top: 20px; } }
@media (max-width: 640px) { .hero-visual { height: 280px; } .kpi-1, .kpi-2 { display: none; } }

/* Logo bar */
.logo-bar {
  padding: 60px 0;
  background: white;
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.logo-bar-title {
  text-align: center;
  color: var(--mid);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
}
.marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 72px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  color: var(--muted);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  opacity: 0.55;
  transition: opacity 0.3s;
  display: flex; align-items: center; gap: 8px;
}
.marquee-item:hover { opacity: 1; color: var(--dark); }
.marquee-item .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: 0.5; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Ecosystem (sec 4) */
.ecosystem { background: var(--bg-lighter); text-align: center; }
.sec-intro { max-width: 720px; margin: 0 auto 64px; }
.sec-intro h2 { margin-bottom: 20px; }
.sec-intro p { font-size: 19px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--affiliate);
  margin-bottom: 16px;
}

.orbit {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  aspect-ratio: 16/9;
}
.orbit-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 140px; height: 140px;
  border-radius: 50%;
  background: var(--grad-cta);
  display: grid; place-items: center;
  color: white;
  font-weight: 700;
  text-align: center;
  line-height: 1.1;
  padding: 16px;
  box-shadow: 0 16px 48px rgba(37,99,235,0.35);
  font-size: 14px;
  z-index: 2;
}
.orbit-core small { display: block; font-size: 10px; letter-spacing: 0.1em; opacity: 0.85; font-weight: 500; margin-bottom: 4px; }
.orbit-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 80%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1.5px dashed var(--border);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.orbit-node {
  position: absolute;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  min-width: 180px;
}
.orbit-node .icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.orbit-node .label { font-weight: 600; font-size: 15px; color: var(--dark); }
.orbit-node .sub { font-size: 11px; color: var(--mid); text-transform: uppercase; letter-spacing: 0.05em; }
.node-tl { top: 5%; left: 3%; }
.node-tr { top: 5%; right: 3%; }
.node-bl { bottom: 5%; left: 3%; }
.node-br { bottom: 5%; right: 3%; }
@media (max-width: 768px) {
  .orbit { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 480px; }
  .orbit-core, .orbit-ring { display: none; }
  .orbit-node { position: static; min-width: 0; }
}

/* Clouds grid */
.clouds-sec { background: white; }
.cloud-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 900px) { .cloud-grid { grid-template-columns: 1fr; } }
.cloud-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.cloud-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
}
.cloud-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cloud-card .cloud-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--accent-bg);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.cloud-card h3 { margin-bottom: 12px; }
.cloud-card p { font-size: 16px; margin-bottom: 20px; color: var(--mid); line-height: 1.6; }
.cloud-card .learn {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.cloud-card .learn:hover { gap: 10px; }

.cloud-feats {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 20px;
}
.cloud-feat {
  background: var(--bg-lighter);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--mid);
  font-weight: 500;
}

/* AI section */
.ai-sec {
  background: var(--dark);
  color: white;
  position: relative;
  overflow: hidden;
}
.ai-sec::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 50%, rgba(37,99,235,0.2), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(79,70,229,0.15), transparent 50%);
}
.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
@media (max-width: 900px) { .ai-grid { grid-template-columns: 1fr; } }
.ai-sec h2 { color: white; margin-bottom: 20px; }
.ai-sec p { color: rgba(255,255,255,0.7); font-size: 18px; margin-bottom: 28px; }
.ai-sec .eyebrow { color: #60a5fa; }
.ai-list { list-style: none; margin-bottom: 32px; }
.ai-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0;
  color: rgba(255,255,255,0.85);
  font-size: 16px;
}
.ai-list li svg { flex-shrink: 0; margin-top: 3px; color: #34d399; }

.neural {
  position: relative;
  aspect-ratio: 1;
  max-width: 460px;
  margin: 0 auto;
}
.neural svg { width: 100%; height: 100%; }
.neural-node {
  fill: white;
  stroke-width: 2;
}

/* Stories */
.stories-sec { background: var(--bg-lighter); }
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 900px) { .story-grid { grid-template-columns: 1fr; } }
.story-card {
  background: white;
  border-radius: 20px;
  padding: 48px 40px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.story-card .metric {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  line-height: 1;
}
.story-card.blue .metric { color: var(--affiliate); }
.story-card.indigo .metric { color: var(--marketing); }
.story-card blockquote {
  font-size: 17px;
  line-height: 1.65;
  color: var(--dark);
  margin-bottom: 24px;
  font-style: normal;
  position: relative;
  padding-left: 16px;
  border-left: 3px solid var(--border);
}
.story-card .attribution {
  font-size: 14px;
  color: var(--mid);
  font-weight: 500;
  margin-bottom: 20px;
}
.story-card .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.story-card .tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
}
.tag-affiliate { background: rgba(37,99,235,0.1); color: var(--affiliate); }
.tag-crm { background: rgba(234,88,12,0.1); color: var(--crm); }
.tag-marketing { background: rgba(79,70,229,0.1); color: var(--marketing); }
.tag-leadgen { background: rgba(22,163,74,0.1); color: var(--leadgen); }
.tag-neutral { background: var(--bg-light); color: var(--mid); }

/* Pricing */
.pricing-sec { background: white; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.plan {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan.featured {
  border: 2px solid transparent;
  background:
    linear-gradient(white, white) padding-box,
    var(--grad-cta) border-box;
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}
.plan.featured:hover { transform: scale(1.03) translateY(-4px); }
.plan-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--grad-cta);
  color: white;
  padding: 5px 14px;
  border-radius: 980px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.plan h3 { font-size: 20px; margin-bottom: 4px; }
.plan .plan-focus {
  font-size: 13px;
  color: var(--mid);
  margin-bottom: 24px;
  font-weight: 500;
}
.plan .price {
  font-size: 44px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.03em;
  line-height: 1;
}
.plan .price .per { font-size: 16px; font-weight: 500; color: var(--mid); }
.plan .price-sub { font-size: 13px; color: var(--muted); margin-top: 4px; margin-bottom: 28px; }
.plan ul { list-style: none; margin-bottom: 28px; }
.plan li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0;
  font-size: 15px;
  color: var(--dark);
  border-bottom: 1px solid var(--bg-light);
}
.plan li:last-child { border-bottom: none; }
.plan li svg { flex-shrink: 0; margin-top: 3px; }
.plan li .check { color: var(--leadgen); }
.plan li .dash { color: var(--muted); }
.plan li span.muted { color: var(--muted); text-decoration: line-through; }
.plan .btn { width: 100%; }

.services-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
@media (max-width: 768px) { .services-row { grid-template-columns: 1fr; } }
.service-card {
  background: var(--bg-lighter);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
.service-card h4 { font-size: 15px; margin-bottom: 6px; }
.service-card p { font-size: 13px; color: var(--mid); line-height: 1.5; }

/* Comparison */
.compare-sec { background: var(--bg-lighter); }
.compare-wrap {
  overflow-x: auto;
  margin-top: 48px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  min-width: 780px;
}
.compare-table th, .compare-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.compare-table th {
  background: var(--bg-lighter);
  font-weight: 600;
  color: var(--dark);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.compare-table th:first-child { background: white; }
.compare-table td:first-child { font-weight: 600; color: var(--dark); }
.compare-table .col-us {
  background: rgba(37,99,235,0.04);
  border-left: 3px solid var(--affiliate);
  font-weight: 600;
  color: var(--dark);
}
.compare-table th.col-us {
  background: rgba(37,99,235,0.08);
  color: var(--affiliate);
}
.compare-table .yes { color: var(--leadgen); font-weight: 600; }
.compare-table .no { color: var(--muted); }

/* Security */
.security-sec { background: white; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-card {
  padding: 36px 28px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-lighter);
  text-align: left;
}
.trust-card .trust-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: white;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--affiliate);
  margin-bottom: 20px;
}
.trust-card h3 { font-size: 20px; margin-bottom: 10px; }
.trust-card p { font-size: 15px; line-height: 1.6; }

.integrations {
  margin-top: 72px;
  text-align: center;
}
.integrations-label {
  color: var(--mid);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.integration-logos {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
}
.integration-logos span {
  color: var(--muted);
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.integration-logos .soon {
  font-size: 10px;
  background: var(--bg-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* FAQ */
.faq-sec { background: var(--bg-lighter); }
.faq-list { max-width: 800px; margin: 48px auto 0; }
.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  color: var(--dark);
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s;
}
.faq-q:hover { background: var(--bg-lighter); }
.faq-q .chev { transition: transform 0.3s; color: var(--mid); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 24px;
  color: var(--mid);
  font-size: 15px;
  line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 240px; padding: 0 24px 20px; }

/* Final CTA / Contact */
.cta-sec {
  background: var(--dark);
  color: white;
  position: relative;
  overflow: hidden;
}
.cta-sec::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 10% 90%, rgba(37,99,235,0.2), transparent 50%),
    radial-gradient(circle at 90% 10%, rgba(79,70,229,0.2), transparent 50%);
}
.cta-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
  position: relative;
}
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; } }
.cta-sec h2 { color: white; margin-bottom: 20px; }
.cta-sec .cta-subtitle { color: rgba(255,255,255,0.7); font-size: 18px; margin-bottom: 32px; }
.cta-features { list-style: none; }
.cta-features li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
}
.cta-features li svg { color: #34d399; flex-shrink: 0; }

.contact-form {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  color: white;
  font-family: inherit;
  font-size: 15px;
  transition: border 0.2s, background 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--affiliate);
  background: rgba(255,255,255,0.1);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.4); }
.form-group textarea { min-height: 110px; resize: vertical; }
.contact-form .btn-primary { width: 100%; margin-top: 8px; }
.form-success {
  background: rgba(22,163,74,0.15);
  border: 1px solid rgba(22,163,74,0.4);
  border-radius: 12px;
  padding: 20px;
  color: #86efac;
  text-align: center;
  display: none;
}
.form-success.show { display: block; }

/* Footer */
footer {
  background: #0f1419;
  color: rgba(255,255,255,0.6);
  padding: 60px 0 32px;
  font-size: 14px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-top { grid-template-columns: 1fr; } }
.footer-col h5 { color: white; font-size: 14px; font-weight: 600; margin-bottom: 16px; letter-spacing: 0.02em; }
.footer-col a { display: block; color: rgba(255,255,255,0.55); text-decoration: none; padding: 6px 0; font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: white; }
.footer-brand .logo { color: white; margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 14px; line-height: 1.6; max-width: 320px; }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}
.legal-entity {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 16px;
  line-height: 1.6;
}

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Lang helpers — hide the inactive language entirely */
body[data-lang="en"] [data-lang-es],
body[data-lang="es"] [data-lang-en] { display: none !important; }

/* When a language is active, restore correct display per tag */
body[data-lang="es"] h1[data-lang-es],
body[data-lang="es"] h2[data-lang-es],
body[data-lang="es"] h3[data-lang-es],
body[data-lang="es"] h4[data-lang-es],
body[data-lang="es"] h5[data-lang-es],
body[data-lang="es"] p[data-lang-es],
body[data-lang="es"] div[data-lang-es],
body[data-lang="es"] label[data-lang-es],
body[data-lang="es"] li[data-lang-es],
body[data-lang="es"] blockquote[data-lang-es],
body[data-lang="en"] h1[data-lang-en],
body[data-lang="en"] h2[data-lang-en],
body[data-lang="en"] h3[data-lang-en],
body[data-lang="en"] h4[data-lang-en],
body[data-lang="en"] h5[data-lang-en],
body[data-lang="en"] p[data-lang-en],
body[data-lang="en"] div[data-lang-en],
body[data-lang="en"] label[data-lang-en],
body[data-lang="en"] li[data-lang-en],
body[data-lang="en"] blockquote[data-lang-en] { display: block; }

body[data-lang="es"] a[data-lang-es],
body[data-lang="en"] a[data-lang-en] { display: inline-flex; }

body[data-lang="es"] span[data-lang-es],
body[data-lang="en"] span[data-lang-en] { display: inline; }

/* Por defecto, mostrar el logo para fondo oscuro (light) y ocultar el otro */
.logo-light { display: block; }
.logo-dark { display: none; }

/* Cuando el navbar tiene la clase .scrolled (fondo blanco), invertir */
.navbar.scrolled .logo-light { display: none; }
.navbar.scrolled .logo-dark { display: block; }

/* Ajuste de tamaño para asegurar que ambos se mantengan consistentes */
.logo-img { height: 40px; width: auto; }

/* --- AJUSTES FINALES DEFINITIVOS --- */

/* 1. Corrección Menú Superior (Evitar saltos en español) */
.nav-cta .btn-ghost, 
.nav-cta .btn-primary {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  line-height: 1.1 !important;
  padding: 6px 12px !important;
  font-size: 13px !important;
  height: 44px;
  white-space: nowrap;
}

.nav-cta .btn-primary {
  padding: 6px 16px !important;
}

@media (max-width: 1300px) {
  .nav-cta .btn-ghost, .nav-cta .btn-primary {
    font-size: 12px !important;
    padding: 4px 8px !important;
  }
}

/* 2. Estilos del Modal */
.login-modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0,0,0,0.6) !important;
  backdrop-filter: blur(5px) !important;
  z-index: 9999 !important;
  display: none !important;
  justify-content: center !important;
  align-items: center !important;
}

.login-modal-overlay.active {
  display: flex !important;
}

.login-modal {
  background: white !important;
  padding: 40px !important;
  border-radius: 24px !important;
  width: 90% !important;
  max-width: 400px !important;
  text-align: center !important;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.2) !important;
  position: relative !important;
}

.login-option {
  display: flex !important;
  align-items: center !important;
  padding: 20px 24px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  text-decoration: none !important;
  background: #ffffff !important;
  transition: all 0.25s ease !important;
}

.option-icon {
  width: 48px; height: 48px;
  background: #f1f5f9;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-right: 20px; flex-shrink: 0;
}

.option-text { display: flex; flex-direction: column; flex: 1; text-align: left; }
.option-title { font-size: 17px !important; color: #1f2937 !important; font-weight: 700 !important; }
.option-desc { font-size: 14px !important; color: #6b7280 !important; }

/* Colores de marca */
.login-option:nth-child(1) .option-icon { background: #dbeafe; color: #2563eb; }
.login-option:nth-child(2) .option-icon { background: #e0e7ff; color: #4f46e5; }
.login-option:nth-child(3) .option-icon { background: #dcfce7; color: #16a34a; }

.arrow-icon { color: #cbd5e1; margin-left: 10px; }
.login-option:hover { background: #f8fafc !important; border-color: #cbd5e1 !important; transform: translateY(-3px); }

.close-modal {
  position: absolute; top: 16px; right: 16px;
  border: none; background: #f3f4f6;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
}