/* ============================================================
   Vitesse — Landing Page
   Stack: HTML/CSS puro. Sem build, sem dependências.
   ============================================================ */

:root {
  /* Marca */
  --brand-blue:   #2563eb;
  --brand-indigo: #4f46e5;
  --brand-violet: #6d28d9;
  --brand-purple: #9333ea;
  --brand-grad:   linear-gradient(135deg, #2563eb 0%, #6d28d9 55%, #9333ea 100%);

  /* Neutros */
  --bg:          #fbfbff;
  --bg-alt:      #f4f4fb;
  --surface:     #ffffff;
  --ink:         #0b0a1f;
  --ink-soft:    #2b2a45;
  --muted:       #5b5a78;
  --line:        #e7e7f2;

  /* Tokens */
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 2px 6px rgba(20, 16, 60, .06);
  --shadow:    0 12px 32px rgba(20, 16, 60, .08);
  --shadow-lg: 0 24px 60px rgba(20, 16, 60, .14);

  /* Container */
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Geist', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3 { font-family: 'Geist', 'Inter', ui-sans-serif, system-ui, sans-serif; font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; margin: 0; }
p  { margin: 0; color: var(--ink-soft); }
ul { margin: 0; padding: 0; list-style: none; }

/* ===== Background mesh ===== */
.mesh {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: radial-gradient(1200px 600px at 90% -10%, rgba(124, 58, 237, .12), transparent 60%),
              radial-gradient(900px 600px at -10% 10%, rgba(37, 99, 235, .12), transparent 60%);
}
.mesh span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.mesh__a { width: 480px; height: 480px; top: -120px; left: -100px;  background: #6d28d9; }
.mesh__b { width: 360px; height: 360px; top: 220px;  right: -80px;  background: #2563eb; }
.mesh__c { width: 300px; height: 300px; top: 720px;  left: 40%;     background: #9333ea; opacity: .25; }

/* ===== Header / Nav (pill flutuante) ===== */
.nav {
  position: sticky; top: 16px; z-index: 50;
  padding: 0 var(--gutter); margin-top: 16px;
  pointer-events: none;
}
.nav__bar {
  pointer-events: auto;
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; gap: 28px;
  padding: 8px 8px 8px 22px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .8) inset,
    0 8px 24px rgba(20, 16, 60, .06),
    0 1px 2px rgba(20, 16, 60, .04);
  transition: background .25s, box-shadow .25s, transform .25s;
}
.nav.is-scrolled .nav__bar {
  background: rgba(255, 255, 255, .9);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .8) inset,
    0 14px 40px rgba(20, 16, 60, .12),
    0 2px 6px rgba(20, 16, 60, .06);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand__name { font-family: 'Geist', 'Inter', sans-serif; font-weight: 700; font-size: 18px; letter-spacing: -.02em; }

.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a {
  font-size: 14px; font-weight: 500; color: var(--muted);
  position: relative; padding: 6px 0;
  transition: color .2s;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--brand-grad); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta {
  padding: 9px 18px; font-size: 13.5px;
  box-shadow: 0 6px 14px rgba(109, 40, 217, .28), inset 0 1px 0 rgba(255,255,255,.18);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  color: #fff; background: var(--brand-grad);
  box-shadow: 0 10px 24px rgba(109, 40, 217, .35), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn--primary:hover { box-shadow: 0 14px 30px rgba(109, 40, 217, .42); transform: translateY(-1px); }
.btn--lg { padding: 18px 28px; font-size: 16px; }
.btn--ghost {
  background: rgba(11, 10, 31, .04); color: var(--ink); border-color: var(--line);
}
.btn--ghost:hover { background: #fff; border-color: #d6d6e6; }
.btn--quiet { color: var(--ink); background: transparent; }
.btn--quiet:hover { color: var(--brand-violet); }

/* ===== Hero ===== */
.hero {
  max-width: var(--container); margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) var(--gutter) clamp(48px, 8vw, 80px);
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 60px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 13px; color: var(--muted); font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.eyebrow__dot {
  width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .15);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

.hero__title {
  font-size: clamp(38px, 5.6vw, 68px);
  margin: 22px 0 18px;
}
.grad {
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero__lede { font-size: clamp(16px, 1.4vw, 18px); max-width: 56ch; }
.hero__lede strong { color: var(--ink); font-weight: 600; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero__metrics {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line);
}
.hero__metrics li {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; color: var(--ink-soft);
}
.hero__metrics strong { color: var(--ink); font-weight: 600; }
.hero__metrics-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  display: grid; place-items: center; color: #fff;
  border-radius: 8px;
  background: var(--brand-grad);
  box-shadow: 0 4px 10px rgba(109, 40, 217, .25);
}

/* Hero visual */
.hero__visual { position: relative; min-height: 420px; }
.card-stack { position: relative; width: 100%; height: 100%; }
.card {
  position: absolute; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 22px;
}
.card--1 {
  top: 8%; left: 6%; width: 78%; padding: 24px;
  animation: float 7s ease-in-out infinite;
}
.card--2 {
  top: 46%; right: 0; width: 62%;
  animation: float 7s ease-in-out -2s infinite;
}
.card--3 {
  bottom: 4%; left: 0; padding: 12px 18px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Geist', 'Inter', sans-serif; font-size: 13px; color: var(--ink);
  animation: float 7s ease-in-out -4s infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.card__row {
  height: 10px; border-radius: 6px;
  background: linear-gradient(90deg, #eef0fb, #f6f6fc);
  margin-bottom: 10px;
}
.card__row--sm { width: 60%; }
.card__row--xs { width: 35%; }
.card__pill {
  width: 86px; height: 22px; border-radius: 999px;
  background: var(--brand-grad); margin-bottom: 14px;
  box-shadow: 0 6px 14px rgba(109, 40, 217, .25);
}
.card__chart {
  display: flex; align-items: flex-end; gap: 8px;
  height: 120px; margin-top: 16px;
}
.card__chart span {
  flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px;
  background: var(--brand-grad); opacity: .85;
}
.card__chart span:nth-child(odd) { opacity: .55; }
.card__dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 0 4px rgba(34,197,94,.15); }
.card__label { font-weight: 600; letter-spacing: -.01em; }

/* ===== Sections ===== */
.section {
  max-width: var(--container); margin: 0 auto;
  padding: clamp(60px, 9vw, 110px) var(--gutter);
}
.section--alt {
  max-width: none; padding-left: 0; padding-right: 0;
  background: linear-gradient(180deg, transparent, var(--bg-alt) 12%, var(--bg-alt) 88%, transparent);
}
.section--alt > * { max-width: var(--container); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.section__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.kicker {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand-violet); background: rgba(109, 40, 217, .08);
  margin-bottom: 16px;
}
.kicker--inverse { color: #c4b5fd; background: rgba(255,255,255,.08); }
.section__head h2 { font-size: clamp(28px, 3.8vw, 44px); }
.section__head p  { margin-top: 14px; color: var(--muted); font-size: 17px; }

/* ===== Pillars ===== */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d6d6e6; }
.pillar__icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; color: #fff;
  background: var(--brand-grad);
  box-shadow: 0 8px 18px rgba(109, 40, 217, .28);
  margin-bottom: 18px;
}
.pillar h3 { font-size: 20px; margin-bottom: 8px; }

/* ===== Services ===== */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.service {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-xl); padding: 36px; overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service h3 { font-size: 24px; margin: 14px 0 12px; }
.service__tag {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: rgba(11, 10, 31, .06); font-size: 12px; font-weight: 600;
  color: var(--ink-soft); letter-spacing: .04em; text-transform: uppercase;
}
.service__tag--accent { color: #fff; background: var(--brand-grad); }
.service--featured {
  border: 1px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--brand-grad) border-box;
  box-shadow: 0 18px 40px rgba(109, 40, 217, .14);
}
.service--featured::after {
  content: ""; position: absolute; inset: auto -40px -60px auto;
  width: 220px; height: 220px; border-radius: 50%;
  background: var(--brand-grad); opacity: .08; filter: blur(10px);
}
.checklist { display: grid; gap: 10px; margin: 18px 0 22px; }
.checklist li {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; color: var(--ink-soft);
}
.checklist li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-grad);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m5 12 5 5 9-11'/></svg>") center / 70% no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m5 12 5 5 9-11'/></svg>") center / 70% no-repeat;
  flex-shrink: 0;
}
.link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--brand-violet);
  position: relative;
}
.link:hover { color: var(--brand-blue); }

/* ===== Diferenciais grid ===== */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d6d6e6; }
.feature__num {
  display: inline-block; font-family: 'Geist', 'Inter', sans-serif; font-weight: 700;
  font-size: 14px; letter-spacing: .04em;
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { font-size: 14.5px; }

/* ===== CTA final ===== */
.cta {
  max-width: var(--container); margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--gutter);
}
.cta__card {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(600px 240px at 100% 0%, rgba(147, 51, 234, .35), transparent 60%),
    radial-gradient(600px 320px at 0% 100%, rgba(37, 99, 235, .35), transparent 60%),
    linear-gradient(180deg, #0e0c2a, #0b0a1f);
  color: #fff; padding: clamp(40px, 6vw, 72px); text-align: center;
  border: 1px solid rgba(255,255,255,.08);
}
.cta__card::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
}
.cta__card > * { position: relative; }
.cta__card h2 { font-size: clamp(28px, 3.8vw, 42px); margin: 14px auto 16px; max-width: 22ch; }
.cta__card p  { color: #c8c6e6; max-width: 56ch; margin: 0 auto 32px; }
.cta__card small { display: block; margin-top: 18px; color: #9b98c8; font-size: 13px; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--line); margin-top: 40px; }
.footer__inner {
  max-width: var(--container); margin: 0 auto; padding: 28px var(--gutter);
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand strong { display: block; font-family: 'Geist', 'Inter', sans-serif; font-size: 17px; }
.footer__brand span { display: block; color: var(--muted); font-size: 13px; }
.footer__links { display: flex; gap: 22px; margin-left: auto; }
.footer__links a { color: var(--muted); font-size: 14px; }
.footer__links a:hover { color: var(--ink); }
.footer__legal { width: 100%; text-align: center; color: var(--muted); font-size: 13px; padding-top: 14px; border-top: 1px dashed var(--line); }

/* ===== WhatsApp floating button ===== */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 14px 30px rgba(18, 140, 126, .45);
  transition: transform .2s, box-shadow .2s;
}
.whatsapp-float::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  background: rgba(37, 211, 102, .35); animation: ring 2.4s ease-out infinite; z-index: -1;
}
@keyframes ring {
  0%   { transform: scale(.9); opacity: .8; }
  100% { transform: scale(1.4); opacity: 0; }
}
.whatsapp-float:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 20px 36px rgba(18, 140, 126, .55); }

/* ===== Reveal-on-scroll ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .nav { top: 12px; margin-top: 12px; }
  .nav__bar { padding: 8px 8px 8px 18px; gap: 12px; }
  .nav__links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .hero__visual { min-height: 360px; order: -1; max-width: 460px; }
  .pillars { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .footer__links { margin-left: 0; flex-wrap: wrap; }
}
@media (max-width: 540px) {
  .grid { grid-template-columns: 1fr; }
  .nav__cta { display: none; }
  .hero__metrics { gap: 24px; }
  .hero__metrics strong { font-size: 24px; }
  .whatsapp-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
