:root {
  --bg: #07090e;
  --bg-surface: #0d121c;
  --bg-card: rgba(16, 24, 38, 0.7);
  --border: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(115, 191, 104, 0.35);
  --primary: #73bf68;
  --primary-light: #87d37c;
  --primary-glow: rgba(115, 191, 104, 0.35);
  --accent-cyan: #38bdf8;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: clip;
}

body {
  position: relative;
  background: radial-gradient(circle at 50% 0%, #111e1c 0%, var(--bg) 60%);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* Grid de fundo sutil e técnico */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
}

/* Canvas 3D fixo no fundo */
#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 1;
  pointer-events: all;
}

/* Camada de conteúdo acima do 3D */
.content-layer {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

/* Habilitar cliques apenas nos elementos interativos */
a,
button,
input,
textarea,
.interactive-card,
.clickable {
  pointer-events: auto;
}

/* Container padronizado com padding lateral seguro */
.container {
  width: min(1220px, 100%);
  padding-left: clamp(1.75rem, 5vw, 3.5rem);
  padding-right: clamp(1.75rem, 5vw, 3.5rem);
  margin: 0 auto;
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 0;
  backdrop-filter: blur(16px);
  background: rgba(7, 9, 14, 0.75);
  border-bottom: 1px solid var(--border);
  pointer-events: auto;
  transition: all 0.3s ease;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo img {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(115, 191, 104, 0.4));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary-light);
}

.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, #4ea342 100%);
  color: #fff;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 0 20px rgba(115, 191, 104, 0.35);
  transition: all 0.25s ease;
}

.btn-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(115, 191, 104, 0.6);
}

/* HERO SECTION */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3rem;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(115, 191, 104, 0.1);
  border: 1px solid var(--border-highlight);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  color: var(--primary-light);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.4rem);
  line-height: 1.08;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #ffffff 30%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.green-text {
  color: var(--primary-light);
  text-shadow: 0 0 35px rgba(115, 191, 104, 0.4);
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, #459a39 100%);
  color: #fff;
  padding: 0.95rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 10px 30px rgba(115, 191, 104, 0.35);
  transition: all 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(115, 191, 104, 0.55);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.95rem 1.8rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ABOUT CARD */
.about-card {
  background: rgba(13, 18, 28, 0.6);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(2rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.about-card>*,
.hero-grid>*,
.cards-grid-3>*,
.portfolio-grid>*,
.compare-grid>*,
.footer-grid>* {
  min-width: 0;
}

.about-card .section-title {
  font-size: clamp(1.55rem, 2.3vw, 2.05rem);
  text-wrap: balance;
}

.about-locations {
  display: flex;
  gap: 2rem;
}

.about-location-item+.about-location-item {
  border-left: 1px solid var(--border);
  padding-left: 2rem;
}

.about-location-item h4 {
  font-family: var(--font-display);
  color: var(--primary-light);
  font-size: 1.6rem;
  font-weight: 800;
}

.about-location-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* STATS BANNER */
.stats-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 4rem 0 7rem;
  background: rgba(13, 18, 28, 0.4);
  border-radius: 20px;
}

.stat-item {
  text-align: center;
  padding: 0 1rem;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.5rem;
  background: linear-gradient(180deg, #ffffff 40%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* SEÇÃO OS 3S */
.section-py {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  display: inline-block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.section-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
}

#pilares .section-header,
#portfolio .section-header {
  max-width: 900px;
}

#pilares .section-title,
#portfolio .section-title {
  font-size: clamp(1.25rem, 3.2vw, 2.75rem);
}

#pilares .section-desc,
#portfolio .section-desc {
  max-width: 720px;
  margin: 0 auto;
}

.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-highlight);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(115, 191, 104, 0.15);
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(115, 191, 104, 0.12);
  border: 1px solid var(--border-highlight);
  color: var(--primary-light);
  margin-bottom: 1.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.pillar-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.pillar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pillar-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text);
}

.pillar-list li i,
.pillar-list li svg {
  color: var(--primary-light);
  flex-shrink: 0;
}

/* PORTFÓLIO SECTION COM CARDS 3D TILT */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.portfolio-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 0.4s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.portfolio-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--primary);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(115, 191, 104, 0.2);
}

.portfolio-thumb {
  height: 220px;
  position: relative;
  overflow: hidden;
  background: #151c28;
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-thumb img {
  transform: scale(1.08);
}

.portfolio-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(7, 9, 14, 0.85);
  border: 1px solid var(--border);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary-light);
  backdrop-filter: blur(8px);
}

.portfolio-info {
  padding: 1.5rem;
}

.portfolio-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #fff;
}

.portfolio-category {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* COMPARATIVO / POR QUE A 3S */
.compare-container {
  background: linear-gradient(180deg, rgba(16, 24, 38, 0.9) 0%, rgba(7, 9, 14, 0.95) 100%);
  border: 1px solid var(--border-highlight);
  border-radius: 28px;
  padding: 3.5rem;
  margin-top: 3rem;
  backdrop-filter: blur(20px);
}

.compare-container .section-header {
  max-width: 820px;
}

.compare-container .section-title {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  text-wrap: balance;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  position: relative;
}

.compare-grid::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.compare-col h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.compare-bad h4 {
  color: #f87171;
}

.compare-good h4 {
  color: var(--primary-light);
}

.compare-items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  list-style: none;
}

.compare-items li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.98rem;
  color: var(--text-muted);
}

.compare-items li svg,
.compare-items li i {
  flex-shrink: 0;
  margin-top: 3px;
}

.compare-items li span {
  color: var(--text);
  font-weight: 500;
}

/* CTA / FOOTER */
.cta-box {
  background: radial-gradient(circle at 50% 50%, rgba(115, 191, 104, 0.15) 0%, rgba(13, 18, 28, 0.8) 100%);
  border: 1px solid var(--border-highlight);
  border-radius: 32px;
  padding: 5rem 3rem;
  text-align: center;
  margin-bottom: 6rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(115, 191, 104, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 800;
  max-width: 960px;
  margin: 0 auto 1.25rem;
  line-height: 1.18;
  text-wrap: balance;
}

.cta-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 2.5rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.cta-actions .btn-primary {
  font-size: 1.15rem;
  padding: 1.1rem 2.4rem;
}

.cta-actions .btn-secondary {
  font-size: 1.15rem;
  padding: 1.1rem 2.2rem;
}

footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  background: #040609;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h5 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
}

/* BOTÃO FLUTUANTE WHATSAPP */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 120;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 18, 28, 0.82);
  border: 1px solid rgba(115, 191, 104, 0.45);
  color: var(--primary-light);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 18px rgba(115, 191, 104, 0.18);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.04);
  background: linear-gradient(135deg, var(--primary) 0%, #459a39 100%);
  border-color: var(--primary-light);
  color: #fff;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55), 0 0 26px rgba(115, 191, 104, 0.5);
}

/* RESPONSIVIDADE */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid-3,
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-banner {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .compare-grid {
    grid-template-columns: 1fr;
  }

  .compare-grid::after {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  #canvas-container {
    pointer-events: none;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .nav-inner {
    gap: 0.75rem;
  }

  .brand-logo img {
    height: 28px;
  }

  .btn-header {
    padding: 0.5rem 0.95rem;
    font-size: 0.82rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .nav-links {
    display: none;
  }

  .hero-section {
    padding: 6.5rem 0 3rem;
    min-height: auto;
  }

  .hero-badge {
    font-size: 0.68rem;
    padding: 0.35rem 0.8rem;
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(1.65rem, 6.8vw, 2.4rem);
    line-height: 1.14;
  }

  .hero-desc {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .section-py {
    padding: 4rem 0;
  }

  #pilares .section-title,
  #portfolio .section-title {
    font-size: clamp(1.3rem, 5.2vw, 1.9rem);
    text-wrap: balance;
  }

  .section-desc {
    font-size: 1rem;
  }

  .cards-grid-3,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .pillar-card {
    padding: 2rem 1.35rem;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(13, 18, 28, 0.76);
  }

  .pillar-title {
    font-size: 1.3rem;
  }

  .stats-banner {
    grid-template-columns: 1fr;
    margin: 2.5rem 0 4rem;
    background: rgba(13, 18, 28, 0.58);
  }

  .compare-container {
    padding: 2rem 1.25rem;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: linear-gradient(180deg, rgba(16, 24, 38, 0.82) 0%, rgba(7, 9, 14, 0.88) 100%);
  }

  .compare-col h4 {
    font-size: 1.15rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .cta-box {
    padding: 2.75rem 1.25rem;
    margin-bottom: 4rem;
  }

  .cta-title {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }

  .cta-desc {
    font-size: 1rem;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .cta-actions .btn-primary,
  .cta-actions .btn-secondary {
    width: 100%;
    justify-content: center;
    font-size: 0.98rem;
    padding: 0.95rem 1.25rem;
  }

  .about-card {
    padding: 2rem 1.25rem;
    gap: 2rem;
  }

  .about-card .section-title {
    font-size: clamp(1.05rem, 4.3vw, 1.55rem);
    line-height: 1.22;
    overflow-wrap: break-word;
  }

  .about-locations {
    flex-direction: column;
    gap: 1.5rem;
  }

  .about-location-item+.about-location-item {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 1.5rem;
  }

  .about-location-item h4 {
    font-size: 1.35rem;
  }
}