/* =====================================================
   AGENTICA – Main Stylesheet
   ===================================================== */

/* ---------- Variables ---------- */
:root {
  --bg:       #06060f;
  --bg2:      #0d0d20;
  --card:     #0f0f28;
  --card-h:   #141438;
  --purple:   #8b5cf6;
  --purple-d: #7c3aed;
  --cyan:     #22d3ee;
  --green:    #10b981;
  --red:      #ef4444;
  --txt:      #f0f0ff;
  --txt2:     #94a3b8;
  --txt3:     #64748b;
  --border:   rgba(255,255,255,0.07);
  --border-p: rgba(139,92,246,0.35);
  --grad:     linear-gradient(135deg, #8b5cf6, #22d3ee);
  --grad-txt: linear-gradient(135deg, #a78bfa, #22d3ee);
  --glow:     0 0 50px rgba(139,92,246,0.18);
  --r:        16px;
  --r-sm:     8px;
  --r-lg:     24px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--txt);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Typography ---------- */
h1,h2,h3,h4 { font-family: 'Space Grotesk', sans-serif; line-height: 1.15; font-weight: 700; }
.gradient-text {
  background: var(--grad-txt);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-center { text-align: center; }

/* ---------- Layout ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 100px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .3s ease;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 24px rgba(139,92,246,.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(139,92,246,.6); }
.btn-ghost {
  background: transparent;
  color: var(--txt);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,.05); border-color: var(--purple); }
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }

/* ---------- Section labels ---------- */
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--purple);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -.5px;
}
.section-sub {
  font-size: 18px;
  color: var(--txt2);
  max-width: 600px;
  margin-bottom: 56px;
  line-height: 1.75;
}
.text-center .section-sub { margin-left: auto; margin-right: auto; }

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  padding: 18px 0;
  transition: all .35s ease;
}
.navbar.scrolled {
  background: rgba(6,6,15,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.logo-icon { font-size: 22px; }
.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 20px;
  background: var(--grad-txt);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}
.nav-links a {
  text-decoration: none;
  color: var(--txt2);
  font-size: 15px;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active-link { color: var(--txt); }
.nav-cta { font-size: 14px; padding: 10px 22px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--txt);
  border-radius: 2px;
  transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  padding: 80px 24px 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.mobile-menu.active { display: flex; }
.mobile-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--txt2);
  font-size: 22px;
  cursor: pointer;
}
.mobile-menu ul {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.mobile-menu a {
  text-decoration: none;
  color: var(--txt);
  font-size: 22px;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 90px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139,92,246,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,.05) 1px, transparent 1px);
  background-size: 60px 60px;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  animation: pulse 5s ease-in-out infinite;
}
.glow-1 { width: 700px; height: 700px; background: var(--purple); opacity: .2; top: -250px; right: -150px; }
.glow-2 { width: 500px; height: 500px; background: var(--cyan);   opacity: .15; bottom: -150px; left: -100px; animation-delay: 2.5s; }
@keyframes pulse {
  0%,100% { opacity: .15; transform: scale(1); }
  50%      { opacity: .28; transform: scale(1.08); }
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6,6,15,.65);
  border: 1px solid rgba(139,92,246,.6);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  color: #c4b5fd;
  margin-bottom: 36px;
  font-weight: 600;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--purple);
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: .3; }
}
.hero-title {
  font-size: clamp(38px, 6.5vw, 78px);
  font-weight: 800;
  margin-bottom: 28px;
  letter-spacing: -1.5px;
  line-height: 1.08;
  text-shadow: 0 2px 40px rgba(6,6,15,.9), 0 0 80px rgba(6,6,15,.6);
}
.hero-sub {
  font-size: clamp(16px, 2.2vw, 20px);
  color: #cbd5e1;
  max-width: 640px;
  margin: 0 auto 44px;
  line-height: 1.75;
  text-shadow: 0 1px 20px rgba(6,6,15,.8);
}
.hero-sub strong { color: #fff; }
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 70px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  padding: 28px 44px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: var(--r);
  backdrop-filter: blur(12px);
}
.stat { text-align: center; }
.stat-n {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 34px;
  font-weight: 800;
  background: var(--grad-txt);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-l { display: block; font-size: 12px; color: var(--txt3); margin-top: 4px; }
.stat-div { width: 1px; height: 44px; background: var(--border); }

/* =====================================================
   PROBLEM
   ===================================================== */
.problem { background: var(--bg2); }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 48px 0;
}
.problem-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px 24px;
  transition: all .3s;
  text-align: left;
}
.problem-card:hover { border-color: var(--border-p); transform: translateY(-4px); }
.p-icon { font-size: 38px; margin-bottom: 16px; }
.problem-card h3 { font-size: 17px; margin-bottom: 8px; }
.problem-card p  { font-size: 14px; color: var(--txt2); line-height: 1.65; }
.problem-note {
  max-width: 700px;
  margin: 0 auto;
  padding: 24px 32px;
  background: rgba(139,92,246,.07);
  border: 1px solid var(--border-p);
  border-radius: var(--r);
  font-size: 16px;
  color: var(--txt2);
  line-height: 1.7;
}
.problem-note strong { color: var(--purple); }

/* =====================================================
   SOLUTION / AGENTS
   ===================================================== */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 8px;
}
.agent-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px;
  transition: all .35s;
  display: flex;
  flex-direction: column;
}
.agent-card:hover { border-color: var(--border-p); transform: translateY(-6px); box-shadow: var(--glow); }
.agent-card.featured {
  border-color: var(--purple);
  background: linear-gradient(145deg, rgba(139,92,246,.1), rgba(34,211,238,.04));
}
.feat-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 18px;
  border-radius: 50px;
  white-space: nowrap;
  letter-spacing: .5px;
}
.agent-ico-wrap {
  width: 54px;
  height: 54px;
  border-radius: var(--r-sm);
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
  color: #fff;
  flex-shrink: 0;
}
.agent-card h3 { font-size: 20px; margin-bottom: 10px; }
.agent-card > p { color: var(--txt2); font-size: 14px; line-height: 1.7; margin-bottom: 20px; flex: 1; }
.afeatures { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.afeatures li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--txt2);
}
.afeatures .fa-check { color: var(--green); font-size: 11px; }
.custom-card {
  background: linear-gradient(145deg, rgba(34,211,238,.05), rgba(139,92,246,.05));
  gap: 20px;
}

/* =====================================================
   COMPARISON
   ===================================================== */
.comparison-section { background: var(--bg2); padding: 100px 0; }
.comparison {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 52px;
}
.comp-col {
  background: var(--card);
  border-radius: var(--r);
  padding: 32px;
}
.comp-col.before { border: 1px solid rgba(239,68,68,.3); }
.comp-col.after  {
  border: 1px solid rgba(16,185,129,.3);
  background: linear-gradient(145deg, rgba(16,185,129,.06), var(--card));
}
.comp-title {
  font-size: 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.comp-title.bad  { color: #f87171; }
.comp-title.good { color: var(--green); }
.comp-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.comp-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--txt2);
}
.comp-col.before .fa-times { color: var(--red);   flex-shrink: 0; }
.comp-col.after  .fa-check { color: var(--green); flex-shrink: 0; }
.comp-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 56px;
}
.vs {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .5px;
}

/* =====================================================
   PROCESS
   ===================================================== */
.process {
  background: var(--bg);
  position: relative;
}
.process::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/bg-proceso.png') center/cover no-repeat;
  opacity: 0.12;
  pointer-events: none;
}
.steps {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  text-align: left;
  padding: 32px 0;
}
.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 52px;
  font-weight: 800;
  background: var(--grad-txt);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.step-content h3  { font-size: 22px; margin-bottom: 10px; }
.step-content p   { color: var(--txt2); font-size: 15px; line-height: 1.75; margin-bottom: 14px; }
.step-tag { font-size: 13px; font-weight: 600; color: var(--cyan); }
.step-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--purple), var(--cyan));
  margin-left: 39px;
  border-radius: 2px;
}

/* =====================================================
   RESULTS
   ===================================================== */
.results {
  background: var(--bg2);
  position: relative;
}
.results::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/bg-resultados.png') center/cover no-repeat;
  opacity: 0.10;
  pointer-events: none;
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 56px;
}
.result-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 44px 28px;
  text-align: center;
  transition: all .3s;
}
.result-card:hover { border-color: var(--border-p); transform: translateY(-4px); }
.result-metric {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  margin-bottom: 16px;
}
.result-n {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 62px;
  font-weight: 800;
  background: var(--grad-txt);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.result-u {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--cyan);
  margin-top: 10px;
}
.result-card h3 { font-size: 16px; margin-bottom: 8px; }
.result-card p  { font-size: 13px; color: var(--txt3); line-height: 1.6; }

/* =====================================================
   FAQ
   ===================================================== */
.faq { background: var(--bg); }
.faq .container { max-width: 860px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 48px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .3s;
}
.faq-item.active { border-color: var(--border-p); }
.faq-q {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--txt);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
  font-family: 'Space Grotesk', sans-serif;
  transition: color .2s;
}
.faq-q:hover { color: var(--purple); }
.faq-ico { color: var(--purple); flex-shrink: 0; transition: transform .3s; font-size: 14px; }
.faq-item.active .faq-ico { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.faq-item.active .faq-a { max-height: 220px; }
.faq-a p {
  padding: 0 24px 22px;
  color: var(--txt2);
  font-size: 15px;
  line-height: 1.75;
}

/* =====================================================
   CONTACT
   ===================================================== */
.contact {
  background: var(--bg2);
  position: relative;
}
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/bg-contacto.png') center/cover no-repeat;
  opacity: 0.13;
  pointer-events: none;
}
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-content .section-label { margin-bottom: 12px; }
.contact-content h2 {
  font-size: clamp(28px, 4vw, 46px);
  margin-bottom: 20px;
}
.contact-content > p {
  color: var(--txt2);
  line-height: 1.75;
  margin-bottom: 32px;
  font-size: 16px;
}
.contact-perks { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.contact-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--txt2);
}
.contact-perks .fa-check-circle { color: var(--green); font-size: 16px; }
.trust-logos span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--txt3);
  margin-bottom: 12px;
}
.trust-icons { display: flex; gap: 18px; font-size: 22px; color: var(--txt3); }
.trust-icons i:hover { color: var(--purple); transition: color .2s; }

/* Form */
.contact-form-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px;
}
.contact-form-box h3 { font-size: 22px; margin-bottom: 4px; }
.form-sub { font-size: 13px; color: var(--purple); margin-bottom: 28px; font-weight: 500; }
.fg { margin-bottom: 20px; }
.fg label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--txt2);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.fg input,
.fg select {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--txt);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color .2s, background .2s;
  -webkit-appearance: none;
}
.fg input:focus,
.fg select:focus {
  border-color: var(--purple);
  background: rgba(139,92,246,.06);
}
.fg input::placeholder { color: var(--txt3); }
.fg select { cursor: pointer; }
.fg select option { background: var(--card); color: var(--txt); }
.form-note {
  text-align: center;
  font-size: 12px;
  color: var(--txt3);
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding: 64px 0 0; }
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  margin-bottom: 52px;
}
.footer-brand p {
  color: var(--txt3);
  font-size: 14px;
  margin: 14px 0 22px;
  max-width: 300px;
  line-height: 1.65;
}
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--txt3);
  text-decoration: none;
  font-size: 15px;
  transition: all .2s;
}
.social-links a:hover { border-color: var(--purple); color: var(--purple); }
.footer-links { display: flex; gap: 64px; }
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--txt2);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  text-decoration: none;
  color: var(--txt3);
  font-size: 14px;
  transition: color .2s;
}
.footer-col a:hover { color: var(--purple); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { color: var(--txt3); font-size: 13px; }
.footer-legal { display: flex; gap: 22px; }
.footer-legal a {
  text-decoration: none;
  color: var(--txt3);
  font-size: 13px;
  transition: color .2s;
}
.footer-legal a:hover { color: var(--purple); }

/* =====================================================
   WHATSAPP FLOAT
   ===================================================== */
.wa-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  text-decoration: none;
  z-index: 900;
  box-shadow: 0 4px 24px rgba(37,211,102,.45);
  transition: all .3s;
  animation: wa-bounce 3.5s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37,211,102,.6); }
@keyframes wa-bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* =====================================================
   TOAST
   ===================================================== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--card);
  border: 1px solid var(--green);
  border-radius: var(--r);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  z-index: 2000;
  transition: transform .45s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast .fa-check-circle { color: var(--green); font-size: 18px; }

/* =====================================================
   ANIMATIONS
   ===================================================== */
.animate-up {
  opacity: 0;
  transform: translateY(32px);
  animation: fadeUp .75s ease forwards;
}
.d1 { animation-delay: .1s; }
.d2 { animation-delay: .25s; }
.d3 { animation-delay: .4s; }
.d4 { animation-delay: .55s; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* =====================================================
   ADMIN NAV LINK
   ===================================================== */
.admin-nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  color: var(--txt3);
  text-decoration: none;
  font-size: 13px;
  transition: all .2s;
  flex-shrink: 0;
}
.admin-nav-link:hover { border-color: var(--purple); color: var(--purple); }

/* =====================================================
   VIDEO DEMO SECTION
   ===================================================== */
.demo { background: var(--bg); padding-bottom: 80px; }
.video-wrapper {
  max-width: 860px;
  margin: 0 auto;
}
.video-thumb {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--card);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .3s, transform .3s;
}
.video-thumb:hover { border-color: var(--border-p); transform: scale(1.01); }
.video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .6;
  transition: opacity .3s;
}
.video-thumb:hover img { opacity: .75; }
.video-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.video-play-btn {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  box-shadow: 0 0 60px rgba(139,92,246,.6);
  transition: transform .3s, box-shadow .3s;
}
.video-thumb:hover .video-play-btn {
  transform: scale(1.1);
  box-shadow: 0 0 80px rgba(139,92,246,.8);
}
.video-label {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}

/* Video placeholder (no thumbnail) */
.video-thumb:not(:has(img[style*="display: none"])) .video-overlay,
.video-thumb .video-overlay {
  /* always visible over gradient bg */
}
.video-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139,92,246,.3), rgba(34,211,238,.15));
  z-index: 0;
}

/* Video Modal */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.video-modal.open { opacity: 1; pointer-events: all; }
.video-modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(6px);
  cursor: pointer;
}
.video-modal-inner {
  position: relative;
  width: 100%;
  max-width: 900px;
  z-index: 1;
  transform: scale(.95);
  transition: transform .35s ease;
}
.video-modal.open .video-modal-inner { transform: scale(1); }
.video-iframe-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r);
  overflow: hidden;
  background: #000;
}
.video-iframe-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.video-modal-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.video-modal-close:hover { background: rgba(255,255,255,.2); }

/* =====================================================
   RESPONSIVE
   ===================================================== */

/* ≤ 1024px */
@media (max-width: 1024px) {
  .contact-wrap { grid-template-columns: 1fr; gap: 48px; }
  .footer-top   { grid-template-columns: 1fr; gap: 40px; }
}

/* ≤ 768px */
@media (max-width: 768px) {
  section { padding: 72px 0; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 110px 0 64px; }
  .hero-title { letter-spacing: -.5px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn-lg { width: 100%; max-width: 340px; justify-content: center; }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
    padding: 24px;
  }
  .stat-div { width: 40px; height: 1px; }

  .comparison {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .comp-divider { display: none; }

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

  .step { grid-template-columns: 60px 1fr; gap: 16px; }
  .step-line { margin-left: 29px; }

  .contact-form-box { padding: 28px 20px; }

  .footer-links { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

  .wa-float { bottom: 20px; right: 20px; width: 52px; height: 52px; font-size: 24px; }
}

/* ≤ 480px */
@media (max-width: 480px) {
  .hero-title { font-size: 30px; }
  .hero-badge { font-size: 11px; padding: 7px 14px; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .problem-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 26px; }
  .agents-grid { grid-template-columns: 1fr; }
  .toast { font-size: 13px; padding: 14px 20px; max-width: 90vw; white-space: normal; }
}

/* =====================================================
   ENHANCED VISUAL EFFECTS
   ===================================================== */

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #8b5cf6, #22d3ee, #8b5cf6);
  background-size: 200% 100%;
  animation: grad-shift 3s linear infinite;
  z-index: 9999;
  box-shadow: 0 0 12px rgba(139,92,246,.8), 0 0 24px rgba(34,211,238,.4);
  transition: width .08s linear;
}
@keyframes grad-shift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Particles canvas */
#particles-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .55;
}

/* Mouse-parallax glows */
.glow-1, .glow-2 { will-change: transform; }

/* Featured card — rotating conic-gradient border */
@property --border-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
.agent-card.featured {
  --border-angle: 0deg;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    conic-gradient(from var(--border-angle), #8b5cf6 0%, #22d3ee 30%, #a78bfa 60%, #22d3ee 80%, #8b5cf6 100%) border-box;
  animation: featured-glow 3s ease-in-out infinite, rotate-border 4s linear infinite;
}
@keyframes rotate-border {
  to { --border-angle: 360deg; }
}
@keyframes featured-glow {
  0%,100% { box-shadow: 0 0 20px rgba(139,92,246,.3), 0 0 40px rgba(139,92,246,.1); }
  50%      { box-shadow: 0 0 35px rgba(139,92,246,.6), 0 0 70px rgba(34,211,238,.2); }
}

/* 3D card — prepare */
.agent-card, .result-card { will-change: transform; }

/* Magnetic button inner glow */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.2), transparent 55%);
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
.btn-primary:hover::after { opacity: 1; }

/* Agent icon float */
.agent-ico-wrap {
  animation: ico-float 3.2s ease-in-out infinite;
  box-shadow: 0 4px 20px rgba(139,92,246,.4);
}
@keyframes ico-float {
  0%,100% { transform: translateY(0);   box-shadow: 0 4px 20px rgba(139,92,246,.4); }
  50%      { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(139,92,246,.65); }
}
.agent-card:hover .agent-ico-wrap {
  animation-play-state: paused;
  transform: translateY(-4px) scale(1.1) !important;
}

/* CSS-only stagger for problem cards (no JS class changes needed) */
.problem-card.reveal { transition: opacity .7s ease, transform .7s ease; }
.problem-card:nth-child(1).reveal { transition-delay: .0s; }
.problem-card:nth-child(2).reveal { transition-delay: .1s; }
.problem-card:nth-child(3).reveal { transition-delay: .2s; }
.problem-card:nth-child(4).reveal { transition-delay: .3s; }

/* CSS-only stagger for result cards */
.result-card.reveal { transition: opacity .7s ease, transform .7s ease; }
.result-card:nth-child(1).reveal { transition-delay: .0s; }
.result-card:nth-child(2).reveal { transition-delay: .12s; }
.result-card:nth-child(3).reveal { transition-delay: .24s; }
.result-card:nth-child(4).reveal { transition-delay: .36s; }

/* Stat shimmer */
.stat-n {
  position: relative;
  display: inline-block;
  overflow: hidden;
}
.stat-n::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  animation: shimmer 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shimmer {
  0%,30% { left: -60%; }
  60%,100% { left: 110%; }
}

/* Step line light sweep */
.step.visible .step-num { text-shadow: 0 0 40px rgba(139,92,246,.5); }
.step-line { position: relative; overflow: hidden; }
.step-line::after {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: rgba(255,255,255,.55);
  animation: line-run 2.8s ease-in-out infinite;
}
@keyframes line-run {
  0%   { top: -100%; }
  100% { top: 200%; }
}

/* Comparison: slide in from sides via CSS stagger on reveal */
.comparison.reveal.visible .comp-col.before {
  animation: slide-from-left .8s ease forwards;
}
.comparison.reveal.visible .comp-col.after {
  animation: slide-from-right .8s ease .15s forwards;
}
@keyframes slide-from-left  {
  from { opacity: .3; transform: translateX(-24px); }
  to   { opacity: 1;  transform: none; }
}
@keyframes slide-from-right {
  from { opacity: .3; transform: translateX(24px); }
  to   { opacity: 1;  transform: none; }
}

/* Result card hover glow */
.result-card { position: relative; overflow: hidden; }
.result-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(139,92,246,.18), transparent 68%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.result-card:hover::before { opacity: 1; }

/* Cursor glow blob */
.cursor-glow {
  position: fixed;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  will-change: left, top;
}

/* Hero floating icons */
.hero-float-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hfi {
  position: absolute;
  opacity: .1;
  color: var(--purple);
  animation: hfi-float linear infinite;
}
@keyframes hfi-float {
  0%   { transform: translateY(0) rotate(0deg);    opacity: .06; }
  50%  { opacity: .16; }
  100% { transform: translateY(-100px) rotate(25deg); opacity: 0;  }
}

/* Badge dot ring */
.badge-dot { position: relative; }
.badge-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--purple);
  animation: ring-out 1.6s ease-out infinite;
}
@keyframes ring-out {
  0%   { transform: scale(1); opacity: .6; }
  100% { transform: scale(3.2); opacity: 0; }
}

/* Nav logo hover */
.nav-logo img { transition: transform .35s ease; }
.nav-logo:hover img { transform: rotate(-8deg) scale(1.08); }

/* Typewriter cursor */
.tw-cursor {
  display: inline-block;
  color: #8b5cf6;
  font-weight: 300;
  margin-left: 4px;
  animation: tw-blink .7s step-end infinite;
  transition: opacity .4s ease;
}
@keyframes tw-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── AI Generated Images ─────────────────────────── */

/* Hero background image */
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.28;
}

/* Problem card images */
.p-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 16px;
}
.p-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.problem-card:hover .p-img img { transform: scale(1.05); }

/* Agent card images */
.agent-img {
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 16px;
}
.agent-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.agent-card:hover .agent-img img { transform: scale(1.06); }

/* Process step images */
.step-img {
  width: 100%;
  height: 220px;
  margin: 0 0 16px 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(139,92,246,.25);
  background: var(--card);
}
.step-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 8px;
  transition: transform .4s ease;
}
.step:hover .step-img img { transform: scale(1.05); }
@media (min-width: 769px) {
  .step-img { height: auto; aspect-ratio: 16 / 7; }
}

/* Testimonial avatar images */
.avatar-img {
  padding: 0 !important;
  overflow: hidden;
}
.avatar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
