:root {
  --brand: #f97316;
  --brand-dark: #ea580c;
  --brand-light: #fff7ed;
  --side-bg: #111827;
  --side-hover: #1f2937;
  --side-muted: #9ca3af;
  --ink: #111827;
  --ink-soft: #4b5563;
  --page: #f4f5f7;
  --line: #e5e7eb;
  --white: #ffffff;
  --success: #059669;
  --danger: #dc2626;
  --info: #2563eb;
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-md: 0 4px 14px rgba(16, 24, 40, .08), 0 2px 6px rgba(16, 24, 40, .05);
  --shadow-lg: 0 20px 40px -12px rgba(17, 24, 39, .18);
  --radius: 1rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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

section { padding: 96px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--brand-light);
  border: 1px solid #fed7aa;
  padding: 6px 14px;
  border-radius: 999px;
}

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 0; }

h2.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); }

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; margin-top: 14px; }

.text-brand { color: var(--brand); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: .95rem;
  padding: 12px 22px;
  border-radius: .7rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 8px 20px -6px rgba(249, 115, 22, .55);
}
.btn-primary:hover { background: var(--brand-dark); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .35);
}
.btn-outline:hover { background: rgba(255, 255, 255, .1); }

.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); }

.btn-lg { padding: 15px 30px; font-size: 1.05rem; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background-color .25s ease, box-shadow .25s ease, padding .25s ease;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }

.site-header.scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}

.brand { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.brand-mark {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand);
  border-radius: .65rem;
  color: var(--white);
  font-size: 1.1rem;
  box-shadow: 0 6px 14px -4px rgba(249, 115, 22, .6);
  flex-shrink: 0;
}
.site-header.scrolled .brand { color: var(--ink); }
.site-header:not(.scrolled) .brand { color: var(--white); }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  font-weight: 600;
  font-size: .95rem;
  transition: color .15s ease;
}
.site-header:not(.scrolled) .main-nav a { color: rgba(255, 255, 255, .85); }
.site-header.scrolled .main-nav a { color: var(--ink-soft); }
.main-nav a:hover { color: var(--brand); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.site-header:not(.scrolled) .header-actions .btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: inherit;
}

/* Hero */
.hero {
  padding: 168px 0 110px;
  background:
    radial-gradient(1100px 560px at 15% -10%, #1f2937, transparent 60%),
    radial-gradient(900px 500px at 100% 0%, #27201a, transparent 55%),
    var(--side-bg);
  color: var(--white);
  overflow: hidden;
  position: relative;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(249, 115, 22, .15);
  border: 1px solid rgba(249, 115, 22, .4);
  color: #fdba74;
  font-size: .8rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px;
}
.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); margin-top: 22px; color: var(--white); }
.hero h1 span { color: var(--brand); }
.hero p.lead { margin-top: 20px; font-size: 1.12rem; color: var(--side-muted); max-width: 540px; line-height: 1.6; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 28px; margin-top: 48px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 1.5rem; color: var(--white); font-weight: 800; }
.hero-stats div span { font-size: .85rem; color: var(--side-muted); }

/* Hero mockup dashboard */
.mock-card {
  background: var(--white);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(1deg);
  border: 1px solid rgba(255,255,255,.08);
}
.mock-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 18px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.mock-topbar .dots { display: flex; gap: 6px; justify-self: start; }
.mock-topbar .dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-topbar .title { font-size: .8rem; font-weight: 700; color: var(--ink-soft); justify-self: center; white-space: nowrap; }
.mock-topbar i { justify-self: end; }

.mock-body { padding: 18px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.mock-kpi { background: var(--page); border-radius: .7rem; padding: 12px; }
.mock-kpi span { display: block; font-size: .7rem; color: var(--ink-soft); font-weight: 600; }
.mock-kpi strong { font-size: 1.1rem; font-weight: 800; color: var(--ink); }

.mock-list { border: 1px solid var(--line); border-radius: .8rem; overflow: hidden; }
.mock-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: .85rem;
}
.mock-row:last-child { border-bottom: none; }
.mock-row .os-id { font-weight: 700; color: var(--ink); }
.mock-row .os-plate { color: var(--ink-soft); font-size: .78rem; }
.pill {
  font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.pill-warning { background: #fef3c7; color: #92400e; }
.pill-info { background: #dbeafe; color: #1e40af; }
.pill-success { background: #d1fae5; color: #065f46; }

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 34px; left: 12%; right: 12%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.step { position: relative; z-index: 1; text-align: center; }
.step-num {
  width: 68px; height: 68px; margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--brand);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.step h4 { font-size: 1.02rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: .9rem; line-height: 1.55; margin: 0; }

/* Feature groups */
.feature-group { margin-bottom: 56px; }
.feature-group:last-child { margin-bottom: 0; }
.feature-group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.feature-group-head .icon-badge { background: var(--side-bg); }
.feature-group-head h3 { font-size: 1.2rem; }
.feature-group-head span { color: var(--ink-soft); font-size: .9rem; }

.icon-badge {
  width: 44px; height: 44px;
  border-radius: .75rem;
  background: var(--brand);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #fdba74; }
.feature-card .icon-badge { margin-bottom: 14px; width: 40px; height: 40px; font-size: 1.05rem; border-radius: .6rem; }
.feature-card h4 { font-size: .98rem; margin-bottom: 6px; }
.feature-card p { font-size: .85rem; color: var(--ink-soft); line-height: 1.5; margin: 0; }

.financeiro-callout {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--brand-light);
  border: 1px solid #fed7aa;
  border-radius: 1rem;
  padding: 16px 20px;
}
.financeiro-callout i { font-size: 1.4rem; color: var(--brand-dark); }
.financeiro-callout p { margin: 0; font-size: .9rem; color: #7c2d12; }
.financeiro-callout strong { color: #7c2d12; }

/* Diferenciais */
.bg-dark { background: var(--side-bg); color: var(--white); }
.bg-dark .section-head p { color: var(--side-muted); }
.diff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 760px; margin: 0 auto; }
.diff-card {
  background: var(--side-hover);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 1.1rem;
  padding: 28px;
}
.diff-card .icon-badge { background: var(--brand); margin-bottom: 18px; }
.diff-card h4 { color: var(--white); font-size: 1.05rem; margin-bottom: 10px; }
.diff-card p { color: var(--side-muted); font-size: .9rem; line-height: 1.6; margin: 0; }

/* Benefits */
.benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.benefit {
  display: flex; gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.benefit .icon-badge { background: var(--success); }
.benefit h4 { font-size: 1rem; margin-bottom: 6px; }
.benefit p { font-size: .88rem; color: var(--ink-soft); margin: 0; line-height: 1.55; }

/* WhatsApp contact section */
.whatsapp-section .container {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  padding: 48px;
  box-shadow: var(--shadow-md);
}
.whatsapp-copy .icon-badge { background: #25D366; margin-bottom: 16px; }
.whatsapp-copy h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.whatsapp-copy p { color: var(--ink-soft); margin-top: 12px; font-size: 1rem; max-width: 480px; line-height: 1.6; }
.btn-whatsapp { background: #25D366; color: var(--white); box-shadow: 0 8px 20px -6px rgba(37, 211, 102, .55); }
.btn-whatsapp:hover { background: #1eb857; }
.contact-email {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px; font-size: .95rem; font-weight: 600;
  color: var(--brand); word-break: break-all;
  transition: color .15s ease;
}
.contact-email:hover { color: var(--brand-dark); }

.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 10px 24px -6px rgba(37, 211, 102, .6);
  z-index: 80;
  transition: transform .15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

@media (max-width: 760px) {
  .whatsapp-section .container { grid-template-columns: 1fr; text-align: center; padding: 36px 26px; }
  .whatsapp-copy p { margin-left: auto; margin-right: auto; }
}

/* Final CTA */
.cta-final {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: var(--white);
  text-align: center;
  border-radius: 1.5rem;
  padding: 64px 32px;
  margin: 0 24px;
  box-shadow: var(--shadow-lg);
}
.cta-final h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-final p { color: rgba(255,255,255,.9); margin-top: 14px; font-size: 1.05rem; }
.cta-final .btn-primary { background: var(--white); color: var(--brand-dark); box-shadow: 0 8px 20px -6px rgba(0,0,0,.25); margin-top: 28px; }
.cta-final .btn-primary:hover { background: #fff7ed; }

/* Footer */
footer { background: var(--side-bg); color: var(--side-muted); padding: 56px 0 28px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer-brand .brand { color: var(--white); }
.footer-brand p { max-width: 320px; font-size: .88rem; margin-top: 12px; line-height: 1.6; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-links h5 { color: var(--white); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.footer-links a { display: block; font-size: .9rem; color: var(--side-muted); margin-bottom: 10px; transition: color .15s ease; }
.footer-links a:hover { color: var(--brand); }
.footer-bottom {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .82rem;
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .mock-card { transform: none; max-width: 460px; margin: 0 auto; }
  .diff-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before { display: none; }
}

@media (max-width: 760px) {
  section { padding: 64px 0; }
  .main-nav { position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px);
    background: var(--white); flex-direction: column; align-items: flex-start;
    padding: 100px 28px 28px; gap: 22px; box-shadow: -12px 0 30px rgba(0,0,0,.15);
    transform: translateX(100%); transition: transform .25s ease; z-index: 90;
  }
  .main-nav.open { transform: translateX(0); }
  .site-header.scrolled .main-nav a, .site-header:not(.scrolled) .main-nav.open a { color: var(--ink); }
  .nav-toggle { display: block; z-index: 110; }
  .header-actions .btn-ghost { display: none; }
  .mock-kpis { grid-template-columns: 1fr 1fr; }
  .footer-top { flex-direction: column; }
  .cta-final { padding: 44px 24px; }
}

@media (max-width: 520px) {
  .mock-kpis { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
}
