/* Augustus Global Group — estética living-orb */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { background: #04060a; color: #e8f2f0; font-family: 'Onest', system-ui, sans-serif; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: #2ff0b4; color: #04060a; }

#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .18;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.55) .5px, transparent 0);
  background-size: 3px 3px; mix-blend-mode: overlay; }
.vig { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, transparent 35%, rgba(0,0,0,.72) 100%); }

.loader { position: fixed; inset: 0; z-index: 90; background: #04060a; display: grid; place-items: center;
  transition: transform .9s cubic-bezier(.76,0,.24,1); }
.loader.out { transform: translateY(-101%); }
.loader__n { font-size: clamp(3rem, 12vw, 9rem); font-weight: 300; letter-spacing: -.04em;
  background: linear-gradient(92deg, #2ff0b4, #9089fb); -webkit-background-clip: text; background-clip: text; color: transparent; }

.mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: .68rem;
  letter-spacing: .18em; text-transform: uppercase; color: rgba(232,242,240,.52); }

.hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center;
  justify-content: space-between; padding: 1.5rem clamp(1.2rem, 4vw, 3rem); }
.hdr__b { display: flex; align-items: center; gap: .6rem; font-weight: 500; letter-spacing: .02em; }
.hdr__b i { display: inline-block; width: 15px; height: 15px; background: currentColor; font-style: normal;
  clip-path: polygon(50% 0,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%); animation: sp 9s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

.pill { display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .62rem 1.15rem; border-radius: 999px;
  border: 1px solid rgba(232,242,240,.22); font-size: .84rem; backdrop-filter: blur(9px);
  transition: background .4s cubic-bezier(.22,1,.36,1), color .4s, transform .4s, border-color .4s; }
.pill:hover { background: #e8f2f0; color: #04060a; border-color: #e8f2f0; transform: translateY(-2px); }
.pill--solid { background: #e8f2f0; color: #04060a; border-color: #e8f2f0; }
.pill--solid:hover { background: #2ff0b4; border-color: #2ff0b4; transform: translateY(-2px) scale(1.02); }

h1 { font-size: clamp(2.2rem, 6vw, 4.6rem); font-weight: 300; line-height: 1; letter-spacing: -.035em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.6rem); font-weight: 300; line-height: 1.06; letter-spacing: -.03em; }
.lede { max-width: 38ch; font-size: .98rem; line-height: 1.55; color: rgba(232,242,240,.62); }

[data-reveal] { opacity: 0; transform: translateY(26px); filter: blur(7px);
  transition: opacity .95s cubic-bezier(.22,1,.36,1), transform .95s cubic-bezier(.22,1,.36,1), filter .95s; }
[data-reveal].in, body.ready [data-reveal].auto { opacity: 1; transform: none; filter: none; }
[data-reveal][data-d="1"] { transition-delay: .12s; } [data-reveal][data-d="2"] { transition-delay: .24s; }
[data-reveal][data-d="3"] { transition-delay: .36s; }

/* ---------- login ---------- */
.gate { position: relative; z-index: 10; min-height: 100vh; min-height: 100dvh; display: flex;
  flex-direction: column; justify-content: flex-end; padding: 6.5rem clamp(1.2rem, 4vw, 3rem) 3rem; }
.gate__grid { display: flex; justify-content: space-between; align-items: flex-end; gap: 3rem; flex-wrap: wrap; }
.gate__copy { max-width: 30rem; }
.card { width: min(24rem, 100%); background: rgba(6,10,16,.66); border: 1px solid rgba(232,242,240,.14);
  border-radius: 18px; padding: 1.8rem 1.6rem; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.card h3 { font-weight: 500; font-size: 1.05rem; margin-bottom: 1.1rem; letter-spacing: .01em; }
.field { margin-bottom: .85rem; }
.field label { display: block; font-family: ui-monospace, Menlo, monospace; font-size: .62rem;
  letter-spacing: .16em; text-transform: uppercase; color: rgba(232,242,240,.5); margin-bottom: .4rem; }
.field input { width: 100%; background: rgba(232,242,240,.06); border: 1px solid rgba(232,242,240,.16);
  border-radius: 10px; padding: .7rem .85rem; color: #e8f2f0; font: inherit; font-size: .92rem; outline: none;
  transition: border-color .3s, background .3s, box-shadow .3s; }
.field input:focus { border-color: #2ff0b4; background: rgba(47,240,180,.06);
  box-shadow: 0 0 0 3px rgba(47,240,180,.12); }
.btn { width: 100%; margin-top: .4rem; padding: .8rem 1rem; border-radius: 999px; font-size: .9rem;
  font-weight: 500; color: #04060a; background: linear-gradient(92deg, #2ff0b4, #9089fb);
  transition: transform .35s cubic-bezier(.22,1,.36,1), filter .35s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn:disabled { opacity: .55; transform: none; }
.swap { margin-top: 1rem; font-size: .8rem; color: rgba(232,242,240,.55); text-align: center; }
.swap b { color: #2ff0b4; cursor: pointer; font-weight: 500; }
.err { margin-top: .8rem; font-size: .8rem; color: #ff8f8f; min-height: 1.1em; text-align: center; }
.hide { display: none !important; }

/* ---------- painel ---------- */
main.panelwrap { position: relative; z-index: 10; padding: 6.5rem clamp(1.2rem, 4vw, 3rem) 5rem;
  max-width: 68rem; margin: 0 auto; }
.welcome { margin-bottom: 2.6rem; }
.welcome .mono { margin-bottom: .8rem; }
.tabs { display: flex; gap: .5rem; margin: 2.2rem 0 1.6rem; flex-wrap: wrap; }
.tab { padding: .5rem 1.05rem; border-radius: 999px; font-size: .82rem; border: 1px solid rgba(232,242,240,.16);
  color: rgba(232,242,240,.6); backdrop-filter: blur(9px); transition: all .35s; }
.tab.on, .tab:hover { color: #04060a; background: #e8f2f0; border-color: #e8f2f0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1rem; }
.enc { background: rgba(6,10,16,.66); border: 1px solid rgba(232,242,240,.13); border-radius: 16px;
  padding: 1.5rem 1.35rem; backdrop-filter: blur(14px); cursor: pointer;
  transition: transform .45s cubic-bezier(.22,1,.36,1), border-color .45s, background .45s; }
.enc:hover { transform: translateY(-4px); border-color: rgba(47,240,180,.5); background: rgba(47,240,180,.05); }
.enc .date { font-family: ui-monospace, Menlo, monospace; font-size: .64rem; letter-spacing: .16em;
  text-transform: uppercase; background: linear-gradient(92deg, #2ff0b4, #9089fb);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.enc h3 { font-size: 1.12rem; font-weight: 500; margin: .6rem 0 .5rem; line-height: 1.25; }
.enc p { font-size: .85rem; line-height: 1.5; color: rgba(232,242,240,.55); }
.enc .tagrow { display: flex; gap: .4rem; margin-top: 1rem; flex-wrap: wrap; }
.enc.locked { cursor: default; opacity: .55; }
.enc.locked:hover { transform: none; border-color: rgba(232,242,240,.13); background: rgba(6,10,16,.66); }
.enc .lock { -webkit-text-fill-color: initial; color: rgba(232,242,240,.7); font-size: .8rem;
  margin-left: .35rem; filter: grayscale(1); vertical-align: -1px; }
.tag { font-family: ui-monospace, Menlo, monospace; font-size: .58rem; letter-spacing: .12em;
  text-transform: uppercase; padding: .28rem .6rem; border-radius: 999px;
  border: 1px solid rgba(232,242,240,.18); color: rgba(232,242,240,.55); }
.empty { padding: 3rem 1rem; text-align: center; color: rgba(232,242,240,.45); font-size: .9rem;
  border: 1px dashed rgba(232,242,240,.18); border-radius: 16px; }

/* modal do encontro */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 1.2rem;
  background: rgba(4,6,10,.72); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity .4s; }
.modal.on { opacity: 1; pointer-events: auto; }
.modal__box { width: min(42rem, 100%); max-height: 84vh; overflow-y: auto; background: rgba(8,12,19,.94);
  border: 1px solid rgba(232,242,240,.16); border-radius: 20px; padding: 2rem 1.8rem;
  transform: translateY(18px); transition: transform .45s cubic-bezier(.22,1,.36,1); }
.modal.on .modal__box { transform: none; }
.modal__box h3 { font-size: 1.5rem; font-weight: 400; margin: .5rem 0 1rem; }
.modal__box .brief { font-size: .92rem; line-height: 1.65; color: rgba(232,242,240,.72); white-space: pre-line; }
.modal__files { margin-top: 1.6rem; display: flex; flex-direction: column; gap: .55rem; }
.filelink { display: flex; align-items: center; gap: .7rem; padding: .75rem .9rem; border-radius: 12px;
  border: 1px solid rgba(232,242,240,.14); font-size: .86rem; transition: all .3s; }
.filelink:hover { border-color: #2ff0b4; background: rgba(47,240,180,.07); }
.filelink i { width: 10px; height: 10px; background: linear-gradient(92deg, #2ff0b4, #9089fb);
  border-radius: 50%; flex: none; font-style: normal; }
.modal__close { position: sticky; top: 0; float: right; font-size: .78rem; color: rgba(232,242,240,.5); }
.modal__close:hover { color: #fff; }

@media (max-width: 700px) {
  .gate { justify-content: center; }
  .gate__copy { order: -1; }
}
