/* ═══════════════════════════════════════════════════════
   Mesa Inteligente — Landing Page
   Stack: HTML/CSS estático
   Paleta consistente com pitch deck e peças sociais
   ═══════════════════════════════════════════════════════ */

:root {
  --mi-primary: #f97316;
  --mi-primary-dark: #c2410c;
  --mi-primary-light: #fff7ed;
  --mi-amber: #fbbf24;
  --mi-ink: #0f172a;
  --mi-ink-soft: #1e293b;
  --mi-ink-2: #334155;
  --mi-text: #cbd5e1;
  --mi-text-strong: #f8fafc;
  --mi-muted: #94a3b8;
  --mi-bg: #ffffff;
  --mi-bg-soft: #f9fafb;
  --mi-success: #22c55e;
  --mi-line: #e5e7eb;
  --mi-line-dark: rgba(255,255,255,0.12);
  --mi-radius: 16px;
  --mi-max-width: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--mi-ink);
  background: var(--mi-bg);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--mi-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ───────────────────────────── HEADER FIXO ───────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15,23,42,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--mi-line-dark);
  color: var(--mi-text-strong);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700;
  font-size: 18px;
}
.brand .mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 20px;
  box-shadow: 0 6px 20px -4px rgba(249,115,22,0.5);
}
.nav { display: flex; gap: 28px; align-items: center; font-size: 15px; }
.nav a { color: var(--mi-text); transition: color .15s; }
.nav a:hover { color: white; }
.btn-wpp-small {
  background: var(--mi-success);
  color: white !important;
  padding: 9px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-wpp-small:hover { background: #16a34a; }

/* ───────────────────────────── HERO ───────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 50%, #292524 100%);
  color: var(--mi-text-strong);
  overflow: hidden;
  padding: 80px 0 100px;
}
.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.hero::before {
  width: 600px; height: 600px;
  background: rgba(249,115,22,0.55);
  top: -200px; left: -150px;
}
.hero::after {
  width: 500px; height: 500px;
  background: rgba(251,191,36,0.25);
  bottom: -150px; right: -100px;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero-text { max-width: 600px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(249,115,22,0.15);
  border: 1px solid rgba(249,115,22,0.35);
  color: #fdba74;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-pill .pulse {
  width: 8px; height: 8px;
  background: #fdba74; border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(253,186,116,0.2);
}
.hero h1 {
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.hero h1 em {
  background: linear-gradient(135deg, #fb923c 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}
.hero .lead {
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--mi-text);
  line-height: 1.55;
  margin-bottom: 32px;
  max-width: 520px;
}
.hero .lead strong { color: white; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--mi-success);
  color: white;
  padding: 18px 28px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 17px;
  box-shadow: 0 12px 30px -8px rgba(34,197,94,0.5);
  transition: transform .15s, box-shadow .15s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(34,197,94,0.6); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1.5px solid rgba(255,255,255,0.25);
  color: white;
  padding: 17px 24px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 16px;
  transition: background .15s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); }

.hero-meta {
  margin-top: 22px;
  font-size: 14px;
  color: var(--mi-muted);
  display: flex; gap: 16px; flex-wrap: wrap;
}
.hero-meta span::before {
  content: '✓';
  color: var(--mi-success); font-weight: 800; margin-right: 6px;
}

/* Hero visual: phone + cards flutuantes */
.hero-visual {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  min-height: 520px;
}
.phone-frame {
  background: #0f172a;
  border-radius: 38px;
  padding: 10px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.06);
  transform: rotate(-3deg);
}
.phone-frame .screen {
  background: white;
  border-radius: 28px;
  overflow: hidden;
  width: 280px;
  height: 580px;
}
.phone-frame .screen img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
}

.float-card {
  position: absolute;
  background: rgba(15,23,42,0.92);
  border: 1px solid rgba(249,115,22,0.4);
  border-radius: 14px;
  padding: 14px 18px;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -16px rgba(0,0,0,0.6);
  color: white;
  font-size: 14px;
  z-index: 3;
}
.float-card .fc-row { display: flex; align-items: center; gap: 8px; margin: 2px 0; }
.float-card .fc-dot { width: 8px; height: 8px; border-radius: 50%; }
.float-card .fc-status { color: #4ade80; font-weight: 700; font-size: 13px; letter-spacing: 0.04em; margin-top: 4px; }
.float-card .fc-amount { color: #cbd5e1; font-size: 13px; margin-top: 4px; }
.float-card .fc-muted { color: #94a3b8; font-size: 12px; }
.float-kds { top: 6%; left: -20px; transform: rotate(-4deg); }
.float-pay { bottom: 8%; right: -20px; transform: rotate(3deg); border-color: rgba(34,197,94,0.4); }

/* ───────────────────────────── SEÇÕES (light) ───────────────────────────── */
section { padding: 96px 0; }
.section-tag {
  display: inline-block;
  color: var(--mi-primary);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  max-width: 720px;
}
.section-title em {
  color: var(--mi-primary);
  font-style: normal;
}
.section-lead {
  font-size: 18px;
  color: var(--mi-ink-2);
  max-width: 680px;
  margin-bottom: 48px;
}

/* ───────────────────────────── COMO FUNCIONA (4 passos) ───────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step {
  position: relative;
  background: var(--mi-bg-soft);
  border: 1px solid var(--mi-line);
  border-radius: var(--mi-radius);
  padding: 28px 24px;
}
.step-num {
  display: inline-flex;
  width: 36px; height: 36px;
  background: var(--mi-primary);
  color: white;
  border-radius: 10px;
  align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 14px;
}
.step h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step p {
  font-size: 15px;
  color: var(--mi-ink-2);
  line-height: 1.5;
}

/* ───────────────────────────── FEATURES (cards) ───────────────────────────── */
.features-section {
  background: var(--mi-bg-soft);
  border-top: 1px solid var(--mi-line);
  border-bottom: 1px solid var(--mi-line);
}
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feat-card {
  background: white;
  border: 1px solid var(--mi-line);
  border-radius: var(--mi-radius);
  padding: 28px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.feat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -16px rgba(15,23,42,0.18);
  border-color: rgba(249,115,22,0.3);
}
.feat-icon {
  width: 48px; height: 48px;
  background: var(--mi-primary-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.feat-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feat-card p {
  font-size: 15px;
  color: var(--mi-ink-2);
  line-height: 1.5;
}

/* ───────────────────────────── DEMO (screenshots) ───────────────────────────── */
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 56px;
}
.demo-grid:last-child { margin-bottom: 0; }
.demo-grid.reverse { grid-template-columns: 1fr 1fr; }
.demo-grid.reverse .demo-visual { order: -1; }

.demo-text h3 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}
.demo-text p {
  color: var(--mi-ink-2);
  margin-bottom: 18px;
}
.demo-text ul { list-style: none; }
.demo-text ul li {
  position: relative;
  padding: 6px 0 6px 28px;
  font-size: 15px;
}
.demo-text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--mi-success);
  font-weight: 800;
}

.demo-visual {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-radius: 24px;
  padding: 32px;
  display: flex; justify-content: center; align-items: center;
  min-height: 320px;
}
.demo-visual.dark {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}
.demo-visual img {
  border-radius: 12px;
  box-shadow: 0 20px 50px -16px rgba(0,0,0,0.4);
  border: 1px solid rgba(0,0,0,0.06);
  max-height: 320px;
  object-fit: cover;
  object-position: top;
}
.demo-visual .phone-frame {
  transform: rotate(0);
}
.demo-visual .phone-frame .screen { width: 220px; height: 460px; }

/* ───────────────────────────── CTA FINAL ───────────────────────────── */
.final-cta {
  background: linear-gradient(135deg, var(--mi-primary) 0%, var(--mi-primary-dark) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.final-cta::before, .final-cta::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  pointer-events: none;
}
.final-cta::before {
  width: 500px; height: 500px;
  background: #fbbf24;
  top: -150px; left: -100px;
}
.final-cta::after {
  width: 400px; height: 400px;
  background: #fed7aa;
  bottom: -100px; right: -50px;
  opacity: 0.3;
}
.final-cta .container {
  position: relative;
  text-align: center;
  padding-top: 80px; padding-bottom: 80px;
}
.final-cta h2 {
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.final-cta p {
  font-size: 19px;
  color: rgba(255,255,255,0.95);
  max-width: 600px;
  margin: 0 auto 36px;
}
.final-cta-buttons {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 28px;
}
.btn-white {
  background: white;
  color: var(--mi-primary-dark);
  padding: 18px 30px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 17px;
  display: inline-flex; align-items: center; gap: 12px;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,0.25);
  transition: transform .15s;
}
.btn-white:hover { transform: translateY(-2px); }
.btn-outline-white {
  border: 2px solid rgba(255,255,255,0.6);
  color: white;
  padding: 16px 28px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  display: inline-flex; align-items: center; gap: 10px;
  transition: background .15s;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.12); }

.final-cta .phone-display {
  font-size: 22px;
  font-weight: 700;
  margin-top: 12px;
}
.final-cta .phone-display strong { font-size: 28px; }

/* ───────────────────────────── FOOTER ───────────────────────────── */
.site-footer {
  background: var(--mi-ink);
  color: var(--mi-text);
  padding: 48px 0 32px;
  font-size: 14px;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.site-footer h4 {
  color: white;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul li a { color: var(--mi-text); transition: color .15s; }
.site-footer ul li a:hover { color: white; }
.site-footer .brand-foot {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
  color: white; font-weight: 700; font-size: 18px;
}
.site-footer .brand-foot .mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 18px;
}
.site-footer p.small {
  font-size: 13px;
  max-width: 360px;
}
.footer-bottom {
  border-top: 1px solid var(--mi-line-dark);
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--mi-muted);
  font-size: 13px;
}

/* ───────────────────────────── BOTÃO FLUTUANTE WHATSAPP ───────────────────────────── */
.wpp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 100;
  background: var(--mi-success);
  color: white;
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -6px rgba(34,197,94,0.5), 0 0 0 6px rgba(34,197,94,0.15);
  font-size: 28px;
  transition: transform .2s;
}
.wpp-float:hover { transform: scale(1.08); }

/* ───────────────────────────── RESPONSIVO ───────────────────────────── */
@media (max-width: 900px) {
  .hero { padding: 50px 0 70px; }
  .hero .container { grid-template-columns: 1fr; gap: 50px; }
  .hero-visual { min-height: 480px; }
  section { padding: 64px 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: 1fr; }
  .demo-grid, .demo-grid.reverse { grid-template-columns: 1fr; }
  .demo-grid.reverse .demo-visual { order: 0; }
  .nav { display: none; }
  .site-header .nav.cta-only { display: flex; }
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .float-kds, .float-pay { display: none; }
  .phone-frame { transform: rotate(0); }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { justify-content: center; }
}
