/* =========================================================
   AJ Clean Energy — Landing Page (One Page)
   Paleta extraída do Instagram: navy quase preto, azul elétrico,
   verde vívido. Estilo oferta/novidade para tráfego pago.
   ========================================================= */

:root{
  --navy: #050b1e;
  --navy-2: #0a1730;
  --navy-3: #101f42;
  --blue: #0091ff;
  --blue-2: #00c2ff;
  --green: #2ecc47;
  --green-2: #7cf28c;
  --beige: #f4f6fb;
  --gray: #5b6472;
  --text: #0c1524;
  --white: #ffffff;

  --font-head: 'Poppins', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --radius: 16px;
  --shadow: 0 12px 32px rgba(5, 11, 30, 0.14);
  --shadow-lg: 0 24px 60px rgba(5, 11, 30, 0.28);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
body{
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.nav-open{ position: fixed; left: 0; right: 0; width: 100%; overflow-y: scroll; }
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
h1, h2, h3{ font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; }
p{ margin: 0 0 1em; }
.container{ width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section{ padding: 96px 0; }
.center{ text-align: center; margin-left: auto; margin-right: auto; }
.muted{ color: var(--gray); font-size: .92em; }

.skip-link{
  position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff;
  padding: 12px 18px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus{ left: 0; }

/* ---------- Scroll progress bar ---------- */
.scroll-progress{
  position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 200;
  background: var(--green);
  transition: width .1s linear;
}

/* ---------- Barra de anúncio (marquee superior) ---------- */
.announce-bar{
  background: var(--navy); color: #fff; overflow: hidden; white-space: nowrap;
  padding: 8px 0; font-size: .78rem; font-weight: 600; letter-spacing: .02em;
}
.announce-track{ display: inline-flex; gap: 28px; animation: scrollX 26s linear infinite; padding-left: 100%; }
.announce-track span{ opacity: .92; }
@keyframes scrollX{ from{ transform: translateX(0); } to{ transform: translateX(-100%); } }

/* ---------- Reveal ---------- */
.reveal{
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

.kicker{
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700;
  color: var(--blue); margin-bottom: .6em;
}
.section-lead{ max-width: 640px; color: var(--gray); font-size: 1.05rem; }

.highlight{ color: var(--green); font-weight: 800; }
.accent-text{ color: var(--green); font-weight: 800; }

.cta-note{
  display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600;
  color: var(--gray); margin: 0 0 28px;
}
.cta-note .icon-wa{ width: 16px; height: 16px; fill: #25D366; flex-shrink: 0; }
.cta-note.center{ justify-content: center; }

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

/* ---------- Buttons ---------- */
.btn{
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  max-width: 100%; padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: .96rem;
  text-align: center; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn::before{
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-20deg); transition: left .55s ease; z-index: 1; pointer-events: none;
}
.btn:hover::before{ left: 120%; }
.btn:hover{ transform: translateY(-2px); }
.btn:active{ transform: translateY(0); }
.btn-lg{ padding: 16px 32px; font-size: 1.02rem; }
.btn-block{ width: 100%; }

.btn-primary{ background: var(--navy); color: #fff; }
.btn-primary:hover{ background: var(--navy-3); box-shadow: var(--shadow); }

.btn-glow{ background: var(--green); color: #04101f; box-shadow: 0 10px 26px rgba(46,204,71,.35); }
.btn-glow:hover{ background: #26b93e; box-shadow: 0 14px 32px rgba(46,204,71,.45); }

.btn-ghost{ background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }
.btn-ghost:hover{ background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top: 0; z-index: 100; background: rgba(5,11,30,.85);
  backdrop-filter: blur(10px); transition: box-shadow .25s ease, background .25s ease;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-header.is-scrolled{ box-shadow: 0 8px 24px rgba(0,0,0,.25); background: rgba(5,11,30,.96); }
.header-inner{ display: flex; align-items: center; gap: 24px; padding: 12px 24px; }

.brand{ display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-logo{ width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.brand-name{ font-family: var(--font-head); font-weight: 600; font-size: 1.06rem; color: #fff; }
.brand-name strong{ font-weight: 800; }

.main-nav ul{ display: flex; gap: 26px; }
.nav-link{ font-weight: 500; font-size: .92rem; color: rgba(255,255,255,.82); position: relative; padding: 4px 0; }
.nav-link::after{
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--green); transition: width .2s ease;
}
.nav-link:hover::after, .nav-link.active::after{ width: 100%; }
.nav-link.active{ color: #fff; }

.btn-header{ padding: 11px 20px; font-size: .9rem; }
.icon-wa{ width: 18px; height: 18px; fill: currentColor; }
.btn-primary .icon-wa{ fill: #fff; }

.nav-toggle{
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer;
}
.nav-toggle span{ display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }

@media (max-width: 900px){
  .main-nav{
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); height: 100vh;
    background: var(--navy-2); box-shadow: -12px 0 40px rgba(0,0,0,.35);
    transform: translateX(100%); transition: transform .3s ease; padding: 100px 28px 28px; z-index: 90;
  }
  .main-nav.open{ transform: translateX(0); }
  .main-nav ul{ flex-direction: column; gap: 20px; }
  .btn-header{ display: none; }
  .nav-toggle{ display: flex; }
  .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{ position: relative; padding: 72px 0 88px; overflow: hidden; color: #fff; background: var(--navy); }
.hero-bg{ position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.grid-overlay{
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 75%);
}

.hero-inner{ position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }

.badge-pill{
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); font-size: .82rem;
  font-weight: 700; color: var(--green-2); margin-bottom: 20px;
}
.ping{ width: 8px; height: 8px; border-radius: 50%; background: var(--green-2); position: relative; }
.ping::after{
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--green-2);
  animation: pingAnim 1.6s cubic-bezier(0,0,.2,1) infinite;
}
@keyframes pingAnim{ 0%{ transform: scale(1); opacity: .8; } 100%{ transform: scale(2.8); opacity: 0; } }

.hero-copy h1{ font-size: clamp(2.2rem, 4.2vw, 3.4rem); max-width: 620px; color: #fff; }
.hero-line{ display: block; }
.hero-lead{ max-width: 540px; font-size: 1.08rem; color: rgba(255,255,255,.82); }
.hero-actions{ display: flex; flex-wrap: wrap; gap: 16px; margin: 26px 0 26px; }

.hero-badges{ display: flex; flex-wrap: wrap; gap: 10px 20px; }
.hero-badges li{ display: flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; color: rgba(255,255,255,.85); }
.hero-badges svg{ width: 16px; height: 16px; stroke: var(--green-2); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- Simulador de economia (slider) ---------- */
.hero-visual{ position: relative; z-index: 1; }
.sim-card{
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 20px;
  padding: 30px 28px; box-shadow: var(--shadow-lg);
}
.sim-kicker{ display: block; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: var(--green-2); margin-bottom: 6px; }
.sim-card h3{ color: #fff; font-size: 1.18rem; margin: 0 0 22px; }

.sim-slider-wrap{ margin-bottom: 24px; }
.sim-slider{
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px;
  background: #24304a; outline: none; cursor: pointer; display: block;
}
.sim-slider::-webkit-slider-thumb{
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 5px solid var(--green); box-shadow: 0 4px 12px rgba(0,0,0,.3); cursor: grab; margin-top: -1px;
}
.sim-slider::-moz-range-thumb{
  width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 5px solid var(--green);
  box-shadow: 0 4px 12px rgba(0,0,0,.3); cursor: grab;
}
.sim-slider::-moz-range-track{ height: 8px; border-radius: 999px; background: #24304a; }
.sim-slider::-moz-range-progress{ height: 8px; border-radius: 999px; background: var(--green); }
.sim-slider:active::-webkit-slider-thumb{ cursor: grabbing; }
.sim-slider-labels{ display: flex; justify-content: space-between; font-size: .74rem; color: rgba(255,255,255,.5); margin-top: 8px; }

.sim-result{ display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.sim-col{ flex: 1; }
.sim-label{ display: block; font-size: .76rem; color: rgba(255,255,255,.6); margin-bottom: 4px; }
.sim-value{ display: block; font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: rgba(255,255,255,.55); }
.sim-value--new{ color: var(--green-2); font-size: 1.7rem; }
.sim-arrow{ flex-shrink: 0; padding-top: 18px; }
.sim-arrow svg{ width: 18px; height: 18px; stroke: rgba(255,255,255,.4); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.sim-save{
  display: flex; align-items: center; gap: 10px; background: rgba(46,204,71,.14); border: 1px solid rgba(46,204,71,.3);
  border-radius: 12px; padding: 12px 16px; font-size: .92rem; color: #fff; margin-bottom: 20px;
}
.save-dot{ width: 8px; height: 8px; border-radius: 50%; background: var(--green-2); flex-shrink: 0; }
.sim-fine{ font-size: .72rem; color: rgba(255,255,255,.5); margin: 14px 0 0; text-align: center; }

@media (max-width: 960px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-visual{ max-width: 420px; margin: 0 auto; width: 100%; }
}

/* ---------- Marquee de benefícios ---------- */
.marquee{ background: var(--beige); padding: 16px 0; overflow: hidden; white-space: nowrap; border-bottom: 1px solid rgba(5,11,30,.06); }
.marquee-track{ display: inline-flex; gap: 18px; align-items: center; animation: scrollX 22s linear infinite; }
.marquee-track span{ font-weight: 700; font-size: .92rem; color: var(--navy); }
.marquee-track .sep{ color: var(--blue); font-weight: 400; }

/* ---------- Stats bar ---------- */
.stats-bar{ background: var(--white); padding: 48px 0; }
.stats-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-value{ display: block; font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: var(--navy); }
.stat-label{ margin: 4px 0 0; font-size: .88rem; color: var(--gray); font-weight: 500; }
@media (max-width: 720px){ .stats-grid{ grid-template-columns: repeat(2, 1fr); gap: 28px 16px; } }

/* ---------- How it works ---------- */
.how-it-works{ background: var(--beige); }
.steps-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.step-card{
  background: var(--white); border-radius: var(--radius); padding: 30px 24px; text-align: left;
  border: 1px solid rgba(5,11,30,.06); transition: transform .2s ease, box-shadow .2s ease;
}
.step-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow); }
.step-number{
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--navy); color: var(--green-2); font-weight: 800;
  font-family: var(--font-head); margin-bottom: 16px;
}
.step-card h3{ font-size: 1.06rem; margin-bottom: .4em; }
.step-card p{ color: var(--gray); font-size: .94rem; margin: 0; }
.how-cta{
  text-align: center; margin: 48px auto 0; max-width: 560px;
  background: var(--white); border: 1px solid rgba(5,11,30,.06); border-radius: var(--radius);
  padding: 36px 32px; box-shadow: 0 30px 60px -24px rgba(46,204,71,.35), var(--shadow);
}
.how-cta .cta-note{ margin: 14px 0 0; }
@media (max-width: 960px){ .steps-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .steps-grid{ grid-template-columns: 1fr; } }

/* ---------- Fit tabs (pra quem é) ---------- */
.fit-tabs{ display: flex; justify-content: center; gap: 10px; margin: 40px 0 0; }
.fit-tab{
  padding: 12px 26px; border-radius: 999px; border: 1px solid rgba(5,11,30,.14); background: var(--white);
  font-weight: 700; font-size: .92rem; color: var(--gray); cursor: pointer; transition: all .2s ease;
}
.fit-tab.is-active{ background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: var(--shadow); }

.fit-panels{ max-width: 640px; margin: 32px auto 0; background: var(--beige); border-radius: var(--radius); padding: 34px 32px; }
.fit-panel{ display: none; }
.fit-panel.is-active{ display: block; }
.fit-list li{ position: relative; padding-left: 26px; margin-bottom: 14px; font-size: 1rem; }
.fit-list li::before{ content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 800; }

/* ---------- Differentials / feature cards ---------- */
.cards-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.feature-card{
  display: flex; gap: 16px; padding: 26px; border-radius: var(--radius); background: var(--white);
  border: 1px solid rgba(5,11,30,.08); transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon{ flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.feature-icon--blue{ background: rgba(0,145,255,.1); }
.feature-icon--blue svg{ stroke: var(--blue); }
.feature-icon--green{ background: rgba(46,204,71,.1); }
.feature-icon--green svg{ stroke: var(--green); }
.feature-icon svg{ width: 22px; height: 22px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature-body h3{ font-size: 1.02rem; margin-bottom: .35em; }
.feature-body p{ color: var(--gray); font-size: .92rem; margin: 0; }
@media (max-width: 960px){ .cards-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px){ .cards-grid{ grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq{ background: var(--beige); }
.faq-list{ max-width: 760px; margin: 48px auto 0; display: flex; flex-direction: column; gap: 14px; }
.faq-item{ background: var(--white); border-radius: 12px; padding: 6px 22px; border: 1px solid rgba(5,11,30,.08); }
.faq-item summary{
  cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; font-size: 1rem;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{ content: '+'; font-size: 1.3rem; font-weight: 400; color: var(--blue); flex-shrink: 0; transition: transform .2s ease; }
.faq-item[open] summary::after{ transform: rotate(45deg); }
.faq-item p{ color: var(--gray); padding-bottom: 18px; margin: 0; font-size: .95rem; }

/* ---------- Contact / form ---------- */
.contact{ position: relative; background: var(--navy); color: #fff; }
.contact .container{ position: relative; z-index: 1; }
.contact .section-lead{ color: rgba(255,255,255,.72); margin-left: auto; margin-right: auto; }
.contact-form{
  max-width: 560px; margin: 48px auto 0; background: var(--white); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow-lg); color: var(--text);
}
.form-row{ margin-bottom: 18px; }
.form-row label{ display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-row input, .form-row select, .form-row textarea{
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(5,11,30,.18);
  font-family: var(--font-body); font-size: .96rem; color: var(--text); background: var(--white);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus{
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,145,255,.14);
}
.form-note{ text-align: center; font-size: .82rem; color: var(--gray); margin: 14px 0 0; }

/* ---------- Pop-up de formulário ---------- */
.modal{ position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden]{ display: none; }
.modal-backdrop{ position: absolute; inset: 0; background: rgba(5,11,30,.72); }
.modal-card{
  position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--white); color: var(--text); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-lg);
}
.modal-card h3{ font-family: var(--font-head); font-size: 1.3rem; line-height: 1.25; margin: 0 40px 8px 0; }
.modal-lead{ color: var(--gray); font-size: .92rem; margin: 0 0 22px; }
.modal-close{
  position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border: 0; background: transparent;
  font-size: 1.8rem; line-height: 1; color: var(--gray); cursor: pointer; border-radius: 8px;
}
.modal-close:hover{ background: var(--beige); color: var(--text); }
body.modal-open{ overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--navy); color: rgba(255,255,255,.7); padding: 44px 0; text-align: center; border-top: 1px solid rgba(255,255,255,.06); }
.footer-brand{ justify-content: center; margin-bottom: 12px; }
.site-footer p{ margin: 0 0 6px; font-size: .92rem; }
.site-footer .muted{ color: rgba(255,255,255,.45); }

/* ---------- Floating WhatsApp button ---------- */
.fab-whatsapp{
  position: fixed; right: 22px; bottom: 22px; z-index: 150; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(37,211,102,.45); transition: transform .2s ease;
}
.fab-whatsapp svg{ width: 28px; height: 28px; fill: #fff; }
.fab-whatsapp:hover{ transform: scale(1.08); }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 640px){
  .section{ padding: 64px 0; }
  .hero{ padding: 56px 0 64px; }
  .hero-actions{ flex-direction: column; }
  .hero-actions .btn{ width: 100%; }
  .contact-form{ padding: 26px 22px; }
  .modal-card{ padding: 26px 22px; }
  .fit-panels{ padding: 26px 22px; }
  .sim-kicker, .sim-card h3{ text-align: center; }
  .hero-badges{ justify-content: center; }
}
