/* =========================================================
   FrontLead Agency — styles.css
   ========================================================= */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #60a5fa;
  --primary-soft: #eff6ff;

  --bg: #ffffff;
  --fg: #0f172a;
  --muted: #64748b;
  --card: #ffffff;
  --secondary: #f8fafc;
  --border: #e6ebf2;
  --border-strong: #d8dfe8;

  --success: #16a34a;
  --whatsapp: #25d366;
  --danger: #dc2626;
  --danger-soft: #fee2e2;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, .07), 0 2px 4px -1px rgba(15, 23, 42, .04);
  --shadow-lg: 0 12px 32px -8px rgba(15, 23, 42, .1), 0 4px 8px -2px rgba(15, 23, 42, .05);
  --shadow-cta: 0 8px 20px -6px rgba(37, 99, 235, .35), 0 4px 8px -2px rgba(37, 99, 235, .18);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -.011em;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { letter-spacing: -.025em; line-height: 1.1; font-weight: 700; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 1024px) {
  .container { padding-inline: 2rem; }
}

.section {
  padding-block: 6rem;
}
@media (min-width: 768px) {
  .section { padding-block: 8rem; }
}
.bordered { border-top: 1px solid var(--border); }
.soft { background: rgba(248, 250, 252, .6); }

.text-primary { color: var(--primary); }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--primary);
}
.section-title {
  margin-top: 1rem;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--fg);
}
.section-sub {
  margin-top: 1.25rem;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 460px;
}
.header-block { max-width: 640px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  height: 44px;
  padding: 0 1.5rem;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn .icon { width: 16px; height: 16px; transition: transform .2s ease; }
.btn:hover .icon { transform: translateX(2px); }
.btn-sm { height: 36px; padding: 0 1rem; font-size: 14px; font-weight: 500; }
.btn-lg { height: 48px; padding: 0 1.75rem; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }

.btn-outline {
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--secondary); }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(230, 235, 242, .7);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: .625rem; }
.brand-logo { width: 32px; height: 32px; object-fit: contain; }
.brand-name { font-size: 15px; font-weight: 600; letter-spacing: -.02em; }

.nav-links { display: none; gap: 2rem; }
.nav-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--fg); }
@media (min-width: 768px) { .nav-links { display: flex; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 50% at 80% 0%, #e0ecff 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  padding-block: 4rem 5rem;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 7fr 5fr; gap: 4rem; padding-block: 7rem 8rem; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .25rem .75rem;
  border: 1px solid var(--border);
  background: rgba(248, 250, 252, .6);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot-success { background: var(--success); }
.dot-primary { background: var(--primary); }

.hero-title {
  margin-top: 1.5rem;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -.025em;
}
.hero-sub {
  margin-top: 1.5rem;
  font-size: 18px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 560px;
}
.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  align-items: flex-start;
}
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; align-items: center; }
}
.hero-meta {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 2rem;
  font-size: 13px;
  color: var(--muted);
}
.hero-meta div { display: inline-flex; align-items: center; gap: .5rem; }

/* ---------- Hero Visual ---------- */
.hero-visual { width: 100%; }
.visual-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.visual-header {
  display: flex;
  align-items: center;
  gap: .375rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--secondary);
}
.visual-dot { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.visual-dot:nth-child(1) { background: #f87171; }
.visual-dot:nth-child(2) { background: #fbbf24; }
.visual-dot:nth-child(3) { background: #4ade80; }
.visual-title { margin-left: .75rem; font-size: 12px; color: var(--muted); }

.visual-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.stat {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .875rem 1rem;
  display: flex; flex-direction: column; gap: .25rem;
}
.stat-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.stat-value { font-size: 22px; font-weight: 700; color: var(--fg); }
.stat-trend.up { font-size: 12px; font-weight: 600; color: var(--success); }

.chart {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem;
  height: 130px;
}
.chart svg { width: 100%; height: 100%; }

.lead-card {
  display: flex; align-items: center; gap: .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem .875rem;
  animation: floatY 4s ease-in-out infinite;
}
.lead-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary);
  font-weight: 700; font-size: 13px;
  display: grid; place-items: center;
}
.lead-info { display: flex; flex-direction: column; }
.lead-info strong { font-size: 13px; color: var(--fg); }
.lead-info span { font-size: 12px; color: var(--muted); }
.lead-time { margin-left: auto; font-size: 11px; color: var(--success); font-weight: 600; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ---------- Split grid (Problem / Benefits) ---------- */
.split-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) {
  .split-grid { grid-template-columns: 5fr 7fr; gap: 4rem; }
}
.stack { display: flex; flex-direction: column; gap: 1rem; }

/* ---------- Card base ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }

/* ---------- Pain ---------- */
.pain-card { display: flex; align-items: flex-start; gap: 1.25rem; }
.pain-card h3 { font-size: 17px; }
.pain-card p { margin-top: .25rem; font-size: 14px; color: var(--muted); line-height: 1.6; }

.icon-box {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  font-weight: 700;
}
.icon-box.danger { background: var(--danger-soft); color: var(--danger); }
.icon-box.primary { background: var(--primary-soft); color: var(--primary); }

/* ---------- Solution ---------- */
.solution-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--border);
  gap: 1px;
}
@media (min-width: 640px) {
  .solution-grid { grid-template-columns: 1fr 1fr; }
}
.sol-cell {
  background: var(--card);
  padding: 1.75rem;
  transition: background .2s ease;
}
.sol-cell:hover { background: rgba(239, 246, 255, .4); }
@media (min-width: 768px) { .sol-cell { padding: 2.25rem; } }
.sol-cell .icon-box { width: 44px; height: 44px; font-size: 18px; }
.sol-cell h3 { margin-top: 1.25rem; font-size: 17px; }
.sol-cell p { margin-top: .5rem; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ---------- Benefits ---------- */
.benefits-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .benefits-grid { grid-template-columns: 1fr 1fr; } }
.benefit-card { padding: 1.5rem; }
.benefit-card .check {
  width: 32px; height: 32px;
  background: var(--primary); color: #fff;
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
}
.benefit-card .check svg { width: 16px; height: 16px; }
.benefit-card h3 { margin-top: 1rem; font-size: 16px; }
.benefit-card p { margin-top: .375rem; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ---------- Process ---------- */
.process-grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .process-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }
.step-card { padding: 1.75rem; }
.step-head { display: flex; align-items: center; height: 36px; }
.step-head span { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--primary); }
.step-head i { display: block; margin-left: .75rem; flex: 1; height: 1px; background: var(--border); }
.step-card h3 { margin-top: 1.25rem; font-size: 17px; }
.step-card p { margin-top: .5rem; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  background: var(--fg);
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
}
@media (min-width: 768px) { .cta-banner { padding: 5rem 4rem; } }
.cta-glow {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  pointer-events: none;
}
.glow-1 { top: -80px; right: -80px; background: radial-gradient(closest-side, rgba(37,99,235,.4), transparent); }
.glow-2 { bottom: -100px; left: -100px; background: radial-gradient(closest-side, rgba(96,165,250,.25), transparent); }

.cta-content {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) { .cta-content { grid-template-columns: 2fr 1fr; } }
.cta-content h2 {
  font-size: clamp(28px, 4vw, 44px);
  color: #fff;
  line-height: 1.1;
}
.cta-content p {
  margin-top: 1rem;
  color: rgba(255, 255, 255, .72);
  font-size: 15px;
  line-height: 1.65;
  max-width: 540px;
}
.cta-content .btn { justify-self: start; }
@media (min-width: 1024px) { .cta-content .btn { justify-self: end; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding-block: 3rem 0; }
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  padding-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer-tag { color: var(--muted); font-size: 14px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: 1.25rem;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Floating WhatsApp ---------- */
.float-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
  transition: transform .2s ease;
  animation: pulseRing 2.4s cubic-bezier(.4,0,.6,1) infinite;
}
.float-whatsapp:hover { transform: scale(1.08); }
.float-whatsapp svg { width: 28px; height: 28px; }
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
