/* ============================================================
   Alesolutions — Landing Page
   Tema claro tech · minimalista · com movimento
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #f6f8fb;
  --bg-soft: #eef2f8;
  --surface: #ffffff;
  --surface-2: #fbfcfe;
  --text: #0c1322;
  --text-soft: #4a5568;
  --text-mute: #8a96aa;
  --line: #e4e9f2;

  --brand: #2563eb;
  --brand-2: #7c3aed;
  --brand-3: #06b6d4;
  --accent: #0ea5e9;

  --grad: linear-gradient(120deg, #2563eb 0%, #7c3aed 50%, #06b6d4 100%);
  --grad-soft: linear-gradient(120deg, rgba(37,99,235,.12), rgba(124,58,237,.12));

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 8px rgba(15, 23, 42, .04);
  --shadow: 0 8px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .12);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 1160px;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', system-ui, 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-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font: inherit; }
ul { list-style: none; padding: 0; }

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

/* ---------- Background decorativo ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to right, rgba(37, 99, 235, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(37, 99, 235, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}
.bg-glow {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  pointer-events: none;
  will-change: transform;
}
.bg-glow--1 {
  width: 480px; height: 480px;
  top: -120px; left: -120px;
  background: radial-gradient(circle, rgba(37,99,235,.35), transparent 70%);
  animation: floatGlow 14s ease-in-out infinite;
}
.bg-glow--2 {
  width: 420px; height: 420px;
  top: 120px; right: -140px;
  background: radial-gradient(circle, rgba(124,58,237,.28), transparent 70%);
  animation: floatGlow 18s ease-in-out infinite reverse;
}
@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: -.01em;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn--lg { padding: 14px 26px; font-size: 1rem; }
.btn--primary {
  background: var(--grad);
  background-size: 180% 180%;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, .32);
  animation: gradShift 6s ease infinite;
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(37, 99, 235, .42); }
.btn--primary:hover svg { transform: translateX(4px); }
.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand); }
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
}
.nav.scrolled {
  background: rgba(246, 248, 251, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .05);
  padding: 10px 0;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.nav__logo { display: inline-flex; align-items: center; }
.nav__logo-image { display: block; width: auto; height: 58px; max-width: min(280px, 55vw); object-fit: contain; }

.nav__menu { display: flex; align-items: center; gap: 6px; }
.nav__link {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  font-weight: 500;
  font-size: .95rem;
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav__link::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--grad); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__cta-mobile { display: none; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 150px 0 80px; position: relative; }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .82rem; font-weight: 500; color: var(--text-soft);
  box-shadow: var(--shadow-sm);
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(34,197,94,.18); } 50% { box-shadow: 0 0 0 7px rgba(34,197,94,.05); } }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 700;
  margin: 22px 0 18px;
}
.text-grad { background: var(--grad); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradShift 6s ease infinite; }

.hero__subtitle { font-size: 1.12rem; color: var(--text-soft); max-width: 520px; margin-bottom: 32px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }

.hero__stats { display: flex; gap: 36px; }
.stat { display: flex; flex-direction: column; }
.stat__num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { font-size: .85rem; color: var(--text-mute); }

/* ---------- Code card visual ---------- */
.hero__visual { position: relative; }
.code-card {
  background: #0c1322;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  transition: transform .5s var(--ease);
}
.code-card:hover { transform: perspective(1000px) rotateY(0) rotateX(0); }
.code-card__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot--red { background: #ff5f57; } .dot--amber { background: #febc2e; } .dot--green { background: #28c840; }
.code-card__file { margin-left: 10px; font-size: .8rem; color: #8a96aa; font-family: var(--font-display); }
.code-card__body { padding: 22px 24px 28px; margin: 0; font-family: 'SF Mono', 'Fira Code', Consolas, monospace; font-size: .9rem; line-height: 1.7; color: #c8d3e6; overflow-x: auto; }
.code-card__body code { font-family: inherit; }
.c-kw { color: #c084fc; } .c-fn { color: #38bdf8; } .c-typ { color: #5eead4; } .c-str { color: #fcd34d; } .c-cmt { color: #64748b; font-style: italic; }

.float-chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600; font-size: .85rem;
  box-shadow: var(--shadow);
  animation: chipFloat 5s ease-in-out infinite;
}
.float-chip svg { width: 18px; height: 18px; color: var(--brand); }
.float-chip--1 { top: -18px; right: 30px; animation-delay: 0s; }
.float-chip--2 { bottom: 40px; left: -30px; animation-delay: 1.5s; }
.float-chip--3 { bottom: -18px; right: 60px; animation-delay: 3s; }
@keyframes chipFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Trust strip ---------- */
.trust { padding: 20px 0 30px; }
.trust__label { text-align: center; font-size: .82rem; color: var(--text-mute); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.trust__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 36px; }
.trust__item { font-family: var(--font-display); font-weight: 600; color: var(--text-mute); font-size: 1.05rem; transition: color .25s var(--ease); }
.trust__item:hover { color: var(--brand); }

/* ---------- Sections ---------- */
.section { padding: 90px 0; position: relative; }
.section--alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section__eyebrow { display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.section__title { font-family: var(--font-display); font-size: clamp(1.9rem, 3.5vw, 2.7rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; }
.section__desc { margin-top: 16px; color: var(--text-soft); font-size: 1.05rem; }

/* ---------- Cards (serviços) ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card:hover::before { opacity: 1; }
.card--featured { background: linear-gradient(180deg, var(--surface), var(--surface-2)); box-shadow: var(--shadow); }
.card--featured::before { opacity: 1; }
.card__tag {
  position: absolute; top: 18px; right: 18px;
  background: var(--grad); color: #fff;
  font-size: .72rem; font-weight: 600; letter-spacing: .03em;
  padding: 5px 12px; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(37,99,235,.3);
}
.card__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--grad-soft);
  color: var(--brand);
  margin-bottom: 20px;
  transition: transform .4s var(--ease);
}
.card:hover .card__icon { transform: scale(1.08) rotate(-4deg); }
.card__icon svg { width: 26px; height: 26px; }
.card__title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: 10px; }
.card__text { color: var(--text-soft); margin-bottom: 18px; }
.card__list { display: flex; flex-direction: column; gap: 8px; }
.card__list li { position: relative; padding-left: 26px; font-size: .92rem; color: var(--text-soft); }
.card__list li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--grad-soft);
}
.card__list li::after {
  content: ''; position: absolute; left: 5px; top: 11px;
  width: 6px; height: 3px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

/* ---------- Steps (processo) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  position: relative;
  padding: 30px 24px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); background: var(--surface); }
.step__num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step__title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin: 10px 0 8px; }
.step__text { font-size: .92rem; color: var(--text-soft); }

/* ---------- Feats (diferenciais) ---------- */
.feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feat {
  display: flex; gap: 18px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feat__icon { flex-shrink: 0; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--grad-soft); color: var(--brand); }
.feat__icon svg { width: 24px; height: 24px; }
.feat__title { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; margin-bottom: 6px; }
.feat__text { color: var(--text-soft); font-size: .95rem; }

/* ---------- CTA ---------- */
.cta { padding: 60px 0 100px; }

/* ---------- Impacto / métricas ---------- */
.impact { padding: 24px 0 10px; }
.impact__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  box-shadow: var(--shadow);
}
.impact__item { display: flex; flex-direction: column; gap: 4px; min-width: 130px; flex: 1; }
.impact__num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 700; letter-spacing: -.03em; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.impact__label { font-size: .82rem; color: var(--text-mute); line-height: 1.35; }
.impact__sep { width: 1px; align-self: stretch; background: var(--line); }

/* ---------- Filtros ---------- */
.filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-bottom: 40px;
}
.filter {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-weight: 500; font-size: .9rem;
  transition: all .3s var(--ease);
}
.filter:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.filter.is-active {
  background: var(--grad); color: #fff; border-color: transparent;
  box-shadow: 0 8px 20px rgba(37,99,237,.3);
}

/* ---------- Projetos (grid) ---------- */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project {
  display: grid; grid-template-columns: 200px 1fr; gap: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(37,99,235,.3); }
.project.hide { display: none; }

.project__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.project__tag {
  font-family: var(--font-display); font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--brand);
  background: var(--grad-soft); padding: 4px 10px; border-radius: 999px;
}
.project__dot { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; color: var(--text-mute); }
.project__dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); animation: pulse 2s infinite; }
.project__title { font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: 8px; line-height: 1.25; }
.project__text { font-size: .92rem; color: var(--text-soft); margin-bottom: 14px; }
.project__stack { display: flex; flex-wrap: wrap; gap: 6px; }
.project__stack li {
  font-size: .74rem; font-weight: 500; color: var(--text-soft);
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: 3px 9px; border-radius: 6px;
}

.projects__note { text-align: center; margin-top: 40px; color: var(--text-mute); font-size: .95rem; }

/* ---------- Mockups SVG/CSS (telas dos projetos) ---------- */
.project__mock { position: relative; }
.mock {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #0c1322;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 30px rgba(15,23,42,.18);
  aspect-ratio: 4 / 3;
  transition: transform .5s var(--ease);
}
.project:hover .mock { transform: translateY(-3px) rotate(-1deg); }
.mock__topbar {
  display: flex; align-items: center; gap: 5px;
  padding: 9px 11px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.mock__topbar span { width: 7px; height: 7px; border-radius: 50%; }
.mock__topbar span:nth-child(1) { background: #ff5f57; }
.mock__topbar span:nth-child(2) { background: #febc2e; }
.mock__topbar span:nth-child(3) { background: #28c840; }
.mock__topbar i { margin-left: auto; width: 26px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); display: inline-block; }
.mock__body { padding: 12px; display: flex; flex-direction: column; gap: 10px; height: calc(100% - 28px); }

/* dashboard mock */
.mock--dashboard .mock__kpis { display: flex; gap: 8px; }
.mock--dashboard .mkt { flex: 1; background: rgba(255,255,255,.04); border-radius: 6px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.mock--dashboard .mkt b { height: 8px; border-radius: 4px; background: var(--grad); display: block; }
.mock--dashboard .mkt i { height: 5px; border-radius: 3px; background: rgba(255,255,255,.14); display: block; width: 70%; }
.mock--dashboard .mock__chart { flex: 1; background: rgba(255,255,255,.03); border-radius: 6px; padding: 6px; }
.mock--dashboard .mock__chart svg { width: 100%; height: 100%; }
.ln-a { fill: none; stroke: #38bdf8; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ln-b { fill: none; stroke: #c084fc; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }

/* table mock */
.mock--table .mock__rows { display: flex; flex-direction: column; gap: 7px; }
.mrow { display: flex; gap: 8px; align-items: center; }
.mrow i { height: 7px; border-radius: 3px; background: rgba(255,255,255,.16); display: block; }
.mrow--head i { background: var(--grad); opacity: .8; }

/* map mock */
.mock__body--map { padding: 0; position: relative; }
.mock__body--map svg { width: 100%; height: 100%; position: absolute; inset: 0; }
.route { fill: none; stroke: #38bdf8; stroke-width: 2.5; stroke-dasharray: 5 4; stroke-linecap: round; }
.pin { fill: #7c3aed; }
.pin--a { fill: #28c840; } .pin--c { fill: #ff5f57; }
.mock__mapcard {
  position: absolute; bottom: 10px; left: 10px;
  background: rgba(12,19,34,.85); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.12); border-radius: 8px;
  padding: 8px 11px; display: flex; flex-direction: column; gap: 2px;
}
.mock__mapcard b { color: #fff; font-size: .8rem; font-family: var(--font-display); }
.mock__mapcard i { color: #8a96aa; font-size: .68rem; font-style: normal; }

/* people mock */
.mock--people .mock__avatar-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.mava { aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.1); }
.mava:nth-child(odd) { background: var(--grad); opacity: .6; }
.mock--people .mock__bars { display: flex; gap: 6px; align-items: flex-end; height: 40px; margin-top: 4px; }
.mbar { flex: 1; height: 100%; background: rgba(255,255,255,.05); border-radius: 4px; display: flex; align-items: flex-end; }
.mbar b { width: 100%; background: var(--grad); border-radius: 4px; display: block; }

/* funnel mock */
.mock__funnel { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 0; }
.mock__funnel span {
  background: var(--grad); height: 16px; border-radius: 5px; display: block;
  color: transparent; max-width: 100%;
}

/* chat mock */
.mock__body--chat { gap: 7px; justify-content: center; padding: 14px 10px; }
.msg { display: flex; gap: 4px; }
.msg--in { justify-content: flex-start; }
.msg--out { justify-content: flex-end; }
.msg span { height: 7px; border-radius: 4px; display: block; }
.msg--in span { background: rgba(255,255,255,.14); }
.msg--in span:first-child { width: 55%; }
.msg--in span:nth-child(2) { width: 30%; }
.msg--out span { background: var(--grad); }
.msg--out span:first-child { width: 45%; }
.msg--out span:nth-child(2) { width: 25%; }

/* barcode/estoque mock */
.mock--barcode .mock__scan { flex: 1; background: rgba(255,255,255,.03); border-radius: 6px; padding: 10px; position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.mock__bars-v { display: flex; gap: 3px; align-items: flex-end; height: 60%; }
.mock__bars-v i { width: 4px; background: rgba(255,255,255,.5); display: block; }
.mock__laser { position: absolute; left: 8px; right: 8px; height: 2px; background: #ff5f57; box-shadow: 0 0 8px #ff5f57; top: 50%; animation: laser 2.4s ease-in-out infinite; }
@keyframes laser { 0%,100% { top: 20%; } 50% { top: 80%; } }
.mock--barcode .mock__stock { display: flex; gap: 8px; }
.ms-item { flex: 1; background: rgba(255,255,255,.04); border-radius: 6px; padding: 7px; display: flex; align-items: center; gap: 6px; }
.ms-item b { width: 10px; height: 10px; border-radius: 3px; background: var(--grad); flex-shrink: 0; }
.ms-item i { font-size: .66rem; color: #b4c0d6; font-style: normal; }

/* hub mock */
.mock__tiles { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; height: 100%; }
.mtile { background: rgba(255,255,255,.05); border-radius: 8px; border: 1px solid rgba(255,255,255,.06); position: relative; }
.mtile:nth-child(1), .mtile:nth-child(4) { background: var(--grad); opacity: .55; }
.mtile:nth-child(2), .mtile:nth-child(5) { background: rgba(56,189,248,.18); }

/* ---------- Stack técnica ---------- */
.stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stack__group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stack__title { font-family: var(--font-display); font-size: 1rem; font-weight: 600; margin-bottom: 14px; color: var(--text); }
.stack__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.stack__chips span {
  font-size: .82rem; font-weight: 500; color: var(--text-soft);
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 8px;
  transition: all .25s var(--ease);
}
.stack__chips span:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }

/* ---------- Responsive projetos ---------- */
@media (max-width: 900px) {
  .projects { grid-template-columns: 1fr; }
  .stack { grid-template-columns: 1fr; }
  .impact__sep { display: none; }
}
@media (max-width: 560px) {
  .project { grid-template-columns: 1fr; gap: 16px; }
  .project__mock { max-width: 200px; }
}

.cta__card {
  position: relative;
  background: linear-gradient(135deg, #0c1322, #1a2747);
  border-radius: 32px;
  padding: 60px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta__glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(37,99,235,.4), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(124,58,237,.4), transparent 45%);
  pointer-events: none;
}
.cta__content { position: relative; max-width: 680px; }
.cta__title { font-family: var(--font-display); color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.5rem); line-height: 1.1; letter-spacing: -.03em; margin: 14px 0 14px; }
.cta__desc { color: #b4c0d6; font-size: 1.05rem; margin-bottom: 32px; }

/* ---------- Form ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__field { position: relative; }
.form__field input,
.form__field textarea {
  width: 100%;
  padding: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  color: #fff;
  resize: vertical;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.form__field textarea { min-height: 90px; }
.form__field input::placeholder,
.form__field textarea::placeholder { color: transparent; }
.form__field label {
  position: absolute; left: 16px; top: 16px;
  color: #8a96aa; pointer-events: none;
  transition: all .25s var(--ease);
}
.form__field input:focus,
.form__field textarea:focus { outline: none; border-color: var(--brand-3); background: rgba(255,255,255,.1); }
.form__field input:focus + label,
.form__field input:not(:placeholder-shown) + label,
.form__field textarea:focus + label,
.form__field textarea:not(:placeholder-shown) + label {
  top: -8px; left: 12px; font-size: .72rem; padding: 0 6px; background: #1a2747; border-radius: 4px; color: var(--brand-3);
}
.form__submit { align-self: flex-start; margin-top: 4px; }
.form__note { font-size: .9rem; color: #5eead4; min-height: 1.2em; }

.cta__contact { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); }
.cta__contact-item { display: inline-flex; align-items: center; gap: 8px; color: #c8d3e6; font-weight: 500; font-size: .95rem; transition: color .25s var(--ease); }
.cta__contact-item svg { width: 20px; height: 20px; color: var(--brand-3); }
.cta__contact-item:hover { color: #fff; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 50px 0 30px; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; padding-bottom: 30px; }
.footer__tagline { color: var(--text-mute); font-size: .92rem; margin-top: 12px; max-width: 280px; }
.footer__links { display: flex; flex-direction: column; gap: 10px; text-align: right; }
.footer__links a { color: var(--text-soft); font-weight: 500; transition: color .25s var(--ease); }
.footer__links a:hover { color: var(--brand); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text-mute); font-size: .85rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 60px; }
  .hero__visual { max-width: 460px; margin: 0 auto; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .feats { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav__logo-image { height: 48px; max-width: 58vw; }
  .nav__menu {
    position: fixed;
    top: 0; right: 0;
    height: 100vh; width: min(80vw, 320px);
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    z-index: 99;
  }
  .nav__menu.open { transform: translateX(0); }
  .nav__link { font-size: 1.2rem; }
  .nav__cta-mobile { display: inline-flex; margin-top: 12px; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; z-index: 101; }
  .nav__toggle.active span { background: var(--text); }

  .hero { padding: 120px 0 60px; }
  .hero__stats { gap: 24px; flex-wrap: wrap; }
  .steps { grid-template-columns: 1fr; }
  .cta__card { padding: 36px 24px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; }
  .footer__links { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
