/* ============================================================
   MARCO CAMPAGNOLLI — LP Redesign
   Paleta: #0a0a0a fundo | #F11919 acento | #f5f5f5 texto
   Fonte: Satoshi (Fontshare)
   ============================================================ */

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

:root {
  --bg:        #0a0a0a;
  --bg-2:      #0f0f0f;
  --surface:   #161616;
  --surface-2: #1c1c1c;
  --border:    rgba(255,255,255,.07);
  --border-r:  rgba(241,25,25,.25);
  --text:      #f5f5f5;
  --muted:     #777;
  --muted-2:   #555;
  --accent:    #F11919;
  --accent-h:  #d41414;
  --accent-lt: rgba(241,25,25,.1);
  --accent-gl: rgba(241,25,25,.06);
  --white:     #ffffff;
  --font:      'Satoshi', sans-serif;
  --radius:    10px;
  --max:       1100px;
  --gap:       clamp(4rem, 9vw, 7rem);
}

html { scroll-behavior: smooth; }

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

img  { display: block; max-width: 100%; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ── NOISE OVERLAY (subtle texture) ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 700;
  font-size: .9375rem;
  letter-spacing: .03em;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
  padding: .875rem 2rem;
  position: relative;
  z-index: 1;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, #a00f0f 0%, #F11919 100%);
  color: var(--white);
  border-color: transparent;
}
.btn--primary:hover {
  background: linear-gradient(135deg, #8a0d0d 0%, #d41414 100%);
  border-color: transparent;
  box-shadow: 0 8px 32px rgba(241,25,25,.45);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(255,255,255,.15);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--lg   { padding: 1.1rem 2.5rem; font-size: 1.0625rem; }
.btn--full { width: 100%; }

/* ── SECTION LABELS ── */
.section-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .6rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 2.75rem;
}

.section-head { margin-bottom: 3rem; }

/* ============================================================
   TICKER  —  loop contínuo sem reset visível
   ============================================================ */
.ticker {
  overflow: hidden;
  background: var(--accent);
  color: var(--white);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding-block: .55rem;
  position: relative;
  z-index: 100;
  user-select: none;
}

/* A janela que esconde o que passa da borda */
.ticker__inner {
  display: flex;
  width: 100%;
  overflow: hidden;
}

/* A faixa que rola — duplicada para loop infinito */
.ticker__track {
  display: flex;
  flex-shrink: 0;
  min-width: 100%;
  gap: 0;
  animation: tickerScroll 28s linear infinite;
  will-change: transform;
}

.ticker__track span {
  flex-shrink: 0;
  padding-inline: 3rem;
  white-space: nowrap;
}

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.25rem, 5vw, 2.5rem);
  background: rgba(10,10,10,.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}

.logo img {
  height: 34px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav a:not(.btn) {
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
}
.nav a:not(.btn):hover { color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 95;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(5rem, 12vw, 9rem) clamp(1.25rem, 5vw, 2rem) var(--gap);
  overflow: hidden;
  text-align: center;
}

/* Grid animado — fica abaixo dos glows */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(241,25,25,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241,25,25,.045) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: heroGrid 10s linear infinite;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

@keyframes heroGrid {
  from { background-position: 0 0; }
  to   { background-position: 40px 40px; }
}

/* Glows */
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
.hero__glow--1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(241,25,25,.18) 0%, transparent 70%);
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
}
.hero__glow--2 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(241,25,25,.09) 0%, transparent 70%);
  bottom: 0;
  right: 5%;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  max-width: 800px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(241,25,25,.1);
  border: 1px solid rgba(241,25,25,.28);
  color: #ff8080;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: .4rem 1.1rem;
  border-radius: 100px;
  animation: fadeUp .6s ease both;
}

.badge__dot {
  width: 7px;
  height: 7px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(74,222,128,.25);
  animation: pulse 2.2s ease infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(74,222,128,.25); }
  50%      { box-shadow: 0 0 0 7px rgba(74,222,128,.06); }
}

.hero__headline {
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 900;
  line-height: 1.03;
  color: var(--white);
  animation: fadeUp .65s .1s ease both;
}
.hero__headline em {
  font-style: normal;
  color: var(--accent);
  text-shadow: 0 0 60px rgba(241,25,25,.45);
}

.hero__sub {
  font-size: clamp(.95rem, 2.2vw, 1.15rem);
  color: var(--muted);
  max-width: 520px;
  animation: fadeUp .65s .2s ease both;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  animation: fadeUp .65s .3s ease both;
}
.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
}
.hero__stat strong {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.hero__stat span {
  font-size: .75rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.3;
}
.hero__divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

.hero .btn { animation: fadeUp .65s .4s ease both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   PROJETOS / CAROUSEL
   ============================================================ */
.projetos {
  padding-block: var(--gap);
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
  max-width: calc(var(--max) + 5vw);
  margin-inline: auto;
}

.carousel-wrap { position: relative; }

/* Clipagem lateral — evita que slides saiam do container */
.carousel {
  overflow: hidden;
  border-radius: var(--radius);
  cursor: grab;
}
.carousel:active { cursor: grabbing; }

.carousel__track {
  display: flex;
  gap: 1.5rem;
  /* NÃO usar overflow:hidden aqui — só no pai */
  will-change: transform;
  transition: transform .45s cubic-bezier(.25,.8,.25,1);
  user-select: none;
}

.carousel__slide {
  flex: 0 0 var(--slide-w, 33.333%);
  min-width: 0;
}

.slide__img-wrap {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--surface);
  border: 1px solid var(--border);
}
.slide__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  pointer-events: none;
}
.slide__img-wrap:hover img { transform: scale(1.04); }

.slide__overlay {
  position: absolute;
  inset: 0;
  background: rgba(241,25,25,.8);
  color: var(--white);
  font-weight: 700;
  font-size: .875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s;
}
.slide__img-wrap:hover .slide__overlay { opacity: 1; }

.slide__info { padding: .875rem .25rem .25rem; }
.slide__tag {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.slide__title {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--white);
  margin-top: .2rem;
}

/* Controls */
.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel__btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s, box-shadow .2s;
  flex-shrink: 0;
  line-height: 1;
  padding: 0;

}
.carousel__btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 18px rgba(241,25,25,.4);
}

.carousel__dots { display: flex; gap: .5rem; align-items: center; }
.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid rgba(255,255,255,.12);
  cursor: pointer;
  transition: background .2s, transform .2s, border-color .2s;
  padding: 0;
}
.carousel__dot.active,
.carousel__dot:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.35);
}

/* ============================================================
   INVESTIMENTO
   ============================================================ */
.investimento {
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: var(--gap);
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.investimento__glow {
  position: absolute;
  width: 600px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(241,25,25,.07) 0%, transparent 70%);
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(60px);
  pointer-events: none;
}

.investimento > .section-head { max-width: var(--max); margin-inline: auto; }

.planos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 780px;
  margin-inline: auto;
  margin-bottom: 1.75rem;
}

.plano {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.plano:hover {
  border-color: var(--border-r);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
}

.plano--destaque {
  border-color: var(--accent);
  background: linear-gradient(155deg, #180808 0%, var(--surface) 55%);
}
.plano--destaque:hover { box-shadow: 0 20px 50px rgba(241,25,25,.15); }

.plano__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .32rem 1rem;
  border-radius: 100px;
  white-space: nowrap;
}

.plano__tipo {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--white);
  display: block;
  margin-bottom: .4rem;
}
.plano__desc {
  font-size: .825rem;
  color: var(--muted);
  line-height: 1.55;
}

.plano__preco { display: flex; flex-direction: column; gap: .2rem; }
.plano__de {
  font-size: .78rem;
  color: var(--muted-2);
  text-decoration: line-through;
}
.plano__por { font-size: .9rem; font-weight: 600; color: var(--text); }
.plano__por em {
  font-style: normal;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--white);
}
.plano__cond { font-size: .72rem; color: var(--muted-2); }

.plano__lista { display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.plano__lista li {
  font-size: .825rem;
  color: var(--text);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.4;
}
.plano__lista li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.investimento__obs {
  font-size: .75rem;
  color: var(--muted-2);
  text-align: center;
  max-width: var(--max);
  margin-inline: auto;
  margin-top: 1rem;
}

/* ============================================================
   CONTATO
   ============================================================ */
.contato {
  position: relative;
  overflow: hidden;
  padding-block: var(--gap);
  padding-inline: clamp(1.25rem, 5vw, 2rem);
}

/* Scan lines estáticas — textura CRT sutil */
.contato::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(255,255,255,.013) 3px,
    rgba(255,255,255,.013) 4px
  );
  pointer-events: none;
  z-index: 0;
}

.contato__glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241,25,25,.06) 0%, transparent 70%);
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(80px);
  pointer-events: none;
}

.contato > .section-head {
  max-width: 620px;
  margin-inline: auto;
}

.contato__sub {
  font-size: .9375rem;
  color: var(--muted);
  margin-top: -.5rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 620px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form__group { display: flex; flex-direction: column; gap: .4rem; }
.form__group--full { grid-column: 1 / -1; }

label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.optional { text-transform: none; font-weight: 400; }

input, select, textarea {
  font-family: var(--font);
  font-size: .9375rem;
  color: var(--white);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .875rem 1rem;
  width: 100%;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
input::placeholder, textarea::placeholder { color: #3a3a3a; }
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(241,25,25,.15);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 15px;
  padding-right: 2.5rem;
  cursor: pointer;
}
select option { background: var(--surface); }
textarea { resize: vertical; min-height: 110px; }

.form__privacy {
  font-size: .72rem;
  color: var(--muted-2);
  text-align: center;
  margin-top: -.25rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  padding-block: 3rem;
  padding-inline: clamp(1.25rem, 5vw, 2rem);
}

/* Scan line animada no footer */
.footer::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
 background: linear-gradient(90deg, rgba(241,25,25,.5) 0%, rgba(241,25,25,.2) 30%, transparent 50%, rgba(241,25,25,.2) 70%, rgba(241,25,25,.5) 100%);
  animation: scanDown 8s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes scanDown {
  0%   { top: 20%;   opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: 80%; opacity: 0; }
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer__tagline {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.footer__links { display: flex; gap: 1.5rem; }
.footer__links a {
  font-size: .875rem;
  color: var(--muted);
  transition: color .2s;
}
.footer__links a:hover { color: var(--accent); }

.footer__copy { font-size: .72rem; color: #333; margin-top: .25rem; }

/* ============================================================
   WA FLOAT
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 200;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.35);
  transition: transform .2s, box-shadow .2s;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 36px rgba(37,211,102,.5);
}
.wa-float svg { width: 28px; height: 28px; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .planos { grid-template-columns: 1fr; max-width: 440px; }
}

@media (max-width: 640px) {
  .nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 80;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { font-size: 1.25rem; color: var(--white); }
  .nav-toggle { display: flex; }

  .form__row { grid-template-columns: 1fr; }
  .hero__meta { gap: 1.25rem; }
  .hero__divider { height: 30px; }
  
  /* ── MOBILE FIXES ── */
@media (max-width: 560px) {
  /* Carrossel: 1 slide por vez, largura total */
  .carousel__slide {
    flex: 0 0 100%;
  }

  /* Planos: inverte a ordem no mobile */
  .planos {
    display: flex;
    flex-direction: column;
  }
  .plano--destaque {
    order: -1;
  }
}
}