/* ==========================================================================
   Mibusca — Design System
   Agência de marketing para delivery (iFood & 99Food)
   ========================================================================== */

:root {
  /* Brand */
  --brand: #ff4d2d;
  --brand-600: #ed3d1e;
  --brand-700: #c92f15;
  --brand-2: #ff9100;
  --accent: #12a150;
  --accent-soft: #e8f7ee;

  /* Ink / neutrals */
  --ink: #0e1116;
  --ink-2: #1b2230;
  --muted: #5b6472;
  --muted-2: #828b9a;
  --line: #e7eaf0;
  --line-2: #eef1f6;
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --bg-ink: #0e1116;

  /* Effects */
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 10px 30px -12px rgba(16, 24, 40, .18);
  --shadow-lg: 0 30px 60px -20px rgba(16, 24, 40, .28);
  --ring: 0 0 0 4px rgba(255, 77, 45, .15);

  --container: 1180px;
  --gradient: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 100%);
  --font: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Reset ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* Layout ------------------------------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section--ink { background: var(--bg-ink); color: #fff; }
.section--tight { padding: 60px 0; }

/* Typography -------------------------------------------------------------- */
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.02em; font-weight: 800; color: var(--ink); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 700; }
p { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.22rem); color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-700); background: #fff2ee; border: 1px solid #ffd9cf;
  padding: 7px 14px; border-radius: 999px;
}
.section--ink .eyebrow { color: #ffd9cf; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 18px; }
.text-grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: .98rem; padding: 14px 26px; border-radius: 999px;
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 12px 24px -10px rgba(255,77,45,.65); }
.btn--primary:hover { background: var(--brand-600); transform: translateY(-2px); box-shadow: 0 18px 30px -12px rgba(255,77,45,.7); }
.btn--ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.28rem; letter-spacing: -.02em; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 11px; background: var(--gradient);
  display: grid; place-items: center; color: #fff; font-weight: 800; box-shadow: 0 8px 18px -8px rgba(255,77,45,.7);
}
.brand__mark svg { width: 22px; height: 22px; }
.brand b { color: var(--brand); }
.brand__logo { height: 42px; width: auto; display: block; }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
  font-weight: 600; font-size: .96rem; color: var(--ink-2); padding: 9px 14px; border-radius: 10px;
  transition: background .15s, color .15s;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { background: var(--bg-soft); color: var(--brand-700); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 11px; border: 1.5px solid var(--line); align-items: center; justify-content: center; }
.nav__toggle svg { width: 22px; height: 22px; }

/* Hero -------------------------------------------------------------------- */
.hero { position: relative; padding: 72px 0 64px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 85% 8%, rgba(255,145,0,.12), transparent 60%),
    radial-gradient(55% 50% at 8% 18%, rgba(255,77,45,.12), transparent 60%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin-top: 22px; }
.hero .lead { margin-top: 22px; max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__trust { display: flex; align-items: center; gap: 18px; margin-top: 26px; flex-wrap: wrap; }
.hero__stars { color: var(--brand-2); font-size: 1.1rem; letter-spacing: 2px; }
.hero__trust small { color: var(--muted); font-size: .9rem; }

.hero__card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 26px; position: relative;
}
.hero__card-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.platform-chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; padding: 7px 13px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot--ifood { background: #ea1d2c; }
.dot--99 { background: #ec3237; }
.metric-row { display: flex; align-items: flex-end; gap: 14px; margin-top: 20px; }
.metric-row .big { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.metric-row .up { color: var(--accent); font-weight: 700; font-size: .95rem; display: inline-flex; align-items: center; gap: 4px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 116px; margin-top: 22px; }
.bars span { flex: 1; background: var(--bg-soft); border-radius: 8px 8px 0 0; position: relative; }
.bars span::after { content: ""; position: absolute; inset: auto 0 0 0; height: var(--h); background: var(--gradient); border-radius: 8px 8px 0 0; transition: height 1s cubic-bezier(.2,.8,.2,1); }
.hero__card-foot { display: flex; justify-content: space-between; margin-top: 16px; font-size: .82rem; color: var(--muted-2); }

/* Logos / marquee --------------------------------------------------------- */
.logos { padding: 34px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.logos p { text-align: center; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; margin-bottom: 18px; }
.logos__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 30px; }
.logo-pill { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; color: var(--ink-2); opacity: .72; }
.logo-pill svg { width: 22px; height: 22px; }

/* Stat band --------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 8px; }
.stat .num { font-size: clamp(2.1rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -.03em; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .label { color: var(--muted); font-size: .98rem; margin-top: 4px; }
.section--ink .stat .label { color: rgba(255,255,255,.7); }

/* Cards / services -------------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #ffd9cf; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: #fff2ee; color: var(--brand-700); margin-bottom: 18px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .98rem; }
.card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--brand-700); font-weight: 700; font-size: .92rem; }
.card__link svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .card__link svg { transform: translateX(3px); }

/* Feature split ----------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checklist { display: grid; gap: 14px; margin-top: 26px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-weight: 500; }
.checklist .ic { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-top: 1px; }
.checklist .ic svg { width: 15px; height: 15px; }
.section--ink .checklist li { color: rgba(255,255,255,.85); }

.visual-card { background: var(--gradient); border-radius: var(--radius-lg); padding: 4px; box-shadow: var(--shadow-lg); }
.visual-card__inner { background: #fff; border-radius: 24px; padding: 30px; }
.kpi { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.kpi:last-child { border-bottom: 0; }
.kpi .k { font-weight: 600; color: var(--ink-2); }
.kpi .v { font-weight: 800; }
.kpi .v.green { color: var(--accent); }

/* Pricing ----------------------------------------------------------------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; position: relative; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan--featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); }
.plan__badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--gradient); color: #fff; font-weight: 700; font-size: .8rem; padding: 7px 16px; border-radius: 999px; white-space: nowrap; }
.plan__name { font-size: .92rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-700); }
.plan__desc { font-size: .92rem; color: var(--muted); margin-top: 6px; min-height: 42px; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 4px; }
.plan__price .cur { font-size: 1.1rem; font-weight: 700; color: var(--muted); }
.plan__price .amount { font-size: 2.7rem; font-weight: 800; letter-spacing: -.03em; }
.plan__price .per { color: var(--muted); font-size: .95rem; }
.plan__features { display: grid; gap: 12px; margin: 22px 0 26px; }
.plan__features li { display: flex; gap: 10px; font-size: .96rem; color: var(--ink-2); }
.plan__features .ic { flex: none; color: var(--accent); }
.plan__features .ic svg { width: 18px; height: 18px; }
.plan__features li.muted { color: var(--muted-2); }
.plan__features li.muted .ic { color: var(--muted-2); }

/* Testimonials ------------------------------------------------------------ */
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 18px; height: 100%;
}
.quote__stars { color: var(--brand-2); letter-spacing: 2px; }
.quote p { color: var(--ink-2); font-size: 1rem; }
.quote__who { display: flex; align-items: center; gap: 13px; margin-top: auto; }
.quote__avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--gradient); color: #fff; display: grid; place-items: center; font-weight: 800; overflow: hidden; flex-shrink: 0; border: 2px solid rgba(255,77,45,.2); }
.quote__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quote__who b { display: block; font-size: .98rem; }
.quote__who span { color: var(--muted); font-size: .86rem; }

/* Cases ------------------------------------------------------------------- */
.case {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case__top { padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; background: var(--bg-soft); border-bottom: 1px solid var(--line-2); }
.case__tag { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-700); }
.case__body { padding: 24px; }
.case__result { font-size: 2rem; font-weight: 800; color: var(--accent); letter-spacing: -.02em; }
.case h3 { margin: 6px 0 10px; }
.case p { font-size: .95rem; }

/* FAQ --------------------------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-bottom: 14px; overflow: hidden; }
.faq__q { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.faq__q .chev { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; transition: transform .25s, background .2s; }
.faq__q .chev svg { width: 16px; height: 16px; }
.faq__item.open .chev { transform: rotate(180deg); background: var(--brand); color: #fff; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a p { padding: 0 24px 22px; font-size: .98rem; }

/* CTA band ---------------------------------------------------------------- */
.cta {
  background: var(--gradient); border-radius: var(--radius-lg); padding: 60px; text-align: center;
  color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 50% -10%, rgba(255,255,255,.22), transparent 70%); }
.cta h2 { color: #fff; position: relative; }
.cta p { color: rgba(255,255,255,.92); max-width: 620px; margin: 16px auto 28px; position: relative; }
.cta .btn--light { position: relative; }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: var(--bg-ink); color: #c7ccd6; padding: 70px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #fff; }
.footer__about { margin-top: 18px; font-size: .95rem; color: #97a0b0; max-width: 320px; }
.footer__col h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer__col a, .footer__col p { display: block; color: #aab2bf; font-size: .96rem; padding: 6px 0; transition: color .15s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; color: #828b9a; }
.footer__bottom a:hover { color: #fff; }

/* Breadcrumb -------------------------------------------------------------- */
.crumb { padding: 22px 0 0; font-size: .88rem; color: var(--muted); }
.crumb a:hover { color: var(--brand-700); }
.crumb span { color: var(--muted-2); }

/* Page hero (inner) ------------------------------------------------------- */
.page-hero { padding: 54px 0 40px; position: relative; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 80% 0%, rgba(255,145,0,.1), transparent 60%); }
.page-hero h1 { margin-top: 14px; max-width: 760px; }
.page-hero .lead { margin-top: 18px; max-width: 640px; }

/* Float WhatsApp ---------------------------------------------------------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  width: 60px; height: 60px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 14px 30px -8px rgba(37,211,102,.6);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 32px; height: 32px; }

/* Misc -------------------------------------------------------------------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero__grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .hero__card { max-width: 460px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plan--featured { order: -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.open .nav__links {
    display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column;
    align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 14px 22px 22px; gap: 4px;
    box-shadow: var(--shadow);
  }
  .nav.open .nav__links a { padding: 13px 14px; }
  .grid-2, .grid-3, .grid-4, .stats { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .cta { padding: 44px 24px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
