/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: #FFFFFF;
  color: #0B0E12;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.screen { display: none; min-height: 100vh; }
.screen--active { display: grid; place-items: center; }

/* HERO */
.hero__center { text-align: center; padding: 8vh 16px 10vh; }

.orb {
  display: inline-grid;
  place-items: center;
  width: 220px; height: 220px;
  margin-inline: auto;
  position: relative;
}
.orb__img {
  width: 100%; height: 100%; object-fit: contain;
  /* the heartbeat is applied on the container to scale the full logo */
}
/* Heartbeat minimal — Apple-ish */
@keyframes heartbeat {
  0%   { transform: scale(1); }
  6%   { transform: scale(0.985); }  /* micro contração */
  11%  { transform: scale(1.02); }   /* expansão curta */
  14%  { transform: scale(1); }
  100% { transform: scale(1); }
}

.orb { animation: heartbeat 1.8s cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite; }

.brand {
  font-size: 52px; font-weight: 600; letter-spacing: 0.02em;
  margin: 30px 0 12px;
}
.tag {
  font-size: 20px; color: #5C626B; margin: 0;
}
.cta {
  margin-top: 60px;
  height: 52px;
  padding: 0 22px 0 18px;
  border: 1px solid #D6D8DB;
  background: #fff;
  border-radius: 26px;
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow .2s ease, transform .06s ease;
}
.cta:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.04); }
.cta:active { transform: translateY(1px); }
.mic { display: inline-flex; opacity: .7; }
.hint { margin-top: 14px; color: #8A9098; font-size: 12px; }

/* CHAT */
#chat.screen { background: #FFFFFF; }
.chat__header {
  position: sticky; top: 0; background: #FFFFFFE6; backdrop-filter: blur(6px);
  display: grid; place-items: center; height: 64px; border-bottom: 1px solid #F0F2F4;
}
.orb--mini { width: 28px; height: 28px; animation-duration: 1.8s; }

.chat__body { max-width: 860px; margin: 24px auto; padding: 0 16px 96px; }
.msg { max-width: 680px; line-height: 1.5; font-size: 18px; }
.msg--orbe { color: #0B0E12; }
.chips { display: flex; gap: 8px; margin: 14px 0 0; flex-wrap: wrap; }
.chip {
  background: transparent; border: 1px solid #D6D8DB; border-radius: 16px;
  padding: 8px 12px; cursor: pointer; font-size: 14px;
}
.chip:hover { background: #FAFAFA; }

.composer {
  position: fixed; left: 0; right: 0; bottom: 0;
  max-width: 960px; margin: 0 auto 0; padding: 12px 16px;
  display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #FFFFFF 30%);
}
.composer input {
  height: 56px; border-radius: 16px; border: 1px solid #E3E5E8;
  padding: 0 14px; font-size: 16px; outline: none;
}
.send, .voice {
  height: 56px; aspect-ratio: 1/1; border-radius: 14px; border: 1px solid #E3E5E8;
  background: #fff; display: grid; place-items: center; cursor: pointer;
}
.send:disabled { opacity: .35; cursor: default; }
.send:not(:disabled):hover, .voice:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.05); }

/* TRANSITIONS */
.screen { opacity: 0; transform: translateY(8px); transition: opacity .28s ease, transform .28s ease; }
.screen--active { opacity: 1; transform: translateY(0); display: grid; }

/* A11Y utility */
.visually-hidden {
  position: absolute !important; height: 1px; width: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* Responsive */
@media (max-width: 768px) {
  .orb { width: 140px; height: 140px; }
  .brand { font-size: 32px; }
  .tag { font-size: 16px; }
  .cta { height: 48px; }
  .chat__body { padding-bottom: 112px; }
}
