/* ==========================================================================
   CORELOGIC — DESIGN SYSTEM
   Prata metálico + preto (identidade da marca) com acento ciano (fibra/rede)
   ========================================================================== */

:root {
  --bg: #07070a;
  --bg-alt: #0c0c11;
  --surface: #121218;
  --surface-2: #1a1a22;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #f3f3f6;
  --text-dim: #a3a3ae;
  --text-faint: #6b6b76;

  --silver-1: #f5f5f7;
  --silver-2: #b7b7c0;
  --silver-3: #75757f;

  --accent: #22d3ee;
  --accent-dim: rgba(34, 211, 238, 0.14);
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --font-head: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;

  --container: 1220px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }

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

.container--narrow { max-width: 820px; }

.icon { width: 20px; height: 20px; flex-shrink: 0; }

.grad-silver {
  background: linear-gradient(135deg, var(--silver-1) 10%, var(--silver-3) 45%, var(--silver-1) 75%, var(--silver-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

::selection { background: var(--accent); color: #041016; }

/* ---------------------------------- Loader ---------------------------------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader__logo { width: 88px; height: 88px; object-fit: contain; }

/* ---------------------------------- Buttons ---------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: linear-gradient(135deg, var(--silver-1), var(--silver-2));
  color: #0a0a0d;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 10px 30px -8px rgba(255,255,255,0.25);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,0.2), 0 16px 36px -8px rgba(255,255,255,0.35); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn--whatsapp {
  background: var(--whatsapp);
  color: #06210f;
  box-shadow: 0 10px 30px -10px rgba(37, 211, 102, 0.55);
}
.btn--whatsapp:hover { background: #2fe37a; transform: translateY(-2px); }

.btn--sm { padding: 10px 18px; font-size: 13.5px; }
.btn--lg { padding: 19px 38px; font-size: 16.5px; }

/* ---------------------------------- Header ---------------------------------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 22px 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  padding: 12px 0;
  background: rgba(7, 7, 10, 0.75);
  backdrop-filter: blur(14px);
  border-color: var(--border);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo { display: flex; align-items: center; gap: 12px; }
.header__logo-icon { height: 32px; width: auto; }
.header__logo-wordmark { height: 21px; width: auto; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav__link {
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
  position: relative;
  transition: color 0.25s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { width: 100%; }

.header__cta { flex-shrink: 0; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
}
.nav__toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(7,7,10,0.98);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s var(--ease), opacity 0.4s;
}
.mobile-menu.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu__nav { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.mobile-menu__link { font-family: var(--font-head); font-size: 26px; font-weight: 600; }

/* ---------------------------------- Hero ---------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 160px 0 100px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(34,211,238,0.08), transparent 60%),
    linear-gradient(180deg, #08080b 0%, #0a0a0e 60%, var(--bg) 100%);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }
.hero__glow {
  position: absolute;
  top: -20%; left: 50%;
  width: 900px; height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255,255,255,0.05), transparent 65%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; max-width: 880px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 8px 16px;
  border: 1px solid rgba(34,211,238,0.3);
  border-radius: 999px;
  background: var(--accent-dim);
  margin-bottom: 28px;
}

.hero__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 26px;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-dim);
  max-width: 640px;
  margin-bottom: 40px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 36px; }

.hero__proof { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: 14.5px; font-weight: 500; }
.hero__proof-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero__scroll {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid var(--border-strong);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  z-index: 2;
}
.hero__scroll span {
  width: 4px; height: 8px;
  border-radius: 2px;
  background: var(--accent);
  animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------------------------------- Section shared ---------------------------------- */
.section { position: relative; padding: 120px 0; }
.section--alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); }

.section__eyebrow {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  max-width: 780px;
}
.section__subtitle { color: var(--text-dim); font-size: 17px; max-width: 620px; margin-bottom: 60px; }

/* ---------------------------------- Services ---------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 20px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34,211,238,0.35);
  background: var(--surface-2);
}
.service-card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  color: var(--accent);
  margin-bottom: 22px;
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card__title { font-family: var(--font-head); font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.service-card__desc { color: var(--text-dim); font-size: 14.5px; line-height: 1.65; }

/* ---------------------------------- About / Benefits ---------------------------------- */
.about { max-width: 720px; margin-bottom: 56px; }
.about__paragraph { color: var(--text-dim); font-size: 17px; margin-top: 4px; }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.benefit-card {
  background: var(--bg-alt);
  padding: 34px 30px;
  transition: background 0.4s var(--ease);
}
.benefit-card:hover { background: var(--surface); }
.benefit-card__icon { color: var(--accent); margin-bottom: 18px; }
.benefit-card__icon svg { width: 28px; height: 28px; }
.benefit-card__title { font-family: var(--font-head); font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.benefit-card__desc { color: var(--text-dim); font-size: 14px; line-height: 1.6; }

/* ---------------------------------- Stats ---------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 80px;
}
.stat-card {
  text-align: center;
  padding: 36px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), transparent);
}
.stat-card__value {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  background: linear-gradient(135deg, var(--silver-1), var(--accent) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}
.stat-card__label { color: var(--text-dim); font-size: 14px; }

/* ---------------------------------- Testimonials ---------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.testimonial-card__quote-icon { color: var(--accent); opacity: 0.6; margin-bottom: 18px; }
.testimonial-card__quote-icon svg { width: 30px; height: 30px; }
.testimonial-card__text { color: var(--text); font-size: 15.5px; line-height: 1.7; margin-bottom: 24px; flex: 1; }
.testimonial-card__author { display: flex; align-items: center; gap: 12px; }
.testimonial-card__avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--silver-2), var(--silver-3));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; color: #0a0a0d;
  flex-shrink: 0;
}
.testimonial-card__name { font-family: var(--font-head); font-weight: 600; font-size: 14.5px; }
.testimonial-card__role { color: var(--text-faint); font-size: 13px; }

/* ---------------------------------- CTA ---------------------------------- */
.cta { padding: 30px 24px 120px; }
.cta__inner {
  position: relative;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  padding: 90px 40px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-alt) 100%);
}
.cta__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(34,211,238,0.12), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.06), transparent 45%);
  pointer-events: none;
}
.cta__title {
  position: relative;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  max-width: 700px;
  margin: 0 auto 34px;
  letter-spacing: -0.01em;
}
.cta__list {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 28px;
  margin-bottom: 44px;
}
.cta__list li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-dim);
  font-size: 14.5px;
  font-weight: 500;
}
.cta__list svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.cta .btn { position: relative; }

/* ---------------------------------- FAQ ---------------------------------- */
.faq-list { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px;
  text-align: left;
  font-family: var(--font-head);
  font-size: 16.5px;
  font-weight: 600;
}
.faq-item__icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.faq-item__icon svg { width: 12px; height: 12px; }
.faq-item.is-open .faq-item__icon { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: #041016; }
.faq-item__answer-wrap { height: 0; overflow: hidden; }
.faq-item__answer { padding: 0 26px 24px; color: var(--text-dim); font-size: 15px; line-height: 1.7; max-width: 680px; }

/* ---------------------------------- Footer ---------------------------------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 80px 0 30px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer__logo { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer__logo-icon { height: 46px; width: auto; }
.footer__logo-wordmark { height: 26px; width: auto; }
.footer__tagline { color: var(--text-dim); font-size: 14.5px; max-width: 280px; margin-bottom: 10px; }
.footer__regions { color: var(--text-faint); font-size: 13px; }
.footer__heading { font-family: var(--font-head); font-size: 13.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 18px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col a { color: var(--text-dim); font-size: 14.5px; transition: color 0.25s; }
.footer__col a:hover { color: var(--accent); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--text-faint);
  font-size: 13.5px;
}
.footer__legal { display: flex; gap: 22px; }
.footer__legal a { color: var(--text-faint); transition: color 0.25s; }
.footer__legal a:hover { color: var(--text); }

/* ---------------------------------- Floating WhatsApp ---------------------------------- */
.whatsapp-float {
  position: fixed;
  right: 26px; bottom: 26px;
  z-index: 300;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex; align-items: center; justify-content: center;
  color: #06210f;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,0.6);
}
.whatsapp-float .icon { width: 28px; height: 28px; }
.whatsapp-float__pulse {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--whatsapp);
  opacity: 0.6;
  animation: wa-pulse 2.2s ease-out infinite;
  z-index: -1;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.9); opacity: 0; }
}

.back-to-top {
  position: fixed;
  right: 26px; bottom: 98px;
  z-index: 300;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top svg { width: 18px; height: 18px; }

/* ---------------------------------- Reveal helper (JS toggles .is-visible) ---------------------------------- */
.reveal-up { opacity: 0; }

/* ---------------------------------- Legal pages ---------------------------------- */
.legal-page { padding: 160px 0 100px; }
.legal-page h1 { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 24px; }
.legal-page h2 { font-family: var(--font-head); font-size: 1.2rem; margin: 32px 0 12px; }
.legal-page p, .legal-page li { color: var(--text-dim); font-size: 15.5px; line-height: 1.8; margin-bottom: 14px; }
.legal-page a.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; margin-bottom: 40px; }

/* ============================================================ RESPONSIVE ============================================================ */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav, .header__cta { display: none; }
  .nav__toggle { display: flex; }
  .hero { padding: 130px 0 80px; min-height: auto; }
  .section { padding: 88px 0; }
  .section__subtitle { margin-bottom: 40px; }
}

@media (max-width: 640px) {
  .services-grid, .benefits-grid, .stats-grid { grid-template-columns: 1fr; }
  .cta__inner { padding: 56px 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .whatsapp-float { right: 18px; bottom: 18px; width: 54px; height: 54px; }
  .back-to-top { right: 18px; bottom: 84px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
}
