/* Reset e tokens de design */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  padding-top: var(--header-h);
}

:root{
  --primary: #25d366;
  --primary-600: #1fb256;
  --bg: #ffffff;
  --text: #0b141a;
  --muted: #54656f;
  --border: #e3e7ea;
  --surface: #f5f6f6;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  --ring: 0 0 0 6px rgba(37, 211, 102, .14);
  --header-h: 64px;
}

:root[data-theme="dark"]{
  --primary: #25d366;
  --primary-600: #1fb256;
  --bg: #0b141a;
  --text: #e9edef;
  --muted: #aebac1;
  --border: #1f2c33;
  --surface: #111b21;
  --shadow: 0 10px 30px rgba(0,0,0,.5);
  --ring: 0 0 0 6px rgba(37, 211, 102, .14);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, .btn:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

/* Layout utilitários */
.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.section {
  padding: 72px 0;
}
.section{ scroll-margin-top: calc(var(--header-h) + 12px); }
.section-alt{ background: var(--surface); }
.section-head { text-align: center; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin: 0 0 8px; }
.section-head p { color: var(--muted); margin: 0; }

.grad { background: linear-gradient(90deg,#84f7b8,#25d366); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 1.125rem; }
.small { font-size: .9rem; color: var(--muted); }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 84%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container{ width: min(1240px, 96vw); }
.header-inner{
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  padding-inline: 8px;
}
.brand { font-weight: 800; letter-spacing: .3px; font-size: 1.1rem; }
.brand span{ color: var(--primary); }
.brand-sm{ font-size: 1rem; }
body.scrolled .site-header{ background: color-mix(in oklab, var(--bg) 92%, transparent); box-shadow: 0 6px 24px rgba(2,6,23,.06); }

/* Toggle de tema */
.theme-toggle{ display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); margin-right: 8px; cursor: pointer; }
.theme-toggle:hover{ filter: brightness(1.04); }
.theme-toggle .icon-moon{ display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun{ display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon{ display: inline-block; }

.primary-nav { display: flex; align-items: center; }
.nav-menu { display: flex; gap: 18px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-menu a{ color: var(--text); opacity: .9; }
.nav-menu a:hover{ color: var(--primary); }
.nav-menu a.active{ color: var(--primary); position: relative; }
.nav-menu a.active::after{ content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 2px; background: linear-gradient(90deg,#84f7b8,#25d366); border-radius: 2px; opacity: .9; }

.nav-toggle{ display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); align-items: center; justify-content: center; gap: 4px; padding: 0 10px; }
.nav-toggle span{ width: 20px; height: 2px; background: var(--text); display: block; }

/* Hero */
.hero{ padding: 112px 0 64px; position: relative; overflow: clip; }
.hero::before{
  content: "";
  position: absolute; inset: -10% -20% auto -20%; height: 60%;
  background: radial-gradient(60% 60% at 30% 30%, rgba(37,211,102,.16) 0%, rgba(37,211,102,0) 60%),
              radial-gradient(40% 40% at 70% 10%, rgba(132,247,184,.14) 0%, rgba(132,247,184,0) 70%);
  filter: blur(40px);
  pointer-events: none;
}
.hero-grid{
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center;
}
.hero-content h1{ font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); line-height: 1.15; margin: 0 0 12px; }
.hero-ctas{ display: flex; gap: 12px; margin: 16px 0 8px; flex-wrap: wrap; }
.hero-badges{ display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.hero-badges span{ background: #e8fdf2; color: #116a3b; padding: 6px 10px; border-radius: 999px; font-size: .9rem; }
.hero-art .chart{ width: 100%; height: auto; filter: drop-shadow(0 10px 30px rgba(2,6,23,.1)); }
.hero-art .chart path{ stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.6s ease .2s forwards; }
.hero-art .chart circle{ transform-origin: center; opacity: 0; animation: pop .6s cubic-bezier(.2,.8,.2,1) 1.2s forwards; }

@keyframes draw{ to{ stroke-dashoffset: 0; } }
@keyframes pop{ from{ transform: scale(.6); opacity: 0; } to{ transform: scale(1); opacity: 1; } }

/* Grids */
.cards-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards-grid.cols-4{ grid-template-columns: repeat(4, 1fr); }
.about-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.pricing-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testimonials-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-grid{ display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }

/* Cards */
.card{ background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover{ transform: translateY(-4px); box-shadow: 0 16px 40px rgba(2,6,23,.12); border-color: #bfdbfe; }
.card h3{ margin: 8px 0 6px; font-size: 1.125rem; }
.card p{ margin: 0; color: var(--muted); }
.card .icon{ width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: #eff6ff; color: var(--primary); }

/* About */
.about-illustration{ filter: drop-shadow(0 10px 30px rgba(2,6,23,.08)); border-radius: var(--radius); }
.checklist{ list-style: none; padding: 0; margin: 12px 0 0; }
.checklist li{ position: relative; padding-left: 26px; margin: 10px 0; }
.checklist li::before{ content: ""; position: absolute; left: 0; top: 8px; width: 16px; height: 16px; border-radius: 50%; background: #dcfce7; border: 2px solid #22c55e; }

/* Pricing */
.price-card{ background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.price-card:hover{ transform: translateY(-4px); box-shadow: 0 16px 40px rgba(2,6,23,.12); border-color: #bfdbfe; }
.price-card .price{ margin: 0; color: var(--text); font-size: 1.2rem; }
.price-card ul{ list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--muted); }
.price-card .btn{ margin-top: 8px; }
.price-card.highlight{ border-color: var(--primary); position: relative; }
.price-card .badge{ position: absolute; top: -12px; left: 16px; background: var(--primary); color: #fff; font-size: .8rem; padding: 4px 8px; border-radius: 999px; box-shadow: var(--shadow); }

/* Testimonials */
.testimonial{ background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); position: relative; transition: transform .2s ease, box-shadow .2s ease; }
.testimonial:hover{ transform: translateY(-3px); box-shadow: 0 14px 36px rgba(2,6,23,.1); }
.testimonial blockquote{ margin: 0 0 8px; color: var(--text); }
.testimonial figcaption{ color: var(--muted); font-size: .95rem; }

/* Forms */
.contact-list{ list-style: none; padding: 0; margin: 12px 0 0; color: var(--muted); }
.contact-form{ background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.field{ display: grid; gap: 6px; margin-bottom: 12px; }
.field label{ font-weight: 600; }
.field input, .field textarea{
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); font: inherit; background: var(--bg); color: var(--text);
}
.field input:focus, .field textarea:focus{ outline: 2px solid #bfdbfe; border-color: #93c5fd; box-shadow: var(--ring); }
.form-status{ margin: 10px 0 0; font-size: .95rem; }

/* Buttons & links */
.btn{ display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border-radius: 12px; background: var(--primary); color: #fff; border: 1px solid var(--primary); transition: background .2s ease, transform .06s ease, box-shadow .2s ease; box-shadow: 0 6px 16px rgba(37, 211, 102, .25); }
.btn:hover{ background: var(--primary-600); }
.btn:active{ transform: translateY(1px) scale(.99); }
.btn-outline{ background: transparent; color: var(--primary); border-color: #baf2d2; }
.btn-outline:hover{ background: #e8fdf2; }
.btn-sm{ padding: 8px 12px; border-radius: 10px; font-size: .95rem; }
.btn-block{ width: 100%; }
.link{ color: var(--primary); font-weight: 600; }
.link:hover{ text-decoration: underline; }

/* Estado de carregamento do botão */
.btn.loading{ position: relative; pointer-events: none; opacity: .9; }
.btn.loading::after{
  content: ""; width: 16px; height: 16px; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%;
  animation: spin .8s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
.site-footer{ padding: 36px 0; border-top: 1px solid var(--border); background: var(--bg); }
.footer-grid{ display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-nav{ display: flex; gap: 14px; flex-wrap: wrap; }
.footer-nav a{ color: var(--muted); }
.footer-nav a:hover{ color: var(--primary); }

/* Reveal on scroll */
.reveal{ opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .6s ease, transform .6s ease, filter .6s ease; filter: blur(2px); }
.reveal.visible{ opacity: 1; transform: none; filter: none; }

/* Animações sutis de fundo nas seções alternadas */
.section-alt{ position: relative; overflow: hidden; }
.section-alt::after{
  content: ""; position: absolute; inset: auto -10% -10% -10%; height: 50px;
  background: radial-gradient(60% 60% at 50% 0%, rgba(37,211,102,.08), rgba(37,211,102,0) 60%);
  pointer-events: none;
}

/* Preferência por menos movimento */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Responsividade */
@media (max-width: 1024px){
  .hero-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 920px){
  .cards-grid{ grid-template-columns: repeat(2, 1fr); }
  .cards-grid.cols-4{ grid-template-columns: repeat(2, 1fr); }
  .pricing-grid{ grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid{ grid-template-columns: repeat(2, 1fr); }
  .about-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 720px){
  .nav-toggle{ display: inline-flex; }
  .nav-menu{ position: fixed; inset: var(--header-h) 0 auto 0; background: color-mix(in oklab, var(--bg) 98%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); display: grid; gap: 8px; padding: 12px; transform: translateY(-100%); transition: transform .25s ease; }
  .nav-menu.open{ transform: translateY(0%); }
  .nav-menu .btn-sm{ justify-self: start; }
  .primary-nav{ position: initial; }

  .cards-grid{ grid-template-columns: 1fr; }
  .cards-grid.cols-4{ grid-template-columns: 1fr; }
  .pricing-grid{ grid-template-columns: 1fr; }
  .testimonials-grid{ grid-template-columns: 1fr; }

  .section{ padding: 56px 0; }
  .hero{ padding: 96px 0 48px; }
  .hero-grid{ text-align: center; }
  .hero-ctas{ justify-content: center; }
  .hero-badges{ justify-content: center; }
  .theme-toggle{ width: 36px; height: 36px; }
  .footer-grid{ flex-direction: column; align-items: flex-start; gap: 8px; }
  .nav-menu a{ display: block; padding: 12px 8px; }
}

@media (max-width: 480px){
  :root{ --header-h: 56px; }
}


