/* =========================================================
   PÁGINA DE ENTRADA — duas metades, dois mundos
   ========================================================= */
body.theme-home { background: #0A0E1A; overflow-x: hidden; }

/* ---------- topo: frase em vidro, lê nos dois fundos ---------- */
.home-top {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  display: grid;
  justify-items: center;
  padding: 26px 20px 0;
  pointer-events: none;
}
.home-glass {
  display: grid; justify-items: center; gap: 6px;
  padding: 16px 36px 14px;
  border-radius: 22px;
  background: rgba(10,14,26,.52);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 30px 60px -30px rgba(0,0,0,.75);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  color: #fff;
  text-align: center;
}
.home-brand { font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: #9AA6B2; }
.home-tag { margin: 0; font-size: clamp(26px, 2.6vw, 40px); line-height: 1; letter-spacing: .01em; display: flex; gap: .4em; color: #fff; }
/* "Duas frentes" junta as duas cores do site */
.home-tag span { background: linear-gradient(92deg, #FFB547 0%, #FF8A3D 35%, #26D9C3 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-q { font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: #C9D0D9; }
.home-q::after { content: "↓"; margin-left: 8px; }

/* ---------- as duas metades ---------- */
.split {
  display: flex;
  min-height: 100vh;
  position: relative;
}
.half {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  padding: 160px clamp(28px, 5vw, 80px) clamp(44px, 6vw, 80px);
  /* o lado só expande depois que o mouse "fica" ali, e expande pouco */
  transition: flex 1.1s var(--ease) .45s;
}
.split:hover .half { flex-grow: .84; }
.split .half:hover { flex-grow: 1.16; }
/* clique na marca central: volta a dividir igual até o mouse sair da área */
.split.is-even .half, .split.is-even .half:hover { flex-grow: 1; transition-delay: 0s; }
.half-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.half-in { position: relative; max-width: 600px; display: grid; gap: 18px; }
.half-kicker {
  width: fit-content;
  font-family: var(--f-display);
  font-stretch: 80%;
  font-weight: 800;
  font-size: clamp(18px, 1.6vw, 24px);
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1;
}
.half h2 { font-size: clamp(52px, 6.2vw, 116px); width: fit-content; max-width: 100%; }
.half p { margin: 0; font-size: clamp(15px, 1.2vw, 18px); max-width: 42ch; }
.half-cta {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  font-size: 16px;
  width: fit-content;
}
.half-cta .arrow {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  transition: transform .5s var(--ease) .45s, box-shadow .4s .45s;
}
.half:hover .half-cta .arrow { transform: translateX(6px) rotate(-45deg); }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); animation: drift 20s ease-in-out infinite alternate; }

/* --- metade 01: clara, laranja, venda --- */
.half-mkt {
  background: linear-gradient(180deg, #F7F8FA 0%, #EEF1F5 100%);
  color: #0F1626;
}
/* etiqueta laranja, levemente torta */
.half-mkt .half-kicker {
  padding: 11px 16px 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, #FFB547, #FF8A3D);
  color: #1A0E00;
  transform: rotate(-2deg);
  box-shadow: 0 14px 30px -14px var(--amber-glow);
}
.half-mkt h2 {
  background: linear-gradient(176deg, #0A0E1A 8%, #2B3547 48%, #0A0E1A 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.half-mkt h2 em { font-style: normal; background: linear-gradient(92deg, #FF8A3D, #FF5E5B); -webkit-background-clip: text; background-clip: text; }
.half-mkt p { color: #4A5568; }
.half-mkt .blob.b1 { width: 760px; height: 760px; right: -220px; top: -260px; background: radial-gradient(circle, rgba(255,181,71,.8), transparent 65%); }
.half-mkt .blob.b2 { width: 560px; height: 560px; left: -220px; bottom: -220px; background: radial-gradient(circle, rgba(255,94,91,.42), transparent 65%); animation-delay: -8s; }
/* botão cheio de laranja */
.half-mkt .half-cta {
  padding: 8px 28px 8px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FFB547, #FF8A3D);
  color: #1A0E00;
  box-shadow: 0 18px 40px -14px var(--amber-glow);
  transition: box-shadow .4s, transform .5s var(--ease);
}
.half-mkt .half-cta .arrow { background: #1A0E00; color: #FFB547; }
.half-mkt:hover .half-cta { box-shadow: 0 0 44px var(--amber-glow); }
/* chips com as logos, maiores: primeira linha define a largura, segunda centrada embaixo */
.half-mkt .door-logos { display: grid; gap: 10px; width: fit-content; max-width: 100%; margin-top: 6px; }
.half-mkt .door-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.half-mkt .door-logos span { flex: none; height: 46px; padding: 0 11px; border-radius: 12px; gap: 7px; box-shadow: 0 10px 24px -10px rgba(10,14,26,.35); border: 1px solid rgba(10,14,26,.06); transition-delay: .45s; }
.half-mkt .door-logos img { height: 22px; }
.half-mkt .door-logos img.ml { height: 27px; }
.half-mkt .door-logos img.sh { height: 24px; }
.half-mkt .door-logos img.amz { height: 18px; }
.half-mkt .door-logos img.mg { height: 22px; }
.half-mkt .door-logos img.shein { height: 14px; }
.half-mkt .door-logos img.tt-i { height: 22px; }
.half-mkt .door-logos img.tt-t { height: 11px; }
.half-mkt .door-logos img.kw { height: 22px; }
.half-mkt .door-logos .wm { font-size: 17px; }
.half-mkt .door-logos .wm.temu { font-weight: 900; letter-spacing: .03em; }
/* faixa laranja de fundo, inclinada */
.half-mkt .kw {
  position: absolute;
  left: -10%; right: -10%; top: 26%;
  padding: 13px 0;
  background: linear-gradient(90deg, #FFC66B, #FF9A4D 50%, #FFC66B);
  color: #1A0E00;
  transform: rotate(-8deg);
  overflow: hidden;
  font-family: var(--f-display); font-stretch: 72%; font-weight: 860; text-transform: uppercase; font-size: 21px; letter-spacing: .02em;
  box-shadow: 0 30px 60px -30px rgba(255,138,61,.7);
  opacity: .92;
}
.half-mkt .kw span { display: inline-block; white-space: nowrap; animation: marquee 40s linear infinite; }
/* pedidos subindo: um aviso por vez, acima da etiqueta, número crescendo */
.half-mkt .toasts { position: relative; display: grid; height: 48px; width: 250px; margin-bottom: 2px; }
.half-mkt .toast {
  position: static;
  grid-area: 1 / 1;
  align-self: start;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px 9px 10px;
  border-radius: 14px;
  background: #fff; color: #0F1626;
  border: 1px solid rgba(10,14,26,.08);
  box-shadow: 0 20px 40px -20px rgba(10,14,26,.3);
  font-size: 12.5px; font-weight: 600;
  opacity: 0; transform: translateY(14px);
  animation: toastHome 10s ease-in-out infinite;
}
.half-mkt .toast.t2 { animation-delay: 2.5s; }
.half-mkt .toast.t3 { animation-delay: 5s; }
.half-mkt .toast.t4 { animation-delay: 7.5s; }
.half-mkt .toast .up { width: 28px; height: 28px; border-radius: 9px; background: rgba(255,138,61,.16); color: #C2410C; display: grid; place-items: center; font-weight: 900; font-size: 14px; }
.half-mkt .toast b { font-family: var(--f-display); font-stretch: 80%; font-weight: 800; font-size: 19px; letter-spacing: -.01em; color: #0F1626; margin-right: 2px; }
.half-mkt .toast .ch { margin-left: auto; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; color: #8A94A6; }
@keyframes toastHome { 0% { opacity: 0; transform: translateY(14px); } 4%, 21% { opacity: 1; transform: none; } 25%, 100% { opacity: 0; transform: translateY(-14px); } }

/* --- metade 02: escura e teal --- */
.half-auto {
  --mx: 50%; --my: 40%;
  background:
    radial-gradient(560px circle at var(--mx) var(--my), rgba(38,217,195,.14), transparent 45%),
    linear-gradient(180deg, #080C16 0%, #0A0E1A 100%);
  color: var(--text);
}
.half-auto .half-kicker { color: var(--teal); padding-left: 14px; border-left: 3px solid var(--teal); }
.half-auto p { color: var(--t2); }
/* frase de impacto */
.half .half-punch {
  max-width: 30ch;
  padding-left: 14px;
  border-left: 3px solid rgba(255,255,255,.18);
  font-family: var(--f-display); font-stretch: 85%; font-weight: 700;
  font-size: clamp(19px, 1.6vw, 26px); line-height: 1.12;
  color: #E6EAF0;
}
.half .half-punch b { color: var(--teal); font-weight: 800; }
.half-auto .blob.b1 { width: 700px; height: 700px; left: -220px; top: -200px; background: radial-gradient(circle, rgba(38,217,195,.32), transparent 65%); }
.half-auto .blob.b2 { width: 560px; height: 560px; right: -200px; bottom: -220px; background: radial-gradient(circle, rgba(139,124,255,.26), transparent 65%); animation-delay: -10s; }
.half-auto .grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(154,166,178,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(154,166,178,.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 35%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 10%, transparent 70%);
}
.half-auto .hub { position: absolute; right: 4%; top: 12%; width: min(62%, 520px); opacity: .9; transition: opacity .6s .45s, transform .9s var(--ease) .45s; }
.half-auto:hover .hub { opacity: 1; transform: scale(1.04); }
.half-auto .hub .link { stroke: rgba(38,217,195,.35); stroke-width: 1.3; fill: none; stroke-dasharray: 5 7; animation: dash 1s linear infinite; }
.half-auto .hub .node rect { fill: #0B111F; stroke: rgba(255,255,255,.14); }
.half-auto .hub .node text { fill: #D3DAE3; font: 700 11px var(--f-body); }
.half-auto .hub .core rect { fill: rgba(38,217,195,.14); stroke: var(--teal); filter: drop-shadow(0 0 18px rgba(38,217,195,.6)); }
.half-auto .hub .core text { fill: #fff; font: 800 12px var(--f-body); }
.half-auto .hub .pulse { fill: var(--teal); filter: drop-shadow(0 0 6px var(--teal)); }
.half-auto .half-cta { color: #fff; }
.half-auto .half-cta .arrow { background: linear-gradient(135deg, var(--teal), var(--blue)); color: #04110F; box-shadow: 0 10px 30px -10px var(--teal-glow); }
.half-auto:hover .half-cta .arrow { box-shadow: 0 0 36px var(--teal-glow); }

/* ---------- marca redonda grande no centro ----------
   muda de cor conforme a metade sob o mouse; clique reequilibra */
.seam {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(180px, 19vw, 270px);
  height: clamp(180px, 19vw, 270px);
  border-radius: 50%;
  display: grid; place-content: center; justify-items: center; gap: 8px;
  padding-top: 6px;
  background: #0A0E1A;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 0 0 12px rgba(10,14,26,.28), 0 40px 90px -30px rgba(0,0,0,.85);
  z-index: 4;
  cursor: pointer;
  transition: background .6s var(--ease) .45s, border-color .6s .45s, box-shadow .6s .45s, transform .5s var(--ease);
}
.seam:hover { transform: translate(-50%, -50%) scale(1.04); }
.seam:active { transform: translate(-50%, -50%) scale(.98); }
.seam img { width: clamp(84px, 9vw, 130px); height: auto; transition: filter .6s .45s; }
.seam b {
  font-family: var(--f-display);
  font-stretch: 80%;
  font-weight: 800;
  font-size: clamp(13px, 1.3vw, 18px);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #E6EAF0;
  transition: color .6s .45s;
}
/* passando pela metade clara: a marca vira clara com o símbolo escuro */
.split:has(.half-mkt:hover) .seam {
  background: #F7F8FA;
  border-color: rgba(10,14,26,.1);
  box-shadow: 0 0 0 12px rgba(255,255,255,.35), 0 40px 90px -30px rgba(255,138,61,.6);
}
.split:has(.half-mkt:hover) .seam img { filter: brightness(0) opacity(.92); }
.split:has(.half-mkt:hover) .seam b { color: #0F1626; }
/* passando pela metade escura: brilho teal */
.split:has(.half-auto:hover) .seam { box-shadow: 0 0 0 12px rgba(10,14,26,.35), 0 0 80px -10px rgba(38,217,195,.6), 0 40px 90px -30px rgba(0,0,0,.85); }

/* ---------- quem somos, curto ---------- */
.home-about { padding: clamp(80px, 10vw, 130px) 0; border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }
.about-grid h2 { font-size: clamp(40px, 5vw, 76px); margin-top: 16px; }
/* nome da empresa maior e sem traço na frente */
.home-about .eyebrow { font-family: var(--f-display); font-stretch: 80%; font-weight: 800; font-size: clamp(18px, 1.7vw, 26px); letter-spacing: .12em; color: var(--teal); }
.home-about .eyebrow::before { display: none; }
.about-txt p { margin: 0; color: var(--t1); font-size: 17px; }
.about-proof { display: grid; gap: 10px; margin: 26px 0; color: var(--muted); font-size: 14.5px; }
.about-proof b { color: #fff; font-family: var(--f-display); font-stretch: 75%; font-weight: 800; font-size: 20px; margin-right: 6px; }
.about-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- celular: metades empilhadas ---------- */
@media (max-width: 900px) {
  .home-top { padding-top: 20px; }
  .home-glass { padding: 12px 22px 10px; gap: 4px; }
  .home-tag { font-size: 24px; flex-direction: column; align-items: center; gap: 2px; }
  .split { flex-direction: column; }
  .half { flex: none; min-height: 78vh; padding-top: 120px; align-items: flex-end; transition: none; }
  .half:first-child { padding-top: 290px; }
  .split:hover .half, .split .half:hover { flex-grow: 0; }
  .half-mkt .kw { top: 190px; }
  .half-mkt .door-logos { width: 100%; }
  .half-mkt .door-logos span { height: 42px; padding: 0 12px; }
  .half-auto { padding-top: 270px; }
  .half-auto .hub { width: 74%; right: -6%; top: 40px; opacity: .7; }
  .seam { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 26px; }
}

/* ---------- correção só no celular (até 760px): diagrama da Automação inteiro na tela ---------- */
@media (max-width: 760px) {
  .half-auto .hub { width: 88%; right: 6%; top: 30px; }
}
