/* ══════════════════════════════════════════════
   BITO_ — IA/SaaS · 3D Pixar + pixel-art + céu azul
   Sistema visual: céu, grade de pixels, balões
   iMessage, notas adesivas, faixa preta, timeline
   ══════════════════════════════════════════════ */

:root {
  --sky:      #AEDCF5;
  --sky-deep: #8CCBEF;
  --paper:    #FAFCFE;
  --grid:     rgba(16, 18, 22, .06);
  --ink:      #101216;
  --ink-soft: #3A3F47;
  --bubble:   #0B93F6;
  --bubble-gray: #E9E9EB;
  --note:     #FDF3B4;
  --note-2:   #BFE3F7;
  --red:      #E5473C;
  --green:    #57B94C;

  --font-px:   'Pixelify Sans', monospace;
  --font-mono: 'Space Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { overflow-x: hidden; scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.section { position: relative; overflow: hidden; }

body:not(.no-js) .rv { opacity: 0; transform: translateY(24px); }

.blink { animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* grade de pixels (papel quadriculado) */
.px-grid, .hero, .chat, .poses, .timeline, .plans {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 34px 34px;
}

/* ══════════ LOADER ══════════ */
.loader {
  position: fixed; inset: 0; z-index: 90;
  background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem;
  transition: opacity .45s steps(6), visibility .45s;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__word { font-family: var(--font-px); font-weight: 700; font-size: 2.4rem; letter-spacing: .04em; }
.loader__bar {
  width: 220px; height: 14px; border: 2px solid var(--ink);
  padding: 2px; display: block;
}
.loader__bar span {
  display: block; height: 100%; width: 0;
  background: var(--bubble);
  animation: load-fill 2s steps(12) forwards;
}
@keyframes load-fill { to { width: 100%; } }

/* ══════════ NAV ══════════ */
.nav {
  position: relative; z-index: 20;
  display: flex; align-items: center; gap: 1.6rem;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  background: var(--sky);
}
.nav__logo { font-family: var(--font-px); font-weight: 700; font-size: 1.6rem; letter-spacing: .04em; }
.nav__links { display: flex; gap: 1.5rem; margin-left: auto; }
.nav__links a {
  font-size: .82rem; font-weight: 700;
  border-bottom: 2px solid transparent; padding-bottom: 2px;
  transition: border-color .2s steps(2);
}
.nav__links a:hover { border-color: var(--ink); }

.bubble-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bubble); color: #fff;
  font-family: var(--font-mono); font-weight: 700; font-size: .88rem;
  padding: .65em 1.5em; border-radius: 999px;
  box-shadow: 0 3px 0 rgba(16, 18, 22, .25);
  transition: translate .15s steps(2), box-shadow .15s steps(2);
}
.bubble-btn:hover { translate: 0 2px; box-shadow: 0 1px 0 rgba(16, 18, 22, .25); }
.bubble-btn--big { font-size: 1.05rem; padding: .8em 1.9em; }

.ghost-btn {
  font-weight: 700; font-size: .9rem;
  border-bottom: 2px dashed var(--ink);
}

.burger {
  display: none; flex-direction: column; gap: 6px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.burger span { width: 26px; height: 4px; background: var(--ink); }

.menu {
  position: fixed; inset: 0; z-index: 80;
  background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s steps(4), visibility .3s;
}
.menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.menu nav { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.menu a { font-family: var(--font-px); font-weight: 700; font-size: 2.1rem; }
.menu__foot { position: absolute; bottom: 2rem; font-size: .8rem; opacity: .7; }

/* ══════════ HERO ══════════ */
.hero {
  background-color: var(--sky);
  padding: clamp(1.5rem, 4vh, 3rem) 1rem 0;
  text-align: center;
}

.px-cloud { position: absolute; color: #fff; opacity: .95; z-index: 1; }
.px-cloud svg { width: 100%; height: auto; }
.px-cloud--1 { width: clamp(90px, 10vw, 150px); top: 9%; left: 7%; }
.px-cloud--2 { width: clamp(70px, 8vw, 120px); top: 20%; right: 9%; }

.px-icon { position: absolute; z-index: 1; color: var(--ink); }
.px-icon svg { width: 100%; height: auto; }
.px-saturn { width: clamp(42px, 4.5vw, 64px); top: 34%; left: 13%; }
.px-apple  { width: clamp(40px, 4.5vw, 60px); top: 55%; left: 8%; }
.px-hour   { width: clamp(28px, 3vw, 40px); top: 42%; right: 10%; }

.hero__pills { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; position: relative; z-index: 2; }
.pill {
  background: var(--bubble); color: #fff;
  font-size: .8rem; font-weight: 700;
  padding: .45em 1.2em; border-radius: 999px;
}

.hero__title {
  position: relative; z-index: 2;
  font-family: var(--font-px); font-weight: 700;
  font-size: clamp(2.6rem, 8.6vw, 7.4rem);
  line-height: 1.02; letter-spacing: .01em;
  margin-top: 1.6rem;
  display: flex; flex-direction: column;
  text-transform: uppercase;
}
.px-arr { font-style: normal; font-size: .5em; vertical-align: middle; letter-spacing: -.05em; }

.hero__sub {
  position: relative; z-index: 2;
  max-width: 52ch; margin: 1.2rem auto 0;
  font-size: .95rem;
}

.hero__stage {
  position: relative; z-index: 2;
  height: clamp(320px, 44vw, 560px);
  margin-top: 1rem;
}
.hero__fig {
  position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: clamp(240px, 30vw, 420px);
}
.hero__fig img { width: 100%; height: auto; }

.imsg {
  position: absolute;
  background: var(--bubble); color: #fff;
  font-size: .85rem; font-weight: 700; line-height: 1.4; text-align: left;
  padding: .7em 1em; border-radius: 16px;
  max-width: 240px;
}
.imsg i {
  position: absolute; bottom: -6px; left: 18px;
  border: 8px solid transparent; border-top-color: var(--bubble);
  border-bottom: 0; border-left-width: 4px; border-right-width: 12px;
}
.imsg--hero { top: 6%; right: clamp(2%, 12vw, 22%); }

.yearnote {
  position: absolute;
  font-size: .78rem; line-height: 1.35; text-align: left;
  color: var(--ink);
}
.yearnote b { font-weight: 700; }
.yearnote--1 { top: 18%; left: 6%; }
.yearnote--2 { top: 58%; left: 16%; }
.yearnote--3 { top: 30%; left: 26%; }
.yearnote--4 { top: 26%; right: 24%; }
.yearnote--5 { top: 62%; right: 8%; }

.hero__ctas {
  position: relative; z-index: 3;
  display: flex; gap: 1.4rem; align-items: center; justify-content: center; flex-wrap: wrap;
  padding: 1.6rem 0 2.4rem;
  background: linear-gradient(transparent, var(--sky-deep) 80%);
}

/* ══════════ CABEÇALHOS DE SEÇÃO ══════════ */
.sec-head { text-align: center; margin-bottom: clamp(2rem, 5vw, 3.5rem); position: relative; z-index: 2; }
.sec-title {
  font-family: var(--font-px); font-weight: 700;
  font-size: clamp(2rem, 6vw, 4.4rem);
  text-transform: uppercase; line-height: 1.05;
}
.sec-title em { font-style: normal; color: var(--bubble); }
.sec-mono { font-size: .85rem; color: var(--ink-soft); margin-top: .5rem; }

/* ══════════ CONVERSA ══════════ */
.chat { padding: clamp(4rem, 10vh, 7rem) clamp(1.2rem, 5vw, 5rem); }
.chat__thread {
  max-width: 640px; margin-inline: auto;
  display: flex; flex-direction: column; gap: .9rem;
}
.msg {
  position: relative;
  max-width: 78%;
  padding: .8em 1.1em; border-radius: 18px;
  font-size: .95rem; font-weight: 700; line-height: 1.45;
}
.msg--user {
  align-self: flex-end;
  background: var(--bubble-gray); color: var(--ink);
  border-bottom-right-radius: 4px;
}
.msg--bito {
  align-self: flex-start;
  background: var(--bubble); color: #fff;
  border-bottom-left-radius: 4px;
}
.msg--typing {
  align-self: flex-start;
  background: var(--bubble-gray);
  display: inline-flex; gap: 5px; padding: .9em 1em;
}
.msg--typing span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-soft); opacity: .5;
  animation: typing 1.2s steps(3) infinite;
}
.msg--typing span:nth-child(2) { animation-delay: .2s; }
.msg--typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 50% { opacity: 1; transform: translateY(-3px); } }

.notes {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.5vw, 1.8rem);
  max-width: 1240px; margin: clamp(2.5rem, 6vw, 4rem) auto 0;
}
.note {
  background: var(--note);
  padding: 1.5rem 1.3rem 1.7rem;
  box-shadow: 0 10px 22px rgba(16, 18, 22, .12);
  transform: rotate(var(--note-r, 0deg));
  transition: scale .2s steps(3);
}
.note:hover { scale: 1.04; }
.note h3 { font-family: var(--font-px); font-weight: 700; font-size: 1.25rem; margin-bottom: .5rem; }
.note p { font-size: .85rem; }
.note:nth-child(even) { background: var(--note-2); }

/* ══════════ MODOS / POSES ══════════ */
.poses { padding: clamp(4rem, 10vh, 7rem) clamp(1.2rem, 5vw, 5rem); }
.poses__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.2vw, 1.6rem);
  max-width: 1240px; margin-inline: auto;
}
.pose {
  background: var(--note-2);
  border-radius: 22px; overflow: hidden;
  padding-bottom: .9rem; text-align: center;
}
.pose img { width: 100%; aspect-ratio: 5/6; object-fit: cover; }
.pose figcaption { font-size: .85rem; font-weight: 700; margin-top: .8rem; }

/* ══════════ FAIXA PRETA ══════════ */
.dark {
  background: var(--ink); color: var(--paper);
  padding: clamp(4.5rem, 11vh, 8rem) clamp(1.2rem, 6vw, 6rem);
  text-align: center;
}
.dark__title {
  font-family: var(--font-px); font-weight: 700;
  font-size: clamp(2.8rem, 9vw, 7.6rem);
  line-height: 1.02; text-transform: uppercase;
  display: flex; flex-direction: column;
}
.dark__mono { max-width: 62ch; margin: 1.6rem auto 0; font-size: .92rem; opacity: .85; }
.dark__stats {
  display: flex; gap: clamp(2rem, 7vw, 6rem); justify-content: center; flex-wrap: wrap;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.stat b {
  font-family: var(--font-px); font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  color: var(--sky);
  display: block; line-height: 1;
}
.stat__l { font-size: .8rem; opacity: .75; display: block; margin-top: .5rem; }

/* ══════════ TIMELINE ══════════ */
.timeline { padding: clamp(4rem, 10vh, 7rem) clamp(1.2rem, 5vw, 5rem); }
.tl {
  position: relative;
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: clamp(.8rem, 2vw, 1.6rem);
  max-width: 1240px; margin-inline: auto;
  padding-top: 2.2rem;
}
.tl__line {
  position: absolute; top: 8px; left: 0; right: 0;
  height: 6px; background: var(--bubble);
  transform-origin: left center;
}
.tl__dot {
  position: absolute; top: -2.2rem; left: 0;
  width: 18px; height: 18px;
  background: var(--ink);
  box-shadow: 4px 4px 0 var(--sky-deep);
}
.tl__item { position: relative; }
.tl__item b { font-family: var(--font-px); font-weight: 700; font-size: 1.6rem; display: block; margin-bottom: .4rem; }
.tl__item p { font-size: .82rem; color: var(--ink-soft); }

/* ══════════ CENA PIXEL ══════════ */
.scene { background: var(--sky); }
.scene__bg { position: relative; }
.scene__bg img {
  width: 100%; height: clamp(260px, 40vw, 560px);
  object-fit: cover;
  image-rendering: pixelated;
}
.scene__walker {
  position: absolute; bottom: 6%; left: 0;
  width: clamp(90px, 12vw, 170px);
  z-index: 2;
  filter: drop-shadow(0 10px 14px rgba(16, 18, 22, .3));
}
.scene__walker img { width: 100%; height: auto; }
.scene__caption {
  position: absolute; top: 1.4rem; left: 50%; transform: translateX(-50%);
  background: rgba(250, 252, 254, .92);
  padding: .5em 1.2em; white-space: nowrap; max-width: 92vw;
  overflow: hidden; text-overflow: ellipsis;
}

/* ══════════ PLANOS ══════════ */
.plans { padding: clamp(4rem, 10vh, 7rem) clamp(1.2rem, 5vw, 5rem); }
.plans__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  max-width: 1080px; margin-inline: auto;
  align-items: start;
}
.plan {
  position: relative;
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 2rem 1.6rem;
  text-align: left;
}
.plan--hot { background: var(--note); }
.plan__tag {
  position: absolute; top: -1rem; right: 1rem;
  background: var(--red); color: #fff;
  font-size: .72rem; font-weight: 700;
  padding: .35em .9em;
}
.plan h3 { font-family: var(--font-px); font-weight: 700; font-size: 1.7rem; }
.plan__price { font-family: var(--font-px); font-weight: 700; font-size: 2.4rem; margin: .3rem 0 1rem; }
.plan__price span { font-size: .95rem; font-family: var(--font-mono); font-weight: 400; }
.plan ul { list-style: none; margin-bottom: 1.6rem; }
.plan li { font-size: .85rem; padding: .35em 0; }
.plan li::before { content: ">> "; font-weight: 700; color: var(--bubble); }
.plan--hot li::before { color: var(--ink); }

/* ══════════ FOOTER ══════════ */
.footer {
  background: var(--ink); color: var(--paper);
  padding: clamp(3.5rem, 8vh, 5.5rem) clamp(1.2rem, 5vw, 5rem) 2rem;
}
.footer__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem; max-width: 1080px; margin-inline: auto;
}
.footer__col h3 { font-family: var(--font-px); font-weight: 700; font-size: 1.15rem; color: var(--sky); margin-bottom: .7rem; }
.footer__col p { font-size: .88rem; line-height: 2; }
.footer__col a { border-bottom: 1px dashed var(--paper); }
.footer__col a:hover { color: var(--sky); border-color: var(--sky); }

.footer__mark {
  font-family: var(--font-px); font-weight: 700;
  font-size: clamp(4.5rem, 19vw, 17rem);
  line-height: 1.05; text-align: center;
  margin-top: clamp(2.5rem, 7vh, 4rem);
}
.footer__legal { text-align: center; font-size: .78rem; opacity: .6; margin-top: 1.6rem; }

/* ══════════ RESPONSIVO ══════════ */
@media (max-width: 1100px) {
  .notes { grid-template-columns: repeat(2, 1fr); }
  .poses__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: flex; margin-left: auto; }
  .plans__grid { grid-template-columns: 1fr; max-width: 480px; }
  .plan__tag { top: -.9rem; }
  .tl { grid-template-columns: 1fr; gap: 2rem; padding-top: 0; padding-left: 2.4rem; }
  .tl__line { top: 0; bottom: 0; left: 8px; right: auto; width: 6px; height: auto; transform-origin: top center; }
  .tl__dot { top: .2rem; left: -2.4rem; }
  .yearnote--2 { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero__stage { height: auto; padding-top: .5rem; }
  .hero__fig { position: relative; bottom: auto; left: auto; transform: none; margin: 5.5rem auto 0; }
  .imsg--hero { top: 0; right: 4%; }
  .yearnote { display: none; }
  .px-saturn, .px-hour { display: none; }
  .px-cloud--1 { top: 1.2%; left: 4%; width: 64px; }
  .px-cloud--2 { top: 30%; right: 3%; width: 58px; }
  .px-apple { top: 47%; left: 3%; }
  .notes { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; }
  .poses__grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .pose figcaption { font-size: .75rem; }
  .msg { max-width: 88%; }
  .footer__grid { grid-template-columns: 1fr; }
  .scene__caption { font-size: .72rem; }
}

/* ══════════ MOVIMENTO REDUZIDO ══════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blink, .msg--typing span, .loader__bar span { animation: none; }
  body:not(.no-js) .rv { opacity: 1; transform: none; }
}
