/* ===================================================================
   NEXA Desenvolvimentos — Landing Page
   =================================================================== */

:root {
  --bg:        #07080d;
  --bg-2:      #0a0c13;
  --surface:   #0f111a;
  --surface-2: #12141f;
  --border:    rgba(255, 255, 255, 0.08);
  --border-2:  rgba(255, 255, 255, 0.14);

  --text:      #e9eaf2;
  --text-soft: #b9bdcc;
  --muted:     #8a8fa3;

  --purple:    #8b5cf6;
  --purple-2:  #a855f7;
  --indigo:    #6366f1;
  --blue:      #3b82f6;
  --cyan:      #38bdf8;
  --whats:     #25d366;

  --grad:      linear-gradient(135deg, #a855f7 0%, #6366f1 55%, #3b82f6 100%);
  --grad-soft: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(59, 130, 246, 0.14));

  --radius:    16px;
  --radius-lg: 22px;
  --shadow:    0 20px 50px -20px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 0 1px rgba(139, 92, 246, 0.35), 0 18px 50px -18px rgba(99, 102, 241, 0.45);

  --container:  1160px;
  --header-h:   72px;
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Space Grotesk", var(--font-body);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

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

img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; }
input, select, textarea { font: inherit; color: inherit; }

::selection { background: rgba(168, 85, 247, 0.35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--purple-2);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.section {
  position: relative;
  padding-block: clamp(56px, 7vw, 92px);
}

.section__head {
  max-width: 720px;
  margin-bottom: clamp(36px, 6vw, 60px);
}

.section__lead {
  color: var(--text-soft);
  margin-top: 14px;
  font-size: 1.05rem;
}

/* ---------- typography ---------- */
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }

h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.18rem; letter-spacing: -0.01em; }

p { text-wrap: pretty; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-2);
  margin-bottom: 18px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  flex-shrink: 0;
  background: var(--purple-2);
  box-shadow: 0 0 12px 2px rgba(168, 85, 247, 0.6);
}

/* ---------- buttons ---------- */
.btn {
  --btn-pad-y: 12px;
  --btn-pad-x: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.005em;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  will-change: transform;
  text-align: center;
}
.btn--lg { --btn-pad-y: 16px; --btn-pad-x: 30px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(124, 58, 237, 0.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(124, 58, 237, 0.75); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-2);
  color: var(--text);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--purple); background: rgba(139, 92, 246, 0.1); }

.btn--whats {
  background: var(--whats);
  color: #04240f;
  box-shadow: 0 10px 30px -12px rgba(37, 211, 102, 0.6);
}
.btn--whats:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(37, 211, 102, 0.8); }
.ico-whats { width: 20px; height: 20px; flex-shrink: 0; }

.btn:active { transform: translateY(0) scale(0.99); }

/* ---------- background decoration ---------- */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.bg-orb--1 { width: 520px; height: 520px; top: -180px; right: -120px; background: radial-gradient(circle, rgba(139, 92, 246, 0.55), transparent 70%); }
.bg-orb--2 { width: 460px; height: 460px; bottom: -220px; left: -160px; background: radial-gradient(circle, rgba(59, 130, 246, 0.4), transparent 70%); }
.bg-orb--3 { width: 500px; height: 500px; top: 10%; left: 45%; background: radial-gradient(circle, rgba(99, 102, 241, 0.35), transparent 70%); }
.bg-orb--4 { width: 480px; height: 480px; top: -160px; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, rgba(168, 85, 247, 0.32), transparent 70%); }

.grid-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

.section > .container { position: relative; z-index: 1; }

/* ===================================================================
   HEADER
   =================================================================== */
.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  background: var(--purple);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 200;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(7, 8, 13, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(7, 8, 13, 0.9);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.8);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.brand img { width: 42px; height: 42px; border-radius: 10px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--font-head); }
.brand__text strong { font-size: 1.02rem; letter-spacing: 0.06em; font-weight: 700; }
.brand__text em {
  font-style: normal;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 6px; }
.nav__link {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: #fff; background: rgba(255, 255, 255, 0.06); }

.nav__cta-li { display: none; }

.header__cta { flex-shrink: 0; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-2);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
}
.nav__toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================================================================
   HERO
   =================================================================== */
.hero { padding-top: clamp(56px, 9vw, 96px); overflow: hidden; }
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}

.hero__sub {
  color: var(--text-soft);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  margin-top: 22px;
  max-width: 30ch;
}
.hero__content h1 { max-width: 15ch; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.hero__tags li {
  font-size: 0.82rem;
  color: var(--text-soft);
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

/* hero visual mock */
.hero__visual { position: relative; }
.mock {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  margin-inline: auto;
}
.mock__glass {
  background: linear-gradient(160deg, rgba(24, 26, 40, 0.9), rgba(14, 15, 24, 0.82));
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}
.mock__card { position: absolute; padding: 18px; }
.mock__card--main {
  inset: 12% 14% 16% 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
  animation: float 7s ease-in-out infinite;
}
.mock__card--flow {
  right: -5%;
  bottom: 4%;
  width: 70%;
  animation: float 6s ease-in-out infinite reverse;
}
.mock__card--stat {
  right: -4%;
  top: -4%;
  width: 39%;
  text-align: center;
  animation: float 8s ease-in-out infinite;
}

.mock__bar { display: flex; gap: 6px; }
.mock__bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.mock__bar span:first-child { background: rgba(168, 85, 247, 0.8); }

.mock__title { font-family: var(--font-head); font-size: 0.9rem; color: var(--text-soft); }
.mock__mini-title {
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.mock__chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 84px;
  padding-top: 4px;
}
.mock__chart i {
  flex: 1;
  height: var(--h);
  border-radius: 5px 5px 3px 3px;
  background: var(--grad);
  opacity: 0.85;
}
.mock__chart i:nth-child(even) { opacity: 0.5; }

.mock__rows { display: flex; flex-direction: column; gap: 8px; }
.mock__rows span { height: 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); }
.mock__rows span:nth-child(1) { width: 90%; }
.mock__rows span:nth-child(2) { width: 70%; }
.mock__rows span:nth-child(3) { width: 82%; }

.mock__flow { display: flex; align-items: center; gap: 6px; }
.mock__flow .node {
  font-size: 0.72rem;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.mock__flow .node--accent { background: rgba(139, 92, 246, 0.22); border-color: rgba(168, 85, 247, 0.5); color: #fff; }
.mock__flow .link { flex: 1; height: 2px; background: linear-gradient(90deg, rgba(168, 85, 247, 0.7), rgba(59, 130, 246, 0.7)); border-radius: 2px; }

.mock__pulse {
  width: 54px; height: 54px;
  margin: 4px auto 10px;
  border-radius: 50%;
  background: var(--grad-soft);
  border: 1px solid rgba(168, 85, 247, 0.4);
  display: grid;
  place-items: center;
}
.mock__pulse span {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--purple-2);
  box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.5);
  animation: pulse 2.4s ease-out infinite;
}
.mock__stat-label { font-size: 0.74rem; color: var(--muted); }

.mock__caption {
  text-align: center;
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 18px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(168, 85, 247, 0); }
  100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
}

/* ===================================================================
   O PROBLEMA
   =================================================================== */
.problem { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.solutions, .about { background: var(--bg-2); }
.problem__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.problem__item {
  position: relative;
  padding: 18px 18px 18px 46px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.98rem;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.problem__item::before {
  content: "";
  position: absolute;
  left: 18px; top: 50%;
  width: 16px; height: 16px;
  margin-top: -8px;
  border-radius: 5px;
  background: var(--grad-soft);
  border: 1px solid rgba(168, 85, 247, 0.5);
}
.problem__item:hover { border-color: var(--border-2); transform: translateX(4px); }
.problem__cta { margin-top: 40px; }

/* ===================================================================
   SOLUÇÕES
   =================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.cards .card { display: flex; flex-direction: column; }
.card {
  padding: 26px 24px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 24px 50px -24px rgba(99, 102, 241, 0.5);
}
.card__icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  border: 1px solid var(--border-2);
  color: var(--purple-2);
  margin-bottom: 18px;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.92rem; color: var(--muted); }

/* ===================================================================
   DIFERENCIAL
   =================================================================== */
.differential__box {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
  padding: clamp(30px, 5vw, 56px);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(139, 92, 246, 0.12), transparent 55%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}
.differential__text h2 { margin: 12px 0 16px; }
.differential__text p { color: var(--text-soft); }

.differential__flow { display: flex; flex-direction: column; gap: 10px; }
.differential__flow li {
  position: relative;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-head);
  font-weight: 500;
  counter-increment: flow;
}
.differential__flow li span { position: relative; z-index: 1; }
.differential__flow li::before {
  content: counter(flow, decimal-leading-zero);
  margin-right: 12px;
  color: var(--purple-2);
  font-size: 0.8rem;
}
.differential__flow { counter-reset: flow; }
.differential__flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 26px; bottom: -10px;
  width: 1px; height: 10px;
  background: var(--border-2);
}

/* ===================================================================
   COMO FUNCIONA
   =================================================================== */
.how { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.timeline {
  position: relative;
  max-width: 780px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 27px; top: 28px; bottom: 34px;
  width: 2px;
  background: linear-gradient(180deg, var(--purple-2) 0%, var(--indigo) 45%, var(--blue) 100%);
  opacity: 0.55;
}
.timeline__item {
  position: relative;
  display: flex;
  gap: 22px;
  padding-block: 16px;
}
.timeline__num {
  flex-shrink: 0;
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-2);
  position: relative;
  z-index: 1;
}
.timeline__item:hover .timeline__num {
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}
.timeline__content { padding-top: 6px; }
.timeline__content h3 { margin-bottom: 4px; }
.timeline__content p { color: var(--muted); }

/* ===================================================================
   PARA QUEM É
   =================================================================== */
.audience__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.audience__grid li {
  padding: 22px 18px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--text-soft);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.audience__grid li:hover { border-color: rgba(168, 85, 247, 0.45); color: #fff; transform: translateY(-4px); }

/* ===================================================================
   AUTOMAÇÃO
   =================================================================== */
.automation { overflow: hidden; }
.automation__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}
.automation__text h2 { margin: 12px 0 16px; }
.automation__text p { color: var(--text-soft); margin-bottom: 28px; }

.automation__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.automation__list li {
  padding: 15px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  font-size: 0.9rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.automation__list li::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--purple-2);
  box-shadow: 0 0 10px 1px rgba(168, 85, 247, 0.6);
  flex-shrink: 0;
}

/* ===================================================================
   SOB MEDIDA
   =================================================================== */
.custom__box {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  padding: clamp(36px, 6vw, 64px);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(99, 102, 241, 0.16), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}
.custom__box h2 { margin: 12px 0 14px; }
.custom__box p { color: var(--text-soft); margin-bottom: 28px; }

/* ===================================================================
   SOBRE
   =================================================================== */
.about__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.about__media { position: relative; display: grid; place-items: center; }
.about__media::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 70%);
  filter: blur(40px);
  z-index: -1;
}
.about__media img { width: min(340px, 78%); height: auto; border-radius: 24px; }
.about__text h2 { margin: 12px 0 16px; }
.about__text p { color: var(--text-soft); margin-bottom: 16px; }
.about__text .btn { margin-top: 8px; }

/* ===================================================================
   CONTATO + FORM
   =================================================================== */
.contact { overflow: hidden; }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}
.contact__intro h2 { margin: 12px 0 16px; }
.contact__intro > p { color: var(--text-soft); margin-bottom: 26px; }
.contact__phone { margin-top: 18px; font-size: 0.95rem; color: var(--muted); }
.contact__phone a { color: var(--text); border-bottom: 1px solid var(--border-2); }
.contact__phone a:hover { color: var(--purple-2); }

.contact__form {
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
}
.form__title { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; margin-bottom: 20px; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  color: var(--text);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder,
.field textarea::placeholder { color: #63687b; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a8fa3' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field select option { background: #12141f; color: var(--text); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--purple);
  background: rgba(139, 92, 246, 0.06);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}
.field input:user-invalid,
.field select:user-invalid {
  border-color: #f87171;
}

.contact__form .btn { margin-top: 6px; }
.form__note { font-size: 0.82rem; color: var(--muted); margin-top: 14px; text-align: center; }
.form__note.is-error { color: #f87171; }

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding-top: 56px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  align-items: start;
  padding-bottom: 40px;
}
.footer__brand .brand { margin-bottom: 14px; }
.footer__brand p { color: var(--muted); font-size: 0.92rem; max-width: 34ch; }
.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a { color: var(--text-soft); font-size: 0.92rem; width: max-content; }
.footer__nav a:hover { color: var(--purple-2); }
.footer__contact { display: flex; justify-content: flex-start; }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-block: 22px;
}
.footer__bottom p { font-size: 0.84rem; color: var(--muted); text-align: center; }

/* ===================================================================
   FLOATING WHATSAPP
   =================================================================== */
.fab-whats {
  position: fixed;
  right: clamp(16px, 4vw, 28px);
  bottom: clamp(16px, 4vw, 28px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 999px;
  background: var(--whats);
  color: #04240f;
  box-shadow: 0 14px 40px -10px rgba(37, 211, 102, 0.55);
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease), box-shadow 0.3s var(--ease);
}
.fab-whats.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.fab-whats:hover { box-shadow: 0 18px 48px -8px rgba(37, 211, 102, 0.75); }
.fab-whats svg { width: 28px; height: 28px; flex-shrink: 0; }
.fab-whats span {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.4s var(--ease), padding 0.4s var(--ease);
}
.fab-whats:hover span, .fab-whats:focus-visible span { max-width: 160px; padding-right: 6px; }

/* ===================================================================
   REVEAL ANIMATION
   =================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* stagger for grids */
.problem__list .reveal:nth-child(2) { transition-delay: 0.05s; }
.problem__list .reveal:nth-child(3) { transition-delay: 0.1s; }
.problem__list .reveal:nth-child(4) { transition-delay: 0.15s; }
.cards .reveal:nth-child(2), .audience__grid .reveal:nth-child(2) { transition-delay: 0.06s; }
.cards .reveal:nth-child(3), .audience__grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.cards .reveal:nth-child(4), .audience__grid .reveal:nth-child(4) { transition-delay: 0.18s; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 1024px) {
  :root { --header-h: 66px; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 420px; margin-inline: auto; margin-top: 8px; }
  .hero__content h1, .hero__sub { max-width: none; }

  .cards { grid-template-columns: repeat(2, 1fr); }

  .differential__box { grid-template-columns: 1fr; }
  .automation__inner { grid-template-columns: 1fr; }
  .about__inner { grid-template-columns: 1fr; }
  .about__media { max-width: 300px; margin-inline: auto; }
  .contact__inner { grid-template-columns: 1fr; }

  .audience__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .header__cta { display: none; }
  .nav__toggle { display: flex; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    margin: 0;
    background: rgba(9, 10, 17, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
  }
  .nav.is-open { max-height: 80vh; }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px clamp(20px, 5vw, 40px) 26px;
  }
  .nav__link {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 1rem;
  }
  .nav__cta-li { display: block; margin-top: 10px; }
  .nav__link--cta {
    background: var(--grad);
    color: #fff;
    text-align: center;
    font-family: var(--font-head);
    font-weight: 600;
  }
  .nav__link--cta:hover { color: #fff; background: var(--grad); opacity: 0.92; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }

  .eyebrow { font-size: 0.72rem; letter-spacing: 0.08em; }

  .problem__list { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .automation__list { grid-template-columns: 1fr; }
  .audience__grid { grid-template-columns: repeat(2, 1fr); }

  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__visual { display: none; }

  .footer__inner { grid-template-columns: 1fr; gap: 26px; }
  .footer__contact { justify-content: flex-start; }
  .footer__bottom { padding-bottom: 88px; }

  .timeline::before { left: 22px; }
  .timeline__num { width: 46px; height: 46px; font-size: 0.95rem; }
  .timeline__item { gap: 16px; }

  .fab-whats span { display: none; }
}

@media (max-width: 380px) {
  .container { padding-inline: 16px; }
  .brand__text em { display: none; }
  .audience__grid { grid-template-columns: 1fr; }
}

/* hero mock: clean vertical stack whenever the hero is single-column */
@media (max-width: 1024px) {
  .mock {
    aspect-ratio: auto;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .mock__card {
    position: static;
    inset: auto;
    width: 100%;
    padding: 16px;
    animation: none;
  }
  .mock__card--stat {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
  }
  .mock__pulse { margin: 0; flex-shrink: 0; }
  .mock__flow { flex-wrap: wrap; gap: 8px; }
  .mock__flow .link { min-width: 20px; }
  .mock__caption { margin-top: 12px; }
}

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