/* ============================================
   EasyCall — Design System
   Sistema para Call Center / Televendas / Cobrança
   ============================================ */
:root {
  --primary: #37517e;
  --primary-dark: #2a3e5e;
  --primary-light: rgba(55, 81, 126, .1);
  --accent: #2dbf64;
  --accent-dark: #259e53;
  --ink: #14213d;
  --text: #44516b;
  --muted: #6b7894;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --border: #e3e8f0;

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

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 16px rgba(20, 33, 61, .06);
  --shadow-lg: 0 20px 50px rgba(20, 33, 61, .12);
  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { font-size: 1.1rem; color: var(--muted); margin-top: 14px; }
.section-head.align-left { margin: 0 0 48px; text-align: left; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(45,191,100,.3); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-dark { background: var(--primary); color: #fff; }
.btn-dark:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }

/* ===== Header ===== */
.header {
  position: fixed; inset: 0 0 auto 0; height: 76px; z-index: 1000;
  background: rgba(255,255,255,.97);
  box-shadow: 0 1px 0 rgba(20,33,61,.06);
  transition: box-shadow .25s ease;
}
.header.is-scrolled { box-shadow: 0 2px 14px rgba(20,33,61,.1); backdrop-filter: blur(8px); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 42px; width: auto; }
.nav-menu { display: flex; gap: 30px; align-items: center; }
.nav-menu a { color: var(--text); font-weight: 600; font-size: .95rem; transition: color .2s ease; }
.nav-menu a:hover { color: var(--accent-dark); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-cta .btn { padding: 11px 22px; font-size: .9rem; }
.nav-toggle { display: none; background: transparent; border: none; cursor: pointer; padding: 6px; }
.nav-toggle svg { width: 28px; height: 28px; stroke: var(--ink); }

@media (max-width: 900px) {
  .nav-menu { display: none; }
  .nav-cta .btn-dark-link { display: none; }
  .nav-toggle { display: flex; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 150px 0 100px;
  background: linear-gradient(150deg, var(--ink) 0%, var(--primary) 65%, var(--primary-dark) 100%);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -10%; top: -20%; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(45,191,100,.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12);
  color: #fff; padding: 8px 16px; border-radius: 50px; font-size: .85rem; font-weight: 600; margin-bottom: 22px;
}
.hero-badge svg { width: 16px; height: 16px; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 strong { color: var(--accent); }
.hero p.lead { font-size: 1.2rem; color: rgba(255,255,255,.85); margin-bottom: 32px; max-width: 560px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-trust { color: rgba(255,255,255,.65); font-size: .85rem; }
.hero-trust strong { color: #fff; }

.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-lg);
}
.hero-card img { border-radius: 10px; }

/* ===== Problem & Solution compare ===== */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; align-items: stretch; }
.compare-title { display: flex; align-items: center; gap: 12px; font-size: 1.15rem; margin-bottom: 12px; }
.compare-badge { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.compare-badge svg { width: 18px; height: 18px; }
.compare-badge.bad { background: #f6dcda; color: #c0392b; }
.compare-badge.good { background: rgba(45,191,100,.15); color: var(--accent-dark); }
.compare-item {
  display: flex; align-items: flex-start; gap: 12px; font-size: .98rem; color: var(--text);
  border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--border);
}
.compare-item.bad { background: #fdf6f5; border-color: #f3dedc; }
.compare-item.good { background: var(--bg-soft); border-color: var(--border); color: var(--ink); font-weight: 500; }
.compare-icon { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 800; margin-top: 1px; }
.compare-icon.bad { background: #f6dcda; color: #c0392b; }
.compare-icon.good { background: rgba(45,191,100,.15); color: var(--accent-dark); }

@media (max-width: 860px) {
  .compare-grid { grid-template-columns: 1fr; }
  .compare-title-good { margin-top: 4px; }
}

/* ===== Features ===== */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.feature-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.feature-card .icon-box { width: 50px; height: 50px; border-radius: 12px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature-card .icon-box svg { width: 24px; height: 24px; color: var(--primary); }
.feature-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.feature-card p { color: var(--muted); font-size: .92rem; }
.feature-card .tag { display: inline-block; margin-top: 12px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-dark); background: rgba(45,191,100,.12); padding: 3px 10px; border-radius: 50px; }
.feature-card .tag-opcional { color: var(--muted); background: rgba(107,120,148,.12); }

/* ===== Screenshots ===== */
.shots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.shots-grid figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.shots-grid figcaption { padding: 12px 16px; font-size: .85rem; color: var(--muted); }

/* ===== Segments ===== */
.segment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.segment-card {
  background: linear-gradient(160deg, #fff 0%, var(--bg-soft) 100%);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 30px;
}
.segment-card .icon-box { width: 50px; height: 50px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.segment-card .icon-box svg { width: 24px; height: 24px; color: var(--accent-dark); }
.segment-card h3 { margin-bottom: 8px; }
.segment-card p { color: var(--muted); font-size: .92rem; }

/* ===== Integrations ===== */
.integration-strip { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; align-items: center; }
.integration-strip .integration-chip {
  display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border);
  border-radius: 50px; padding: 10px 20px; box-shadow: var(--shadow);
}
.integration-chip img { height: 22px; width: auto; }
.integration-chip span { font-size: .88rem; font-weight: 600; color: var(--text); }

/* ===== Differentiators ===== */
.diff-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.diff-item { display: flex; gap: 16px; }
.diff-item .num { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.diff-item h3 { margin-bottom: 6px; font-size: 1.02rem; }
.diff-item p { color: var(--muted); font-size: .92rem; }

/* ===== Social proof ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; margin-bottom: 56px; }
.stat { text-align: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 16px; }
.stat .value { font-size: 2.2rem; font-weight: 800; color: var(--primary); }
.stat .label { font-size: .88rem; color: var(--muted); margin-top: 6px; }

/* ===== Testimonial Carousel ===== */
.testimonials-header { text-align: center; margin-bottom: 36px; }
.testimonials-header h3 { font-size: 1.5rem; color: var(--ink); margin-bottom: 6px; }
.testimonials-header p { color: var(--muted); font-size: .95rem; }

.testimonial-carousel { max-width: 820px; margin: 0 auto; }

.carousel-track { position: relative; }

.testimonial-slide { display: none; }
.testimonial-slide.active { display: block; animation: slideIn .35s ease; }
@keyframes slideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.slide-inner {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: var(--shadow-lg);
}
.slide-inner .stars { color: #f4b400; font-size: 1.15rem; letter-spacing: 3px; margin-bottom: 20px; }

.slide-body-wrap {
  position: relative;
  margin-bottom: 24px;
}
.slide-body {
  max-height: 110px;
  overflow: hidden;
  transition: max-height .45s ease;
}
.slide-body.expanded { max-height: 2000px; }
.slide-body-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 64px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
  pointer-events: none;
  transition: opacity .3s;
}
.slide-body.expanded + .slide-body-fade { opacity: 0; }
.slide-body p { color: var(--text); line-height: 1.8; font-size: .97rem; margin-bottom: 14px; }
.slide-body p:last-child { margin-bottom: 0; }

.btn-ler-mais {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
  font-size: .92rem;
  font-weight: 600;
  padding: 0;
  transition: color .2s;
}
.btn-ler-mais:hover { color: var(--primary-dark); }
.btn-ler-mais svg { width: 16px; height: 16px; transition: transform .3s; }
.btn-ler-mais.open svg { transform: rotate(180deg); }

.slide-highlight {
  margin-top: 20px;
  padding: 14px 20px;
  border-left: 4px solid var(--accent);
  background: var(--bg-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  font-weight: 600;
  color: var(--primary);
  font-size: .97rem;
  line-height: 1.6;
}

.slide-author { border-top: 1px solid var(--border); padding-top: 18px; }
.author-name { font-weight: 700; color: var(--ink); font-size: .97rem; }
.author-role { color: var(--muted); font-size: .88rem; margin-top: 2px; }

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}
.carousel-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .15s;
  flex-shrink: 0;
}
.carousel-btn:hover { background: var(--primary-dark); transform: scale(1.07); }
.carousel-btn svg { width: 18px; height: 18px; stroke: #fff; }
.carousel-dots { display: flex; gap: 10px; align-items: center; }
.carousel-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}
.carousel-dot.active { background: var(--primary); transform: scale(1.3); }
.carousel-dot:hover:not(.active) { background: var(--muted); }

@media (max-width: 640px) {
  .slide-inner { padding: 24px 20px; }
}

/* ===== Final CTA ===== */
.cta-final {
  background: linear-gradient(150deg, var(--ink) 0%, var(--primary) 65%, var(--primary-dark) 100%);
  color: #fff; text-align: center; padding: 90px 0;
}
.cta-final h2 { color: #fff; margin-bottom: 16px; }
.cta-final p { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 620px; margin: 0 auto 36px; }
.cta-final .hero-buttons { justify-content: center; margin-bottom: 0; }

/* ===== Footer ===== */
.footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand img { height: 38px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: .9rem; line-height: 1.7; max-width: 320px; }
.footer-title { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,.7); font-size: .9rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; text-align: center; font-size: .85rem; }

/* ===== Reveal animation (lightweight, no external lib) ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-card { order: -1; max-width: 520px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .shots-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 120px 0 64px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .shots-grid { grid-template-columns: 1fr; }
}

/* Mobile nav drawer */
.mobile-drawer {
  position: fixed; inset: 0; background: var(--ink); z-index: 1100;
  display: none; flex-direction: column; padding: 90px 32px 32px;
}
.mobile-drawer.open { display: flex; }
.mobile-drawer a { color: #fff; font-size: 1.2rem; font-weight: 700; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.mobile-drawer-close { position: absolute; top: 24px; right: 24px; background: none; border: none; cursor: pointer; }
.mobile-drawer-close svg { width: 28px; height: 28px; stroke: #fff; }
