/* The phone of the home page (illustrative) and the effects around it.
   The phone is drawn once and scaled by its own width: every inner size is in cqw (1cqw = 1% of the phone width). */

.phone-wrap {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
}
.stage {
  position: relative;
  width: min(100%, 330px);
}
.device {
  position: relative;
  width: 100%;
  container-type: inline-size;
  animation: float 7s ease-in-out infinite;
  filter: drop-shadow(0 34px 40px rgba(15, 27, 61, 0.35));
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0.4deg);
  }
  50% {
    transform: translateY(-12px) rotate(-0.4deg);
  }
}

/* Titanium frame with the side buttons. */
.frame {
  position: relative;
  padding: 1.3cqw;
  border-radius: 17.5cqw;
  background: linear-gradient(145deg, #8b93a7 0%, #2b3144 22%, #5a6178 50%, #20263a 78%, #7d859a 100%);
}
.frame::before,
.frame::after {
  content: "";
  position: absolute;
  width: 1.1cqw;
  background: linear-gradient(90deg, #4c5369, #8b93a7);
  border-radius: 1cqw;
}
.frame::before {
  left: -0.9cqw;
  top: 24cqw;
  height: 9cqw;
  box-shadow: 0 13cqw 0 #5a6178, 0 25cqw 0 #5a6178;
}
.frame::after {
  right: -0.9cqw;
  top: 33cqw;
  height: 16cqw;
}
.bezel {
  background: #05070d;
  padding: 2.2cqw;
  border-radius: 16.2cqw;
}
.screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 19.2;
  border-radius: 14cqw;
  background: var(--papel);
  color: var(--tinta);
  display: flex;
  flex-direction: column;
  font-size: 3.7cqw;
  line-height: 1.45;
  isolation: isolate;
}
/* Glass reflection over the screen. */
.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 0.05) 100%);
}
.island {
  position: absolute;
  top: 3cqw;
  left: 50%;
  width: 27cqw;
  height: 7.6cqw;
  margin-left: -13.5cqw;
  background: #05070d;
  border-radius: 4cqw;
  z-index: 15;
}
.statusbar {
  position: relative;
  z-index: 10;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4.2cqw 8.5cqw 0;
  height: 13cqw;
  font-weight: 700;
  font-size: 3.9cqw;
}
.statusbar svg {
  height: 3.4cqw;
  width: auto;
  fill: var(--tinta);
}
.sb-icons {
  display: flex;
  align-items: center;
  gap: 1.4cqw;
}
.appbar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.4cqw 4.5cqw 3cqw;
  border-bottom: 1px solid var(--nevoa);
}
.appbar-title {
  display: flex;
  align-items: center;
  gap: 2cqw;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4.6cqw;
  letter-spacing: -0.02em;
}
.appbar-title svg {
  width: 4.4cqw;
  height: 4.4cqw;
  fill: none;
  stroke: var(--tinta);
  stroke-width: 2.6;
}
.chip {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 2.9cqw;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1.2cqw 2.6cqw;
  border-radius: 99cqw;
  background: var(--nuvem);
  color: var(--ardosia);
}

/* Conversation */
.chat {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 3.2cqw;
  padding: 4cqw 4.5cqw 2cqw;
  overflow: hidden;
}
.msg {
  opacity: 0;
  transform: translateY(2.6cqw) scale(0.98);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.msg.is-on {
  opacity: 1;
  transform: none;
}
.msg-user {
  align-self: flex-end;
  max-width: 86%;
  background: var(--tinta);
  color: var(--papel);
  padding: 2.6cqw 3.6cqw;
  border-radius: 4.4cqw 4.4cqw 1cqw 4.4cqw;
  font-weight: 500;
}
.msg-user p {
  margin: 0;
}
.msg-typing {
  align-self: flex-start;
  display: flex;
  gap: 1.5cqw;
  padding: 3cqw 3.6cqw;
  border-radius: 4.4cqw 4.4cqw 4.4cqw 1cqw;
  background: var(--nuvem);
}
.msg-typing.is-off {
  display: none;
}
.msg-typing i {
  width: 1.9cqw;
  height: 1.9cqw;
  border-radius: 50%;
  background: var(--ardosia);
  animation: dots 1s ease-in-out infinite;
}
.msg-typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.msg-typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes dots {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  30% {
    transform: translateY(-1.6cqw);
    opacity: 1;
  }
}

.chips {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.8cqw;
  padding-bottom: 1cqw;
  opacity: 0;
  transform: translateY(2.4cqw);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.chips.is-on {
  opacity: 1;
  transform: none;
}
.chips span {
  padding: 1.6cqw 3cqw;
  border-radius: 99cqw;
  border: 1px solid var(--nevoa);
  background: var(--papel);
  font-size: 3.1cqw;
  font-weight: 600;
  line-height: 1.2;
}

.answer {
  display: grid;
  gap: 2.8cqw;
  align-content: start;
}
.answer .part {
  opacity: 0;
  transform: translateY(2.4cqw);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.answer .part.is-on {
  opacity: 1;
  transform: none;
}
.answer h3 {
  font-size: 5.1cqw;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.answer p {
  margin: 0;
  font-size: 3.5cqw;
  line-height: 1.5;
  color: var(--ardosia);
}

/* Proof components, scaled for the phone. */
.device .meter {
  gap: 1.8cqw;
}
.device .meter-bar {
  gap: 0.9cqw;
}
.device .meter-bar span {
  height: 2.4cqw;
  border-radius: 0.8cqw;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.device .meter.is-on .meter-bar span {
  transform: none;
}
.device .meter.is-on .meter-bar span:nth-child(2) { transition-delay: 0.06s; }
.device .meter.is-on .meter-bar span:nth-child(3) { transition-delay: 0.12s; }
.device .meter.is-on .meter-bar span:nth-child(4) { transition-delay: 0.18s; }
.device .meter.is-on .meter-bar span:nth-child(5) { transition-delay: 0.24s; }
.device .meter.is-on .meter-bar span:nth-child(6) { transition-delay: 0.3s; }
.device .meter.is-on .meter-bar span:nth-child(7) { transition-delay: 0.36s; }
.device .meter.is-on .meter-bar span:nth-child(8) { transition-delay: 0.42s; }
.device .meter.is-on .meter-bar span:nth-child(9) { transition-delay: 0.6s; }
.device .meter.is-on .meter-bar span:nth-child(10) { transition-delay: 0.68s; }
.device .meter-legend {
  font-size: 3cqw;
  line-height: 1.3;
  gap: 0.6cqw 3cqw;
}
.device .seals {
  gap: 1.8cqw;
}
.device .seal {
  font-size: 3cqw;
  line-height: 1.3;
  gap: 1.8cqw;
  padding: 0.8cqw 3cqw 0.8cqw 0.8cqw;
}
.device .seal::before {
  width: 5.2cqw;
  height: 5.2cqw;
  background-size: 5.2cqw;
}
.device .split {
  padding: 2.6cqw 3.2cqw;
  gap: 0.6cqw;
  border-left-width: 1cqw;
}
.device .split p {
  font-size: 3.2cqw;
  line-height: 1.4;
  color: var(--tinta);
}
.device .split .label {
  font-size: 2.8cqw;
  line-height: 1.2;
}

/* Message box */
.composer {
  flex: none;
  display: flex;
  align-items: center;
  gap: 2cqw;
  margin: 1cqw 4cqw 2.4cqw;
  padding: 1.6cqw 1.6cqw 1.6cqw 4cqw;
  border-radius: 99cqw;
  background: var(--nuvem);
  border: 1px solid var(--nevoa);
  min-height: 11.5cqw;
}
.composer-text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  font-size: 3.4cqw;
  color: var(--tinta);
}
.composer-text:empty::before {
  content: attr(data-placeholder);
  color: var(--ardosia);
}
.composer-text.typing::after {
  content: "";
  display: inline-block;
  width: 0.5cqw;
  height: 3.6cqw;
  margin-left: 0.5cqw;
  vertical-align: -0.6cqw;
  background: var(--tinta);
  animation: blink 0.9s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.send {
  flex: none;
  width: 8.2cqw;
  height: 8.2cqw;
  border-radius: 50%;
  background: var(--sinal);
  display: grid;
  place-items: center;
  transition: transform 0.2s ease;
}
.send.is-press {
  transform: scale(0.84);
}
.send svg {
  width: 4cqw;
  height: 4cqw;
  fill: none;
  stroke: var(--tinta);
  stroke-width: 2.6;
}
.home-indicator {
  flex: none;
  width: 34cqw;
  height: 1.2cqw;
  margin: 0 auto 2.2cqw;
  border-radius: 99cqw;
  background: var(--tinta);
}

/* Floating proof chips around the phone (wide screens only). */
.float-chip {
  position: absolute;
  z-index: 3;
  background: var(--papel);
  border: 1px solid var(--nevoa);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 14px 30px -12px rgba(15, 27, 61, 0.35);
  animation: float 6s ease-in-out infinite;
  font-size: 13px;
  line-height: 18px;
}
.float-chip.one {
  right: calc(100% - 10px);
  top: 72%;
  animation-delay: -2s;
}
.float-chip.two {
  left: calc(100% - 10px);
  top: 28%;
  animation-delay: -4s;
}
.float-chip strong {
  white-space: nowrap;
}
.float-chip .label {
  display: block;
  color: var(--ardosia);
  margin-bottom: 5px;
  font-size: 11px;
}
@media (max-width: 1100px) {
  .float-chip {
    display: none;
  }
}

.caption {
  margin: 0;
  text-align: center;
  justify-self: center;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--nuvem);
  font-size: 12.5px;
  line-height: 18px;
  color: var(--ardosia);
}

/* ------------------------------------------------------------ motion */

/* Hero headline: each word rises in. */
.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.word > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise-word 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 90ms + 150ms);
}
@keyframes rise-word {
  to {
    transform: none;
  }
}

/* "A Subida" slides in from the bottom edge. */
.rise {
  animation: rise-band 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.rise-2 {
  animation-delay: 0.15s;
}
.rise-3 {
  animation-delay: 0.3s;
}
@keyframes rise-band {
  from {
    transform: translateY(calc(40% + var(--py, 0px))) skewX(-21.4deg);
    opacity: 0;
  }
  to {
    transform: translateY(var(--py, 0px)) skewX(-21.4deg);
    opacity: 1;
  }
}

/* Reveal on scroll. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.preview .reveal {
  transition: none !important;
}

/* Topics ticker. */
.ticker {
  background: var(--papel);
  border-bottom: 1px solid var(--nevoa);
  overflow: hidden;
  padding: 18px 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 48s linear infinite;
}
.ticker:hover .ticker-track {
  animation-play-state: paused;
}
.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding-right: 22px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--tinta);
}
.ticker-track span::after {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--sinal);
  transform: skewX(-21.4deg);
}
@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* Cards and buttons react to the pointer. */
.step,
.proof-card,
.feature {
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}
.step:hover,
.proof-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 40px -24px rgba(15, 27, 61, 0.4);
}
.feature:hover svg {
  animation: wiggle 0.5s ease;
}
@keyframes wiggle {
  30% {
    transform: rotate(-8deg) scale(1.08);
  }
  60% {
    transform: rotate(6deg) scale(1.08);
  }
}
.btn .arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}
.btn:hover .arrow {
  transform: translateX(5px);
}
.site-header {
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 8px 24px -16px rgba(15, 27, 61, 0.35);
}

/* Sections that draw a line along the steps. */
.steps {
  position: relative;
}

@media (prefers-reduced-motion: reduce) {
  .device,
  .float-chip,
  .ticker-track,
  .rise,
  .word > span,
  .msg-typing i {
    animation: none !important;
  }
  .word > span {
    transform: none;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .ticker {
    overflow-x: auto;
  }
}
