/* Meu Alter Ego — sistema de vidro (referência: Liquid Glass da Apple, iOS 26 / macOS Tahoe)
   Compartilhado pela landing, pelo painel do usuário e pelo painel de gestão. */

:root {
  /* Gelo e Meia-noite (A26): fundo claro gelo, tinta azul-meia-noite, cromo e um cobalto de destaque.
     Os nomes antigos ficam: --noite-* agora é o fundo claro; --osso é a tinta forte (o contraste). */
  --noite-0: #f3f5f9;   /* gelo: fundo */
  --noite-1: #eaeef4;
  --noite-2: #dde4ee;
  --texto: #0b1220;     /* meia-noite: texto */
  --texto-2: rgba(11, 18, 32, 0.68);
  --texto-3: rgba(11, 18, 32, 0.46);
  --linha: rgba(11, 18, 32, 0.10);

  --osso: #0b1220;      /* tinta forte: botões, marcas, ativo */
  --prata: #7d8ea8;     /* cromo */
  --areia: #b8955a;
  --vinho: #2e4a78;     /* cobalto */
  --vinho-luz: #3d63a8;
  --perigo: #ff8a8a;

  --vidro-fundo: rgba(255, 255, 255, 0.075);
  --vidro-fundo-forte: rgba(255, 255, 255, 0.13);
  --vidro-borda: rgba(255, 255, 255, 0.22);
  --vidro-blur: 28px;
  --raio: 28px;
  --raio-sm: 18px;

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Jost", "Futura", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --mola: cubic-bezier(0.22, 1.2, 0.36, 1);
  --suave: cubic-bezier(0.25, 0.8, 0.25, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--texto);
  background: var(--noite-0);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ---------- Céu: a aurora que dá vida ao vidro ---------- */

.ceu {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 70% 0%, #ffffff 0%, var(--noite-0) 45%, var(--noite-1) 100%);
}

.ceu .orbe {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
  animation: flutuar 26s var(--suave) infinite alternate;
}

.ceu .orbe.o1 { width: 60vmax; height: 60vmax; right: -16vmax; top: -26vmax; background: radial-gradient(circle, #ffffff 0%, transparent 62%); opacity: 0.9; }
.ceu .orbe.o2 { width: 46vmax; height: 46vmax; left: -18vmax; bottom: -22vmax; background: radial-gradient(circle, #9fb4d6 0%, transparent 64%); animation-duration: 34s; animation-delay: -8s; opacity: 0.35; }
.ceu .orbe.o3 { width: 38vmax; height: 38vmax; left: 30vmax; top: 30vmax; background: radial-gradient(circle, rgba(159, 176, 198, 0.5) 0%, transparent 65%); animation-duration: 40s; animation-delay: -16s; opacity: 0.12; }
.ceu .orbe.o4 { display: none; }
.ceu::before {
  /* estrelas: três camadas de pontos finos, sem imagem */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.85), transparent 60%),
    radial-gradient(1px 1px at 68% 9%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1.4px 1.4px at 83% 34%, rgba(255,255,255,.9), transparent 60%),
    radial-gradient(1px 1px at 37% 52%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1px 1px at 91% 71%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1.2px 1.2px at 22% 83%, rgba(255,255,255,.75), transparent 60%),
    radial-gradient(1px 1px at 55% 92%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 5% 61%, rgba(255,255,255,.6), transparent 60%);
  background-size: 420px 420px, 380px 380px, 520px 520px, 300px 300px, 460px 460px, 340px 340px, 400px 400px, 360px 360px;
  display: none; /* estrelas só no tema escuro */
  opacity: 0.55;
  animation: cintilar 9s ease-in-out infinite alternate;
}
@keyframes cintilar { from { opacity: 0.35; } to { opacity: 0.6; } }

.ceu::after {
  /* grão fino para o céu não parecer plástico */
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
}

@keyframes flutuar {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(6vmax, 4vmax, 0) scale(1.08); }
  100% { transform: translate3d(-4vmax, 7vmax, 0) scale(0.96); }
}

/* ---------- Vidro ---------- */

.vidro {
  position: relative;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0.64) 100%);
  -webkit-backdrop-filter: blur(var(--vidro-blur)) saturate(140%);
  backdrop-filter: blur(var(--vidro-blur)) saturate(140%);
  border-radius: var(--raio);
  border: 1px solid transparent;
  box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 0 0 1px rgba(255, 255, 255, 0.7),
    0 0 0 1px rgba(11, 18, 32, 0.06),
    0 24px 50px -28px rgba(20, 36, 70, 0.28),
    0 2px 6px rgba(20, 36, 70, 0.06);
  isolation: isolate;
}

/* brilho especular: a borda que pega luz em cima à esquerda */
.vidro::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.04) 38%, rgba(255, 255, 255, 0.02) 62%, rgba(255, 255, 255, 0.28));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.vidro.fino { --vidro-blur: 18px; background: rgba(255, 255, 255, 0.62); }

/* sem backdrop-filter: vidro vira fosco sólido, legível */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .vidro { background: rgba(255, 255, 255, 0.95); }
}

/* ---------- Botões de vidro ---------- */

.botao {
  --b-fundo: rgba(255, 255, 255, 0.7);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.55)), var(--b-fundo);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 -1px 1px rgba(11, 18, 32, 0.06),
    0 0 0 1px rgba(11, 18, 32, 0.1),
    0 8px 20px -12px rgba(20, 36, 70, 0.35);
  transition: transform 0.45s var(--mola), box-shadow 0.3s var(--suave), background 0.3s var(--suave);
  -webkit-tap-highlight-color: transparent;
}

.botao:hover { transform: translateY(-1px) scale(1.02); }
.botao:active { transform: scale(0.97); transition-duration: 0.12s; }
.botao:focus-visible { outline: 2px solid var(--prata); outline-offset: 3px; }

.botao.primario {
  color: #ffffff;
  background: linear-gradient(180deg, #1f2c45, #0b1220);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 10px 26px -12px rgba(11, 18, 32, 0.6);
}
.botao.vinho {
  color: #e3ecf8;
  background: linear-gradient(180deg, rgba(91, 130, 196, 0.55), rgba(46, 74, 120, 0.55));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 0 0 1px rgba(91, 130, 196, 0.6), 0 8px 24px -10px rgba(46, 74, 120, 0.7);
}

.botao.redondo { width: 48px; padding: 0; flex-shrink: 0; }
.botao.pequeno { min-height: 38px; padding: 0 16px; font-size: 14px; }

/* ---------- Tipografia ---------- */

.titulo {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.06;
  margin: 0;
}

.titulo em { font-style: italic; color: transparent; background: linear-gradient(100deg, #0b1220 0%, #2e4a78 60%, #5b7cb5 100%); -webkit-background-clip: text; background-clip: text; }

.rotulo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--texto-2);
}

.rotulo::before { content: ""; width: 14px; height: 1px; background: var(--prata); }

.apagado { color: var(--texto-2); }
.mais-apagado { color: var(--texto-3); }

/* ---------- Onda da voz (o elemento mais honesto da marca: é a própria pessoa) ---------- */

.onda { display: flex; align-items: center; gap: 3px; height: 40px; }
.onda i {
  flex: 1;
  min-width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, #0b1220, #7d8ea8);
  height: calc(var(--h, 0.4) * 100%);
  opacity: 0.85;
  transform-origin: center;
}
.onda.tocando i { animation: pulsar 1.1s var(--suave) infinite alternate; animation-delay: calc(var(--i, 0) * -0.09s); }
.onda i.passou { background: linear-gradient(180deg, #5b82c4, #2e4a78); opacity: 1; }

@keyframes pulsar { from { transform: scaleY(0.55); } to { transform: scaleY(1.1); } }

/* ---------- Ícone de tocar/pausar ---------- */

.icone-play { width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 2px; }
.tocando-agora .icone-play { width: 10px; height: 12px; border: 0; margin: 0; background: linear-gradient(90deg, currentColor 0 35%, transparent 35% 65%, currentColor 65%); }

/* ---------- Marca ---------- */

.marca { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: 0.04em; }
.marca-nome { font-size: 15px; white-space: nowrap; }

.marca-simbolo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(90deg, #0b1220 0 50%, #ffffff 50% 100%);
  box-shadow: 0 0 0 1px rgba(11, 18, 32, 0.8), 4px 0 12px rgba(91, 130, 196, 0.35);
}

/* ---------- Utilidades ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px rgba(11, 18, 32, 0.1);
  color: var(--texto-2);
}

.ponto { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

.visualmente-oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
