/* =========================================
   Impulsa — Assessoria de Ecommerce
   ========================================= */

:root {
  --bg: #0b1120;
  --bg-alt: #0f1729;
  --surface: #131c31;
  --surface-2: #1a2540;
  --border: #24304d;
  --text: #e7ebf5;
  --text-muted: #9aa5bd;
  --primary: #6d5bf6;
  --primary-2: #8b7bff;
  --accent: #22d3ee;
  --gradient: linear-gradient(135deg, #6d5bf6 0%, #8b7bff 45%, #22d3ee 100%);
  --whatsapp: #25d366;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --container: 1180px;
  --font-heading: "Manrope", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

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

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

button { font-family: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: 1.25rem; }

p { color: var(--text-muted); }

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

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--gradient);
  color: #0b1120;
  box-shadow: 0 10px 30px -10px rgba(109, 91, 246, 0.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(109, 91, 246, 0.7); }
.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--primary-2); color: var(--primary-2); }
.btn--whatsapp {
  background: var(--whatsapp);
  color: #06210f;
  margin-top: 20px;
}
.btn--whatsapp:hover { transform: translateY(-2px); }
.btn--lg { padding: 15px 30px; font-size: 1rem; }
.btn--sm { padding: 9px 18px; font-size: 0.85rem; }
.btn--block { width: 100%; }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========== HEADER =========== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.header.is-scrolled {
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 8px 30px -12px rgba(0,0,0,0.5);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text);
}
.logo span { color: var(--accent); }

.nav {
  display: flex;
  gap: 28px;
}
.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--text); }

.header__actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  padding: 6px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* =========== HERO =========== */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 15% 20%, rgba(109, 91, 246, 0.25), transparent 70%),
    radial-gradient(500px 400px at 85% 10%, rgba(34, 211, 238, 0.18), transparent 70%);
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero__content h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  margin-bottom: 20px;
}
.hero__subtitle {
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 32px;
}
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }

.hero__trust span:first-child {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.marketplace-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.marketplace-badges span {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.02);
}

.hero__visual {
  position: relative;
  height: 420px;
}
.hero__glow {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 320px;
  height: 320px;
  background: var(--gradient);
  filter: blur(90px);
  opacity: 0.35;
  border-radius: 50%;
}
.card-float {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 200px;
  z-index: 2;
  animation: floatCard 6s ease-in-out infinite;
}
.card-float__label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.card-float strong { font-family: var(--font-heading); font-size: 2.2rem; color: var(--text); }
.card-float .suffix { font-size: 1.3rem; color: var(--accent); font-weight: 700; margin-left: 2px; }
.card-float__hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.card-float--1 { top: 10%; left: 0; }
.card-float--2 { bottom: 12%; right: 0; animation-delay: 1.5s; }

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

/* =========== LOGOS BAR =========== */
.logos { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.logos__title {
  text-align: center;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.logos__row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
}
.logos__row span {
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--text-muted);
  opacity: 0.8;
  font-size: 1.05rem;
}

/* =========== SECTION HEAD =========== */
.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head p { margin-top: 14px; font-size: 1.02rem; }

/* =========== SERVICES =========== */
.services { padding: 120px 0 100px; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 24px;
}
.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--primary-2); }
.service-card--highlight {
  background: linear-gradient(180deg, rgba(109,91,246,0.12), var(--surface) 40%);
  border-color: var(--primary);
}
.service-card__badge {
  position: absolute;
  top: -12px; right: 24px;
  background: var(--gradient);
  color: #0b1120;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}
.service-card__icon {
  font-size: 1.8rem;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}
.service-card h3 { margin-bottom: 10px; }
.service-card p { margin-bottom: 18px; font-size: 0.95rem; }
.service-card ul { display: flex; flex-direction: column; gap: 10px; }
.service-card li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 22px;
  position: relative;
}
.service-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* =========== PROCESS =========== */
.process { padding: 100px 0; background: var(--bg-alt); }
.process__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 24px;
}
.process__step {
  padding: 28px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.process__number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--primary-2);
  display: block;
  margin-bottom: 14px;
}
.process__step h3 { margin-bottom: 8px; }
.process__step p { font-size: 0.92rem; }

/* =========== RESULTS =========== */
.results { padding: 110px 0; }
.results__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.results__content p { margin: 18px 0 28px; font-size: 1.02rem; }
.results__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 20px;
}
.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
}
.result-card strong { font-family: var(--font-heading); font-size: 2.4rem; }
.result-card .suffix { font-size: 1.4rem; color: var(--accent); font-weight: 700; }
.result-card p { margin-top: 6px; font-size: 0.9rem; }

/* =========== ABOUT =========== */
.about { padding: 100px 0; background: var(--bg-alt); }
.about__inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.about__visual { position: relative; height: 340px; }
.about__blob {
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0.85;
  border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%;
  filter: blur(2px);
  animation: blobMove 10s ease-in-out infinite;
}
@keyframes blobMove {
  0%, 100% { border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%; }
  50% { border-radius: 55% 45% 40% 60% / 45% 55% 45% 55%; }
}
.about__content p { margin: 18px 0 32px; font-size: 1.02rem; }
.about__points {
  display: grid;
  gap: 22px;
}
.about__points h4 { font-family: var(--font-heading); font-size: 1.05rem; margin-bottom: 6px; }
.about__points p { font-size: 0.92rem; }

/* =========== TESTIMONIALS =========== */
.testimonials { padding: 110px 0; }
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 24px;
}
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.testimonial p { color: var(--text); font-size: 0.96rem; margin-bottom: 24px; }
.testimonial__author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--gradient);
  color: #0b1120;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-family: var(--font-heading);
  font-size: 0.85rem;
}
.testimonial__author strong { display: block; font-size: 0.92rem; }
.testimonial__author span { font-size: 0.82rem; color: var(--text-muted); }

/* =========== FAQ =========== */
.faq { padding: 100px 0; background: var(--bg-alt); }
.faq__list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}
.faq-item__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 20px 24px;
  cursor: pointer;
  text-align: left;
}
.faq-item__icon {
  font-size: 1.2rem;
  color: var(--accent);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.is-open .faq-item__icon { transform: rotate(45deg); }
.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item__answer p { padding: 0 24px 20px; font-size: 0.92rem; }
.faq-item.is-open .faq-item__answer { max-height: 200px; }

/* =========== CTA FINAL =========== */
.cta-final {
  padding: 90px 0;
  background: var(--gradient);
}
.cta-final__inner { text-align: center; }
.cta-final h2 { color: #0b1120; margin-bottom: 12px; }
.cta-final p { color: rgba(11,17,32,0.75); font-size: 1.05rem; margin-bottom: 30px; }
.cta-final .btn--primary { background: #0b1120; color: #fff; box-shadow: none; }
.cta-final .btn--primary:hover { transform: translateY(-2px); }

/* =========== CONTACT =========== */
.contact { padding: 110px 0; }
.contact__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}
.contact__info p { margin: 18px 0 28px; font-size: 1.02rem; }
.contact__list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
.contact__list li { font-size: 0.95rem; color: var(--text-muted); }

.contact__form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.form-row input, .form-row textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem; /* 16px+ evita zoom automático no Safari iOS ao focar o campo */
  resize: vertical;
  transition: border-color 0.2s ease;
  width: 100%;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--primary-2);
}
.form-row input.is-invalid, .form-row textarea.is-invalid { border-color: #ef4444; }
.form-error {
  font-size: 0.78rem;
  color: #ef4444;
  min-height: 14px;
}
.form-success {
  display: none;
  text-align: center;
  font-size: 0.92rem;
  color: #4ade80;
  font-weight: 600;
}
.form-success.is-visible { display: block; }

/* =========== FOOTER =========== */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 70px 0 30px; }
.footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 40px;
  margin-bottom: 50px;
}
.footer__brand p { margin-top: 14px; font-size: 0.9rem; max-width: 280px; }
.footer__col h4 { font-family: var(--font-heading); font-size: 0.95rem; margin-bottom: 18px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col a { font-size: 0.9rem; color: var(--text-muted); transition: color 0.2s ease; }
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
}
.footer__bottom p { font-size: 0.82rem; }

/* =========== BACK TO TOP =========== */
.back-to-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gradient);
  color: #0b1120;
  border: none;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 90;
  box-shadow: 0 10px 24px -8px rgba(109,91,246,0.6);
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* =========================================
   RESPONSIVE
   Breakpoints: 1024 (tablet paisagem/desktop pequeno),
   768 (tablet), 640 (celular grande), 400 (celular pequeno)
   ========================================= */

/* Suporte a notch / safe-area em iPhones com viewport-fit=cover */
@supports (padding: max(0px)) {
  .header__inner { padding-left: max(0px, env(safe-area-inset-left)); padding-right: max(0px, env(safe-area-inset-right)); }
  .back-to-top { right: max(24px, calc(24px + env(safe-area-inset-right))); bottom: max(24px, calc(24px + env(safe-area-inset-bottom))); }
  .footer__bottom { padding-bottom: max(0px, env(safe-area-inset-bottom)); }
}

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { height: 340px; margin-top: 20px; }
  .results__inner { grid-template-columns: 1fr; }
  .about__inner { grid-template-columns: 1fr; }
  .about__visual { height: 220px; order: 2; }
  .contact__inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 64px; left: 0; right: 0;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 24px 24px;
    gap: 4px;
    transform: translateY(-150%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .nav a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .header__actions .btn--sm { display: none; }

  .hero { padding: 130px 0 70px; }
  .services { padding: 80px 0; }
  .process, .about, .faq { padding: 70px 0; }
  .results, .testimonials, .contact { padding: 80px 0; }
  .cta-final { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }

  .card-float strong { font-size: 1.8rem; }
  .contact__form { padding: 26px; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }

  /* Cards do hero deixam de flutuar sobre a tela e passam a empilhar em fluxo normal */
  .hero__visual {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .hero__glow { display: none; }
  .card-float,
  .card-float--1,
  .card-float--2 {
    position: static;
    width: 100%;
    min-width: 0;
    animation: none;
  }

  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }

  .services__grid,
  .process__grid,
  .testimonials__grid,
  .footer__inner { grid-template-columns: 1fr; }

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

  .about__points { gap: 18px; }
  .footer__inner { gap: 32px; }
}

@media (max-width: 400px) {
  .logo { font-size: 1.2rem; }
  .hero { padding: 118px 0 56px; }
  .hero__content h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
  .eyebrow { font-size: 0.72rem; }
  .service-card, .contact__form { padding: 22px 18px; }
  .results__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .result-card { padding: 20px 16px; }
  .result-card strong { font-size: 1.9rem; }
  .back-to-top { width: 42px; height: 42px; bottom: 16px; right: 16px; }
}

/* Telas curtas (celulares em paisagem) — evita empurrar o conteúdo do hero para fora da viewport */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { padding: 96px 0 40px; }
  .hero__visual { height: auto; }
}

/* Telas muito grandes — mantém o texto de leitura confortável */
@media (min-width: 1600px) {
  :root { --container: 1320px; }
}
