/* ORBE & CO — estilos compartilhados */

:root {
  --cosmic: #0d0b1e;
  --orbital: #1e1647;
  --violet: #4b2e83;
  --nebula: #bfa9e5;
  --lunar: #f3eef9;
  --stellar: #d4af37;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.section-title {
  font-family: "Cormorant Garamond", Quiche Sans, serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-copy {
  max-width: 36rem;
  font-size: 0.95rem;
  line-height: 1.85;
  color: rgba(243, 238, 249, 0.55);
}

.btn-gold,
.btn-outline,
.btn-dark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  overflow: hidden;
  border-radius: 9999px;
  padding: 0.9rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    filter 0.35s ease;
}

.btn-gold {
  background: linear-gradient(135deg, #e2c465, #d4af37 45%, #b8902a);
  color: #0d0b1e;
  box-shadow: 0 16px 48px rgba(212, 175, 55, 0.18);
}

.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.45) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.btn-gold:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 22px 56px rgba(212, 175, 55, 0.38);
  filter: brightness(1.05);
}

.btn-gold:hover::after {
  transform: translateX(120%);
}

.btn-gold:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.22);
}

.btn-outline {
  border: 1px solid rgba(243, 238, 249, 0.22);
  color: #f3eef9;
  background: transparent;
}

.btn-outline:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.65);
  color: #d4af37;
  background: rgba(212, 175, 55, 0.08);
  box-shadow: 0 14px 36px rgba(212, 175, 55, 0.12);
}

.btn-outline:active {
  transform: translateY(0) scale(0.98);
}

.btn-dark {
  background: #0d0b1e;
  color: #f3eef9;
  box-shadow: 0 10px 28px rgba(13, 11, 30, 0.25);
}

.btn-dark:hover {
  background: #1e1647;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 42px rgba(30, 22, 71, 0.4);
}

.btn-dark:active {
  transform: translateY(0) scale(0.98);
}

.nav-link {
  transition: color 0.2s ease;
}

.mobile-link {
  display: block;
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  color: rgba(243, 238, 249, 0.8);
  transition: background 0.2s ease, color 0.2s ease;
}

.mobile-link:hover,
.mobile-link.is-active {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

#siteHeader.is-scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(13, 11, 30, 0.78);
  backdrop-filter: blur(18px);
}

.orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(40px);
  pointer-events: none;
  opacity: 0.45;
}

.orb-one {
  top: -8rem;
  right: -6rem;
  width: 28rem;
  height: 28rem;
  background: radial-gradient(circle, rgba(75, 46, 131, 0.55), transparent 70%);
}

.orb-two {
  bottom: -10rem;
  left: -8rem;
  width: 32rem;
  height: 32rem;
  background: radial-gradient(circle, rgba(30, 22, 71, 0.7), transparent 70%);
}

.orb-three {
  top: 40%;
  left: 45%;
  width: 14rem;
  height: 14rem;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.16), transparent 70%);
}

.orb-footer {
  right: -4rem;
  bottom: -8rem;
  width: 22rem;
  height: 22rem;
  background: radial-gradient(circle, rgba(75, 46, 131, 0.4), transparent 70%);
}

.glass-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease,
    background 0.4s ease;
}

.light-card {
  border: 1px solid rgba(13, 11, 30, 0.08);
  background: rgba(255, 255, 255, 0.7);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease,
    background 0.4s ease;
}

.glass-card:hover,
.reveal.is-visible.glass-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(75, 46, 131, 0.28);
}

.light-card:hover,
.reveal.is-visible.light-card:hover {
  transform: translateY(-8px);
  border-color: rgba(75, 46, 131, 0.18);
  background: #fff;
  box-shadow: 0 24px 56px rgba(75, 46, 131, 0.14);
}

/* Cards link / blocos com .group */
main a.group {
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease,
    background 0.4s ease;
}

main a.group:hover,
main a.group.reveal.is-visible:hover {
  transform: translateY(-8px);
}

main blockquote {
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.4s ease,
    background 0.4s ease,
    box-shadow 0.4s ease;
}

main blockquote:hover,
main blockquote.reveal.is-visible:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 48px rgba(75, 46, 131, 0.22);
}

/* Modal diagnóstico */
#diagnosticModal {
  padding: 1.25rem;
}

#diagnosticModal .diagnostic-panel {
  position: relative;
  display: grid;
  gap: 0;
  width: min(100%, 44rem);
  max-height: min(92vh, 100%);
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #fff;
  color: #0d0b1e;
  box-shadow:
    0 30px 80px rgba(13, 11, 30, 0.45),
    0 0 0 1px rgba(212, 175, 55, 0.08);
}

#diagnosticModal .diagnostic-panel__close {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(13, 11, 30, 0.08);
  background: #f3eef9;
  color: rgba(13, 11, 30, 0.55);
  font-size: 0.95rem;
  line-height: 1;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

#diagnosticModal .diagnostic-panel__close:hover {
  background: #0d0b1e;
  color: #f3eef9;
  transform: scale(1.04);
}

#diagnosticModal .diagnostic-panel__head {
  padding: 2rem 2.25rem 1.35rem;
  padding-right: 4rem;
  background:
    linear-gradient(180deg, #f3eef9 0%, #faf8fc 100%);
  border-bottom: 1px solid rgba(13, 11, 30, 0.06);
}

#diagnosticModal .diagnostic-panel__head .eyebrow {
  color: #4b2e83;
}

#diagnosticModal .diagnostic-panel__head h2 {
  margin: 0.75rem 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.75rem, 3.2vw, 2.2rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #0d0b1e;
}

#diagnosticModal .diagnostic-panel__head p {
  margin: 0.7rem 0 0;
  max-width: 34rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(13, 11, 30, 0.58);
}

#diagnosticModal .diagnostic-panel__body {
  padding: 1.5rem 2.25rem 2rem;
}

#diagnosticModal #diagnosticForm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.1rem;
  margin: 0;
}

#diagnosticModal .field {
  gap: 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(13, 11, 30, 0.48);
}

#diagnosticModal .field input,
#diagnosticModal .field textarea {
  border: 1px solid rgba(13, 11, 30, 0.1);
  border-radius: 0.85rem;
  background: #f8f5fb;
  padding: 0.8rem 0.95rem;
  font-size: 0.875rem;
}

#diagnosticModal .field input:hover,
#diagnosticModal .field textarea:hover {
  border-color: rgba(75, 46, 131, 0.25);
  background: #fff;
}

#diagnosticModal .field input:focus,
#diagnosticModal .field textarea:focus {
  border-color: rgba(75, 46, 131, 0.45);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(75, 46, 131, 0.1);
}

#diagnosticModal .field textarea {
  min-height: 5rem;
  resize: vertical;
}

#diagnosticModal .diagnostic-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  grid-column: 1 / -1;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(13, 11, 30, 0.55);
}

#diagnosticModal .diagnostic-check input {
  margin-top: 0.15rem;
  flex-shrink: 0;
}

#diagnosticModal #diagnosticForm .btn-dark {
  grid-column: 1 / -1;
  margin-top: 0.35rem;
  width: 100%;
}

#diagnosticModal #formMessage {
  grid-column: 1 / -1;
  margin: 0;
  border-radius: 0.85rem;
  background: rgba(75, 46, 131, 0.08);
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  color: #4b2e83;
}

#diagnosticModal #formMessage.is-error {
  background: rgba(180, 40, 40, 0.08);
  color: #8a1f1f;
}

#diagnosticModal #formMessage.is-success {
  background: rgba(75, 46, 131, 0.08);
  color: #4b2e83;
}

#diagnosticModal .diagnostic-panel.is-sent .diagnostic-panel__head {
  display: none;
}

#diagnosticModal .diagnostic-panel.is-sent .diagnostic-panel__body {
  display: grid;
  place-items: center;
  min-height: 18rem;
  padding: 2.5rem 2rem;
}

#diagnosticModal .diagnostic-panel.is-sent #diagnosticForm {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 14rem;
}

#diagnosticModal .diagnostic-panel.is-sent #diagnosticForm > :not(#formMessage) {
  display: none !important;
}

#diagnosticModal .diagnostic-panel.is-sent #formMessage {
  display: block;
  max-width: 28rem;
  text-align: center;
  border: none;
  background: transparent;
  padding: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 500;
  line-height: 1.35;
  color: #0d0b1e;
}

#diagnosticModal .diagnostic-captcha {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
  min-height: 78px;
  margin-top: 0.15rem;
}

#diagnosticModal #diagnosticForm .btn-dark:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

@media (max-width: 640px) {
  #diagnosticModal {
    padding: 0.75rem;
    align-items: flex-end;
  }

  #diagnosticModal .diagnostic-panel {
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 1.35rem 1.35rem 0.85rem 0.85rem;
  }

  #diagnosticModal .diagnostic-panel__head,
  #diagnosticModal .diagnostic-panel__body {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  #diagnosticModal .diagnostic-panel__head {
    padding-top: 1.5rem;
    padding-bottom: 1.1rem;
    padding-right: 3.5rem;
  }

  #diagnosticModal .diagnostic-panel__body {
    padding-top: 1.15rem;
    padding-bottom: 1.35rem;
  }

  #diagnosticModal #diagnosticForm {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 700px) and (min-width: 641px) {
  #diagnosticModal .diagnostic-panel {
    max-height: 92vh;
    overflow-y: auto;
  }

  #diagnosticModal .diagnostic-panel__head {
    padding-top: 1.35rem;
    padding-bottom: 1rem;
  }

  #diagnosticModal .diagnostic-panel__body {
    padding-top: 1.1rem;
    padding-bottom: 1.25rem;
  }

  #diagnosticModal .field textarea {
    min-height: 3.75rem;
  }
}

.quote-mark {
  font-family: "Cormorant Garamond", serif;
  font-size: 4rem;
  line-height: 1;
  color: #d4af37;
  opacity: 0.7;
}

.field {
  display: grid;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(13, 11, 30, 0.55);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(13, 11, 30, 0.12);
  border-radius: 1rem;
  background: #fff;
  padding: 0.9rem 1rem;
  font-family: Poppins, sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #0d0b1e;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(75, 46, 131, 0.45);
  box-shadow: 0 0 0 4px rgba(75, 46, 131, 0.1);
}

/* Sem JS (html sem .js): conteúdo já visível — não some se o script for bloqueado */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

html.js .reveal[data-delay="1"] {
  transition-delay: 0.08s;
}
html.js .reveal[data-delay="2"] {
  transition-delay: 0.16s;
}
html.js .reveal[data-delay="3"] {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Slot de imagem a definir pelo cliente */
[data-image-slot] {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(75, 46, 131, 0.35), transparent 45%),
    radial-gradient(circle at 70% 80%, rgba(212, 175, 55, 0.12), transparent 40%),
    #1e1647;
  border: 1px dashed rgba(191, 169, 229, 0.35);
  color: rgba(243, 238, 249, 0.65);
  text-align: center;
  min-height: 16rem;
}

[data-image-slot]::before {
  content: attr(data-image-slot);
  max-width: 16rem;
  padding: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.6;
}

[data-image-slot].slot-light {
  background:
    radial-gradient(circle at 30% 20%, rgba(75, 46, 131, 0.12), transparent 45%),
    #f3eef9;
  border-color: rgba(13, 11, 30, 0.15);
  color: rgba(13, 11, 30, 0.45);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding-top: 8rem;
  padding-bottom: 4rem;
}

.prose-orbe p {
  margin-top: 1.1rem;
  font-size: 0.95rem;
  line-height: 1.85;
  color: rgba(243, 238, 249, 0.6);
}

.prose-orbe.prose-dark p {
  color: rgba(13, 11, 30, 0.65);
}

.prose-orbe h3 {
  margin-top: 2rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.85rem;
  line-height: 1.2;
}

.badge-modelo {
  display: inline-flex;
  border-radius: 9999px;
  background: rgba(212, 175, 55, 0.12);
  padding: 0.3rem 0.75rem;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d4af37;
}

/* Home hero — sempre 1 viewport */
.home-hero {
  display: flex;
  flex-direction: column;
  height: 100svh;
  max-height: 100svh;
  min-height: 100svh;
  padding-top: 4.75rem; /* header */
}

.home-hero__grid {
  flex: 1 1 auto;
  min-height: 0;
  padding-block: 1.25rem 1rem;
}

.home-hero__title {
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
}

.home-hero__lead {
  max-width: 34rem;
}

.home-hero__strip > div {
  display: grid;
  place-items: center;
  min-height: 3.25rem;
  padding-block: 0.85rem;
}

.home-hero .hero-orbit {
  width: 100%;
  height: min(100%, 420px);
  max-height: 48svh;
  min-height: 280px;
  justify-self: center;
}

.home-hero .hero-orbit__core {
  width: clamp(7rem, 16vw, 10rem);
  height: clamp(7rem, 16vw, 10rem);
}

.home-hero .hero-orbit__logo {
  width: clamp(12rem, 26vw, 17rem);
}

.home-hero .hero-orbit__ring--outer {
  inset: 0.5rem;
}

.home-hero .hero-orbit__ring--inner {
  inset: 18%;
}

.home-hero .hero-orbit__card {
  max-width: 12rem;
  padding: 0.85rem 1rem;
}

@media (max-height: 760px) {
  .home-hero__title {
    font-size: clamp(2.1rem, 5vw, 3.6rem);
  }

  .home-hero__grid {
    padding-block: 0.75rem;
  }

  .home-hero__strip > div {
    min-height: 2.75rem;
    padding-block: 0.6rem;
  }

  .home-hero .hero-orbit {
    max-height: 40svh;
    min-height: 240px;
  }
}

@media (max-width: 1023px) {
  .home-hero {
    height: auto;
    max-height: none;
    min-height: 100svh;
  }

  .home-hero__grid {
    padding-block: 1.5rem 1.25rem;
  }

  /* Órbita primeiro no mobile; desktop permanece texto → órbita */
  .home-hero .hero-orbit {
    order: -1;
    width: min(100%, 22rem);
    height: min(58vw, 20rem);
    min-height: 16.5rem;
    max-height: none;
    margin-inline: auto;
  }

  .home-hero .hero-orbit__core {
    width: clamp(5.5rem, 22vw, 7.5rem);
    height: clamp(5.5rem, 22vw, 7.5rem);
  }

  .home-hero .hero-orbit__logo {
    width: clamp(9rem, 38vw, 12.5rem);
  }

  .home-hero .hero-orbit__ring--outer {
    inset: 0.35rem;
  }

  .home-hero .hero-orbit__ring--inner {
    inset: 22%;
  }

  .home-hero .hero-orbit__card {
    max-width: 9.5rem;
    padding: 0.65rem 0.8rem;
    font-size: 0.9em;
  }

  .home-hero .hero-orbit__card strong {
    font-size: 0.9rem;
  }

  .home-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-hero__actions .btn-gold,
  .home-hero__actions .btn-outline {
    width: 100%;
  }
}

/* Hero — órbita 100% CSS (não depende de JS nem de utilitários Tailwind) */
.hero-orbit {
  --orbit-duration: 90s;
  position: relative;
  overflow: visible;
  isolation: isolate;
}

.hero-orbit__core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  border-radius: 9999px;
  background: linear-gradient(to bottom right, var(--violet), var(--orbital));
  box-shadow: 0 0 60px rgba(75, 46, 131, 0.45);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-orbit__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: clamp(12rem, 26vw, 17rem);
  max-width: 65%;
  height: auto;
  object-fit: contain;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-orbit__ring {
  position: absolute;
  z-index: 0;
  border-radius: 9999px;
  border: 1px solid rgba(191, 169, 229, 0.2);
  transform-origin: 50% 50%;
  animation: hero-spin-cw calc(var(--orbit-duration) * 1.6) linear infinite;
  will-change: transform;
}

.hero-orbit__ring--outer {
  inset: 1.5rem;
}

.hero-orbit__ring--inner {
  inset: 6rem;
  border-color: rgba(212, 175, 55, 0.25);
  animation-duration: calc(var(--orbit-duration) * 2.2);
  animation-direction: reverse;
}

/* Trilho que gira; o card fica no topo e contra-gira para ficar legível */
.hero-orbit__track {
  position: absolute;
  inset: 0.75rem;
  z-index: 20;
  transform-origin: 50% 50%;
  animation: hero-spin-cw var(--orbit-duration) linear infinite;
  pointer-events: none;
  will-change: transform;
}

.hero-orbit__track--delay {
  /* meio período atrás = lado oposto da órbita */
  animation-delay: calc(var(--orbit-duration) / -2);
}

.hero-orbit__card {
  position: absolute;
  top: 0;
  left: 50%;
  width: max-content;
  max-width: 14rem;
  margin-left: 0;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateX(-50%);
  transform-origin: 50% 50%;
  animation: hero-spin-ccw var(--orbit-duration) linear infinite;
  box-shadow: 0 18px 48px rgba(13, 11, 30, 0.35);
  pointer-events: auto;
  will-change: transform;
}

.hero-orbit__track--delay .hero-orbit__card {
  animation-delay: calc(var(--orbit-duration) / -2);
}

@keyframes hero-spin-cw {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes hero-spin-ccw {
  from {
    transform: translateX(-50%) rotate(0deg);
  }
  to {
    transform: translateX(-50%) rotate(-360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orbit__ring,
  .hero-orbit__track,
  .hero-orbit__card {
    animation: none !important;
  }

  .hero-orbit__track {
    inset: auto;
  }

  .hero-orbit__track:not(.hero-orbit__track--delay) .hero-orbit__card {
    top: 2.5rem;
    right: 1.5rem;
    left: auto;
    transform: none;
  }

  .hero-orbit__track--delay .hero-orbit__card {
    top: auto;
    bottom: 3.5rem;
    left: 0;
    transform: none;
  }
}

/* Voltar ao topo */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(13, 11, 30, 0.88);
  color: #d4af37;
  box-shadow: 0 12px 36px rgba(13, 11, 30, 0.45);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #1e1647;
  box-shadow: 0 16px 42px rgba(212, 175, 55, 0.22);
  transform: translateY(-3px);
}

.back-to-top:active {
  transform: translateY(0) scale(0.96);
}

.back-to-top svg {
  width: 1.15rem;
  height: 1.15rem;
}
