/* ═══════════════════════════════════════════════════════════════
   LINK NA BIO · Legal Barra Multiservice
   Usado por linkbio/ (marca) e linkbio-fan/ (com foto da Fan Barra).
   Mesma identidade da home: navy + vermelho, DM Serif Display + Mulish.
   ═══════════════════════════════════════════════════════════════ */
:root {
  --navy-950: #06121F;
  --navy-900: #0B1B2E;
  --navy: #204669;
  --navy-500: #2F6293;
  --red: #DA2C46;
  --red-deep: #B41E37;
  --red-light: #FF8A9B;
  --sky: #9DB8D3;
  --ivory: #F7F4EF;
  --muted: rgba(247, 244, 239, .62);
  --faint: rgba(247, 244, 239, .42);
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .24);
  --glass: rgba(255, 255, 255, .05);
  --glass-hover: rgba(255, 255, 255, .09);
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Mulish", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100dvh; background: var(--navy-950); color: var(--ivory);
  font-family: var(--sans); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--red-light); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--red); color: #fff; }

/* ---------- Atmosfera ---------- */
.atmos { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: radial-gradient(120% 80% at 50% 0%, #11283F 0%, #0B1B2E 45%, #06121F 100%); }
.atmos::before {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(32% 26% at 85% 8%, rgba(218, 44, 70, .32), transparent 70%),
    radial-gradient(40% 32% at 8% 30%, rgba(47, 98, 147, .5), transparent 70%),
    radial-gradient(45% 35% at 60% 105%, rgba(218, 44, 70, .18), transparent 70%);
  animation: drift 22s ease-in-out infinite alternate;
}
.atmos::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 25%, transparent 80%);
}
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .08; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Layout ---------- */
.page { position: relative; z-index: 2; overflow-x: clip; width: 100%; max-width: 460px; margin: 0 auto; padding: 22px 18px 40px; display: flex; flex-direction: column; align-items: center; }
.topbar { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .25s, transform .3s var(--ease); }
.icon-btn:hover { background: var(--glass-hover); transform: translateY(-2px); }
.icon-btn svg { width: 18px; height: 18px; }
.lang { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }

/* ---------- Identidade (versão marca) ---------- */
.seal { position: relative; width: 196px; height: 196px; margin-top: 18px; display: grid; place-items: center; }
.seal__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.seal__ring text { font-family: var(--mono); font-size: 8.6px; letter-spacing: 3.1px; fill: rgba(247, 244, 239, .72); text-transform: uppercase; }
.seal__core { position: relative; width: 128px; height: 128px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #2F6293, #11283F 70%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 30px 60px -20px rgba(0, 0, 0, .7); }
.seal__core::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--red); border-left-color: var(--red); transform: rotate(-30deg); }
.seal__core img { width: 78px; }
.wordmark { margin-top: 18px; width: 210px; }

/* ---------- Identidade (versão foto) ---------- */
.hero { position: relative; width: 100%; margin-top: 10px; height: 330px; display: flex; justify-content: center; align-items: flex-end; }
.hero__disc { position: absolute; left: 50%; bottom: 0; width: 290px; height: 290px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #2F6293, #11283F 65%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 40px 80px -30px rgba(0, 0, 0, .8); }
.hero__disc::after { content: ""; position: absolute; inset: -16px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--red); border-right-color: var(--red); animation: spin 24s linear infinite; }
.hero__photo { position: relative; z-index: 2; height: 340px; width: auto; mask-image: linear-gradient(#000 80%, transparent); -webkit-mask-image: linear-gradient(#000 80%, transparent); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.hero__badge { position: absolute; z-index: 3; right: 8px; top: 34px; width: 74px; height: 74px; border-radius: 50%; background: var(--red); display: grid; place-items: center; box-shadow: 0 16px 30px -10px rgba(218, 44, 70, .7); border: 3px solid var(--navy-950); }
.hero__badge img { width: 46px; }
.hero__online { position: absolute; z-index: 3; left: 4px; bottom: 54px; display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--navy-900); font-size: 12.5px; font-weight: 800; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .5); }
.hero__online i { width: 8px; height: 8px; border-radius: 50%; background: #25D366; box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); animation: pulseG 2s infinite; }
.mini-logo { height: 40px; width: auto; margin-top: 4px; }

/* ---------- Texto ---------- */
h1 { font-family: var(--serif); font-weight: 400; font-size: 2.15rem; line-height: 1.05; letter-spacing: -.01em; text-align: center; margin-top: 20px; }
h1 em { color: var(--red-light); }
.role { margin-top: 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--red-light); text-align: center; }
.bio { margin-top: 14px; max-width: 36ch; text-align: center; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.stats { display: flex; gap: 0; margin-top: 20px; padding: 12px 6px; border-radius: 16px; border: 1px solid var(--line); background: var(--glass); width: 100%; }
.stats div { flex: 1; text-align: center; border-right: 1px solid var(--line); }
.stats div:last-child { border: 0; }
.stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.45rem; line-height: 1.1; }
.stats span { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-top: 3px; }

/* ---------- Links ---------- */
.links { width: 100%; display: flex; flex-direction: column; gap: 11px; margin-top: 24px; }
.group-title { width: 100%; display: flex; align-items: center; gap: 10px; margin: 14px 0 2px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.link {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 14px 16px; border-radius: 18px; overflow: hidden;
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform .35s var(--ease), background .25s, border-color .25s;
  opacity: 0; transform: translateY(12px); animation: in .7s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 60ms + 150ms);
}
.link:hover, .link:active { transform: translateY(-2px); background: var(--glass-hover); border-color: var(--line-strong); }
.link__icon { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: var(--red-light); }
.link__icon svg { width: 20px; height: 20px; }
.link__text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.link__title { font-size: 15.5px; font-weight: 800; letter-spacing: -.005em; }
.link__sub { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link__go { flex: none; width: 18px; height: 18px; opacity: .55; transition: transform .35s var(--ease), opacity .25s; }
.link:hover .link__go { transform: translateX(3px); opacity: 1; }
.link__tag { flex: none; padding: 4px 8px; border-radius: 999px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; background: rgba(218, 44, 70, .18); color: var(--red-light); border: 1px solid rgba(218, 44, 70, .4); }

.link--primary { background: linear-gradient(135deg, #E43A54, var(--red-deep)); border-color: transparent; box-shadow: 0 18px 36px -16px rgba(218, 44, 70, .8); }
.link--primary:hover { background: linear-gradient(135deg, #EC4A63, var(--red)); border-color: transparent; }
.link--primary .link__icon { background: rgba(255, 255, 255, .16); color: #fff; }
.link--primary .link__sub { color: rgba(255, 255, 255, .8); }
.link--primary .link__go { opacity: .9; }
.link--primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%); transform: translateX(-100%); animation: shine 4.5s ease-in-out 1.2s infinite; }

.link--feature { padding: 0; flex-direction: column; align-items: stretch; gap: 0; }
.link--feature .feature__img { position: relative; height: 128px; overflow: hidden; }
.link--feature .feature__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.link--feature .feature__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(11, 27, 46, .9)); }
.link--feature:hover .feature__img img { transform: scale(1.06); }
.link--feature .feature__body { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.link--feature .link__tag { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--red); color: #fff; border-color: transparent; }

/* ---------- Ações / redes ---------- */
.actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.action { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; border-radius: 14px; font-size: 13.5px; font-weight: 800; background: transparent; border: 1px dashed var(--line-strong); transition: background .25s, border-color .25s; }
.action:hover { background: var(--glass); border-style: solid; }
.action svg { width: 17px; height: 17px; color: var(--red-light); }
.social { display: flex; gap: 10px; margin-top: 26px; }
.social a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--line); transition: background .25s, transform .3s var(--ease), border-color .25s; }
.social a:hover { background: var(--red); border-color: var(--red); transform: translateY(-3px); }
.social svg { width: 19px; height: 19px; }

footer { margin-top: 28px; text-align: center; font-size: 11.5px; color: var(--faint); line-height: 1.6; max-width: 40ch; }
footer b { color: var(--muted); }
footer .hours { margin-top: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translate(-50%, 20px); opacity: 0; padding: 12px 18px; border-radius: 999px; background: var(--ivory); color: var(--navy-900); font-weight: 800; font-size: 13.5px; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .6); transition: opacity .3s, transform .4s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Entrada ---------- */
.fade { opacity: 0; transform: translateY(14px); animation: in .9s var(--ease) forwards; }
.fade--1 { animation-delay: .05s; } .fade--2 { animation-delay: .15s; } .fade--3 { animation-delay: .25s; } .fade--4 { animation-delay: .35s; }

@keyframes in { to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { to { transform: translate3d(3%, 4%, 0) rotate(4deg); } }
@keyframes shine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes pulseG { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); } 70% { box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

@media (max-width: 360px) {
  h1 { font-size: 1.85rem; }
  .hero { height: 290px; }
  .hero__photo { height: 300px; }
  .hero__disc { width: 250px; height: 250px; }
  .link__sub { white-space: normal; }
}
@media (min-width: 700px) {
  .page { padding-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .link, .fade { opacity: 1; transform: none; }
}
