/* ===========================================================
   Cabo de Força - Agapex | Landing Page
   Design system: navy elétrico + ciano + âmbar energia
   =========================================================== */

:root {
  --navy-900: #0a1230;
  --navy-800: #0f1b45;
  --navy-700: #16245c;
  --blue-600: #1e3aa8;
  --blue-500: #2563eb;
  --cyan-400: #22d3ee;
  --cyan-300: #67e8f9;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --orange-500: #f97316;
  --wa-green: #25d366;
  --wa-green-dark: #1ebe5b;

  --ink: #0b1224;
  --text: #2b3450;
  --muted: #647089;
  --line: #e4e9f2;
  --bg: #f5f7fb;
  --white: #ffffff;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 14px rgba(15, 27, 69, 0.08);
  --shadow-md: 0 14px 40px rgba(15, 27, 69, 0.14);
  --shadow-lg: 0 26px 70px rgba(15, 27, 69, 0.22);

  --grad-primary: linear-gradient(135deg, #16245c 0%, #1e3aa8 45%, #2563eb 100%);
  --grad-energy: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  --grad-cyan: linear-gradient(135deg, #2563eb 0%, #22d3ee 100%);

  --container: 1200px;
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

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

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

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

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 30px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  font-family: var(--font);
  line-height: 1;
}
.btn svg { width: 20px; height: 20px; }

.btn-wa {
  background: var(--wa-green);
  color: #fff;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .38);
}
.btn-wa:hover { background: var(--wa-green-dark); transform: translateY(-3px); box-shadow: 0 16px 34px rgba(37,211,102,.5); }

.btn-energy {
  background: var(--grad-energy);
  color: #fff;
  box-shadow: 0 10px 26px rgba(249, 115, 22, .38);
}
.btn-energy:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(249,115,22,.5); }

.btn-ghost {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.35);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-3px); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: 16px 0;
}
.header.scrolled {
  background: rgba(10, 18, 48, .92);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
  padding: 10px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 42px; width: auto; filter: brightness(0) invert(1); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { color: #fff; font-size: 1.15rem; letter-spacing: .3px; }
.brand-text span { color: var(--cyan-300); font-size: .72rem; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: rgba(255,255,255,.88); font-weight: 500; font-size: .95rem; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--cyan-400); transition: width .25s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.nav-links .btn { padding: 11px 22px; font-size: .9rem; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 26px; height: 3px; background: #fff; border-radius: 3px; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--grad-primary);
  color: #fff;
  padding: 160px 0 120px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(34,211,238,.25), transparent 45%),
    radial-gradient(circle at 15% 80%, rgba(245,158,11,.18), transparent 40%);
  pointer-events: none;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.6), transparent 80%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(34,211,238,.12);
  border: 1px solid rgba(34,211,238,.35);
  color: var(--cyan-300);
  padding: 8px 16px; border-radius: 50px;
  font-size: .82rem; font-weight: 600; letter-spacing: .5px;
  margin-bottom: 22px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-400); box-shadow: 0 0 0 0 rgba(34,211,238,.7); animation: pulse 2s infinite; }

.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.12; letter-spacing: -.5px; margin-bottom: 20px; }
.hero h1 .hl { background: var(--grad-energy); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { font-size: 1.12rem; color: rgba(255,255,255,.85); max-width: 540px; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 38px; }

.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats .stat strong { display: block; font-size: 1.8rem; font-weight: 800; background: var(--grad-cyan); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-stats .stat span { font-size: .85rem; color: rgba(255,255,255,.7); }

.hero-visual { position: relative; }
.hero-visual .card-img {
  background: #fff; border-radius: var(--radius-lg); padding: 26px;
  box-shadow: var(--shadow-lg); transform: rotate(-2deg);
  transition: transform .5s ease;
}
.hero-visual .card-img:hover { transform: rotate(0deg) scale(1.02); }
.hero-visual .card-img img { border-radius: 12px; width: 100%; }
.hero-visual .floating {
  position: absolute; background: #fff; color: var(--ink);
  padding: 14px 18px; border-radius: 14px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .9rem;
  animation: float 4s ease-in-out infinite;
}
.hero-visual .floating .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.hero-visual .f1 { top: -18px; left: -24px; }
.hero-visual .f1 .ic { background: var(--grad-energy); }
.hero-visual .f2 { bottom: -18px; right: -18px; animation-delay: 1.5s; }
.hero-visual .f2 .ic { background: var(--grad-cyan); }
.hero-visual .floating small { display: block; font-weight: 500; color: var(--muted); font-size: .72rem; }

.wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; z-index: 2; }
.wave svg { width: 100%; height: 70px; }

/* ---------- Section base ---------- */
.section { padding: 90px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block; color: var(--blue-500); font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; font-size: .8rem; margin-bottom: 14px;
}
.eyebrow.amber { color: var(--orange-500); }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--ink); font-weight: 800; line-height: 1.18; letter-spacing: -.5px; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.05rem; }
.section-head h2 .hl { background: var(--grad-cyan); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- Trust bar ---------- */
.trust { background: var(--white); border-bottom: 1px solid var(--line); padding: 26px 0; }
.trust .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.trust .item { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 600; font-size: .95rem; }
.trust .item svg { width: 26px; height: 26px; color: var(--blue-500); flex-shrink: 0; }

/* ---------- Produtos ---------- */
.products { background: var(--bg); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: rgba(37,99,235,.35); }
.product-thumb {
  position: relative; aspect-ratio: 4/3; background: linear-gradient(160deg,#f8fafc,#eef2f9);
  display: grid; place-items: center; padding: 18px; overflow: hidden;
}
.product-thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
.product-card:hover .product-thumb img { transform: scale(1.07); }
.product-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--grad-cyan); color: #fff; font-size: .68rem; font-weight: 700;
  padding: 5px 11px; border-radius: 50px; letter-spacing: .5px; text-transform: uppercase;
}
.product-info { padding: 18px 18px 22px; display: flex; flex-direction: column; flex: 1; }
.product-info h3 { font-size: 1.02rem; color: var(--ink); font-weight: 700; margin-bottom: 6px; }
.product-info p { font-size: .85rem; color: var(--muted); margin-bottom: 16px; flex: 1; }
.product-info .ask {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  background: var(--navy-800); color: #fff; font-weight: 600; font-size: .85rem;
  padding: 11px 16px; border-radius: 10px; transition: background .25s ease, transform .25s ease;
}
.product-info .ask:hover { background: var(--wa-green); transform: translateY(-2px); }
.product-info .ask svg { width: 17px; height: 17px; }

/* ---------- Diferenciais ---------- */
.features { background: var(--white); }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.feature-card {
  position: relative; background: var(--bg); border-radius: var(--radius);
  padding: 34px 28px; border: 1px solid var(--line); overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: var(--grad-cyan); transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-ic {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  background: var(--grad-primary); color: #fff; margin-bottom: 20px;
}
.feature-ic svg { width: 30px; height: 30px; }
.feature-card:nth-child(2) .feature-ic { background: var(--grad-energy); }
.feature-card:nth-child(3) .feature-ic { background: var(--grad-cyan); }
.feature-card:nth-child(5) .feature-ic { background: var(--grad-energy); }
.feature-card:nth-child(6) .feature-ic { background: var(--grad-cyan); }
.feature-card h3 { font-size: 1.2rem; color: var(--ink); margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: .95rem; }

/* ---------- Aplicações ---------- */
.applications { background: var(--bg); }
.app-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.app-item {
  background: #fff; border-radius: var(--radius); padding: 26px; display: flex; gap: 16px;
  align-items: flex-start; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .3s ease;
}
.app-item:hover { transform: translateY(-4px); }
.app-item .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(37,99,235,.1); color: var(--blue-500); flex-shrink: 0; }
.app-item .ic svg { width: 24px; height: 24px; }
.app-item h4 { color: var(--ink); font-size: 1.02rem; margin-bottom: 4px; }
.app-item p { font-size: .85rem; color: var(--muted); }

/* ---------- Sobre / Specs ---------- */
.about { background: var(--white); }
.about .container { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-visual { position: relative; }
.about-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; }
.about-visual .badge-float {
  position: absolute; bottom: -22px; left: -22px; background: var(--grad-primary);
  color: #fff; padding: 22px 26px; border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.about-visual .badge-float strong { font-size: 2rem; display: block; line-height: 1; }
.about-visual .badge-float span { font-size: .82rem; opacity: .85; }
.about-text h2 { font-size: clamp(1.7rem,3vw,2.3rem); color: var(--ink); font-weight: 800; margin-bottom: 18px; line-height: 1.2; }
.about-text p { color: var(--muted); margin-bottom: 16px; }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0 32px; }
.spec-list li { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; font-size: .95rem; }
.spec-list li svg { width: 20px; height: 20px; color: var(--wa-green); flex-shrink: 0; }

/* ---------- Cotação CTA ---------- */
.quote { position: relative; background: var(--grad-primary); color: #fff; overflow: hidden; }
.quote::before {
  content:""; position:absolute; inset:0;
  background: radial-gradient(circle at 85% 15%, rgba(34,211,238,.25), transparent 45%),
              radial-gradient(circle at 10% 90%, rgba(245,158,11,.18), transparent 40%);
}
.quote .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.quote-info .eyebrow { color: var(--cyan-300); }
.quote-info h2 { font-size: clamp(1.8rem,3.2vw,2.5rem); font-weight: 800; line-height: 1.18; margin-bottom: 16px; }
.quote-info p { color: rgba(255,255,255,.82); margin-bottom: 28px; max-width: 460px; }
.quote-perks { display: grid; gap: 14px; }
.quote-perks li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.quote-perks li svg { width: 22px; height: 22px; color: var(--cyan-300); flex-shrink: 0; }

.quote-form {
  background: #fff; border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-lg);
}
.quote-form h3 { color: var(--ink); font-size: 1.3rem; margin-bottom: 6px; }
.quote-form .sub { color: var(--muted); font-size: .9rem; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 11px;
  font-family: var(--font); font-size: .95rem; color: var(--ink); background: #fff; transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}
.field textarea { resize: vertical; min-height: 84px; }
.quote-form .btn-wa { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { text-align: center; font-size: .78rem; color: var(--muted); margin-top: 14px; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg); }
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: box-shadow .25s ease; }
.faq-item.open { box-shadow: var(--shadow-md); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 20px 24px; font-family: var(--font); font-weight: 600; font-size: 1.02rem; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .chev { width: 22px; height: 22px; color: var(--blue-500); transition: transform .3s ease; flex-shrink: 0; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 24px 22px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: rgba(255,255,255,.72); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.footer .brand img { height: 40px; }
.footer-about p { margin-top: 18px; font-size: .92rem; max-width: 320px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer-col a, .footer-col li { display: block; margin-bottom: 11px; font-size: .92rem; transition: color .2s ease; }
.footer-col a:hover { color: var(--cyan-300); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: .92rem; }
.footer-contact svg { width: 18px; height: 18px; color: var(--cyan-400); flex-shrink: 0; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; text-align: center; font-size: .85rem; }
.footer-bottom a { color: var(--cyan-300); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 1200;
  display: flex; align-items: center; gap: 0;
}
.wa-float a {
  display: flex; align-items: center; background: var(--wa-green); color: #fff;
  border-radius: 50px; padding: 0; box-shadow: 0 12px 30px rgba(37,211,102,.45);
  overflow: hidden; height: 60px; transition: transform .3s ease, box-shadow .3s ease;
}
.wa-float a:hover { transform: scale(1.05); box-shadow: 0 16px 38px rgba(37,211,102,.6); }
.wa-float .wa-ic { width: 60px; height: 60px; display: grid; place-items: center; flex-shrink: 0; }
.wa-float .wa-ic svg { width: 32px; height: 32px; }
.wa-float .wa-label { white-space: nowrap; max-width: 0; opacity: 0; padding-right: 0; font-weight: 600; transition: max-width .4s ease, opacity .3s ease, padding-right .4s ease; }
.wa-float a:hover .wa-label { max-width: 200px; opacity: 1; padding-right: 24px; }
.wa-pulse { position: absolute; right: 0; bottom: 0; width: 60px; height: 60px; border-radius: 50%; background: var(--wa-green); animation: waPulse 2.2s infinite; z-index: -1; }

/* ---------- Animations ---------- */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,211,238,.6); } 70% { box-shadow: 0 0 0 12px rgba(34,211,238,0); } 100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); } }
@keyframes waPulse { 0% { transform: scale(1); opacity: .7; } 70% { transform: scale(1.6); opacity: 0; } 100% { opacity: 0; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.reveal { opacity: 0; transform: translateY(36px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3,1fr); }
  .feature-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
  .hero .container, .about .container, .quote .container { grid-template-columns: 1fr; }
  .hero { padding: 130px 0 100px; }
  .hero-visual { max-width: 440px; margin: 10px auto 0; }
  .about-visual { max-width: 480px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: fixed; top: 0; right: -100%; height: 100vh; width: 78%; max-width: 320px;
    background: var(--navy-900); flex-direction: column; align-items: flex-start;
    padding: 100px 30px 30px; gap: 22px; transition: right .35s ease; box-shadow: -10px 0 40px rgba(0,0,0,.4);
  }
  .nav-links.open { right: 0; }
  .nav-links a { color: #fff; font-size: 1.05rem; }
  .nav-toggle { display: flex; z-index: 1100; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .product-grid { grid-template-columns: repeat(2,1fr); gap: 16px; }
  .feature-grid, .app-grid { grid-template-columns: 1fr; }
  .spec-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .trust .container { justify-content: center; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .quote-form { padding: 24px; }
  .product-info p { display: none; }
}
@media (max-width: 380px) {
  .product-grid { grid-template-columns: 1fr; }
}
