/* Froc Sobrenatural — estilos das páginas estáticas de SEO (guias, legais, 404) e do conteúdo
   pré-renderizado da home. Escopo: body.seo-page e .seo (não interfere no app React). */

:root {
  --froc-bg: #05080f;
  --froc-bg2: #070d18;
  --froc-panel: rgba(9, 16, 30, 0.78);
  --froc-line: rgba(0, 240, 255, 0.16);
  --froc-text: #e2e8f0;
  --froc-muted: #94a3b8;
  --froc-cyan: #00f0ff;
  --froc-mint: #00ffb3;
  --froc-violet: #a78bfa;
  --froc-radius: 16px;
}

body.seo-page {
  margin: 0;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(0, 240, 255, 0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(167, 139, 250, 0.08), transparent 60%), var(--froc-bg);
  color: var(--froc-text);
  font: 17px/1.7 system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

.seo-page *,
.seo * {
  box-sizing: border-box;
}

.seo-page a {
  color: #7dd3fc;
  text-underline-offset: 3px;
}
.seo-page a:hover {
  color: var(--froc-mint);
}

.seo-page img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--froc-mint);
  color: #001b12;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
}
.skip:focus {
  left: 12px;
}

/* ------------------------------------------------------------------ Efeitos de fundo */
.fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: drift 22s ease-in-out infinite alternate;
}
.o1 {
  width: 380px;
  height: 380px;
  background: #00f0ff;
  top: -120px;
  right: -80px;
  opacity: 0.18;
}
.o2 {
  width: 320px;
  height: 320px;
  background: #7c3aed;
  bottom: 10%;
  left: -120px;
  opacity: 0.16;
  animation-duration: 28s;
}
.o3 {
  width: 220px;
  height: 220px;
  background: #00ffb3;
  top: 45%;
  right: 20%;
  opacity: 0.08;
  animation-duration: 34s;
}
.fog {
  position: absolute;
  inset: -20%;
  background: radial-gradient(closest-side, rgba(148, 163, 184, 0.06), transparent 70%) 0 0 / 600px 400px repeat;
  animation: fog 60s linear infinite;
}
.scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.05), transparent);
  animation: scan 9s linear infinite;
}
.ghost {
  position: absolute;
  width: 90px;
  opacity: 0;
  filter: drop-shadow(0 0 18px rgba(0, 255, 179, 0.5));
}
.g1 {
  top: 30%;
  right: 6%;
  animation: haunt 16s ease-in-out infinite;
}

@keyframes drift {
  to {
    transform: translate(-60px, 50px) scale(1.15);
  }
}
@keyframes fog {
  to {
    transform: translateX(600px);
  }
}
@keyframes scan {
  from {
    transform: translateY(-160px);
  }
  to {
    transform: translateY(110vh);
  }
}
@keyframes haunt {
  0%,
  100% {
    opacity: 0;
    transform: translateY(20px) scale(0.92);
  }
  35%,
  55% {
    opacity: 0.32;
    transform: translateY(-14px) scale(1);
  }
}
@keyframes float {
  50% {
    transform: translateY(-10px) rotate(-2deg);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 255, 179, 0.45), 0 10px 30px -10px rgba(0, 240, 255, 0.6);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(0, 255, 179, 0), 0 10px 40px -8px rgba(0, 240, 255, 0.85);
  }
}
@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

/* ------------------------------------------------------------------ Topo */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 13, 24, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--froc-line);
}
.topbar-in {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 62px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--froc-text) !important;
}
.brand svg {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 240, 255, 0.45);
  border-radius: 9px;
  padding: 4px;
  background: #091322;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.25);
}
.brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand strong {
  font: 800 13px/1.1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.14em;
  background: linear-gradient(90deg, var(--froc-cyan), #5eead4, var(--froc-mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand small {
  font: 600 10px ui-monospace, monospace;
  color: var(--froc-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.mainnav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.mainnav a {
  color: var(--froc-muted);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 10px;
}
.mainnav a:hover,
.mainnav a[aria-current='page'] {
  color: var(--froc-text);
  background: rgba(0, 240, 255, 0.08);
}

/* ------------------------------------------------------------------ Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none !important;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 15px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}
.btn-lg {
  padding: 15px 26px;
  font-size: 16px;
}
.btn-glow {
  color: #00140f !important;
  background: linear-gradient(90deg, var(--froc-mint), var(--froc-cyan), var(--froc-mint));
  background-size: 200% auto;
  animation: glow 2.8s ease-in-out infinite, shimmer 6s linear infinite;
}
.btn-ghost {
  color: var(--froc-text) !important;
  border: 1px solid rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.05);
}
.btn-ghost:hover {
  border-color: var(--froc-mint);
}

/* ------------------------------------------------------------------ Conteúdo */
main.wrap {
  padding: 22px 0 60px;
}
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--froc-muted);
}
.crumbs li + li::before {
  content: '›';
  margin-right: 6px;
  color: #475569;
}
.crumbs a {
  color: var(--froc-muted);
}

.doc {
  max-width: 820px;
}
.doc-head {
  animation: rise 0.7s ease both;
}
.kicker {
  display: inline-block;
  font: 700 11px ui-monospace, monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--froc-mint);
  border: 1px solid rgba(0, 255, 179, 0.35);
  background: rgba(0, 255, 179, 0.06);
  padding: 4px 10px;
  border-radius: 999px;
}
.doc h1,
.notfound h1 {
  font-size: clamp(30px, 5.2vw, 50px);
  line-height: 1.12;
  margin: 14px 0 14px;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff, #b6f6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: clamp(18px, 2.4vw, 20px);
  color: #cbd5e1;
}
.meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--froc-muted);
}
.meta span {
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.hero-fig {
  margin: 26px 0;
  border-radius: var(--froc-radius);
  overflow: hidden;
  border: 1px solid var(--froc-line);
  background: var(--froc-bg2);
  animation: rise 0.9s 0.1s ease both;
}
.hero-fig img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.toc {
  margin: 22px 0;
  padding: 18px 22px;
  border-radius: var(--froc-radius);
  border: 1px solid var(--froc-line);
  background: var(--froc-panel);
}
.toc strong {
  font: 700 12px ui-monospace, monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--froc-cyan);
}
.toc ol {
  margin: 10px 0 0;
  padding-left: 20px;
}
.toc a {
  color: var(--froc-text);
  text-decoration: none;
}
.toc a:hover {
  color: var(--froc-mint);
}

.doc section {
  margin-top: 34px;
  scroll-margin-top: 80px;
}
.doc h2 {
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.25;
  margin: 0 0 10px;
  color: #f8fafc;
}
.doc h2::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--froc-cyan), var(--froc-mint));
  box-shadow: 0 0 10px var(--froc-cyan);
  transform: translateY(-3px) rotate(45deg);
}
.doc p,
.doc li {
  color: #d5deea;
}
.doc ul,
.doc ol {
  padding-left: 22px;
}
.doc li {
  margin: 6px 0;
}
.doc strong {
  color: #fff;
}
.doc-legal section {
  padding: 18px 22px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(9, 16, 30, 0.55);
  border-radius: 14px;
}

/* ------------------------------------------------------------------ CTA */
.cta-box {
  position: relative;
  margin: 40px 0;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 179, 0.35);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.12), rgba(124, 58, 237, 0.12)), var(--froc-bg2);
  box-shadow: 0 20px 60px -30px rgba(0, 240, 255, 0.6);
}
.cta-box h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 3vw, 28px);
}
.cta-box h2::before {
  display: none;
}
.cta-box p {
  margin: 0;
}
.cta-box .btn {
  justify-self: start;
}
.cta-ghost {
  position: absolute;
  right: -10px;
  top: -10px;
  width: 120px;
  opacity: 0.18;
  animation: float 6s ease-in-out infinite;
}
.badges {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.badges li {
  margin: 0;
  font-size: 13px;
  padding: 5px 11px 5px 28px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 179, 0.3);
  background: rgba(0, 255, 179, 0.06);
  color: #d1fae5;
  position: relative;
}
.badges li::before {
  content: '✓';
  position: absolute;
  left: 11px;
  color: var(--froc-mint);
  font-weight: 800;
}

/* ------------------------------------------------------------------ FAQ */
.faq {
  margin-top: 40px;
}
.faq details {
  border: 1px solid var(--froc-line);
  background: var(--froc-panel);
  border-radius: 14px;
  margin: 10px 0;
  padding: 0 18px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 0;
  list-style: none;
  position: relative;
  padding-right: 30px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 12px;
  font-size: 22px;
  color: var(--froc-cyan);
  transition: transform 0.25s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  margin: 0 0 16px;
}

/* ------------------------------------------------------------------ Cards */
.related {
  margin-top: 50px;
}
.related h2 {
  font-size: 24px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 16px;
  margin-top: 16px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 0 18px;
  border-radius: var(--froc-radius);
  border: 1px solid var(--froc-line);
  background: var(--froc-panel);
  text-decoration: none;
  color: var(--froc-text) !important;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 179, 0.5);
  box-shadow: 0 18px 40px -24px rgba(0, 240, 255, 0.7);
}
.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--froc-line);
}
.card > span,
.card > strong {
  padding: 0 18px;
}
.card-kicker {
  font: 700 11px ui-monospace, monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--froc-mint);
  margin-top: 8px;
}
.card strong {
  font-size: 18px;
  line-height: 1.3;
}
.card-desc {
  font-size: 14px;
  color: var(--froc-muted);
  line-height: 1.55;
}
.card-more {
  color: var(--froc-cyan);
  font-size: 14px;
  font-weight: 700;
  margin-top: auto;
}

/* ------------------------------------------------------------------ 404 */
.notfound {
  text-align: center;
  padding: 50px 0 30px;
}
.notfound p {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.nf-ghost {
  width: 120px;
  margin: 0 auto 10px;
  animation: float 5s ease-in-out infinite;
  filter: drop-shadow(0 0 24px rgba(0, 255, 179, 0.6));
}

/* ------------------------------------------------------------------ Rodapé */
.sitefoot {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  border-top: 1px solid var(--froc-line);
  background: rgba(4, 6, 11, 0.9);
  font-size: 14px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
  padding: 40px 0 24px;
}
.foot-grid h2 {
  font: 700 12px ui-monospace, monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--froc-cyan);
  margin: 6px 0 12px;
}
.foot-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.foot-grid li {
  margin: 7px 0;
}
.foot-grid a {
  color: var(--froc-muted);
  text-decoration: none;
}
.foot-grid a:hover {
  color: var(--froc-mint);
}
.foot-brand p {
  color: var(--froc-muted);
}
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 0 26px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  color: #64748b;
  font-size: 12px;
}

/* ------------------------------------------------------------------ Home pré-renderizada (antes do React) */
.seo-home {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 16px 60px;
  color: var(--froc-text);
  font: 17px/1.65 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.seo-home h1 {
  font-size: clamp(30px, 5.4vw, 54px);
  line-height: 1.1;
  margin: 12px 0;
  color: #fff;
}
.seo-home h2 {
  font-size: clamp(22px, 3vw, 30px);
  color: #f1f5f9;
  margin: 36px 0 10px;
}
.seo-home h3 {
  font-size: 18px;
  color: #e2e8f0;
  margin: 14px 0 4px;
}
.seo-home p {
  color: #cbd5e1;
}
.seo-home a {
  color: #7dd3fc;
}
.seo-home .eyebrow {
  font: 700 12px ui-monospace, monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--froc-mint);
}
.seo-home .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.seo-home .feature-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 14px;
}
.seo-home .feature-grid li {
  padding: 16px 18px;
  border: 1px solid var(--froc-line);
  border-radius: 14px;
  background: var(--froc-panel);
}
.seo-home .steps {
  padding-left: 22px;
}

/* ------------------------------------------------------------------ Responsivo */
@media (max-width: 860px) {
  .mainnav {
    display: none;
  }
  .topbar .btn {
    margin-left: auto;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .foot-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 520px) {
  body.seo-page {
    font-size: 16px;
  }
  .brand small {
    display: none;
  }
  .topbar .btn-sm {
    padding: 8px 10px;
    font-size: 12px;
  }
  .cta-box {
    padding: 22px;
  }
  .cta-box .btn {
    justify-self: stretch;
    white-space: normal;
  }
  .foot-grid {
    grid-template-columns: 1fr;
  }
  .ghost {
    display: none;
  }
}

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

@media print {
  .fx,
  .topbar,
  .cta-box,
  .related,
  .sitefoot {
    display: none !important;
  }
  body.seo-page {
    background: #fff;
    color: #000;
  }
}
