:root {
  --bg: #f8f6f1;
  --surface: #ffffff;
  --muted: #f1eee6;
  --border: rgba(33, 51, 46, 0.1);
  --fg: #1b2622;
  --fg-soft: #5f6d66;
  --primary: #2f6b55;
  --primary-strong: #225244;
  --primary-soft: #d9eadf;
  --accent: #f5c478;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 4px 12px rgba(33, 51, 46, 0.06);
  --shadow-md: 0 18px 40px rgba(33, 51, 46, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(47, 107, 85, 0.08), transparent),
    var(--bg);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

p { margin: 0; color: var(--fg-soft); }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 246, 241, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.nav.is-scrolled {
  background: rgba(248, 246, 241, 0.95);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--fg);
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
}
.brand-logo svg { width: 18px; height: 18px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--fg-soft);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 160ms ease;
}
.nav-links a:hover { color: var(--fg); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  color: var(--fg);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  height: 42px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 120ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(47, 107, 85, 0.25);
}
.btn-primary:hover { background: var(--primary-strong); box-shadow: 0 10px 22px rgba(47, 107, 85, 0.3); }

.btn-outline {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}
.btn-outline:hover { background: var(--muted); }

.btn-ghost {
  background: transparent;
  color: var(--fg);
}
.btn-ghost:hover { background: var(--muted); }

.btn-lg { height: 50px; padding: 0 24px; font-size: 1rem; border-radius: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 80px;
  text-align: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: -10% -20% auto -20%;
  height: 60%;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(47, 107, 85, 0.15), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(245, 196, 120, 0.15), transparent 50%);
  filter: blur(40px);
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin: 14px auto 22px;
  max-width: 900px;
}
.hero-accent {
  background: linear-gradient(120deg, var(--primary), var(--primary-strong));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lead {
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto 36px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--fg-soft);
}
.hero-meta .dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: #21c47a;
  box-shadow: 0 0 0 4px rgba(33, 196, 122, 0.18);
}

/* Hero preview (mock UI) */
.hero-preview {
  margin: 60px auto 0;
  max-width: 920px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.preview-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--muted);
  border-bottom: 1px solid var(--border);
}
.preview-bar .dot {
  width: 11px;
  height: 11px;
  border-radius: 99px;
  background: #d8d2c4;
}
.preview-bar .d-r { background: #f88379; }
.preview-bar .d-y { background: #f5c478; }
.preview-bar .d-g { background: #6ad29a; }
.preview-body { padding: 22px; }
.preview-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.preview-cell {
  padding: 14px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--muted);
  color: var(--fg-soft);
}
.preview-cell.head {
  background: transparent;
  color: var(--fg);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 0;
}
.preview-cell.filled {
  background: var(--primary-soft);
  color: var(--primary-strong);
  border: 1px solid rgba(47, 107, 85, 0.15);
}
.preview-cell.filled::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--primary);
  width: var(--p, 50%);
}
.preview-cell.empty {
  border: 1px dashed var(--border);
  background: transparent;
}

/* ---------- Sections ---------- */
.features, .workflow {
  padding: 80px 0;
}
.section-head {
  text-align: center;
  margin-bottom: 50px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin: 12px 0 12px;
}
.section-head p {
  max-width: 560px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.feature-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(47, 107, 85, 0.25);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 12px;
  margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.feature-card p { font-size: 0.95rem; }

/* Workflow */
.workflow-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.workflow-steps li {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  flex-shrink: 0;
}
.workflow-steps h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.workflow-steps p { font-size: 0.92rem; }

/* Integrações */
.integrations {
  padding: 80px 0;
}
.logos-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.logo-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: 260px;
  padding: 36px 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.logo-chip:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(47, 107, 85, 0.25);
}
.logo-chip img {
  width: auto;
  object-fit: contain;
}
.logo-chip .logo-tp {
  height: 34px;
}
.logo-chip .logo-wh {
  height: 46px;
  border-radius: 10px;
}
.logo-chip .tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 4px 12px;
  border-radius: 999px;
}

/* CTA */
.cta {
  padding: 80px 0;
}
.cta-inner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
  color: #fff;
  text-align: center;
  padding: 60px 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.cta h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: #fff;
  margin-bottom: 10px;
}
.cta p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}
.cta .btn-primary {
  background: #fff;
  color: var(--primary-strong);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.cta .btn-primary:hover {
  background: #f5f5f5;
  color: var(--primary-strong);
}

/* Footer */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.brand-small {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.brand-small .brand-logo { width: 28px; height: 28px; border-radius: 8px; }
.brand-small .brand-logo svg { width: 14px; height: 14px; }
.footer-links {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
}
.footer-links a { color: var(--fg-soft); }
.footer-links a:hover { color: var(--fg); }
.footer p { font-size: 0.85rem; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-menu-open .nav-links {
    display: flex;
    position: absolute;
    top: 72px;
    right: 24px;
    left: 24px;
    background: var(--surface);
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    box-shadow: var(--shadow-md);
  }
  .hero { padding: 60px 0 50px; }
  .preview-grid { grid-template-columns: repeat(3, 1fr); }
  .preview-cell:nth-child(4),
  .preview-cell:nth-child(5),
  .preview-cell:nth-child(9),
  .preview-cell:nth-child(10),
  .preview-cell:nth-child(14),
  .preview-cell:nth-child(15) { display: none; }
}
