/* =========================================
   LÍDER ENERGIA SOLAR — V4 "FLUX"
   Tech Dashboard / Futuristic
   ========================================= */

/* ---------- CUSTOM PROPERTIES ---------- */
:root {
  --bg-deep: #040D17;
  --bg-dark: #0a1a2b;
  --bg-navy: #102036;
  --glass: rgba(28,48,68,.55);
  --glass-border: rgba(255,255,255,.08);
  --glass-border-hover: rgba(255,255,255,.15);
  --text: #FFFFFF;
  --text-body: rgba(255,255,255,.62);
  --text-muted: rgba(255,255,255,.45);
  --accent: #C9A35C;
  --accent-hover: #d4b06e;
  --green: #5BD178;
  --green-dark: #34B86A;
  --red: #E85D5D;
  --font-display: 'Satoshi', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 12px;
  --radius-btn: 2px;
  --glow: 0 30px 80px -24px rgba(0,0,0,.6);
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-display);
  background: var(--bg-deep);
  color: var(--text-body);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul, ol { list-style: none; }
input, select, textarea { font: inherit; color: inherit; }

/* ---------- UTILITY ---------- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.mono { font-family: var(--font-mono); }
.text-accent { color: var(--accent); }
.text-green { color: var(--green); }
.text-muted { color: var(--text-muted); }

/* ---------- GRID TEXTURE ---------- */
.grid-texture {
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* ---------- GLASS MIXIN ---------- */
.glass {
  background: var(--glass);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}

/* Glass top glow line */
.glass-glow::before {
  content: '';
  position: absolute;
  top: 0; left: 20px; right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,163,92,.4), transparent);
  border-radius: 1px;
}

/* ---------- GREEN BADGE ---------- */
.badge-green {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--green);
  background: rgba(91,209,120,.12);
  padding: 2px 8px;
  border-radius: 20px;
  line-height: 1.4;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  transition: var(--transition);
  letter-spacing: .02em;
  white-space: nowrap;
}
.btn svg { flex-shrink: 0; }
.btn-primary {
  background: #fff;
  color: var(--bg-deep);
}
.btn-primary:hover { background: rgba(255,255,255,.88); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,.18);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-accent {
  background: var(--accent);
  color: var(--bg-deep);
}
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-green {
  background: var(--green);
  color: var(--bg-deep);
}

/* ========================================
   1. SPLASH SCREEN
   ======================================== */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity .7s ease, visibility .7s;
}
#splash.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }
#splash img { width: 80px; height: auto; filter: brightness(1.1); }
.splash-bar {
  width: 160px;
  height: 2px;
  background: rgba(255,255,255,.08);
  border-radius: 2px;
  overflow: hidden;
}
.splash-bar::after {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  animation: splashSlide 1.2s ease infinite;
}
@keyframes splashSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}
.splash-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: .15em;
  text-transform: uppercase;
}

/* ========================================
   2. HEADER
   ======================================== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
}
#header.is-scrolled {
  background: rgba(4,13,23,.82);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--glass-border);
  padding: 12px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-brand img { height: 36px; width: auto; }
.header-brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  border-left: 1px solid var(--glass-border);
  padding-left: 14px;
}
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
  letter-spacing: .02em;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width .3s ease;
}
.nav a:hover, .nav a.active { color: var(--text); }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.header-cta {
  font-size: 12px;
  padding: 10px 22px;
}

/* Hamburger */
#hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
#hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  transition: var(--transition);
  transform-origin: center;
}
#hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
#hamburger.is-open span:nth-child(2) { opacity: 0; }
#hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Menu */
#mobileMenu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(4,13,23,.96);
  backdrop-filter: blur(30px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
#mobileMenu.is-open { opacity: 1; visibility: visible; }
#mobileMenu a {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-body);
  transition: var(--transition);
}
#mobileMenu a:hover { color: var(--accent); }

/* ========================================
   3. HERO
   ======================================== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 60px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 70% 40%, rgba(16,32,54,.9) 0%, var(--bg-deep) 70%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 30%, transparent 80%);
}
.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  top: 15%;
  right: 10%;
  background: radial-gradient(circle, rgba(91,209,120,.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-content { max-width: 580px; }
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.hero-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: .08em;
}
.hero-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: .06em;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 7.2vw, 118px);
  font-weight: 600;
  line-height: .92;
  letter-spacing: -.045em;
  color: var(--text);
  margin-bottom: 24px;
}
.hero-title span {
  display: block;
  font-weight: 400;
  color: rgba(255,255,255,.5);
}
.hero-sub {
  font-size: 17px;
  color: var(--text-body);
  max-width: 420px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---- HERO DASHBOARD CARD ---- */
.hero-dash {
  position: relative;
  padding: 28px;
  max-width: 440px;
  justify-self: end;
}
.hero-dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.dash-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.dash-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(91,209,120,.5); }
  50% { box-shadow: 0 0 0 6px rgba(91,209,120,0); }
}
.dash-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.dash-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 6px;
}
.dash-value {
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.dash-value small {
  font-size: 22px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 4px;
}
.dash-chart-wrap {
  height: 70px;
  margin: 16px 0;
  position: relative;
}
.dash-chart-wrap svg {
  width: 100%;
  height: 100%;
}
.dash-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--glass-border);
  border-top: 1px solid var(--glass-border);
  margin: 0 -28px -28px;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}
.dash-metric {
  background: rgba(16,32,54,.5);
  padding: 14px 16px;
}
.dash-metric-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 4px;
}
.dash-metric-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 2px;
}
.dash-metric .badge-green {
  font-size: 9px;
  padding: 1px 6px;
}

/* ---- HERO BOTTOM STRIP ---- */
.hero-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  border-top: 1px solid var(--glass-border);
  padding: 18px 0;
}
.hero-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hero-stats {
  display: flex;
  gap: 40px;
}
.hero-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.hero-stat-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--text);
}
.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.hero-stat + .hero-stat {
  padding-left: 40px;
  border-left: 1px solid var(--glass-border);
}
.hero-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  animation: scrollBounce 2s ease infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ========================================
   4. MARQUEE
   ======================================== */
.marquee-section {
  background: var(--bg-dark);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 18px 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 48px;
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.marquee-dot {
  width: 5px; height: 5px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ========================================
   5. SECTION TITLES
   ======================================== */
.section-pad { padding: 120px 0; }
.section-header {
  margin-bottom: 64px;
}
.section-index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 16px;
  color: var(--text-body);
  max-width: 520px;
  line-height: 1.7;
}

/* ========================================
   6. SIMULADOR
   ======================================== */
#simulador {
  position: relative;
  background: var(--bg-dark);
}
.sim-card {
  position: relative;
  padding: 48px;
}
.sim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.sim-input-group { margin-bottom: 28px; }
.sim-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 10px;
  display: block;
}
.sim-display {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
}
.sim-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,.08);
  border-radius: 2px;
  outline: none;
  position: relative;
}
.sim-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(201,163,92,.4);
}
.sim-range::-moz-range-thumb {
  width: 18px; height: 18px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}
.sim-range-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 8px;
}
.sim-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.sim-result {
  position: relative;
  padding: 20px;
}
.sim-result-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 8px;
}
.sim-result-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--green);
}
.sim-result-value.text-white { color: var(--text); }
.sim-result.featured {
  grid-column: 1 / -1;
  text-align: center;
  padding: 28px;
  border-color: rgba(91,209,120,.2);
  box-shadow: 0 0 40px rgba(91,209,120,.06);
}
.sim-result.featured .sim-result-value {
  font-size: 36px;
}
.sim-chart-wrap {
  margin-top: 20px;
  height: 90px;
}
.sim-chart-wrap svg { width: 100%; height: 100%; }

/* ========================================
   7. COMO FUNCIONA
   ======================================== */
#servicos {
  position: relative;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.steps-line {
  position: absolute;
  top: 50px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), var(--glass-border), transparent);
  z-index: 0;
}
.step-card {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 32px 24px;
  transition: var(--transition);
}
.step-card:hover { border-color: var(--glass-border-hover); transform: translateY(-4px); }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 20px;
  transition: var(--transition);
}
.step-card:hover .step-num {
  background: var(--accent);
  color: var(--bg-deep);
}
.step-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
  margin-bottom: 10px;
}
.step-desc {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.65;
}

/* ========================================
   8. CASES DE SUCESSO
   ======================================== */
#projetos {
  background: var(--bg-dark);
}
.case-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.case-filter {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 8px 18px;
  border-radius: 40px;
  background: rgba(28,48,68,.4);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  transition: var(--transition);
  letter-spacing: .04em;
}
.case-filter:hover, .case-filter.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(201,163,92,.08);
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.case-card {
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.case-card:hover { border-color: var(--glass-border-hover); }
.case-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}
.case-img {
  height: 200px;
  background: linear-gradient(135deg, var(--bg-navy), var(--bg-dark));
  position: relative;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-card.featured .case-img {
  height: 100%;
  border-radius: var(--radius) 0 0 var(--radius);
}
.case-img-icon {
  font-size: 48px;
  opacity: .3;
}
.case-body { padding: 24px; }
.case-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 10px;
}
.case-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  margin-bottom: 10px;
}
.case-desc {
  font-size: 13px;
  color: var(--text-body);
  margin-bottom: 16px;
  line-height: 1.6;
}
.case-specs {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.case-spec {
  display: flex;
  flex-direction: column;
}
.case-spec-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--green);
}
.case-spec-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ========================================
   9. DEPOIMENTOS
   ======================================== */
#depoimentos {
  background: var(--bg-deep);
}
.testi-wrapper {
  position: relative;
}
.testi-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.testi-track::-webkit-scrollbar { display: none; }
.testi-card {
  position: relative;
  min-width: 360px;
  flex-shrink: 0;
  scroll-snap-align: start;
  padding: 28px;
}
.testi-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 14px;
}
.testi-text {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--glass-border);
  padding-top: 16px;
}
.testi-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: var(--bg-deep);
}
.testi-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.testi-role {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}
.testi-specs {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--glass-border);
}
.testi-spec-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--green);
}
.testi-spec-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.testi-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}
.testi-btn {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text-muted);
  transition: var(--transition);
}
.testi-btn:hover { border-color: var(--accent); color: var(--accent); }
.testi-dots { display: flex; gap: 8px; }
.testi-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  transition: var(--transition);
}
.testi-dot.active {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(201,163,92,.4);
}

/* ========================================
   10. FINANCIAMENTO
   ======================================== */
#financiamento {
  background: var(--bg-dark);
}
.fin-wrapper {
  position: relative;
  padding: 48px;
}
.fin-grid {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 0;
  align-items: center;
}
.fin-card {
  padding: 32px;
  border-radius: var(--radius);
}
.fin-card.before {
  background: rgba(232,93,93,.06);
  border: 1px solid rgba(232,93,93,.15);
}
.fin-card.after {
  background: rgba(91,209,120,.06);
  border: 1px solid rgba(91,209,120,.15);
}
.fin-card-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 20px;
}
.fin-card.before .fin-card-label { color: var(--red); }
.fin-card.after .fin-card-label { color: var(--green); }
.fin-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.fin-item:last-child { border-bottom: none; }
.fin-item-label {
  font-size: 13px;
  color: var(--text-body);
}
.fin-item-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
}
.fin-card.before .fin-item-value { color: var(--red); }
.fin-card.after .fin-item-value { color: var(--green); }
.fin-bar {
  height: 4px;
  border-radius: 2px;
  margin-top: 6px;
}
.fin-card.before .fin-bar { background: linear-gradient(90deg, var(--red), rgba(232,93,93,.2)); }
.fin-card.after .fin-bar { background: linear-gradient(90deg, var(--green), rgba(91,209,120,.2)); }
.fin-vs {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  padding: 16px;
}
.fin-vs span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  margin: 0 auto;
  font-weight: 600;
  font-size: 11px;
  color: var(--accent);
}
.fin-bottom {
  margin-top: 32px;
  text-align: center;
}
.fin-bottom p {
  font-size: 14px;
  color: var(--text-body);
  margin-bottom: 20px;
}
.fin-logos {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.fin-logo {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  padding: 8px 16px;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
}

/* ========================================
   11. FAQ
   ======================================== */
#faq {
  background: var(--bg-deep);
}
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item[open] {
  border-color: rgba(201,163,92,.2);
  box-shadow: 0 4px 24px rgba(0,0,0,.2);
}
.faq-item summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  transition: var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: attr(data-index);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  min-width: 28px;
}
.faq-item summary .faq-question {
  flex: 1;
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
}
.faq-item summary .faq-icon {
  width: 20px; height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: transform .3s;
}
.faq-item[open] summary .faq-icon { transform: rotate(45deg); }
.faq-answer {
  padding: 0 24px 20px 68px;
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
}

/* ========================================
   12. BLOG
   ======================================== */
#blog {
  background: var(--bg-dark);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.blog-card {
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.blog-card:hover { border-color: var(--glass-border-hover); transform: translateY(-4px); }
.blog-img {
  height: 180px;
  background: linear-gradient(135deg, var(--bg-navy), var(--bg-deep));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius) var(--radius) 0 0;
}
.blog-img-icon {
  font-size: 40px;
  opacity: .2;
}
.blog-body { padding: 24px; }
.blog-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 10px;
  display: inline-block;
  background: rgba(91,209,120,.08);
  padding: 3px 10px;
  border-radius: 4px;
}
.blog-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.35;
}
.blog-excerpt {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 16px;
}
.blog-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

/* ========================================
   13. CONTATO
   ======================================== */
#contato {
  background: var(--bg-deep);
}
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.contato-form-card {
  position: relative;
  padding: 40px;
}
.form-group {
  margin-bottom: 20px;
}
.form-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 8px;
  display: block;
}
.form-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
  transition: var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,163,92,.1);
}
.form-input::placeholder { color: var(--text-muted); }
textarea.form-input { resize: vertical; min-height: 120px; }
.form-submit {
  width: 100%;
  margin-top: 8px;
}
.contato-info { display: flex; flex-direction: column; gap: 16px; }
.contato-card {
  position: relative;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}
.contato-card:hover { border-color: rgba(91,209,120,.2); }
.contato-icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(91,209,120,.08);
  border-radius: 10px;
  color: var(--green);
  flex-shrink: 0;
}
.contato-card-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
}
.contato-card-value {
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
}
.contato-map {
  position: relative;
  padding: 32px;
  margin-top: auto;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contato-map svg { width: 100%; max-width: 320px; height: auto; }
.map-dot {
  fill: var(--green);
  animation: pulse-dot 2s ease infinite;
}
.map-dot-ring {
  fill: none;
  stroke: var(--green);
  stroke-width: .5;
  opacity: .3;
  animation: pulse-ring 2s ease infinite;
}
@keyframes pulse-ring {
  0%, 100% { r: 4; opacity: .3; }
  50% { r: 8; opacity: 0; }
}

/* ========================================
   14. FOOTER
   ======================================== */
#footer {
  background: #020911;
  border-top: 1px solid var(--accent);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand img { height: 36px; margin-bottom: 16px; }
.footer-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 280px;
}
.footer-title {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 13px;
  color: var(--text-body);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.footer-socials {
  display: flex;
  gap: 16px;
}
.footer-socials a {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text-muted);
  transition: var(--transition);
}
.footer-socials a:hover { border-color: var(--accent); color: var(--accent); }

/* ========================================
   15. FLOATING ELEMENTS
   ======================================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 999;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  animation: waPulse 2.5s ease infinite;
  transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.4); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,.6), 0 0 0 12px rgba(37,211,102,.08); }
}
#scrollTop {
  position: fixed;
  bottom: 28px; right: 96px;
  z-index: 999;
  width: 44px; height: 44px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
#scrollTop.show { opacity: 1; visibility: visible; }
#scrollTop:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 20px rgba(201,163,92,.15); }

/* ========================================
   16. PARTICLES (CSS only)
   ======================================== */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.particle {
  position: absolute;
  width: 2px; height: 2px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) translateX(20px); opacity: 0; }
}
.particle:nth-child(1) { left: 10%; bottom: -10px; animation-duration: 18s; animation-delay: 0s; }
.particle:nth-child(2) { left: 25%; bottom: -10px; animation-duration: 22s; animation-delay: 3s; width: 3px; height: 3px; }
.particle:nth-child(3) { left: 40%; bottom: -10px; animation-duration: 16s; animation-delay: 6s; }
.particle:nth-child(4) { left: 55%; bottom: -10px; animation-duration: 20s; animation-delay: 2s; width: 1.5px; height: 1.5px; }
.particle:nth-child(5) { left: 70%; bottom: -10px; animation-duration: 24s; animation-delay: 5s; }
.particle:nth-child(6) { left: 85%; bottom: -10px; animation-duration: 19s; animation-delay: 8s; width: 2.5px; height: 2.5px; }
.particle:nth-child(7) { left: 15%; bottom: -10px; animation-duration: 21s; animation-delay: 10s; }
.particle:nth-child(8) { left: 60%; bottom: -10px; animation-duration: 17s; animation-delay: 4s; width: 1px; height: 1px; }

/* ========================================
   17. REVEAL ANIMATIONS
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
.reveal.d4 { transition-delay: .4s; }
.reveal.d5 { transition-delay: .5s; }
.word-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.word-reveal.in { opacity: 1; transform: translateY(0); }

/* ========================================
   18. RESPONSIVE
   ======================================== */

/* --- Tablet: 1024px --- */
@media (max-width: 1024px) {
  #hero { min-height: auto; display: block; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-dash { max-width: 100%; width: 100%; justify-self: stretch; }
  .hero-title { font-size: clamp(42px, 6vw, 72px); }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .steps-line { display: none; }
  .cases-grid { grid-template-columns: 1fr 1fr; }
  .case-card.featured { grid-template-columns: 1fr; }
  .case-card.featured .case-img { height: 200px; border-radius: var(--radius) var(--radius) 0 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .fin-grid { grid-template-columns: 1fr; gap: 16px; }
  .fin-vs { display: flex; justify-content: center; }
  .fin-vs span { margin: 0; }
}

/* --- Mobile: 768px --- */
@media (max-width: 768px) {
  /* Container */
  .container { padding: 0 20px; }
  .section-pad { padding: 80px 0; }
  .section-header { margin-bottom: 40px; }

  /* Prevent ALL horizontal overflow */
  html, body { overflow-x: hidden; }

  /* Glass performance — reduce blur on mobile */
  .glass {
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
  }
  #header.is-scrolled {
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
  }

  /* Particles — contain and reduce */
  .particles { overflow: hidden; }
  .particle { animation-duration: 25s !important; }

  /* Grid texture — hide on mobile to prevent overflow */
  .hero-bg::after { display: none; }

  /* Header */
  .nav { display: none; }
  .header-cta { display: none; }
  #hamburger { display: flex; }
  #mobileMenu { display: flex; }
  .header-brand-tag { display: none; }

  /* Hero */
  #hero { padding: 100px 0 40px; min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-content { max-width: 100%; }
  .hero-title {
    font-size: clamp(32px, 9vw, 48px);
    letter-spacing: -.03em;
  }
  .hero-sub { font-size: 15px; max-width: 100%; margin-bottom: 28px; }
  .hero-eyebrow { flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { justify-content: center; width: 100%; }
  .hero-dash {
    max-width: 100%;
    width: 100%;
    justify-self: stretch;
    padding: 20px;
  }
  .dash-value { font-size: 38px; }
  .dash-value small { font-size: 18px; }
  .dash-chart-wrap { height: 56px; margin: 12px 0; }
  .dash-metrics {
    grid-template-columns: 1fr;
    margin: 0 -20px -20px;
  }
  .dash-metric { padding: 12px 16px; }
  .hero-bottom { display: none; }
  .hero-glow { width: 300px; height: 300px; right: -10%; top: 5%; }

  /* Marquee */
  .marquee-item { font-size: 12px; }

  /* Simulator */
  .sim-grid { grid-template-columns: 1fr; }
  .sim-card { padding: 24px; }
  .sim-display { font-size: 28px; }
  .sim-results { grid-template-columns: 1fr 1fr; gap: 12px; }
  .sim-result { padding: 16px; }
  .sim-result-value { font-size: 18px; }
  .sim-result.featured .sim-result-value { font-size: 28px; }
  .sim-chart-wrap { height: 70px; }

  /* Steps */
  .steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .steps-line { display: none; }
  .step-card { padding: 24px 20px; text-align: left; display: flex; flex-direction: column; align-items: flex-start; }
  .step-num { margin-bottom: 14px; }

  /* Cases */
  .cases-grid { grid-template-columns: 1fr; gap: 16px; }
  .case-card.featured { grid-template-columns: 1fr; }
  .case-card.featured .case-img {
    height: 180px;
    border-radius: var(--radius) var(--radius) 0 0;
  }
  .case-img { height: 160px; }
  .case-body { padding: 20px; }
  .case-title { font-size: 16px; }
  .case-specs { gap: 16px; }

  /* Testimonials — mobile carousel */
  .testi-card { min-width: 280px; padding: 24px; }
  .testi-text { font-size: 14px; margin-bottom: 16px; }
  .testi-specs { flex-wrap: wrap; gap: 12px; }
  .testi-controls { margin-top: 24px; }

  /* Financing */
  .fin-wrapper { padding: 24px; }
  .fin-grid { grid-template-columns: 1fr; gap: 16px; }
  .fin-card { padding: 24px; }
  .fin-vs { padding: 8px; }
  .fin-item-label { font-size: 12px; }
  .fin-item-value { font-size: 14px; }

  /* FAQ */
  .faq-item summary { padding: 16px 20px; gap: 12px; }
  .faq-item summary .faq-question { font-size: 14px; }
  .faq-answer { padding: 0 20px 16px 52px; font-size: 13px; }

  /* Blog */
  .blog-grid { grid-template-columns: 1fr; gap: 16px; }
  .blog-img { height: 160px; }
  .blog-body { padding: 20px; }
  .blog-title { font-size: 16px; }

  /* Contact */
  .contato-grid { grid-template-columns: 1fr; gap: 24px; }
  .contato-form-card { padding: 24px; }
  .contato-card { padding: 20px; }
  .contato-map { min-height: 140px; padding: 24px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer-desc { max-width: 100%; }

  /* WhatsApp float — icon only, smaller on mobile */
  .whatsapp-float {
    width: 50px; height: 50px;
    bottom: 20px; right: 20px;
  }
  .whatsapp-float .wa-label,
  .whatsapp-float span:not(.wa-icon) { display: none; }
  #scrollTop {
    bottom: 20px; right: 80px;
    width: 40px; height: 40px;
  }
}

/* --- Small mobile: 480px (iPhone ~390px target) --- */
@media (max-width: 480px) {
  /* Tighter container */
  .container { padding: 0 16px; }
  .section-pad { padding: 60px 0; }

  /* Hero refinements */
  #hero { padding: 90px 0 32px; }
  .hero-title {
    font-size: clamp(28px, 8.5vw, 40px);
    letter-spacing: -.025em;
  }
  .hero-sub { font-size: 14px; line-height: 1.6; }
  .hero-eyebrow { flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
  .hero-index { font-size: 11px; }
  .hero-tag { font-size: 10px; }
  .hero-dash { padding: 16px; }
  .dash-value { font-size: 32px; }
  .dash-value small { font-size: 16px; }
  .dash-metrics { margin: 0 -16px -16px; }
  .dash-metric-value { font-size: 14px; }
  .dash-label { font-size: 9px; }

  /* Stats banner — 2x2 grid */
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .hero-stat + .hero-stat {
    padding-left: 0;
    border-left: none;
  }
  .hero-stat-value { font-size: 18px; }
  .hero-stat-label { font-size: 9px; }

  /* Simulator */
  .sim-card { padding: 20px; }
  .sim-display { font-size: 24px; }
  .sim-results { grid-template-columns: 1fr; gap: 10px; }
  .sim-result { padding: 14px; }
  .sim-result.featured { grid-column: auto; }
  .sim-result-value { font-size: 16px; }
  .sim-result.featured .sim-result-value { font-size: 24px; }

  /* Steps */
  .step-card { padding: 20px 16px; }
  .step-title { font-size: 15px; }
  .step-desc { font-size: 13px; }

  /* Cases */
  .case-img { height: 140px; }
  .case-body { padding: 16px; }
  .case-title { font-size: 15px; }
  .case-desc { font-size: 12px; }
  .case-spec-value { font-size: 16px; }

  /* Testimonials */
  .testi-card { min-width: 260px; padding: 20px; }
  .testi-text { font-size: 13px; }
  .testi-name { font-size: 13px; }
  .testi-spec-value { font-size: 14px; }

  /* Financing */
  .fin-wrapper { padding: 16px; }
  .fin-card { padding: 20px; }
  .fin-item { padding: 10px 0; }
  .fin-item-label { font-size: 11px; }
  .fin-item-value { font-size: 13px; }
  .fin-logo { font-size: 10px; padding: 6px 12px; }

  /* FAQ */
  .faq-item summary { padding: 14px 16px; gap: 10px; }
  .faq-item summary .faq-question { font-size: 13px; }
  .faq-answer { padding: 0 16px 14px 44px; font-size: 12px; }

  /* Blog */
  .blog-img { height: 140px; }
  .blog-body { padding: 16px; }
  .blog-title { font-size: 15px; }
  .blog-excerpt { font-size: 12px; }

  /* Contact */
  .contato-form-card { padding: 20px; }
  .form-input { padding: 12px 14px; font-size: 13px; }
  .contato-card { padding: 16px; gap: 12px; }
  .contato-icon { width: 38px; height: 38px; }

  /* Footer */
  .footer-grid { gap: 28px; }
  .footer-bottom { gap: 12px; }
  .footer-copy { font-size: 10px; }
  .footer-socials a { width: 32px; height: 32px; }

  /* Section titles */
  .section-title { font-size: clamp(24px, 6vw, 36px); }
  .section-desc { font-size: 14px; }
  .section-index { font-size: 10px; margin-bottom: 12px; }

  /* Buttons */
  .btn { padding: 12px 24px; font-size: 13px; }

  /* WhatsApp */
  .whatsapp-float { width: 46px; height: 46px; bottom: 16px; right: 16px; }
  #scrollTop { bottom: 16px; right: 70px; width: 36px; height: 36px; }
}

/* --- Extra-small: 360px and below --- */
@media (max-width: 360px) {
  .container { padding: 0 14px; }
  .hero-title { font-size: 26px; }
  .dash-value { font-size: 28px; }
  .sim-display { font-size: 22px; }
  .section-title { font-size: 22px; }
  .btn { padding: 11px 20px; font-size: 12px; }
}
