/* =========================================================
   FNNE — Página principal · v3
   ========================================================= */

:root {
  --c-bg:       #50276c;
  --c-bg-2:     #3d1d54;
  --c-bg-3:     #2a1238;
  --c-text:     #ffffff;
  --c-muted:    rgba(255,255,255,.72);
  --c-faint:    rgba(255,255,255,.5);
  --c-card:     rgba(255,255,255,.06);
  --c-card-bd:  rgba(255,255,255,.14);
  --c-card-ho:  rgba(255,255,255,.10);
  --c-accent:   #f4c842;
  --c-cta:      #e2503a;
  --c-cta-2:    #e87f3b;
  --radius:     14px;
  --radius-sm:  10px;
  --font:       'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --shadow:     0 12px 40px rgba(0,0,0,.25), 0 2px 8px rgba(0,0,0,.18);
  --t:          .18s cubic-bezier(.2,.7,.2,1);
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration:.01ms !important; transition-duration:.01ms !important }
  .reveal { opacity:1 !important; transform:none !important }
}

*,*::before,*::after { box-sizing:border-box }
html,body { margin:0; padding:0 }
html { scroll-behavior:smooth }
body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--c-accent); text-decoration: none }
a:hover { text-decoration: underline }

/* ── Background blobs ───────────────────────── */
.bg-blobs {
  position: fixed; inset: 0;
  z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-2) 50%, var(--c-bg-3) 100%);
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .35; will-change: transform;
}
.blob--1 { width:380px; height:380px; background:#6b3b8c; top:-120px; left:-100px; animation: floaty 18s ease-in-out infinite }
.blob--2 { width:420px; height:420px; background:#e2503a; top:35%; right:-160px; animation: floaty 22s ease-in-out -3s infinite reverse; opacity:.2 }
.blob--3 { width:300px; height:300px; background:#f4c842; bottom:-80px; left:30%; animation: floaty 20s ease-in-out -8s infinite; opacity:.12 }
@keyframes floaty {
  0%,100% { transform: translate(0,0) scale(1) }
  50%      { transform: translate(40px,-30px) scale(1.08) }
}

/* ── Reveal on scroll ───────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.is-in { opacity:1; transform:none }

/* ── Layout ─────────────────────────────────── */
.page {
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 20px 72px;
  position: relative;
}

/* ── Hero ────────────────────────────────────── */
.hero {
  text-align: center;
  margin-bottom: 36px;
}
.hero__logo {
  display: inline-block;
  margin-bottom: 22px;
}
.hero__logo img {
  width: 88px; height: 88px;
  border-radius: 22px;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.32));
}
.hero__title {
  font-size: clamp(26px, 8vw, 38px);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.1;
  margin: 0 0 10px;
}
.hero__title-accent {
  background: linear-gradient(135deg, var(--c-cta-2) 0%, var(--c-cta) 50%, var(--c-accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub {
  font-size: 15px;
  color: var(--c-muted);
  margin: 0;
  line-height: 1.6;
}

/* ── Fórum CTA ───────────────────────────────── */
.btn-forum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background: linear-gradient(135deg, var(--c-cta) 0%, var(--c-cta-2) 100%);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  padding: 18px 20px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(226,80,58,.35), inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform var(--t), box-shadow var(--t), filter var(--t);
  margin-bottom: 36px;
}
.btn-forum:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(226,80,58,.45), inset 0 1px 0 rgba(255,255,255,.22);
  filter: brightness(1.05);
  text-decoration: none; color: #fff;
}
.btn-forum:active { transform: translateY(0) scale(.99) }
.btn-forum__tag {
  display: block;
  font-size: 11px; font-weight: 500; opacity: .9;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px;
}
.btn-forum__title { display: block; font-size: 17px; font-weight: 900 }
.btn-forum__arrow {
  font-size: 22px; flex-shrink: 0;
  transition: transform var(--t);
}
.btn-forum:hover .btn-forum__arrow { transform: translateX(3px) }

/* ── Seções ──────────────────────────────────── */
.section { margin-bottom: 36px }
.section__title {
  font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-faint); margin: 0 0 12px;
}

/* ── Links dinâmicos (Apps Script) ───────────── */
.links-grid { display: grid; gap: 10px }

.btn-link {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--c-card);
  border: 1px solid var(--c-card-bd);
  border-radius: var(--radius-sm);
  color: var(--c-text); text-decoration: none;
  font-size: 14px; font-weight: 500;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background var(--t), border-color var(--t), transform var(--t);
}
.btn-link:hover {
  background: var(--c-card-ho);
  border-color: rgba(255,255,255,.26);
  transform: translateY(-1px);
  color: var(--c-text); text-decoration: none;
}
.btn-link:active { transform: translateY(0) }
.btn-link__icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 9px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.btn-link__label { flex: 1; min-width: 0 }
.btn-link__arrow { color: var(--c-faint); font-size: 15px; flex-shrink: 0 }
.btn-link:hover .btn-link__arrow { color: var(--c-accent) }

/* ── Skeleton loading ────────────────────────── */
.skel {
  height: 64px; border-radius: var(--radius-sm);
  background: linear-gradient(90deg,
    rgba(255,255,255,.05) 25%,
    rgba(255,255,255,.10) 50%,
    rgba(255,255,255,.05) 75%);
  background-size: 200% 100%;
  animation: skel 1.4s ease-in-out infinite;
}
@keyframes skel {
  0%   { background-position: 200% 0 }
  100% { background-position: -200% 0 }
}
.links-error {
  font-size: 14px; color: var(--c-faint);
  text-align: center; padding: 16px 0;
}

/* ── Botões sociais ───────────────────────────── */
.social-links { display: grid; gap: 10px }

.btn-social {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--c-card);
  border: 1px solid var(--c-card-bd);
  border-radius: var(--radius-sm);
  color: var(--c-text); text-decoration: none;
  font-size: 14px; font-weight: 500;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background var(--t), border-color var(--t), transform var(--t), color var(--t);
}
.btn-social:hover {
  background: var(--c-card-ho);
  border-color: var(--c-accent);
  color: var(--c-accent);
  transform: translateY(-1px);
  text-decoration: none;
}
.btn-social:active { transform: translateY(0) }
.btn-social__icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 9px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
}
.btn-social__label { flex: 1 }
.btn-social__arrow { color: var(--c-faint); font-size: 14px; flex-shrink: 0 }
.btn-social:hover .btn-social__arrow { color: var(--c-accent) }

/* ── Footer ──────────────────────────────────── */
.footer {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--c-card-bd);
  text-align: center;
}
.footer__social {
  display: flex; justify-content: center;
  gap: 12px; margin-bottom: 22px;
  flex-wrap: wrap;
}
.footer__social a {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-card);
  border: 1px solid var(--c-card-bd);
  border-radius: 10px;
  color: var(--c-muted); text-decoration: none;
  transition: background var(--t), border-color var(--t), color var(--t), transform var(--t);
}
.footer__social a:hover {
  background: var(--c-card-ho);
  border-color: var(--c-accent);
  color: var(--c-accent);
  transform: translateY(-2px);
  text-decoration: none;
}
.footer__copy {
  font-size: 13px; color: var(--c-faint);
  margin: 4px 0; line-height: 1.6;
}
.footer__dev {
  margin-top: 14px;
  font-size: 12px; color: var(--c-faint);
}
.footer__dev a {
  color: rgba(255,255,255,.85); font-weight: 600;
  border-bottom: 1px dotted rgba(255,255,255,.4);
  padding-bottom: 1px; text-decoration: none;
  transition: color .15s, border-color .15s;
}
.footer__dev a:hover { color: var(--c-accent); border-bottom-color: var(--c-accent) }

/* ── Responsivo ──────────────────────────────── */
@media (min-width: 640px) {
  .page { padding: 64px 32px 88px }
  .hero__logo img { width: 100px; height: 100px }
  .hero__title { font-size: 42px }
}
