/* ===== Design tokens ===== */
:root {
  --green-900: #061a0e;
  --green-850: #082212;
  --green-800: #0b2c17;
  --green-700: #0f3d1f;
  --green-600: #145c2c;
  --green-500: #159a44;
  --green-400: #1fb856;
  --green-300: #4ad47f;
  --mint: #6ee7a3;

  --ink: #0f1712;
  --gray-700: #435049;
  --gray-500: #6b7b71;
  --gray-300: #d7e2db;
  --gray-100: #eef4f0;
  --gray-50: #f7faf8;
  --white: #ffffff;

  --font-head: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --container: 1180px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(6, 26, 14, 0.06);
  --shadow-md: 0 12px 30px rgba(6, 26, 14, 0.1);
  --shadow-lg: 0 24px 60px rgba(6, 26, 14, 0.18);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ===== Utility ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-500);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--green-500);
  border-radius: 2px;
}
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-top: 12px; }
.section-head p { color: var(--gray-700); margin-top: 14px; font-size: 1.05rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

section { padding: 96px 0; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--green-500); color: var(--white); box-shadow: 0 10px 24px rgba(21, 154, 68, 0.35); }
.btn-primary:hover { background: var(--green-400); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(21, 154, 68, 0.42); }
.btn-ghost { background: rgba(255, 255, 255, 0.08); color: var(--white); border: 1.5px solid rgba(255, 255, 255, 0.35); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--green-600); border: 1.5px solid var(--gray-300); }
.btn-outline:hover { border-color: var(--green-500); color: var(--green-500); transform: translateY(-2px); }

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--green-800);
  color: var(--mint);
  flex-shrink: 0;
}
.icon-badge svg { width: 26px; height: 26px; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(6, 26, 14, 0.06);
  transition: background 0.35s var(--ease), padding 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header.scrolled { background: rgba(255, 255, 255, 0.97); box-shadow: var(--shadow-sm); padding: 12px 0; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 40px; width: auto; }
.brand .word { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.02em; color: var(--green-700); }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gray-700);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--green-400);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--green-600); }
.nav-links a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions .btn-primary { padding: 11px 22px; font-size: 0.88rem; }

.mobile-menu { display: none; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border-radius: 10px;
  color: var(--green-700);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 168px 0 110px;
  background: var(--green-900);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--gray-50);
  clip-path: polygon(0 0, 62% 0, 42% 100%, 0 100%);
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.14) 1.4px, transparent 0);
  background-size: 26px 26px;
  opacity: 0.5;
  z-index: 0;
  mask-image: linear-gradient(to right, transparent, black 45%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }

.hero-copy .eyebrow { color: var(--green-500); }
.hero-copy .eyebrow::before { background: var(--green-500); }
.hero-copy h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  color: var(--ink);
  margin: 18px 0 20px;
}
.hero-copy h1 span { color: var(--green-500); }
.hero-copy p { font-size: 1.12rem; color: var(--gray-700); max-width: 480px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }

.hero-pillars {
  background: linear-gradient(155deg, var(--green-800), var(--green-900) 70%);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.hero-pillars::before {
  content: "";
  position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(74, 212, 127, 0.35), transparent 70%);
}
.hero-mark { width: 96px; margin-bottom: 22px; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.35)); }
.pillars-list { display: flex; flex-direction: column; gap: 4px; position: relative; z-index: 1; }
.pillars-list li {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.02rem;
}
.pillars-list li:last-child { border-bottom: none; }
.pillars-list .icon-badge { width: 40px; height: 40px; background: rgba(110, 231, 163, 0.14); }
.pillars-list .icon-badge svg { width: 20px; height: 20px; }

/* ===== Quem Somos ===== */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-copy p { color: var(--gray-700); font-size: 1.06rem; margin-bottom: 16px; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.about-stats .stat { border-left: 3px solid var(--green-500); padding-left: 14px; }
.about-stats .stat strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--green-600); }
.about-stats .stat span { font-size: 0.86rem; color: var(--gray-500); }

.about-art {
  position: relative;
  aspect-ratio: 1.05 / 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--green-700), var(--green-900));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-art::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.16) 1.3px, transparent 0);
  background-size: 24px 24px;
}
.about-art img { width: 82%; position: relative; z-index: 1; filter: drop-shadow(0 16px 30px rgba(0,0,0,0.4)); }

/* ===== Diferenciais ===== */
.differentials { background: var(--gray-50); }
.diff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.diff-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  border: 1px solid var(--gray-100);
}
.diff-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.diff-card .icon-badge { margin-bottom: 20px; }
.diff-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.diff-card p { font-size: 0.92rem; color: var(--gray-500); }

/* ===== Serviços ===== */
.services { background: var(--white); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 26px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.svc-card:hover { border-color: var(--green-300); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.svc-card .icon-badge { width: 46px; height: 46px; border-radius: 12px; }
.svc-card .icon-badge svg { width: 22px; height: 22px; }
.svc-card h3 { font-size: 1rem; margin-bottom: 6px; }
.svc-card p { font-size: 0.88rem; color: var(--gray-500); }

/* ===== Softwares ===== */
.partners { background: var(--gray-50); }
.partners-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.partner-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}
.partner-word { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; margin-bottom: 16px; display: inline-flex; align-items: center; gap: 10px; }
.partner-word svg { width: 26px; height: 26px; }
.partner-card p { color: var(--gray-500); font-size: 0.92rem; }
.ms-colors { display: inline-flex; gap: 3px; }
.ms-colors span { width: 11px; height: 11px; display: block; }

/* ===== Why choose / CTA panel ===== */
.why {
  background: linear-gradient(155deg, var(--green-800), var(--green-900) 75%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.why::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.12) 1.3px, transparent 0);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 80% 30%, black, transparent 65%);
}
.why .container { position: relative; z-index: 1; }
.why-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.why-copy .eyebrow { color: var(--mint); }
.why-copy .eyebrow::before { background: var(--mint); }
.why-copy h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 14px 0 26px; color: var(--white); }
.why-list { display: flex; flex-direction: column; gap: 16px; }
.why-list li { display: flex; align-items: center; gap: 14px; font-size: 1.02rem; color: rgba(255,255,255,0.92); }
.why-list svg { width: 22px; height: 22px; color: var(--mint); flex-shrink: 0; }

.contact-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  backdrop-filter: blur(10px);
}
.contact-card h3 { font-size: 1.2rem; margin-bottom: 22px; }
.contact-row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.contact-row:last-child { margin-bottom: 0; }
.contact-row .icon-badge { width: 42px; height: 42px; background: rgba(110, 231, 163, 0.14); }
.contact-row .icon-badge svg { width: 20px; height: 20px; }
.contact-row a, .contact-row span { font-size: 0.98rem; color: var(--white); }
.contact-row small { display: block; color: rgba(255,255,255,0.55); font-size: 0.78rem; margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.05em; }
.contact-card .btn-primary { width: 100%; margin-top: 22px; }

/* ===== Contact / Map section ===== */
.location { background: var(--white); }
.location-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 48px; align-items: stretch; }
.location-list { display: flex; flex-direction: column; gap: 22px; }
.location-item { display: flex; gap: 16px; align-items: flex-start; }
.location-item h4 { font-size: 1rem; margin-bottom: 4px; }
.location-item p, .location-item a { color: var(--gray-700); font-size: 0.95rem; }
.map-frame { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); min-height: 340px; border: 1px solid var(--gray-100); }
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

/* ===== Footer ===== */
.site-footer { background: var(--green-900); color: rgba(255,255,255,0.75); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand .word { color: var(--white); }
.footer-brand p { font-size: 0.9rem; max-width: 280px; color: rgba(255,255,255,0.6); }
.footer-col h5 { font-family: var(--font-head); color: var(--white); font-size: 0.92rem; margin-bottom: 16px; letter-spacing: 0.02em; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 0.9rem; transition: color 0.25s var(--ease); }
.footer-col a:hover { color: var(--mint); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 26px 0; font-size: 0.82rem; color: rgba(255,255,255,0.5); }

.back-to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--green-500);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  z-index: 90;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 22px; height: 22px; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-grid, .about-grid, .why-grid, .location-grid { grid-template-columns: 1fr; }
  .about-art { max-width: 420px; margin: 0 auto; order: -1; }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links, .header-actions .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  .site-header.menu-open { background: var(--green-900); padding: 16px 0; }
  .site-header.menu-open .brand .word { color: var(--white); }
  .site-header.menu-open .nav-toggle { color: var(--white); }
  .mobile-menu {
    position: fixed; inset: 0; top: 0;
    background: var(--green-900);
    padding: 100px 28px 40px;
    display: flex; flex-direction: column; gap: 6px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 95;
  }
  .mobile-menu.open { transform: translateX(0); }
  .mobile-menu a {
    font-family: var(--font-head); font-size: 1.3rem; font-weight: 600;
    color: var(--white); padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .mobile-menu .btn-primary { margin-top: 24px; align-self: flex-start; }
}

@media (max-width: 640px) {
  section { padding: 72px 0; }
  .hero { padding-top: 140px; }
  .hero::before { clip-path: polygon(0 0, 100% 0, 100% 20%, 0 46%); }
  .hero::after { mask-image: linear-gradient(to bottom, transparent, black 55%); }
  .hero-pillars { margin-top: 8px; }
  .diff-grid, .svc-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-cta .btn { width: 100%; }
  .contact-card { padding: 28px 22px; }
}

/* ===== 404 page ===== */
.error-box-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-900);
  text-align: center;
  padding: 24px;
}
.error-box img { width: 90px; margin: 0 auto 24px; }
.error-box h1 { color: var(--white); font-size: clamp(2.2rem, 6vw, 3rem); margin-bottom: 12px; }
.error-box p { color: rgba(255, 255, 255, 0.7); margin-bottom: 28px; }
