:root {
  --forest: #0c2d1e;
  --forest-deep: #0b0f0d;
  --forest-mid: #123d29;
  --mint: #bedccd;
  --mint-soft: #f8fcfa;
  --glow: #1c5a3a;
  --on-accent: #0b0f0d;
  --leaf: #2f7a52;
  --glass: rgba(255, 255, 255, .05);
  --glass-line: rgba(255, 255, 255, .10);
  --text: #f2f4f2;
  --muted: #9aa39e;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; margin: 0; -webkit-tap-highlight-color: transparent; }
html { background: var(--forest-deep); }
body {
  min-height: 100svh; font-family: var(--sans); color: var(--text);
  display: flex; justify-content: center; align-items: flex-start;
  padding: clamp(16px, 5vh, 56px) 14px 120px; overflow-x: hidden;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

/* ---------- background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: radial-gradient(1000px 600px at 50% -10%, color-mix(in srgb, var(--glow) 38%, var(--forest-deep)) 0%, var(--forest-deep) 65%); }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .28; will-change: transform; }
.b1 { width: 46vmax; height: 46vmax; background: var(--glow); top: -14vmax; left: -10vmax; animation: drift1 22s ease-in-out infinite alternate; }
.b2 { width: 38vmax; height: 38vmax; background: color-mix(in srgb, var(--glow) 70%, white); bottom: -12vmax; right: -8vmax; opacity: .16; animation: drift2 28s ease-in-out infinite alternate; }
.b3 { width: 26vmax; height: 26vmax; background: #e8efe9; top: 40%; left: 55%; opacity: .05; animation: drift3 18s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(18vmax, 12vmax) scale(1.2); } }
@keyframes drift2 { to { transform: translate(-16vmax, -10vmax) scale(1.15); } }
@keyframes drift3 { to { transform: translate(-30vmax, 14vmax) scale(.8); } }
.grain { position: absolute; inset: -50%; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.cursor-glow { position: absolute; width: 520px; height: 520px; left: 0; top: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .07), transparent 65%);
  transform: translate(var(--mx, -999px), var(--my, -999px)) translate(-50%, -50%); transition: opacity .4s; }

/* ---------- card ---------- */
.card {
  position: relative; width: 100%; max-width: 460px; padding: 34px 20px 24px;
  border-radius: 30px; background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid var(--glass-line); backdrop-filter: blur(28px) saturate(140%); -webkit-backdrop-filter: blur(28px) saturate(140%);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255,255,255,.12);
  animation: cardIn 1s var(--ease) both; transform-style: preserve-3d;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(40px) scale(.94); filter: blur(12px); } }
.reveal { animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms + 250ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }

.share { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--glass); border: 1px solid var(--glass-line); transition: transform .3s var(--spring), background .2s; }
.share:hover { transform: scale(1.1) rotate(-8deg); background: rgba(255,255,255,.14); }
.share svg { width: 17px; fill: none; stroke: var(--mint); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- hero ---------- */
.hero { text-align: center; }
.avatar { position: relative; width: 104px; height: 104px; margin: 0 auto; animation: pop .9s var(--spring) .15s both; }
@keyframes pop { from { opacity: 0; transform: scale(.3) rotate(-30deg); } }
.avatar img { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); border-radius: 50%; object-fit: cover; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 14s linear infinite; }
.ring circle { fill: none; stroke: var(--mint); stroke-width: 1.5; stroke-dasharray: 3 7; stroke-linecap: round; opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }
.verified { position: absolute; right: 2px; bottom: 4px; width: 26px; height: 26px; border-radius: 50%; background: #3aa0ff; border: 3px solid var(--forest-deep); display: grid; place-items: center; animation: pop .6s var(--spring) .9s both; }
.verified svg { width: 13px; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 9vw, 2.5rem); letter-spacing: -.03em; margin-top: 14px; color: #fff; }
.bio { margin: 8px auto 0; max-width: 320px; font-size: .92rem; line-height: 1.5; color: var(--muted); }
.bio b { color: var(--mint); }
.status { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 7px 14px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--glass); border: 1px solid var(--glass-line); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #5ee09a; box-shadow: 0 0 0 0 rgba(94,224,154,.6); animation: pulse 2s infinite; }
.status.closed .dot { background: #e0a85e; animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(94,224,154,0); } 100% { box-shadow: 0 0 0 0 rgba(94,224,154,0); } }

/* ---------- tabs ---------- */
.tabs { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); margin: 24px 0 18px; padding: 4px; border-radius: 16px; background: rgba(0,0,0,.3); border: 1px solid var(--glass-line); }
.tabs button { position: relative; z-index: 1; padding: 10px 0; font-size: .85rem; font-weight: 600; color: var(--muted); transition: color .3s; }
.tabs button[aria-selected="true"] { color: var(--on-accent); }
.indicator { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 2); border-radius: 12px; background: var(--mint); transform: translateX(calc(var(--idx, 0) * 100%)); transition: transform .5s var(--spring); box-shadow: 0 6px 18px color-mix(in srgb, var(--mint) 25%, transparent); }

/* ---------- panels ---------- */
.panel { display: none; }
.panel.active { display: block; }
.panel.active > *, .panel.active .row { animation: rise .6s var(--ease) both; animation-delay: calc(var(--n, 0) * 60ms); }

.row { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px; margin-bottom: 10px; border-radius: 18px; text-decoration: none; color: inherit;
  background: var(--glass); border: 1px solid var(--glass-line); overflow: hidden; isolation: isolate; text-align: left; width: 100%;
  transition: transform .4s var(--spring), border-color .3s, background .3s; }
.row::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,.10), transparent 60%); }
.row:hover { transform: translateY(-3px) scale(1.015); border-color: rgba(255,255,255,.28); }
.row:hover::before { opacity: 1; }
.row:active { transform: scale(.97); }
.row.featured { background: linear-gradient(135deg, color-mix(in srgb, var(--mint) 55%, white), var(--mint)); color: var(--on-accent); border-color: transparent; }
.row.featured .sub { color: color-mix(in srgb, var(--on-accent) 68%, transparent); }
.row.featured .ico { background: var(--on-accent); color: var(--mint); }
.row.featured::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.7) 50%, transparent 65%); transform: translateX(-120%); animation: shine 4s ease-in-out 1.5s infinite; }
@keyframes shine { 40%, 100% { transform: translateX(120%); } }
.ico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: var(--mint); transition: transform .5s var(--spring); }
.row:hover .ico { transform: rotate(-8deg) scale(1.1); }
.ico svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.txt { flex: 1; min-width: 0; }
.txt b { display: block; font-size: .95rem; font-weight: 700; }
.sub { display: block; margin-top: 2px; font-size: .78rem; color: var(--muted); }
.arrow { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .5; transition: transform .35s var(--spring), opacity .3s; }
.row:hover .arrow { transform: translate(3px, -3px); opacity: 1; }
.ripple { position: absolute; border-radius: 50%; background: rgba(190,220,205,.35); transform: scale(0); animation: ripple .7s ease-out forwards; pointer-events: none; z-index: -1; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* ---------- about ---------- */
.about-card { padding: 16px; margin-bottom: 10px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-line); }
.about-card h3 { font-family: var(--serif); font-size: 1.05rem; margin-bottom: 8px; color: #fff; }
.about-card p, .about-card li { font-size: .86rem; line-height: 1.6; color: var(--muted); }
.about-card ul { list-style: none; padding: 0; }
.about-card li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--glass-line); }
.about-card li:last-child { border: 0; }
.about-card li.today { color: var(--mint); font-weight: 700; }

.fold { padding: 0; }
.fold-head { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 16px; text-align: left; }
.fold-head h3 { margin: 0; }
.fold-head small { display: block; margin-top: 3px; font-size: .78rem; color: var(--muted); }
.chev { width: 22px; fill: none; stroke: var(--mint); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--spring); }
.fold.open .chev { transform: rotate(180deg); }
.fold-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.fold-body > div { overflow: hidden; padding: 0 16px; opacity: 0; transition: opacity .4s; }
.fold.open .fold-body { grid-template-rows: 1fr; }
.fold.open .fold-body > div { opacity: 1; padding-bottom: 12px; transition-delay: .1s; }

footer { margin-top: 18px; text-align: center; font-size: .72rem; color: var(--muted); opacity: .7; letter-spacing: .02em; line-height: 1.5; }

.toast { position: fixed; top: 20px; left: 50%; z-index: 50; padding: 10px 18px; border-radius: 999px; font-size: .82rem; font-weight: 600; background: var(--mint-soft); color: var(--forest-deep); transform: translate(-50%, -150%); transition: transform .5s var(--spring); }
.toast.show { transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- estado de carregamento / pré-visualização ---------- */
[hidden] { display: none !important; }
body:not(.ready) .card, body:not(.ready) .reveal, body:not(.ready) .avatar, body:not(.ready) .verified { animation: none; opacity: 0; }
.row .txt .sub:empty { display: none; }
body.preview { padding-top: 24px; }
body.preview .panel.active > *, body.preview .row { animation: none; }

/* ---------- acessibilidade: foco visível (teclado) ---------- */
:focus { outline: none; }
.row:focus-visible, .tabs button:focus-visible, .share:focus-visible, .fold-head:focus-visible {
  outline: 2px solid var(--mint); outline-offset: 3px; }
.row.featured:focus-visible { outline-color: #fff; }

/* ---------- compatibilidade (navegadores embutidos de apps) ---------- */
body { min-height: 100vh; }
@supports (min-height: 100svh) { body { min-height: 100svh; } }
@supports not (backdrop-filter: blur(1px)) and not (-webkit-backdrop-filter: blur(1px)) {
  .card { background: rgba(20, 26, 23, .94); }
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .bg { background: radial-gradient(1000px 600px at 50% -10%, var(--glow), var(--forest-deep) 65%); }
  .b2 { background: var(--glow); }
  .row.featured { background: var(--mint); }
  .indicator { box-shadow: none; }
}

/* ---------- celular: mais leve ---------- */
@media (max-width: 700px) {
  .blob { filter: blur(56px); }
  .grain { display: none; }
  .card { backdrop-filter: blur(18px) saturate(130%); -webkit-backdrop-filter: blur(18px) saturate(130%); }
}
@media (hover: none) { .cursor-glow { display: none; } }

/* aviso (toast): totalmente invisível quando não está em uso */
.toast { visibility: hidden; opacity: 0; transition: transform .5s var(--spring), opacity .25s, visibility 0s .5s; }
.toast.show { visibility: visible; opacity: 1; transition-delay: 0s; }

/* ---------- texto formatado ---------- */
.about-card p + p { margin-top: .9em; }
.about-card b, .about-card strong { color: var(--text); font-weight: 700; }
.bio u, .about-card u { text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- feriados na aba Sobre ---------- */
.hol-title { margin: 14px 0 4px; padding-top: 12px; border-top: 1px solid var(--glass-line); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.about-card li span:first-child { padding-right: 12px; }
.about-card li span:last-child { white-space: nowrap; }
.hol-note { display: block; margin-top: 1px; font-size: .72rem; font-weight: 400; color: var(--muted); }
.about-card li.today .hol-note { color: var(--muted); }
