/* ============ RESET & BASE ============ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #0a0a0c;
  --panel: #131316;
  --panel-2: #1b1b1f;
  --white: #f7f6f2;
  --muted: #b7b6bd;
  --muted-2: #85848c;
  --gold: #C9A227;
  --gold-light: #E8C766;
  --green: #4CE07A;
  --green-dark: #2FAE5B;
  --wa: #25D366;
  --border: rgba(247, 246, 242, 0.10);
  --nav-h: 76px;
  --shadow-lg: 0 30px 60px -20px rgba(0,0,0,0.55);
  --ease: cubic-bezier(.22,1,.36,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--ink);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.5;
}

h1, h2, h3, .brand-text, .nav-cta, .btn, .eyebrow {
  font-family: 'Sora', 'Inter', sans-serif;
}

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

section[id] { scroll-margin-top: var(--nav-h); }

.section-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.noise-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 2;
  background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: .5;
}

::selection { background: var(--gold); color: #0a0a0a; }

/* ============ EYEBROW / DOTS ============ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 18px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; box-shadow: 0 0 12px currentColor; }
.dot-green { background: var(--green); color: var(--green); }
.dot-gold { background: var(--gold-light); color: var(--gold-light); }
.dot-wa { background: var(--wa); color: var(--wa); }

.text-gradient {
  background: linear-gradient(92deg, var(--gold-light), var(--green));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(10,10,12,0.35);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.navbar.scrolled {
  background: rgba(10,10,12,0.78);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px -15px rgba(0,0,0,.6);
}

.nav-inner {
  width: 100%; max-width: 1400px; margin: 0 auto;
  padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { display: flex; filter: drop-shadow(0 0 10px rgba(76,224,122,.35)); }
.brand-text {
  font-weight: 700; font-size: 18px; letter-spacing: .01em; color: var(--white);
  display: flex; flex-direction: column; line-height: 1.1;
}
.brand-name { white-space: nowrap; }
.brand-dot { color: var(--green); }
.brand-text small {
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2);
}

.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-pill {
  position: relative; padding: 9px 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  overflow: hidden; transition: color .3s var(--ease);
}
.nav-pill span { position: relative; z-index: 2; }
.nav-pill::before {
  content: ""; position: absolute; inset: 0; border-radius: 999px;
  background: linear-gradient(100deg, rgba(76,224,122,.16), rgba(201,162,39,.16));
  opacity: 0; transform: scale(.85);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.nav-pill:hover, .nav-pill.active { color: var(--white); }
.nav-pill:hover::before, .nav-pill.active::before { opacity: 1; transform: scale(1); }
.nav-pill.active { color: var(--white); }
.nav-pill.active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 5px; height: 2px;
  background: linear-gradient(90deg, var(--green), var(--gold-light));
  border-radius: 2px;
}

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700;
  background: linear-gradient(100deg, var(--gold), var(--gold-light));
  color: #17140a;
  box-shadow: 0 6px 20px -6px rgba(201,162,39,.6);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -6px rgba(201,162,39,.75); }
.nav-cta svg { transition: transform .3s var(--ease); }
.nav-cta:hover svg { transform: translateX(3px); }

.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: 1px solid var(--border);
  border-radius: 10px; cursor: pointer;
}
.nav-burger span { height: 2px; width: 18px; background: var(--white); margin: 0 auto; border-radius: 2px; transition: all .3s var(--ease); }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ BUTTONS ============ */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 28px; border-radius: 12px; font-weight: 700; font-size: 14.5px;
  letter-spacing: .01em; overflow: hidden; isolation: isolate; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn span { position: relative; z-index: 2; }
.btn:active { transform: scale(.97); }

.btn-primary {
  color: #14110a;
  background: linear-gradient(100deg, var(--gold), var(--green));
  box-shadow: 0 14px 30px -12px rgba(201,162,39,.55);
}
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.55) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 38px -12px rgba(201,162,39,.7); }
.btn-primary:hover::before { transform: translateX(120%); }

.btn-ghost {
  color: var(--white); background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,.09); transform: translateY(-3px); border-color: rgba(255,255,255,.25); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-actions.center { justify-content: center; }

/* ============ HERO SHARED ============ */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: center;
}
.hero-scrim { position: absolute; inset: 0; }
.hero-scrim-left {
  background: linear-gradient(90deg, rgba(6,7,6,.94) 0%, rgba(6,7,6,.86) 30%, rgba(6,7,6,.35) 48%, rgba(6,7,6,0) 62%),
              linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,0) 40%);
}
.hero-scrim-right {
  background: linear-gradient(270deg, rgba(6,7,6,.94) 0%, rgba(6,7,6,.86) 32%, rgba(6,7,6,.35) 52%, rgba(6,7,6,0) 68%),
              linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,0) 40%);
}

.hero-grid {
  position: relative; z-index: 3; width: 100%;
  max-width: 1400px; margin: 0 auto; padding: calc(var(--nav-h) + 40px) 32px 60px;
  display: grid; grid-template-columns: minmax(0,42%) 1fr;
}
.hero-grid-right { grid-template-columns: 1fr minmax(0,34%); }
.hero-copy { grid-column: 1; max-width: 560px; }
.hero-grid-right .hero-copy { grid-column: 2; max-width: 480px; justify-self: end; }

.hero-title {
  font-size: clamp(2.1rem, 3.4vw + 1rem, 3.4rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.hero-title-sm { font-size: clamp(1.8rem, 2.6vw + 1rem, 2.7rem); }

.hero-desc {
  font-size: clamp(15px, 1vw + 10px, 17px); color: var(--muted); max-width: 50ch;
  margin-bottom: 26px;
}

.hero-bullets { display: flex; flex-direction: column; gap: 12px; margin-bottom: 6px; }
.hero-bullets li {
  display: flex; align-items: center; gap: 12px;
  font-size: 14.5px; font-weight: 500; color: #e9e8e4;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--border);
  padding: 11px 16px; border-radius: 12px;
  backdrop-filter: blur(4px);
}
.bullet-ico { font-size: 16px; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.35); border-radius: 20px;
  z-index: 3;
}
.scroll-cue span {
  position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  background: var(--green); border-radius: 3px; animation: cueMove 1.8s infinite ease-in-out;
}
@keyframes cueMove { 0% { opacity:1; transform: translateY(0);} 70% {opacity:0; transform: translateY(14px);} 100%{opacity:0;} }

/* ============ IMPACT PANEL (in marketing hero) ============ */
.impact-panel {
  margin-top: 26px; padding: 20px; border-radius: 16px;
  background: rgba(19,19,22,.55); border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.impact-title { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-light); margin-bottom: 16px; }
.impact-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.impact-stat strong { font-size: 22px; font-weight: 800; color: var(--white); }
.impact-stat > span { font-size: 22px; font-weight: 800; color: var(--white); margin-left: 1px; }
.impact-stat p { font-size: 11.5px; color: var(--muted-2); line-height: 1.35; margin-top: 4px; }

/* ============ GENERIC SECTIONS ============ */
.section { position: relative; padding: 110px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-title {
  font-size: clamp(1.8rem, 2.4vw + 1rem, 2.6rem); font-weight: 800; line-height: 1.14;
  letter-spacing: -0.01em; margin-bottom: 16px;
}
.section-desc { color: var(--muted); font-size: 16px; max-width: 56ch; }

/* ---- WhatsApp section ---- */
.wa-section { background: radial-gradient(80% 60% at 15% 10%, rgba(37,211,102,.08), transparent), var(--ink); }
.wa-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.section-desc.wa-desc, .wa-copy .section-desc { margin-bottom: 30px; }

.stat-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 8px; }
.stat-card {
  flex: 1 1 150px; padding: 18px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--border);
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.stat-card:hover { transform: translateY(-4px); border-color: rgba(76,224,122,.4); }
.stat-card strong { font-size: 26px; font-weight: 800; color: var(--green); }
.stat-card span { display: block; font-size: 12.5px; color: var(--muted-2); margin-top: 6px; line-height: 1.35; }

.wa-mock { display: flex; justify-content: center; }
.phone {
  width: 320px; border-radius: 34px; background: #0d1210;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow-lg);
  padding: 10px 10px 16px;
  position: relative;
}
.phone-notch { width: 90px; height: 18px; background: #0d1210; border-radius: 0 0 14px 14px; margin: 0 auto 6px; position: relative; z-index: 2; }
.phone-header {
  display: flex; align-items: center; gap: 10px;
  background: #16211b; border-radius: 16px 16px 0 0; padding: 12px 14px;
}
.phone-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--green), var(--gold));
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.phone-header strong { display: block; font-size: 13px; }
.phone-header small { color: #7fae8f; font-size: 11px; }
.phone-body {
  background: #0b1a12; background-image: radial-gradient(rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 14px 14px;
  padding: 16px 12px; display: flex; flex-direction: column; gap: 9px; min-height: 340px;
  border-radius: 0 0 16px 16px;
}
.bubble { max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: 12.8px; line-height: 1.4; animation: pop .4s var(--ease) both; }
.bubble-in { align-self: flex-start; background: #1c2b22; color: #eef3ee; border-bottom-left-radius: 4px; }
.bubble-out { align-self: flex-end; background: linear-gradient(120deg, #256b41, #1f8a4c); color: #fff; border-bottom-right-radius: 4px; }
.bubble-typing { align-self: flex-start; background: #1c2b22; border-bottom-left-radius: 4px; display: flex; gap: 4px; padding: 12px 14px; }
.bubble-typing span { width: 6px; height: 6px; border-radius: 50%; background: #7fae8f; animation: typing 1.2s infinite ease-in-out; }
.bubble-typing span:nth-child(2) { animation-delay: .15s; }
.bubble-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%,60%,100%{ transform: translateY(0); opacity:.5;} 30%{ transform: translateY(-4px); opacity:1;} }
@keyframes pop { from { opacity:0; transform: translateY(8px);} to { opacity:1; transform: translateY(0);} }

/* ---- Sites section ---- */
.sites-section { background: var(--ink); }
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
  padding: 28px 22px; border-radius: 18px;
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.feature-card:hover { transform: translateY(-6px); border-color: rgba(201,162,39,.4); box-shadow: var(--shadow-lg); }
.feature-ico {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(76,224,122,.18), rgba(201,162,39,.18));
}
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 13.6px; color: var(--muted-2); line-height: 1.5; }

/* ---- CTA / Contato ---- */
.cta-section {
  background: radial-gradient(60% 80% at 50% 0%, rgba(201,162,39,.08), transparent), var(--ink);
  text-align: center;
  border-top: 1px solid var(--border);
}
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-inner .eyebrow { justify-content: center; }
.cta-inner .section-desc { margin: 0 auto; }

/* ============ FOOTER ============ */
.footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.footer-brand { gap: 8px; }
.footer-brand .brand-text { font-size: 15px; flex-direction: row; }
.footer-links { display: flex; gap: 22px; font-size: 13px; color: var(--muted); }
.footer-links a:hover { color: var(--gold-light); }
.footer-copy { font-size: 12.5px; color: var(--muted-2); }

/* ============ TO TOP ============ */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border);
  background: rgba(19,19,22,.8); color: var(--white); font-size: 18px;
  backdrop-filter: blur(8px); cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: all .35s var(--ease);
}
.to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { border-color: var(--gold-light); color: var(--gold-light); }

/* ============ SCROLL REVEAL ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-cta span { display: none; }
  .nav-cta { padding: 10px; }
  .nav-burger { display: flex; }

  .wa-grid { grid-template-columns: 1fr; gap: 44px; }
  .wa-mock { order: -1; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-stats { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .hero-grid, .hero-grid-right { grid-template-columns: 1fr; padding-top: calc(var(--nav-h) + 24px); }
  .hero-copy, .hero-grid-right .hero-copy { grid-column: 1; max-width: 100%; justify-self: stretch; }
  .hero-scrim-left, .hero-scrim-right {
    background: linear-gradient(0deg, rgba(6,7,6,.95) 20%, rgba(6,7,6,.55) 55%, rgba(6,7,6,.25) 100%),
                linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,0) 30%);
  }
  .cards-grid { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .phone { width: 100%; max-width: 320px; }
}

@media (max-width: 480px) {
  .section-inner { padding: 0 20px; }
  .hero-grid { padding-left: 20px; padding-right: 20px; }
  .btn { padding: 13px 20px; font-size: 13.5px; }
}
