/* ─────────────────────────────────────────────
   HERO LIVE
   Split assimétrico: texto à esquerda 40%, marquee vertical à direita 60%.
   Marquee infinito com mix de UI screenshots + fotos editoriais.
   Cursor ghost flutuando sobre uma das imagens UI.
   ───────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px 0 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  width: 100%;
}

/* ─── Coluna esquerda: copy ─────────────────────── */

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 560px;
}

.hero__eyebrow {
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 800ms var(--ease-out) 100ms forwards;
}

.hero h1 {
  margin-bottom: 28px;
}

/* Letra a letra na headline com stagger */
.hero h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  animation: wordIn 900ms var(--ease-out) forwards;
}

@keyframes wordIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__sub {
  margin: 0 0 44px;
  opacity: 0;
  animation: fadeUp 800ms var(--ease-out) 700ms forwards;
}

.hero__ctas {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 800ms var(--ease-out) 850ms forwards;
}

.hero__signal {
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  opacity: 0;
  animation: fadeUp 800ms var(--ease-out) 1000ms forwards;
}

.hero__signal .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.55);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.55); }
  70%  { box-shadow: 0 0 0 12px rgba(20, 184, 166, 0); }
  100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0); }
}

/* ─── Coluna direita: marquee vertical ─────────────────────── */

.hero__visual {
  position: relative;
  height: clamp(540px, 78vh, 760px);
  overflow: hidden;
  border-radius: var(--radius-md);
  isolation: isolate;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.marquee {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  position: relative;
}

.marquee__col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: scrollUp 60s linear infinite;
  will-change: transform;
}

.marquee__col--reverse {
  animation: scrollDown 70s linear infinite;
  margin-top: -100px;
}

@keyframes scrollUp {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

@keyframes scrollDown {
  from { transform: translateY(-50%); }
  to   { transform: translateY(0); }
}

.hero__visual:hover .marquee__col {
  animation-play-state: paused;
}

.tile {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  box-shadow:
    0 1px 0 0 rgba(10, 10, 18, 0.04),
    0 8px 24px -12px rgba(10, 10, 18, 0.18);
  flex-shrink: 0;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tile--ui {
  aspect-ratio: 4 / 5.5;
  background: var(--ink);
  padding: 14px;
}

.tile--ui img {
  border-radius: 10px;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.tile--photo {
  aspect-ratio: 4 / 5;
}

.tile--photo img {
  filter: saturate(0.85) contrast(1.05);
}

.tile--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,18,0) 50%, rgba(10,10,18,0.55) 100%);
  pointer-events: none;
}

.tile__caption {
  position: absolute;
  inset: auto 14px 14px 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(251, 250, 247, 0.92);
  z-index: 2;
}

/* ─── Data tiles (renderizados em HTML, dados do app) ─────────────────────── */

.tile--data {
  aspect-ratio: 4 / 5;
  background: var(--surface);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(10, 10, 18, 0.05);
}

/* Variante dark — bg ink com mesh purple+teal forte (não sutil) */
.tile--data-dark {
  background: var(--ink);
  border-color: rgba(255, 255, 255, 0.06);
  color: var(--text-on-ink);
  position: relative;
}

.tile--data-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(124, 58, 237, 0.55) 0%, transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(20, 184, 166, 0.28) 0%, transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(226, 82, 45, 0.22) 0%, transparent 50%);
  pointer-events: none;
  border-radius: inherit;
  mix-blend-mode: screen;
}

.tile--data-dark > * { position: relative; z-index: 1; }

.tile--data-dark .data-card__eyebrow,
.tile--data-dark .data-stat__eyebrow,
.tile--data-dark .data-compare__eyebrow {
  color: var(--terracota);
}

.tile--data-dark .data-bars .lbl,
.tile--data-dark .data-bars .val,
.tile--data-dark .data-stat__num,
.tile--data-dark .data-compare__num {
  color: var(--text-on-ink);
}

.tile--data-dark .data-bars .bar {
  background: rgba(255, 255, 255, 0.08);
}

.tile--data-dark .data-bars .bar i {
  background: var(--text-on-ink);
}

.tile--data-dark .data-bars li:first-child .bar i {
  background: var(--purple);
  box-shadow: 0 0 16px -2px rgba(124, 58, 237, 0.55);
}

.tile--data-dark .data-stat__row {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.tile--data-dark .data-stat__row b { color: var(--text-on-ink); }
.tile--data-dark .data-stat__row span { color: rgba(251, 250, 247, 0.5); }

.tile--data-dark .data-stat__lbl {
  color: rgba(251, 250, 247, 0.7);
}

/* Variante purple-soft — bg discreto, sinaliza marca sem agredir */
.tile--data-soft {
  background: var(--purple-soft);
  border-color: rgba(124, 58, 237, 0.12);
}

.tile--data-soft .data-card__eyebrow,
.tile--data-soft .data-stat__eyebrow {
  color: var(--purple);
}

.tile--data-soft .data-bars li:first-child .bar i {
  background: var(--purple);
}

.tile--data-soft .data-stat__num sup {
  color: var(--purple);
}

.tile--data-soft .data-stat__row {
  border-top-color: rgba(124, 58, 237, 0.18);
}

/* Variante purple SATURADO — bg roxo da marca cheio, texto branco */
.tile--data-purple {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.18) 0%, transparent 50%),
    linear-gradient(155deg, #8B47F2 0%, #6B2DD9 100%);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-on-ink);
  position: relative;
  overflow: hidden;
}

.tile--data-purple::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 100%, rgba(226, 82, 45, 0.25) 0%, transparent 50%);
  pointer-events: none;
}

.tile--data-purple > * { position: relative; z-index: 1; }

.tile--data-purple .data-card__eyebrow,
.tile--data-purple .data-stat__eyebrow,
.tile--data-purple .data-compare__eyebrow {
  color: rgba(255, 255, 255, 0.85);
}

.tile--data-purple .data-bars .lbl,
.tile--data-purple .data-bars .val {
  color: var(--text-on-ink);
}

.tile--data-purple .data-bars .bar {
  background: rgba(255, 255, 255, 0.18);
}

.tile--data-purple .data-bars .bar i {
  background: rgba(255, 255, 255, 0.92);
}

.tile--data-purple .data-bars li:first-child .bar i {
  background: var(--terracota);
  box-shadow: 0 0 14px -2px rgba(226, 82, 45, 0.6);
}

.tile--data-purple .data-card__pulse {
  background: var(--terracota);
  box-shadow: 0 0 0 0 rgba(226, 82, 45, 0.55);
}

/* Variante terracota-soft — warm pêssego, traz a 3ª cor da paleta */
.tile--data-warm {
  background: var(--terracota-soft);
  border-color: rgba(226, 82, 45, 0.15);
}

.tile--data-warm .data-card__eyebrow {
  color: var(--terracota);
}

.tile--data-warm .data-tasks li.active {
  background: rgba(124, 58, 237, 0.1);
}

.tile--data-warm .data-progress {
  background: rgba(226, 82, 45, 0.18);
}

.data-card,
.data-stat,
.data-compare {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.data-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.data-card__eyebrow,
.data-stat__eyebrow,
.data-compare__eyebrow {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracota);
  font-weight: 500;
}

.data-card__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.55);
  animation: pulse 2.4s ease-out infinite;
}

/* Bars de incidência */
.data-bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  justify-content: center;
}

.data-bars li {
  display: grid;
  grid-template-columns: 70px 1fr 32px;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-2);
}

.data-bars .lbl {
  font-weight: 450;
  color: var(--text);
}

.data-bars .bar {
  height: 5px;
  background: rgba(10, 10, 18, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.data-bars .bar i {
  display: block;
  height: 100%;
  background: var(--ink);
  border-radius: 999px;
  animation: barGrow 1.2s var(--ease-out) forwards;
  transform-origin: left;
}

.data-bars li:first-child .bar i {
  background: var(--purple);
  box-shadow: 0 0 12px -2px rgba(124, 58, 237, 0.5);
}

@keyframes barGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.data-bars .val {
  text-align: right;
  font-size: 10px;
  font-weight: 500;
  color: var(--text);
}

/* Tarefas do dia */
.data-tasks {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.data-tasks li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  padding: 8px 12px;
  background: var(--bg-2);
  border-radius: 8px;
  color: var(--text-2);
  position: relative;
  padding-left: 26px;
}

.data-tasks li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--text-3);
  background: transparent;
}

.data-tasks li.done {
  color: var(--text);
  background: rgba(34, 197, 94, 0.06);
}

.data-tasks li.done::before {
  background: var(--pulse-green);
  border-color: var(--pulse-green);
  box-shadow: inset 0 0 0 2px white;
}

.data-tasks li.active {
  color: var(--text);
  background: rgba(124, 58, 237, 0.08);
}

.data-tasks li.active::before {
  background: var(--purple);
  border-color: var(--purple);
  animation: pulsePurple 2.4s ease-out infinite;
}

@keyframes pulsePurple {
  0%   { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(124, 58, 237, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
}

.data-progress {
  height: 4px;
  background: rgba(10, 10, 18, 0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}

.data-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--terracota));
  border-radius: 999px;
  animation: barGrow 1.4s var(--ease-out) forwards;
  transform-origin: left;
}

.data-progress__lbl {
  font-size: 9.5px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

/* Big stat tile */
.data-stat {
  justify-content: space-between;
}

.data-stat__num {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-size: clamp(48px, 5vw, 78px);
  font-weight: 380;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 8px 0 4px;
}

.data-stat__num sup {
  font-size: 0.45em;
  vertical-align: super;
  color: var(--purple);
  font-weight: 500;
}

.data-stat__lbl {
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: auto;
}

.data-stat__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(10, 10, 18, 0.06);
}

.data-stat__row > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.data-stat__row b {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 100, "SOFT" 50;
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  line-height: 1;
}

.data-stat__row span {
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Compare tile (simulado vs prova) */
.data-compare__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  flex: 1;
  margin-top: 14px;
}

.data-compare__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.data-compare__lbl {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
}

.dots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.dots i {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}

.dots--green i { background: var(--pulse-green); }
.dots--red i   { background: var(--pulse-red); }
.dots i.off { background: rgba(10, 10, 18, 0.08); }

.data-compare__num {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
  color: var(--text);
}

.data-compare__num small {
  font-size: 0.4em;
  color: var(--text-3);
  margin-left: 4px;
  font-weight: 400;
}

.data-compare__num--red { color: var(--pulse-red); }

/* Cursor ghost flutuando sobre tile UI específico */
.cursor-ghost {
  position: absolute;
  top: 58%;
  left: 62%;
  z-index: 4;
  pointer-events: none;
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 6px 12px rgba(10,10,18,0.35));
  animation: ghostMove 8s var(--ease-in-out) infinite;
}

@keyframes ghostMove {
  0%, 100% { top: 58%; left: 62%; }
  20%      { top: 42%; left: 38%; }
  40%      { top: 42%; left: 38%; transform: scale(0.92); }
  45%      { top: 42%; left: 38%; transform: scale(1); }
  60%      { top: 70%; left: 50%; }
  80%      { top: 70%; left: 50%; transform: scale(0.92); }
  85%      { top: 70%; left: 50%; transform: scale(1); }
}

/* Toast que aparece junto com o cursor click */
.live-toast {
  position: absolute;
  top: 36%;
  right: 8%;
  z-index: 5;
  background: var(--surface);
  border: 1px solid rgba(10,10,18,0.06);
  border-radius: 999px;
  padding: 8px 14px 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  box-shadow: 0 8px 24px -8px rgba(10,10,18,0.22);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px);
  animation: toastCycle 8s var(--ease-out) infinite;
}

.live-toast .check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--pulse-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  font-weight: 700;
}

@keyframes toastCycle {
  0%, 35%   { opacity: 0; transform: translateY(8px); }
  42%, 65%  { opacity: 1; transform: translateY(0); }
  72%, 100% { opacity: 0; transform: translateY(-8px); }
}

/* Selo / pílula pequena flutuante decorativa */
.hero__pill {
  position: absolute;
  top: 8%;
  left: -12px;
  z-index: 3;
  background: var(--surface);
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 18px -8px rgba(124, 58, 237, 0.25);
}

.hero__pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
  animation: pulsePurple 2.4s ease-out infinite;
}

/* ─── Responsivo ─────────────────────── */

@media (max-width: 920px) {
  .hero {
    padding: 96px 0 60px;
  }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .hero__content {
    max-width: 100%;
  }
  .hero__visual {
    height: 480px;
  }
  .hero__sub {
    max-width: 100%;
  }
}

@media (max-width: 540px) {
  .hero__visual {
    height: 380px;
  }
  .hero__pill {
    left: 0;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .marquee__col,
  .cursor-ghost,
  .live-toast,
  .hero__pill::before,
  .hero__signal .dot { animation: none !important; }
}
