/* Orbitaz, site de apresentação. Mesmo espírito do app: fundo escuro, roxo da Orbi, tipografia simples, ícones SVG. */

:root {
  --bg: #000000;
  --surface: #16161a;
  --surface-high: #222228;
  --border: #2c2c33;
  --text: #ffffff;
  --dim: #a0a0ab;
  --accent: #ff3d6e;
  --ai: #8b5cf6;
  --ai-soft: rgba(139, 92, 246, 0.18);
  /* Tamanho do aparelho: cresce com a janela, mas nunca passa de 300 px nem de 38% da altura (proporção 390:844) */
  --phone-w: clamp(200px, min(20vw, 36svh), 300px);
  --phone-h: calc(var(--phone-w) * 844 / 390);
  --font: Inter, -apple-system, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

/* Céu de fundo: fixo atrás de tudo */
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.top, .scene, .foot { position: relative; z-index: 1; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ai); color: #000; padding: 8px 12px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 16px; }

/* Barra */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: 0.2px; }
.top nav { display: none; gap: 18px; margin-left: auto; color: var(--dim); font-size: 14px; }
.top nav a:hover { color: var(--text); }
.top .ghost.small { margin-left: auto; padding: 8px 14px; font-size: 13px; }
.top .cta.small { padding: 8px 14px; font-size: 13px; }
@media (min-width: 760px) {
  .top { padding: 14px 32px; }
  .top nav { display: flex; }
  .top .ghost.small { margin-left: 0; }
}

/* Botões */
.cta {
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font: inherit; background: var(--ai); color: #000; font-weight: 700;
  padding: 12px 20px; border-radius: 999px; font-size: 15px;
  transition: transform 0.2s, filter 0.2s;
}
.cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
.ghost { display: inline-flex; align-items: center; border: 1px solid var(--border); padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--text); background: rgba(0, 0, 0, 0.3); }
.ghost:hover { border-color: var(--dim); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.actions.center { justify-content: center; }

/* Painel "Baixar" */
.modal { border: 0; padding: 0; background: transparent; max-width: calc(100vw - 32px); }
.modal::backdrop { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); }
.modal-card {
  width: 340px; max-width: 100%; margin: 0; padding: 22px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  display: flex; flex-direction: column; align-items: stretch; gap: 10px; text-align: center;
  animation: pop 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes pop { from { transform: translateY(10px) scale(0.97); opacity: 0; } }
.modal-card .badge { width: 52px; height: 52px; border-radius: 50%; background: var(--ai); color: #fff; display: grid; place-items: center; margin: 0 auto 4px; }
.modal-card h3 { margin: 0; font-size: 19px; }
.modal-card p { margin: 0 0 6px; color: var(--dim); font-size: 14px; line-height: 1.45; }
.modal-card .cta { justify-content: center; }
.modal-card .link { background: none; border: 0; color: var(--dim); font: inherit; font-size: 14px; padding: 6px; cursor: pointer; }
.modal-card .link:hover { color: var(--text); }
.hint-move { display: none; color: var(--dim); font-size: 13px; margin-top: 28px; }
@media (hover: hover) and (min-width: 900px) { .hint-move { display: block; } }

/* Cenas: uma coluna no celular, duas no computador. O texto sempre fica acima do palco (z-index) */
.scene {
  position: relative;
  min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-content: center;
  padding: 96px 16px 56px;
  max-width: 1180px; margin: 0 auto;
}
.copy { max-width: 560px; position: relative; z-index: 2; }
.copy.wide { max-width: 760px; }
.copy.center { max-width: 640px; text-align: center; margin: 0 auto; }
.eyebrow { color: var(--ai); font-weight: 700; font-size: 13px; letter-spacing: 0.6px; text-transform: uppercase; margin: 0 0 12px; }
h1, h2 { margin: 0 0 16px; line-height: 1.08; letter-spacing: -0.6px; font-weight: 800; }
h1 { font-size: clamp(34px, 6.5vw, 60px); }
h2 { font-size: clamp(28px, 4.6vw, 44px); }
.lead { color: var(--dim); font-size: clamp(16px, 2vw, 19px); margin: 0; }
.points { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.points li { padding-left: 18px; position: relative; color: var(--dim); font-size: 16px; }
.points li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--ai); }
.points li strong { color: var(--text); }
.points.grid { grid-template-columns: 1fr; }
@media (min-width: 760px) { .points.grid { grid-template-columns: 1fr 1fr; gap: 18px 28px; } }

/* Passos da seção Social: botões (clicáveis), com o atual aceso */
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; counter-reset: s; }
.steps li { counter-increment: s; }
.steps button {
  width: 100%; text-align: left; cursor: pointer; position: relative; padding: 14px 16px 14px 52px;
  border: 1px solid var(--border); border-radius: 14px; color: var(--dim); font-size: 15px; line-height: 1.45;
  background: rgba(0, 0, 0, 0.35);
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.steps button::before {
  content: counter(s); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 13px; border: 1px solid var(--border); color: var(--dim);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.steps button strong { color: var(--text); }
.steps button:hover { border-color: var(--dim); }
.steps li.on button { border-color: var(--ai); background: var(--ai-soft); color: var(--text); }
.steps li.on button::before { background: var(--ai); border-color: var(--ai); color: #000; }

/* Demonstração interativa da Orbi */
.try { margin-top: 28px; border: 1px solid var(--border); border-radius: 18px; padding: 18px; background: rgba(22, 22, 26, 0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.try-title { margin: 0; font-weight: 800; font-size: 15px; }
.try-sub { margin: 4px 0 12px; color: var(--dim); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button {
  cursor: pointer; border: 1px solid var(--border); background: var(--surface-high); color: var(--text);
  border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.chips button:hover { border-color: var(--ai); }
.chips button:active { transform: scale(0.97); }
.chips button.sent { background: var(--ai); color: #000; border-color: var(--ai); }
.bars { display: grid; gap: 7px; margin-top: 16px; }
.bar { display: grid; grid-template-columns: 86px 1fr 44px; align-items: center; gap: 10px; font-size: 13px; }
.bar .tag { color: var(--dim); }
.bar .track { position: relative; height: 8px; border-radius: 999px; background: var(--surface-high); overflow: hidden; }
.bar .fill { position: absolute; top: 0; bottom: 0; left: 50%; width: 0; background: var(--ai); border-radius: 999px; transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), left 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s; }
.bar.neg .fill { background: var(--accent); }
.bar.muted .tag { text-decoration: line-through; }
.bar.muted .fill { background: var(--dim); }
.bar.explore .fill { background: #34d399; }
.bar .val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.reply { margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--ai-soft); border: 1px solid rgba(139, 92, 246, 0.35); font-size: 14px; min-height: 44px; }
.reply.pop { animation: pop 0.35s ease-out; }
@keyframes pop { from { transform: translateY(6px); opacity: 0.4; } to { transform: none; opacity: 1; } }

/* Selos da vistoria */
.seals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0 8px; }
@media (min-width: 760px) { .seals { grid-template-columns: repeat(4, 1fr); } }
.seal { border: 1px solid var(--border); border-radius: 16px; padding: 16px; display: grid; gap: 2px; background: rgba(22, 22, 26, 0.85); }
.seal .n { font-size: 36px; font-weight: 800; letter-spacing: -1px; line-height: 1; font-variant-numeric: tabular-nums; }
.seal .l { font-weight: 700; font-size: 14px; margin-top: 6px; }
.seal .d { color: var(--dim); font-size: 12px; line-height: 1.4; }
.seal.high .n { color: #34d399; }
.seal.mid .n { color: #fbbf24; }
.seal.low .n { color: var(--accent); }
.seal.tests .n { color: var(--ai); }

.fine { color: var(--dim); font-size: 13px; margin-top: 28px; }

/* Palco e aparelho em 3D (sem WebGL): perspectiva + rotações em CSS.
   O palco nunca é mais largo que a coluna (min-width: 0) e o que sobra para os lados fica visível, mas atrás do texto. */
.stage {
  position: relative; min-width: 0; height: calc(var(--phone-h) + 70px);
  perspective: 1400px; perspective-origin: 50% 45%;
  display: grid; place-items: center;
  z-index: 1;
}
.phone {
  position: absolute; width: var(--phone-w); height: var(--phone-h);
  transform-style: preserve-3d; will-change: transform;
}
/* Inclinação pelo mouse vai na moldura (variáveis), para não brigar com a pose da rolagem no .phone */
.frame {
  position: absolute; inset: 0; border-radius: calc(var(--phone-w) * 0.16);
  background: #0b0b0f;
  border: 2px solid #3a3a44;
  box-shadow:
    0 0 0 5px #141418,
    0 0 0 6px #33333c,
    0 40px 80px rgba(0, 0, 0, 0.6),
    0 0 60px var(--ai-soft);
  transform-style: preserve-3d;
  transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translateZ(var(--lz)) scale(var(--ls));
  transition: transform 0.12s linear, --lz 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), --ls 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s;
  overflow: hidden;
}
.phone.resting .frame { transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), --lz 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), --ls 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s; }
/* O aparelho sob o cursor vem para a frente (as variáveis são registradas para animar) */
@property --lz { syntax: '<length>'; inherits: true; initial-value: 0px; }
@property --ls { syntax: '<number>'; inherits: true; initial-value: 1; }
.phone.lift { z-index: 10; --lz: 90px; --ls: 1.03; --shine: 0.28; }
.phone.lift .frame { box-shadow: 0 0 0 5px #141418, 0 0 0 6px #33333c, 0 60px 100px rgba(0, 0, 0, 0.7), 0 0 90px var(--ai-soft); }
.btn.side { position: absolute; width: 3px; background: #3a3a44; border-radius: 2px; z-index: 5; }
.btn.vol1 { left: -8px; top: 22%; height: 7%; }
.btn.vol2 { left: -8px; top: 31%; height: 7%; }
.btn.power { right: -8px; top: 26%; height: 11%; }
.screen { position: absolute; inset: calc(var(--phone-w) * 0.026); border-radius: calc(var(--phone-w) * 0.135); overflow: hidden; background: #000; }
.screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity 0.18s; }
.shine {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 4;
  background: linear-gradient(calc(115deg + var(--ty, 0deg) * 1.5), rgba(255, 255, 255, var(--shine, 0.16)) 0%, rgba(255, 255, 255, 0.03) 30%, rgba(255, 255, 255, 0) 55%);
  mix-blend-mode: screen;
  /* Acompanha a moldura: mesma inclinação, mesmo avanço */
  transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translateZ(calc(var(--lz) + 1px)) scale(var(--ls));
  transition: transform 0.12s linear, --lz 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), --ls 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), --shine 0.45s;
}
.phone.resting .shine { transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), --lz 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), --ls 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), --shine 0.45s; }
@property --shine { syntax: '<number>'; inherits: true; initial-value: 0.16; }
.caption { position: absolute; left: 0; right: 0; bottom: -4px; margin: 0; text-align: center; color: var(--dim); font-size: 12px; padding: 0 8px; }

/* Layout de duas colunas no computador */
@media (min-width: 900px) {
  .scene { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; padding: 120px 32px 80px; }
  .scene.enter { grid-template-columns: minmax(0, 1fr); }
  .scene.trust { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}
@media (max-width: 899px) {
  :root { --phone-w: clamp(180px, min(52vw, 30svh), 240px); }
  .stage { height: calc(var(--phone-h) + 50px); }
}

/* Tema claro, se o aparelho pedir */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #ffffff; --surface: #f2f2f6; --surface-high: #e6e6ec; --border: #d9d9e1; --text: #111114; --dim: #5b5b66; --accent: #e11d48; --ai: #7c3aed; --ai-soft: rgba(124, 58, 237, 0.14);
  }
  :root:not([data-theme="dark"]) .top { background: rgba(255, 255, 255, 0.75); }
  :root:not([data-theme="dark"]) .cta { color: #fff; }
  :root:not([data-theme="dark"]) .ghost { background: rgba(255, 255, 255, 0.6); }
  :root:not([data-theme="dark"]) .steps button { background: rgba(255, 255, 255, 0.7); }
  :root:not([data-theme="dark"]) .steps li.on button::before { color: #fff; }
  :root:not([data-theme="dark"]) .try, :root:not([data-theme="dark"]) .seal { background: rgba(242, 242, 246, 0.9); }
  :root:not([data-theme="dark"]) .chips button.sent { color: #fff; }
}

/* Menos movimento: sem rotação nem inclinação, o telefone fica parado e as telas só trocam */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone { transform: none !important; }
  .frame, .shine { transform: none !important; transition: none; }
  .reply.pop { animation: none; }
}

.foot { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; padding: 32px 16px 48px; color: var(--dim); font-size: 13px; border-top: 1px solid var(--border); background: var(--bg); }
