/* ===== Tokens ===== */
:root {
  --blue: #1e3895;
  --blue-700: #172c78;
  --blue-900: #0b1640;
  --orange: #f0530f;
  --orange-400: #ff6a2b;
  --orange-50: #feeee7;
  --ink: #0f172a;
  --muted: #5b6475;
  --line: #e6e9f0;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --radius: 16px;
  --shadow-lg: 0 30px 80px -20px rgba(11, 22, 64, 0.35);
  --shadow-md: 0 12px 30px -10px rgba(11, 22, 64, 0.2);
  --header-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.4rem; font-weight: 700; }
p { margin: 0; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.accent { color: var(--orange); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-50);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow--light { background: rgba(240, 83, 15, 0.15); color: #ff8a57; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.1rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn--sm { padding: 10px 18px; font-size: 0.95rem; }
.btn--lg { padding: 16px 28px; font-size: 1.05rem; }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px -8px rgba(240, 83, 15, 0.6); }
.btn--primary:hover { background: var(--orange-400); transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(240, 83, 15, 0.7); }
.btn--ghost { color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn--white { background: #fff; color: var(--orange); }
.btn--white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ===== Header ===== */
.header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-h);
  z-index: 50;
  transition: background 0.25s, box-shadow 0.25s;
}
.header.is-scrolled,
body.menu-open .header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.header__logo img { height: 34px; width: auto; transition: filter 0.25s; }
.header:not(.is-scrolled) .header__logo img { filter: brightness(0) invert(1); }
body.menu-open .header .header__logo img { filter: none; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { font-weight: 500; font-size: 0.95rem; color: rgba(255, 255, 255, 0.85); transition: color 0.2s; }
.nav a:not(.btn):hover { color: #fff; }
.header.is-scrolled .nav a:not(.btn) { color: var(--muted); }
.header.is-scrolled .nav a:not(.btn):hover { color: var(--blue); }
.nav__login { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, 0.2); }
.header.is-scrolled .nav__login { border-color: var(--line); }

.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: 0.25s; }
.header.is-scrolled .menu-toggle span,
body.menu-open .menu-toggle span { background: var(--ink); }
.menu-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.07) 1px, transparent 0) 0 0 / 28px 28px,
    linear-gradient(160deg, var(--blue-900) 0%, var(--blue-700) 55%, var(--blue) 100%);
  padding: calc(var(--header-h) + 72px) 0 110px;
}
.hero__glow {
  position: absolute;
  width: 720px;
  height: 720px;
  right: -180px;
  top: -120px;
  background: radial-gradient(circle, rgba(240, 83, 15, 0.35), transparent 65%);
  pointer-events: none;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.hero__lead { margin-top: 22px; font-size: 1.15rem; color: rgba(255, 255, 255, 0.78); max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0; margin: 30px 0 0; font-size: 0.92rem; color: rgba(255, 255, 255, 0.7); }
.hero__proof li::before { content: '✓'; color: var(--orange-400); font-weight: 700; margin-right: 8px; }
.hero__proof strong { color: #fff; font-weight: 600; }

.hero__visual { position: relative; }
.float-card {
  position: absolute;
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  animation: float 6s ease-in-out infinite;
}
.float-card--a { left: -28px; bottom: 22%; }
.float-card--b { right: -12px; top: 6%; animation-delay: -3s; }
.float-card__label { font-size: 0.75rem; color: var(--muted); font-weight: 500; }
.float-card__value { font-size: 1.5rem; font-weight: 800; color: var(--blue); }
.float-card__value--down { color: #16a34a; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ===== Laptop mockup ===== */
.laptop { width: 100%; filter: drop-shadow(0 40px 50px rgba(5, 10, 35, 0.45)); }
.laptop__screen {
  position: relative;
  margin: 0 auto;
  width: 86%;
  padding: 2.4% 2.4% 3%;
  background: linear-gradient(180deg, #2a2d34, #15171c);
  border-radius: 18px 18px 6px 6px;
  border: 1px solid #3a3e47;
}
.laptop__camera { position: absolute; top: 0.9%; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #3d4250; }
.laptop__display { position: relative; aspect-ratio: 16 / 10; background: #fff; border-radius: 4px; overflow: hidden; }
.laptop__display > img,
.laptop__display > .screen-placeholder { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.laptop__base {
  position: relative;
  height: 18px;
  background: linear-gradient(180deg, #d9dce3 0%, #a9aeb9 60%, #7d828d 100%);
  border-radius: 2px 2px 18px 18px;
}
.laptop__notch { position: absolute; left: 50%; top: 0; width: 16%; height: 7px; transform: translateX(-50%); background: #9ea3ad; border-radius: 0 0 8px 8px; }

/* Crossfade das telas no showcase */
.laptop__display .screen,
.laptop__display > .screen-placeholder { position: absolute; inset: 0; opacity: 0; transform: scale(1.02); transition: opacity 0.5s, transform 0.6s; }
.laptop__display .is-active { opacity: 1; transform: none; }
.hero .laptop__display > * { position: static; opacity: 1; transform: none; }

/* Placeholder enquanto os prints não chegam */
.screen-placeholder {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #f6f7fb, #eef1f8);
  padding: 4%;
  gap: 5%;
}
.screen-placeholder__bar { height: 8%; border-radius: 6px; background: linear-gradient(90deg, var(--blue) 0 18%, #dde2ee 18%); }
.screen-placeholder__grid { flex: 1; display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1.4fr; gap: 4%; }
.screen-placeholder__grid span { background: #fff; border-radius: 8px; box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06); }
.screen-placeholder__grid span:nth-child(3) { grid-column: span 2; background: linear-gradient(180deg, transparent 40%, rgba(240, 83, 15, 0.12)), #fff; }
.screen-placeholder p { position: absolute; inset: auto 0 6% 0; text-align: center; font-weight: 700; color: var(--blue); font-size: clamp(0.8rem, 1.6vw, 1.1rem); opacity: 0.55; }
.screen-placeholder { position: relative; }
.laptop__display .screen-placeholder.is-active { position: absolute; }

/* ===== Funcionalidades ===== */
.features { padding: 120px 0; background: var(--bg-soft); }
.showcase { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; }
.showcase__tabs { display: flex; flex-direction: column; gap: 8px; }
.tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.tab:hover { background: #fff; }
.tab.is-active { background: #fff; border-color: var(--line); box-shadow: var(--shadow-md); }
.tab:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.tab__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e8ecf8;
  color: var(--blue);
  transition: 0.2s;
}
.tab__icon svg { width: 22px; height: 22px; }
.tab.is-active .tab__icon { background: var(--orange); color: #fff; }
.tab__text { display: flex; flex-direction: column; }
.tab__text strong { font-size: 1rem; }
.tab__text small { color: var(--muted); font-size: 0.85rem; line-height: 1.35; }
.tab__progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--orange); }
.is-autoplay .tab.is-active .tab__progress { animation: progress var(--autoplay) linear forwards; }
@keyframes progress { to { width: 100%; } }

.showcase__stage { min-width: 0; }
.showcase__detail { margin-top: 36px; padding: 0 4%; }
.showcase__detail h3 { color: var(--blue); }
.showcase__detail p { margin-top: 10px; color: var(--muted); font-size: 1.05rem; max-width: 640px; }
.fade-in { animation: fadeIn 0.45s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } }

.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 32px; font-weight: 500; }
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0530f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checklist--inline { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); font-size: 0.95rem; }

/* ===== App do motorista ===== */
.app { padding: 120px 0; overflow: hidden; }
.app__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.app__copy > p { margin-top: 18px; color: var(--muted); font-size: 1.1rem; }
.app__visual { position: relative; display: grid; place-items: center; padding: 20px 0; }
.app__ring {
  position: absolute;
  width: min(520px, 110%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 56, 149, 0.12), transparent 60%), radial-gradient(circle at 70% 30%, rgba(240, 83, 15, 0.16), transparent 50%);
}
.phone {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 9 / 19.5;
  padding: 12px;
  border-radius: 48px;
  background: #111317;
  box-shadow: inset 0 0 0 2px #2c2f36, var(--shadow-lg);
  transform: rotate(-4deg);
  transition: transform 0.5s;
}
.phone:hover { transform: rotate(0); }
.phone__island { position: absolute; z-index: 2; top: 22px; left: 50%; width: 32%; height: 24px; transform: translateX(-50%); background: #000; border-radius: 999px; }
.phone__display { height: 100%; border-radius: 38px; overflow: hidden; background: #fff; }
.phone__display > img,
.phone__display > .screen-placeholder { width: 100%; height: 100%; object-fit: cover; }
.phone__display .screen-placeholder { padding-top: 22%; }
.phone__display .screen-placeholder__grid { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr 2fr; }
.phone__display .screen-placeholder__grid span:nth-child(3) { grid-column: auto; }
.phone__display .screen-placeholder__grid span:nth-child(4) { display: none; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  transition: transform 0.2s, background 0.2s;
}
.store:hover { background: var(--blue); transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; }
.store span { display: flex; flex-direction: column; font-weight: 600; font-size: 1.05rem; line-height: 1.15; }
.store small { font-size: 0.7rem; font-weight: 400; opacity: 0.8; }

/* ===== Operações / carrossel ===== */
.ops { padding: 110px 0; background: var(--bg-soft); }
.ops .section-head { margin-bottom: 48px; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  flex: none;
  margin-right: 24px; /* margem em vez de gap: mantém o loop de -25% exato */
  display: grid;
  place-items: center;
  width: 240px;
  height: 120px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 32px;
}
.marquee__item img { max-height: 56px; width: auto; filter: grayscale(1); opacity: 0.7; transition: 0.3s; }
.marquee__item:hover img { filter: none; opacity: 1; }
.wordmark { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; color: #9aa1b0; transition: color 0.3s; }
.marquee__item:hover .wordmark { color: var(--blue); }
/* A trilha tem 4 cópias do conjunto; desloca 1/4 para o loop ficar contínuo */
@keyframes marquee { to { transform: translateX(-25%); } }

/* ===== CTA final ===== */
.cta { padding: 110px 0; }
.cta__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 56px 64px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.2), transparent 40%),
    linear-gradient(120deg, var(--orange) 0%, #ff7a3d 100%);
  box-shadow: 0 30px 60px -25px rgba(240, 83, 15, 0.7);
}
.cta__box p { margin-top: 10px; font-size: 1.1rem; opacity: 0.9; }

/* ===== Footer ===== */
.footer { background: var(--blue-900); color: rgba(255, 255, 255, 0.65); padding: 48px 0; font-size: 0.9rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer__logo { height: 30px; width: auto; filter: brightness(0) invert(1); }
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer__links a:hover { color: #fff; }
.footer__copy { width: 100%; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); }

/* ===== Reveal ===== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal--delay { transition-delay: 0.15s; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee__track { flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee__item[aria-hidden] { display: none; }
}

/* ===== Responsivo ===== */
@media (max-width: 1024px) {
  .hero__inner, .app__inner { grid-template-columns: 1fr; }
  .hero__copy { text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions, .hero__proof { justify-content: center; }
  .hero__visual { max-width: 720px; margin-inline: auto; width: 100%; }
  .showcase { grid-template-columns: 1fr; gap: 32px; }
  .showcase__tabs { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 12px; margin: 0 -4px; scrollbar-width: none; }
  .showcase__tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; width: auto; scroll-snap-align: start; padding: 10px 14px; }
  .tab__text small { display: none; }
  .tab__icon { width: 36px; height: 36px; }
  .app__visual { order: 2; }
  .cta__box { flex-direction: column; text-align: center; padding: 44px 28px; }
}

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 24px;
    background: #fff;
    box-shadow: 0 20px 30px -20px rgba(0, 0, 0, 0.25);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a:not(.btn),
  .header.is-scrolled .nav a:not(.btn) { color: var(--ink); padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav__login { border-left: 0; padding-left: 4px; }
  .nav .btn { margin-top: 16px; padding: 14px; }
}

@media (max-width: 560px) {
  .hero { padding: calc(var(--header-h) + 40px) 0 80px; }
  .hero__actions .btn { width: 100%; }
  .float-card { padding: 8px 12px; }
  .float-card__value { font-size: 1.1rem; }
  .float-card--a { left: -4px; bottom: 8%; }
  .float-card--b { right: -4px; top: -6%; }
  .features, .app, .ops, .cta { padding: 80px 0; }
  .marquee__item { width: 180px; height: 96px; }
  .laptop__screen { width: 92%; border-radius: 12px 12px 4px 4px; }
  .laptop__base { height: 12px; }
}
