/* ============================================================
   De Conto — Home CSS
   Estilos específicos da página inicial.
   ============================================================ */

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 160px 24px 80px;
  overflow: hidden;
  background: #000;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img, .hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  animation: hero-slow-zoom 24s ease-in-out infinite alternate;
}
@keyframes hero-slow-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 0%, rgba(0,0,0,0.5) 70%, rgba(0,0,0,0.9) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.95) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5.5vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.hero h1 .accent-line {
  color: var(--brand);
  display: block;
}
.hero .lead {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--text-2);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.6;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: hero-scroll-bounce 2s ease-in-out infinite;
  z-index: 2;
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, var(--brand), transparent);
}
@keyframes hero-scroll-bounce {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.7; }
  50% { transform: translate(-50%, 8px); opacity: 1; }
}

/* ============================================================
   NÚMEROS
   ============================================================ */
.stats {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(192,196,208,0.03) 50%, transparent);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat {
  text-align: center;
  padding: 16px 8px;
  position: relative;
}
.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -16px; top: 20%; bottom: 20%;
  width: 1px;
  background: var(--border);
}
.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 52px);
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.stat-value .plus { color: var(--brand); }
.stat-label {
  font-size: 13.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .stat::after { display: none; }
}

/* ============================================================
   SERVIÇOS
   ============================================================ */
.services { background: var(--bg); }
.services-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.services-head .kicker { margin-bottom: 16px; display: inline-block; }
.services-head h2 { margin-bottom: 20px; }

.services-cta {
  text-align: center;
  margin-top: 48px;
}

/* ============================================================
   QUEM SOMOS
   ============================================================ */
.about {
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.about-wrap {
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: 64px;
  align-items: center;
}
.about-visual {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.about-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.about-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.6));
  z-index: 1;
}
.about-visual::after {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  z-index: 2;
}
.about-text .kicker { margin-bottom: 16px; display: inline-block; }
.about-text h2 { margin-bottom: 28px; }
.about-text p {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 20px;
}
@media (max-width: 900px) {
  .about-wrap { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { max-width: 420px; margin: 0 auto; }
}

/* ============================================================
   DIFERENCIAIS — Octavia-style com coluna sticky + card ativo
   ============================================================ */
.diff {
  padding-top: 0;
}
.diff-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 72px;
}

/* Layout de 2 colunas: esquerda sticky, direita scroll */
.diff-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: start;
  position: relative;
}

/* ---------- COLUNA ESQUERDA (sticky) ---------- */
.diff-sticky {
  position: sticky;
  top: 140px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-right: 24px;
}

/* Contador grande 02/06 */
.diff-counter {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  display: flex;
  align-items: baseline;
  gap: 0;
  color: var(--text);
  white-space: nowrap;
}
.diff-counter-current,
.diff-counter-sep,
.diff-counter-total {
  background: linear-gradient(180deg, #ffffff 0%, #c0c4d0 50%, #6a6e78 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.diff-counter-current {
  font-size: clamp(72px, 10vw, 128px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.diff-counter-current.flip {
  opacity: 0;
  transform: translateY(-10px);
}
.diff-counter-sep {
  font-size: clamp(40px, 5.5vw, 72px);
  opacity: 0.5;
  margin: 0 6px;
}
.diff-counter-total {
  font-size: clamp(40px, 5.5vw, 72px);
  opacity: 0.5;
}

/* Barrinha de progresso */
.diff-progress {
  width: 100%;
  max-width: 320px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.diff-progress-bar {
  height: 100%;
  width: 16.6%;   /* 1/6 inicial, atualizado via JS */
  background: linear-gradient(90deg, var(--brand-soft), var(--brand-bright));
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  box-shadow: 0 0 12px rgba(192, 196, 208, 0.4);
}

/* Título do item ativo */
.diff-active-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 380px;
  min-height: 2.4em;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.diff-active-title.flip {
  opacity: 0;
  transform: translateY(-8px);
}

/* Símbolo prata polido */
.diff-symbol {
  width: 100px;
  height: 100px;
  margin-top: 16px;
  opacity: 0.9;
  filter: drop-shadow(0 8px 24px rgba(192, 196, 208, 0.2));
}
.diff-symbol svg {
  width: 100%;
  height: 100%;
  animation: diff-symbol-spin 32s linear infinite;
  transform-origin: center;
}
@keyframes diff-symbol-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ---------- COLUNA DIREITA (lista scrollável) ---------- */
.diff-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

/* Card individual, acende quando ativo */
.diff-item {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 20px;
  padding: 32px 32px 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.5s ease,
    box-shadow 0.5s ease,
    transform 0.5s ease,
    background 0.5s ease;
  overflow: hidden;
}

/* Marker (bolinha ou linha vertical à esquerda do card) */
.diff-item-marker {
  position: relative;
  width: 2px;
  background: var(--border);
  border-radius: 2px;
  transition: background 0.5s ease, box-shadow 0.5s ease;
}
.diff-item-marker::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 8px; height: 8px;
  background: var(--border);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: background 0.5s ease, box-shadow 0.5s ease, transform 0.4s ease;
}

/* Edge highlight no topo (reflexo prata) */
.diff-item::before {
  content: "";
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(192,196,208,0.4), transparent);
  pointer-events: none;
  opacity: 0.3;
  transition: opacity 0.5s ease;
}

/* Estado ATIVO — card acende com borda prata iluminada */
.diff-item.is-active {
  border-color: rgba(192, 196, 208, 0.9);
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  transform: translateX(-4px);
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px rgba(192, 196, 208, 0.5),
    0 0 32px -4px rgba(192, 196, 208, 0.4),
    0 0 80px -16px rgba(192, 196, 208, 0.3);
}
.diff-item.is-active::before { opacity: 1; }
.diff-item.is-active .diff-item-marker {
  background: linear-gradient(180deg, transparent, rgba(192,196,208,0.6), transparent);
}
.diff-item.is-active .diff-item-marker::before {
  background: var(--brand-bright);
  box-shadow: 0 0 16px rgba(230, 232, 238, 0.8), 0 0 32px rgba(192, 196, 208, 0.4);
  transform: translate(-50%, -50%) scale(1.3);
}
.diff-item.is-active h4 {
  color: var(--brand-bright);
}

/* Dim para itens inativos: fica mais discreto */
.diff-item.is-dim {
  opacity: 0.55;
}

.diff-item-body h4 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 10px 0;
  transition: color 0.4s ease;
}
.diff-item-body p {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.65;
  margin: 0;
}

/* ---------- RESPONSIVO ---------- */
@media (max-width: 1024px) {
  .diff-layout { grid-template-columns: 1fr; gap: 48px; }
  .diff-sticky {
    position: static;
    min-height: auto;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding-right: 0;
    flex-wrap: wrap;
  }
  .diff-counter { font-size: clamp(60px, 9vw, 96px); }
  .diff-progress { max-width: 200px; flex: 1 1 180px; }
  .diff-active-title {
    flex: 1 1 100%;
    min-height: auto;
    font-size: 22px;
  }
  .diff-symbol { display: none; } /* economiza espaço no tablet */
}

@media (max-width: 640px) {
  .diff-sticky {
    gap: 16px;
  }
  .diff-counter { font-size: 64px; }
  .diff-progress { max-width: 100%; }
  .diff-active-title { font-size: 18px; }
  .diff-item {
    padding: 24px 20px 24px 18px;
    grid-template-columns: 24px 1fr;
    gap: 14px;
  }
  .diff-item-body h4 { font-size: 17px; }
  .diff-item-body p { font-size: 14px; }
  /* No mobile, não aplicamos dim pros outros, só destacamos o ativo */
  .diff-item.is-dim { opacity: 1; }
}

/* ============================================================
   COMO FUNCIONA
   ============================================================ */
.how {
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.how-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
/* connector line */
.how-grid::before {
  content: "";
  position: absolute;
  top: 42px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 20%, var(--border-strong) 80%, transparent);
  z-index: 0;
}
.how-step {
  text-align: center;
  padding: 32px 20px;
  position: relative;
  z-index: 1;
}
.how-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--brand);
  margin: 0 auto 20px;
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(192,196,208,0.2);
  position: relative;
}
.how-step h5 {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text);
  margin-bottom: 10px;
  font-weight: 600;
}
.how-step p {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.6;
}
@media (max-width: 900px) {
  .how-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .how-grid::before { display: none; }
}
@media (max-width: 540px) { .how-grid { grid-template-columns: 1fr; } }

.how-cta { text-align: center; margin-top: 48px; }

/* ============================================================
   CLIENTES — infinite horizontal carousel
   ============================================================ */
.clients {
  background: var(--bg);
  padding: var(--space-8) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.clients-head {
  text-align: center;
  margin-bottom: 48px;
}
.clients-head h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 30px);
  margin-bottom: 12px;
}
.clients-head p {
  color: var(--muted);
  font-size: 14.5px;
}

.marquee {
  overflow: hidden;
  position: relative;
  padding: 20px 0;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 72px;
  width: fit-content;
  animation: marquee 40s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  flex-shrink: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  filter: grayscale(1) brightness(1.6);
  opacity: 0.7;
  transition: opacity 0.3s ease, filter 0.3s ease;
}
.marquee-item:hover {
  opacity: 1;
  filter: grayscale(0) brightness(1);
}
.marquee-item img {
  max-height: 100%;
  width: auto;
}
.marquee-item .logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.clients-note {
  text-align: center;
  max-width: 720px;
  margin: 40px auto 0;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.7;
}

/* ============================================================
   DEPOIMENTOS — Google widget placeholder
   ============================================================ */
.reviews {
  background: var(--bg);
}
.reviews-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}
.reviews-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 48px 32px;
  text-align: center;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  box-shadow: var(--shadow-md);
}
.reviews-widget .wnote {
  padding: 8px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}

/* ============================================================
   FORM
   ============================================================ */
.form-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.form-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}
.form-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.form-wrap::before {
  content: "";
  position: absolute;
  top: 0; left: 30%; right: 30%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-row.full { grid-template-columns: 1fr; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--brand);
  background: var(--surface-3);
}
.form-field textarea {
  min-height: 100px;
  resize: vertical;
  font-family: inherit;
}
.form-submit {
  text-align: center;
  margin-top: 24px;
}
.form-submit .btn { min-width: 240px; }
.form-note {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 16px;
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .form-wrap { padding: 32px 24px; }
}

/* FAQ styles movidos para shell.css (compartilhado entre páginas) */
