:root {
  --bg1: #100319;
  --bg2: #1b0f2d;
  --accent1: #6a0dad;
  --accent2: #b34ee9;
  --glass: rgba(255, 255, 255, 0.08);
  --stroke: rgba(255, 255, 255, 0.18);
  --shadow: 0 20px 50px rgba(10, 6, 20, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  background: radial-gradient(circle at top, rgba(162, 93, 255, 0.2), transparent 40%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  color: #f5f2ff;
  min-height: 100vh;
}

@media (min-width: 1024px) {
  body {
    overflow-x: hidden;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #f5f2ff;
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(16, 3, 25, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.site-header .brand img {
  height: 60px;
  width: auto;
  display: block;
}

body.marketing header.site-header:not(.navbar) .brand img,
body.marketing .nav-inner .brand img,
body:not(.app-dashboard) header.site-header:not(.navbar) .brand img {
  height: 132px !important;
  max-height: none !important;
  width: auto !important;
  display: block !important;
  object-fit: contain !important;
}

body.marketing header.site-header:not(.navbar),
body:not(.app-dashboard) header.site-header:not(.navbar) {
  overflow: visible !important;
}

body.marketing header.site-header:not(.navbar) .nav-inner,
body:not(.app-dashboard) header.site-header:not(.navbar) .nav-inner {
  min-height: 150px !important;
  align-items: center !important;
}

.site-header .nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
}

main {
  display: flex;
  flex-direction: column;
  gap: 4.25rem;
}

.hero {
  position: relative;
  padding: clamp(2rem, 4vw, 3.1rem) 1.5rem 0.72rem;
  overflow: hidden;
}

@media (min-width: 901px) {
  .hero {
    padding-bottom: 0;
  }
}

.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(179, 78, 233, 0.35), transparent 65%);
  filter: blur(10px);
  z-index: 0;
}

.hero-glow-1 {
  top: -140px;
  left: -120px;
}

.hero-glow-2 {
  bottom: -200px;
  right: -120px;
}

.hero-content {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: clamp(1.1rem, 2vw, 1.8rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 3.6vw, 3.35rem);
  margin: 0 0 0.9rem;
  line-height: 1.08;
  max-width: 14ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: clamp(0.62rem, 1.45vw, 0.7rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 0.95rem;
  padding: 0.4rem 0.74rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(20, 17, 40, 0.5);
}

.subtext {
  font-size: 1.03rem;
  line-height: 1.5;
  color: rgba(245, 242, 255, 0.94);
  margin-bottom: 0.75rem;
  max-width: 58ch;
}

.hero-export-line {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  line-height: 1.2;
  margin-bottom: 0.32rem;
}

.hero-export-line .subtext {
  margin: 0;
  max-width: none;
}

.hero-highlight {
  display: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.3rem;
}

.hero-micro-proof {
  margin: 0 0 0.3rem;
  font-size: 0.86rem;
  line-height: 1.35;
  color: rgba(236, 232, 255, 0.92);
}

.hero .hero-btn {
  min-height: 46px;
  padding: 0.72rem 1.2rem;
  border-radius: 13px;
  font-size: 0.98rem;
  line-height: 1;
  gap: 0.6rem;
}

.hero .hero-btn-primary {
  background: linear-gradient(135deg, #9f52ff 0%, #6d5cff 56%, #44b7ff 100%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 14px 30px rgba(96, 61, 222, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.hero .hero-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(88, 52, 226, 0.58);
}

.hero .hero-btn-primary:focus-visible,
.hero .hero-btn-secondary:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(146, 107, 255, 0.85);
}

.hero .hero-btn-secondary {
  color: rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.44);
  box-shadow: 0 8px 18px rgba(16, 11, 43, 0.34);
  backdrop-filter: blur(8px);
}

.hero .hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.58);
  transform: translateY(-1px);
}

.hero-trust-line {
  margin: 0 0 0.3rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.86rem;
}

.trust-chips {
  margin-top: 0.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  font-size: 0.8rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.86);
}

.trust-chips span {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.trust-chips--inline {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  margin-left: 0.1rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  padding: 0.9rem;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
  width: min(100%, 520px);
}

.hero-card svg {
  width: min(320px, 80vw);
  height: auto;
  display: block;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

section {
  padding: 0 1.5rem;
}

.section-heading {
  max-width: 900px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 0.75rem;
}

.section-heading p {
  color: rgba(245, 242, 255, 0.75);
  font-size: 1rem;
}

.home-genres {
  max-width: 1200px;
  margin: 44px auto 0;
}

.home-genres__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.genre-tile {
  position: relative;
  border-radius: 26px;
  padding: 30px 28px;
  background:
    radial-gradient(500px 220px at 20% 15%, rgba(179, 78, 233, 0.24), rgba(0, 0, 0, 0) 60%),
    rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(179, 78, 233, 0.1) inset;
  cursor: default;
  user-select: none;
  overflow: hidden;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  transform: translateY(0);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.genre-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
}

.genre-tile__icon {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 54px;
  flex: 0 0 140px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 20px rgba(179, 78, 233, 0.3);
}

.genre-tile__icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(179, 78, 233, 0.2));
}

.genre-tile__label {
  font-size: 10pt;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.2px;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.1);
  line-height: 1.2;
  white-space: normal;
  word-break: break-word;
  width: 100%;
  margin-top: 10px;
}

.steps-grid,
.audience-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.features-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 22px;
  min-height: 220px;
  position: relative;
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 46px rgba(0, 0, 0, 0.22);
  filter: drop-shadow(0 0 18px rgba(179, 78, 233, 0.16));
}

.persona-card {
  padding: 18px;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.persona-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(238, 201, 255, 0.18) 35%,
    rgba(179, 78, 233, 0.35) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: translateX(-160%) skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}

.persona-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.22);
}

.persona-card:hover::before {
  opacity: 1;
  animation: personaShine 1.2s ease forwards;
}

@keyframes personaShine {
  from {
    transform: translateX(-160%) skewX(-18deg);
  }
  to {
    transform: translateX(160%) skewX(-18deg);
  }
}

.persona-top {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.persona-img {
  width: 216px;
  height: 216px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  object-fit: cover;
  flex: 0 0 216px;
  transition: transform 0.18s ease, filter 0.18s ease;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.persona-card:hover .persona-img {
  transform: scale(1.05);
  filter: brightness(1.08);
}

.card {
  padding: 1.6rem;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  margin-bottom: 1rem;
  font-weight: 700;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.card p {
  margin: 0;
  color: rgba(245, 242, 255, 0.75);
  line-height: 1.5;
}

.final-cta {
  max-width: 1200px;
  margin: 0 auto 4rem;
}

.cta-card {
  padding: 3rem;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(106, 13, 173, 0.35), rgba(179, 78, 233, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.cta-card h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 0.8rem;
}

.cta-card p {
  color: rgba(245, 242, 255, 0.8);
  margin-bottom: 1.6rem;
}

.site-footer {
  padding: 3rem 1.5rem 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 2, 12, 0.6);
  text-align: left;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  color: rgba(245, 242, 255, 0.75);
}

.footer-inner > div {
  flex: 1 1 680px;
  min-width: 0;
}

.footer-links {
  display: grid;
  gap: 0.5rem;
  font-weight: 600;
  flex: 0 0 220px;
  justify-items: start;
  text-align: left;
}

.footer-links a {
  color: rgba(245, 242, 255, 0.85);
}

.footer-address {
  color: rgba(245, 242, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 520px;
}

.copyright {
  font-size: 0.85rem;
  color: rgba(245, 242, 255, 0.6);
}

.cookie-banner {
  position: fixed;
  left: 12px;
  right: auto;
  bottom: 12px;
  width: min(320px, calc(100vw - 24px));
  background: rgba(16, 3, 25, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 8px 10px;
  display: grid;
  gap: 6px;
  box-shadow: var(--shadow);
  z-index: 99999;
  pointer-events: auto;
  backdrop-filter: blur(16px);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner * {
  pointer-events: auto;
}

.cookie-banner .btn,
.cookie-banner button {
  cursor: pointer;
}

.cookie-banner p {
  margin: 0;
  color: rgba(245, 242, 255, 0.8);
  font-size: 11px;
  line-height: 1.25;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
  margin-top: 4px;
}

.cookie-banner .btn,
.cookie-banner button {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
}

@media (min-width: 1024px) {
  .genre-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.85rem;
  }

  .footer-inner > div {
    flex: 1 1 auto;
    width: 100%;
  }

  .site-footer {
    padding: 1.25rem 1rem 1.5rem;
    text-align: center;
  }

  .site-footer h3,
  .site-footer p {
    margin: 0.4rem 0;
  }

  .footer-address {
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .copyright {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 1 1 auto;
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
}

@media (min-width: 980px) {
  .footer-inner {
    flex-wrap: nowrap;
  }
}

@media (max-width: 860px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .site-header .nav-links {
    gap: 0.75rem;
  }
}

@media (max-width: 720px) {
  .site-header .nav-inner {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero {
    padding-top: 5rem;
  }

  .cta-card {
    padding: 2.2rem 1.6rem;
  }

  .persona-img {
    width: 140px;
    height: 140px;
    flex: 0 0 140px;
  }
}

@media (max-width: 640px) {
  .genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body.marketing header.site-header:not(.navbar) .brand img {
    height: 92px !important;
  }

  body.marketing header.site-header:not(.navbar) .nav-inner {
    min-height: 110px !important;
  }
}

@media (max-width: 520px) {
  .site-header .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

#qpublira-animated-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem;
  overflow: hidden;
  isolation: isolate;
  --orbit-duration: 18s;
  --orbit-radius: clamp(420px, 60vw, 860px);
  --orbit-card: clamp(360px, 55vw, 720px);
  --orbit-spread: calc(var(--orbit-card) * 0.6);
  --orbit-tilt: 12deg;
}

#qpublira-animated-hero .qpublira-animated-hero__slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  perspective-origin: 50% 45%;
  overflow: hidden;
  transform-style: preserve-3d;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: 0 6vw;
}

#qpublira-animated-hero .qpublira-animated-hero__slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--orbit-card);
  aspect-ratio: 2 / 3;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: translate(-50%, -50%) scale(1);
  transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(6, 2, 20, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.28);
  z-index: 1;
  filter: saturate(1.12) contrast(1.04);
  image-rendering: auto;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

#qpublira-animated-hero .qpublira-animated-hero__slideshow.is-linear {
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  min-height: clamp(360px, 55vh, 720px);
}

#qpublira-animated-hero .qpublira-animated-hero__slideshow.is-linear .qpublira-animated-hero__slide {
  position: relative;
  top: auto;
  left: auto;
  opacity: 0.5;
  transform: translateY(0) scale(1);
}

#qpublira-animated-hero .qpublira-animated-hero__slideshow.is-linear .qpublira-animated-hero__slide.is-active {
  opacity: 1;
  transform: translateY(0) scale(1.18);
}

#qpublira-animated-hero .qpublira-animated-hero__slideshow.is-linear .qpublira-animated-hero__slide.is-prev,
#qpublira-animated-hero .qpublira-animated-hero__slideshow.is-linear .qpublira-animated-hero__slide.is-next {
  opacity: 0.9;
  transform: translateY(0) scale(1.06);
}

#qpublira-animated-hero .qpublira-animated-hero__slideshow.is-linear {
  transform: translateX(var(--slide-offset, 0px));
  transition: transform 0.9s ease;
}

#qpublira-animated-hero.is-orbit .qpublira-animated-hero__slideshow {
  animation: qpublira-hero-orbit-spin var(--orbit-duration) linear infinite;
  transform-style: preserve-3d;
  transform: rotateX(var(--orbit-tilt));
}

#qpublira-animated-hero.is-orbit .qpublira-animated-hero__slide {
  opacity: 0.9;
  transform: translate(-50%, -50%) rotateY(var(--orbit-angle)) translateZ(var(--orbit-radius))
    rotateY(calc(var(--orbit-angle) * -1));
  transition: none;
  z-index: 2;
}

#qpublira-animated-hero.is-orbit .qpublira-animated-hero__slide.is-active,
#qpublira-animated-hero.is-orbit .qpublira-animated-hero__slide.is-prev,
#qpublira-animated-hero.is-orbit .qpublira-animated-hero__slide.is-next {
  opacity: 0.9;
  transform: translate(-50%, -50%) rotateY(var(--orbit-angle)) translateZ(var(--orbit-radius))
    rotateY(calc(var(--orbit-angle) * -1));
}

#qpublira-animated-hero .qpublira-animated-hero__slideshow:not(.is-linear) .qpublira-animated-hero__slide.is-active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.18);
  z-index: 3;
}

#qpublira-animated-hero.is-reduced-motion .qpublira-animated-hero__slide {
  transition: none;
}

#qpublira-animated-hero .qpublira-animated-hero__slide.is-prev,
#qpublira-animated-hero .qpublira-animated-hero__slide.is-next {
  opacity: 0.92;
  z-index: 2;
  filter: saturate(1.08) brightness(1);
}

#qpublira-animated-hero .qpublira-animated-hero__slideshow:not(.is-linear) .qpublira-animated-hero__slide.is-prev {
  transform: translate(calc(-50% - var(--orbit-spread)), -50%) rotateY(18deg) scale(1.02);
}

#qpublira-animated-hero .qpublira-animated-hero__slideshow:not(.is-linear) .qpublira-animated-hero__slide.is-next {
  transform: translate(calc(-50% + var(--orbit-spread)), -50%) rotateY(-18deg) scale(1.02);
}

@keyframes qpublira-hero-orbit-spin {
  from {
    transform: rotateX(var(--orbit-tilt)) rotateY(0deg);
  }
  to {
    transform: rotateX(var(--orbit-tilt)) rotateY(-360deg);
  }
}

#qpublira-animated-hero .qpublira-animated-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(120deg, rgba(10, 3, 20, 0.45), rgba(28, 16, 46, 0.25));
}

#qpublira-animated-hero .qpublira-animated-hero__content {
  position: relative;
  z-index: 2;
  max-width: 980px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  margin: 0 auto;
}

#qpublira-animated-hero .qpublira-animated-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 2px 16px rgba(6, 2, 20, 0.6);
}

#qpublira-animated-hero .qpublira-animated-hero__headline {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem;
  width: min(90vw, 40rem);
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 6px 26px rgba(6, 2, 20, 0.65);
  min-height: clamp(3.2rem, 6vw, 4rem);
}

#qpublira-animated-hero .qpublira-animated-hero__headline-text {
  display: block;
  min-height: 2.6em;
  width: min(90vw, 36ch);
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
}


#qpublira-animated-hero .qpublira-animated-hero__subhead {
  font-size: 0.85rem;
  color: rgba(245, 242, 255, 0.92);
  margin: 0 auto;
  max-width: 760px;
  text-shadow: 0 4px 18px rgba(6, 2, 20, 0.55);
  min-height: 2.3rem;
}

#qpublira-animated-hero .qpublira-animated-hero__prompt {
  position: relative;
  max-width: 720px;
  width: min(90vw, 720px);
  margin: 0 auto;
  z-index: 4;
  min-height: 72px;
}

#qpublira-animated-hero .qpublira-animated-hero__prompt-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem 0.75rem 1.2rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 38px rgba(6, 2, 20, 0.45);
  position: relative;
  z-index: 2;
  width: 100%;
}

#qpublira-animated-hero .qpublira-animated-hero__prompt-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: #2b153e;
  font-size: 1rem;
  outline: none;
}

#qpublira-animated-hero .qpublira-animated-hero__prompt-input::placeholder {
  color: rgba(43, 21, 62, 0.45);
}

#qpublira-animated-hero .qpublira-animated-hero__prompt-button {
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(106, 13, 173, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#qpublira-animated-hero .qpublira-animated-hero__prompt-button:focus-visible {
  outline: 2px solid #f5f2ff;
  outline-offset: 3px;
}

#qpublira-animated-hero .qpublira-animated-hero__prompt-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(106, 13, 173, 0.5);
}

#qpublira-animated-hero .qpublira-animated-hero__prompt-button.is-pulse {
  animation: qpublira-hero-pulse 0.8s ease-in-out 1;
}

#qpublira-animated-hero .qpublira-animated-hero__prompt-glow {
  position: absolute;
  inset: 6px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 65%);
  filter: blur(18px);
  opacity: 0.7;
  z-index: 1;
}

#qpublira-animated-hero .qpublira-animated-hero__prompt.is-active .qpublira-animated-hero__prompt-input {
  caret-color: #2b153e;
}

@keyframes qpublira-hero-pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 720px) {
  #qpublira-animated-hero .qpublira-animated-hero__slide.is-prev,
  #qpublira-animated-hero .qpublira-animated-hero__slide.is-next {
    opacity: 0;
  }

  #qpublira-animated-hero .qpublira-animated-hero__prompt-inner {
    flex-direction: column;
    align-items: stretch;
    border-radius: 24px;
  }

  #qpublira-animated-hero .qpublira-animated-hero__prompt-button {
    width: 100%;
    justify-content: center;
  }
}


@media (max-width: 768px) {
  body.page-home {
    overflow-x: hidden;
  }

  body.page-home #qpublira-animated-hero {
    overflow-x: hidden;
  }

  body.page-home #qpublira-animated-hero .qpublira-animated-hero__slideshow,
  body.page-home #qpublira-animated-hero .qpublira-animated-hero__slide,
  body.page-home #qpublira-animated-hero .qpublira-animated-hero__prompt-button,
  body.page-home #qpublira-animated-hero .qpublira-animated-hero__prompt-input {
    animation: none !important;
    transition: none !important;
  }

  body.page-home #qpublira-animated-hero .qpublira-animated-hero__prompt {
    max-width: 94vw;
  }
}

/*
Manual mobile test checklist:
1) Mobile home: no horizontal scroll; navbar CTA visible.
2) Mobile pricing: navbar shows Pricing + other links; CTA visible; links scroll in nav area if needed.
3) App page: unchanged.
*/

.hero-video-card {
  width: min(520px, 100%);
  padding: 0.9rem;
}

.hero-demo-label {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  line-height: 1.35;
  letter-spacing: 0.03em;
  color: rgba(245, 243, 255, 0.82);
}

.hero-demo-shell {
  position: relative;
  border-radius: 16px;
  overflow: visible;
  padding-bottom: 2px;
}

.hero-demo-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-video-poster);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1;
  pointer-events: none;
}

.hero-demo-shell.is-poster::before {
  opacity: 1;
}

.hero-demo-video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  border-radius: 16px;
  background: #1f1431;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-demo-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.hero-demo-play {
  width: clamp(3rem, 3.6vw, 3.25rem);
  height: clamp(3rem, 3.6vw, 3.25rem);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08));
  border-radius: 9999px;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: 0 8px 26px rgba(12, 6, 26, 0.32), inset 0 1px 1px rgba(255, 255, 255, 0.34);
  z-index: 3;
  cursor: pointer;
  pointer-events: auto;
  display: grid;
  place-items: center;
  -webkit-backdrop-filter: blur(9px) saturate(122%);
  backdrop-filter: blur(9px) saturate(122%);
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.hero-demo-video::-webkit-media-controls-start-playback-button {
  display: none;
  -webkit-appearance: none;
}

.hero-demo-play__icon {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-demo-play__icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-42%, -50%);
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid rgba(255, 255, 255, 0.97);
}

.hero-demo-play:hover,
.hero-demo-play:focus-visible {
  border-color: rgba(255, 255, 255, 0.74);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.31), rgba(255, 255, 255, 0.14));
  box-shadow: 0 14px 36px rgba(12, 6, 26, 0.41), inset 0 1px 1px rgba(255, 255, 255, 0.5);
  transform: scale(1.03);
}

.hero-demo-play:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

.hero-video-card.is-playing .hero-demo-overlay {
  display: none;
  opacity: 0;
  transform: translateY(-12px) scale(0.96);
}

.hero-visual--demo {
  align-self: center;
  transform: translateY(-6px);
}

.hero-proof-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.58rem;
  font-size: 0.95rem;
  line-height: 1.4;
  color: rgba(247, 245, 255, 0.92);
}
.hero-proof-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-proof-list li span {
  width: 1.1rem;
  display: inline-flex;
  justify-content: center;
  color: rgba(178, 213, 255, 0.95);
  font-weight: 700;
}


@media (max-width: 900px) {
  .hero {
    padding-top: 1.55rem;
    padding-bottom: 0.8rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-text h1 {
    max-width: none;
  }

  .hero-actions {
    gap: 0.6rem;
  }

  .hero .hero-btn {
    flex: 1 1 auto;
    min-width: 160px;
  }

  .hero-video-card {
    width: min(560px, 100%);
  }

  .hero-visual--demo {
    transform: none;
  }

  .hero-proof-list {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .hero-content {
    gap: 1rem;
  }
  .hero-video-card {
    padding: 0.65rem;
  }
  .hero-demo-play {
    width: clamp(2.8rem, 12vw, 3rem);
    height: clamp(2.8rem, 12vw, 3rem);
  }
  .hero-demo-overlay {
    transform: translateY(-10px);
  }
  .hero-video-card.is-playing .hero-demo-overlay {
    transform: translateY(-10px) scale(0.96);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-card {
    animation: none !important;
  }
}


.hero + .qb-bookshowcase {
  margin-top: 0;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}


@media (max-width: 768px) {
  .hero {
    padding: 1.2rem 1rem 0.4rem;
  }

  .hero-content {
    gap: 0.7rem;
  }

  .eyebrow {
    margin-bottom: 0.55rem;
    font-size: 0.58rem;
    padding: 0.32rem 0.62rem;
  }

  .hero-text h1 {
    font-size: clamp(2.125rem, 10vw, 2.625rem);
    margin-bottom: 0.6rem;
    line-height: 1.02;
  }

  .subtext {
    margin-bottom: 0.45rem;
    font-size: 0.92rem;
    line-height: 1.38;
  }

  .hero-export-line {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.38rem;
    overflow-x: auto;
    margin-bottom: 0.45rem;
  }

  .hero-export-line .trust-chips,
  .hero-export-line .trust-chips--inline {
    flex-wrap: nowrap;
    margin-left: 0;
  }

  .hero-export-line .trust-chips span {
    padding: 0.24rem 0.5rem;
    font-size: 0.72rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.56rem;
    margin-bottom: 0.2rem;
  }

  .hero .hero-btn {
    width: 100%;
    min-height: 46px;
    justify-content: center;
    border-radius: 12px;
  }

  .hero-video-card {
    padding: 0.5rem;
  }

  .hero-demo-shell {
    overflow: hidden;
    border-radius: 14px;
    padding-bottom: 0;
    background: #1a102d;
  }

  .hero-demo-video {
    border-radius: 14px;
    aspect-ratio: 16 / 9;
  }

  .hero-demo-play {
    width: 2.35rem;
    height: 2.35rem;
  }

  .hero-demo-play__icon::before {
    border-top-width: 7px;
    border-bottom-width: 7px;
    border-left-width: 11px;
  }

  .hero-proof-list {
    margin-top: 0.5rem;
    gap: 0.42rem;
    font-size: 0.9rem;
  }
}

/* ===== Homepage Premium Refresh ===== */
.section-kicker {
  margin: 0 0 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(214, 196, 255, 0.86);
  font-weight: 700;
}

.section-heading--compact {
  margin-bottom: 1.25rem;
}

.hero {
  padding-top: clamp(2.1rem, 4vw, 3.3rem);
  padding-bottom: 0.35rem;
}

.hero-text h1 {
  max-width: 16ch;
  letter-spacing: -0.02em;
}

.hero-text > .subtext {
  margin-bottom: 0.7rem;
  color: rgba(244, 240, 255, 0.9);
}

.trust-chips span {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.24);
  font-weight: 600;
}

.hero-trust-strip {
  margin: 0.2rem 0 0;
  padding: 0.6rem 0.75rem;
  list-style: none;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.08), rgba(155, 106, 255, 0.08));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.hero-trust-strip li {
  font-size: 0.79rem;
  color: rgba(255, 255, 255, 0.88);
  padding-left: 0.95rem;
  position: relative;
}

.hero-trust-strip li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cdb3ff;
  box-shadow: 0 0 12px rgba(205, 179, 255, 0.9);
}

.hero-card,
.card,
.genre-tile,
.persona-card,
.why-card,
.cta-card {
  backdrop-filter: blur(10px);
}

.hero-card {
  animation: none;
  box-shadow: 0 20px 60px rgba(8, 4, 22, 0.45);
}

.qb-bookshowcase {
  padding: 2.4rem 0 1.2rem;
}

.qb-actions {
  justify-content: center;
  margin: 0.95rem 0 1.2rem;
}

.qb-book-swiper {
  padding: 0.65rem 0 2.25rem;
}

.qb-cover {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 44px rgba(6, 2, 16, 0.36);
}

.qb-empty-state {
  padding: 18px;
  opacity: 0.85;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 16px;
}

.why-qpublira {
  max-width: 1200px;
  margin: 0.7rem auto 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.why-card {
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
}

.why-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.03rem;
}

.why-card p {
  margin: 0;
  color: rgba(240, 235, 255, 0.78);
}

.home-genres {
  margin-top: 2rem;
}

.genre-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

.genre-tile {
  min-height: 108px;
  border-radius: 14px;
  padding: 0.85rem;
  gap: 0.5rem;
}

.genre-tile__icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  font-size: 0;
}

.genre-tile__icon svg {
  width: 18px;
  height: 18px;
  fill: rgba(241, 232, 255, 0.92);
}

.genre-tile__label {
  margin-top: 0;
  font-size: 0.84rem;
}

.step-card .icon {
  width: 56px;
  height: 34px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  background: linear-gradient(130deg, rgba(188, 144, 255, 0.2), rgba(76, 203, 255, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.feature-card {
  min-height: 0;
  border-color: rgba(255, 255, 255, 0.12);
}

.feature-card:nth-child(odd) {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(126, 93, 214, 0.12));
}

.feature-card:nth-child(even) {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(78, 147, 220, 0.11));
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
}

.feature-icon::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  border-radius: 8px;
}

.feature-icon--spark::before { background: radial-gradient(circle, rgba(255,255,255,.98) 0 34%, transparent 36%), conic-gradient(from 0deg, rgba(255,255,255,.16), rgba(255,255,255,.95), rgba(255,255,255,.16)); }
.feature-icon--export::before { background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.65)); clip-path: polygon(50% 0, 100% 45%, 68% 45%, 68% 100%, 32% 100%, 32% 45%, 0 45%); }
.feature-icon--layout::before { background: linear-gradient(90deg, rgba(255,255,255,.95) 0 20%, transparent 20% 26%, rgba(255,255,255,.7) 26% 100%); }
.feature-icon--edit::before { background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,255,255,.65)); transform: translate(-50%, -50%) rotate(45deg); width: 20px; height: 20px; }
.feature-icon--flow::before { background: linear-gradient(90deg, rgba(255,255,255,.95), rgba(255,255,255,.65)); clip-path: polygon(0 40%, 52% 40%, 52% 15%, 100% 50%, 52% 85%, 52% 60%, 0 60%); }
.feature-icon--devices::before { background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.65)); clip-path: polygon(0 6%, 100% 6%, 100% 74%, 56% 74%, 56% 100%, 44% 100%, 44% 74%, 0 74%); }

.persona-card {
  border-radius: 18px;
  padding: 1rem;
}

.persona-top {
  gap: 0.9rem;
}

.persona-img {
  width: 86px;
  height: 86px;
  border-radius: 14px;
  flex: 0 0 86px;
}

.final-cta {
  margin-top: 1.2rem;
}

.cta-card {
  padding: clamp(2rem, 4vw, 2.7rem);
  background: linear-gradient(135deg, rgba(80, 46, 163, 0.54), rgba(179, 78, 233, 0.24));
}

.cta-card .hero-actions {
  justify-content: center;
}

.site-footer {
  border-top-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, rgba(9, 4, 18, 0.75), rgba(7, 3, 14, 0.95));
}

@media (max-width: 1000px) {
  .genre-grid,
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .hero-trust-strip {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    max-width: none;
  }

  .genre-grid,
  .features-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .genre-tile {
    min-height: 82px;
    align-items: flex-start;
    text-align: left;
  }

  .persona-top {
    flex-wrap: nowrap;
  }
}

/* ===== Homepage Final Premium Polish Pass ===== */
body.page-home main {
  gap: clamp(3.8rem, 6.2vw, 5.6rem);
}

body.page-home section {
  position: relative;
}

body.page-home .section-heading {
  margin-bottom: clamp(1.35rem, 2.7vw, 2.25rem);
}

body.page-home .section-heading h2 {
  letter-spacing: -0.018em;
  line-height: 1.12;
  max-width: 19ch;
  margin-left: auto;
  margin-right: auto;
}

body.page-home .section-heading p {
  max-width: 64ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.62;
}

/* Hero finishing */
body.page-home .hero {
  padding-top: clamp(2.35rem, 4.7vw, 3.8rem);
  padding-bottom: 0.2rem;
}

body.page-home .hero-content {
  gap: clamp(1.2rem, 2.8vw, 2.7rem);
  align-items: stretch;
}

body.page-home .hero-text {
  display: grid;
  align-content: center;
  gap: 0.22rem;
}

body.page-home .hero-export-line {
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}

body.page-home .trust-chips {
  gap: 0.44rem;
}

body.page-home .trust-chips span {
  padding: 0.36rem 0.74rem;
  border-radius: 999px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.11), rgba(169, 128, 255, 0.08));
  border-color: rgba(232, 221, 255, 0.28);
  color: rgba(251, 248, 255, 0.95);
  font-size: 0.75rem;
  letter-spacing: 0.015em;
}

body.page-home .hero-actions {
  gap: 0.7rem;
  margin-top: 0.22rem;
  margin-bottom: 0.55rem;
}

body.page-home .hero .hero-btn {
  border-radius: 12px;
  min-height: 47px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

body.page-home .hero .hero-btn-primary {
  box-shadow: 0 16px 34px rgba(81, 56, 205, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

body.page-home .hero .hero-btn-secondary {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.08));
  border-color: rgba(255, 255, 255, 0.42);
}

body.page-home .hero-trust-strip {
  padding: 0.64rem 0.82rem;
  gap: 0.46rem;
  border-color: rgba(255, 255, 255, 0.17);
}

body.page-home .hero-video-card {
  padding: 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(126, 93, 214, 0.12)),
    rgba(17, 10, 31, 0.72);
  box-shadow: 0 26px 65px rgba(8, 4, 18, 0.52);
}

body.page-home .hero-demo-shell {
  overflow: hidden;
  border-radius: 15px;
  background: #120a22;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

body.page-home .hero-demo-label {
  margin-bottom: 0.7rem;
  color: rgba(243, 236, 255, 0.78);
}

body.page-home .hero-proof-list {
  margin-top: 0.82rem;
  gap: 0.5rem;
}

/* Carousel section deep polish + artifact fix */
body.page-home .hero + .qb-bookshowcase {
  border-top: 0;
  padding-top: 0.9rem;
}

body.page-home .qb-bookshowcase {
  padding: clamp(2.5rem, 4.2vw, 3.2rem) 1.5rem clamp(1.8rem, 3vw, 2.4rem);
  overflow: clip;
}

body.page-home .qb-bookshowcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 115% at 50% -5%, rgba(176, 122, 255, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  pointer-events: none;
}

body.page-home .qb-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

body.page-home .qb-actions {
  margin: 1rem 0 1.5rem;
}

body.page-home .qb-book-swiper {
  padding: 0.9rem 0 2.55rem;
  overflow: visible;
}

body.page-home .qb-book-swiper .swiper-wrapper {
  align-items: stretch;
}

body.page-home .qb-book-swiper .swiper-slide {
  height: auto;
  display: flex;
  justify-content: center;
  align-items: stretch;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

body.page-home .qb-book-swiper .swiper-slide:not(.swiper-slide-active) {
  opacity: 0.82;
}

body.page-home .qb-book-swiper::before,
body.page-home .qb-book-swiper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 2.35rem;
  width: clamp(24px, 5vw, 64px);
  pointer-events: none;
  z-index: 3;
}

body.page-home .qb-book-swiper::before {
  left: -1px;
  background: linear-gradient(90deg, rgba(17, 9, 31, 0.88), rgba(17, 9, 31, 0));
}

body.page-home .qb-book-swiper::after {
  right: -1px;
  background: linear-gradient(270deg, rgba(17, 9, 31, 0.88), rgba(17, 9, 31, 0));
}

body.page-home .qb-cover {
  width: min(100%, 238px);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 18px;
  background: #130b24;
  border: 1px solid rgba(255, 255, 255, 0.19);
  box-shadow: 0 22px 44px rgba(6, 2, 16, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

body.page-home .qb-book-swiper .swiper-slide:hover .qb-cover {
  transform: translateY(-3px);
  transition: transform 0.28s ease;
}

body.page-home .qb-book-swiper .swiper-button-prev,
body.page-home .qb-book-swiper .swiper-button-next {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(15, 8, 29, 0.8);
  color: rgba(245, 241, 255, 0.93);
  backdrop-filter: blur(6px);
}

body.page-home .qb-book-swiper .swiper-button-prev::after,
body.page-home .qb-book-swiper .swiper-button-next::after {
  font-size: 0.88rem;
  font-weight: 700;
}

body.page-home .qb-book-swiper .swiper-pagination-bullet {
  background: rgba(248, 242, 255, 0.44);
  opacity: 0.9;
}

body.page-home .qb-book-swiper .swiper-pagination-bullet-active {
  background: #d6b9ff;
  box-shadow: 0 0 0 4px rgba(214, 185, 255, 0.2);
}

/* Mid-page depth + card consistency */
body.page-home .why-qpublira,
body.page-home .home-genres,
body.page-home .how-it-works,
body.page-home .features,
body.page-home .audience {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

body.page-home .home-genres,
body.page-home .features {
  padding-top: clamp(0.85rem, 2vw, 1.35rem);
}

body.page-home .how-it-works::before,
body.page-home .audience::before {
  content: "";
  position: absolute;
  inset: -0.4rem 0;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(122, 86, 214, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

body.page-home .steps-grid,
body.page-home .features-grid,
body.page-home .audience-grid,
body.page-home .why-grid {
  position: relative;
  z-index: 1;
}

body.page-home .card,
body.page-home .why-card,
body.page-home .persona-card {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 50px rgba(6, 3, 16, 0.34);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

body.page-home .card:hover,
body.page-home .why-card:hover,
body.page-home .persona-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 26px 56px rgba(6, 3, 16, 0.4);
}

/* Persona card finishing */
body.page-home .persona-card {
  border-radius: 20px;
  padding: 1.1rem;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.09), rgba(98, 74, 168, 0.12));
}

body.page-home .persona-top {
  align-items: center;
  gap: 0.78rem;
  margin-bottom: 0.72rem;
}

body.page-home .persona-img {
  width: 94px;
  height: 94px;
  flex: 0 0 94px;
  padding: 0.28rem;
  object-fit: cover;
  border-radius: 16px;
  background: rgba(12, 7, 25, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

body.page-home .persona-card h3 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

body.page-home .persona-card p {
  margin: 0;
  color: rgba(242, 236, 255, 0.8);
  line-height: 1.56;
}

/* Footer premium close */
body.page-home .site-footer {
  margin-top: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(17, 8, 33, 0.84), rgba(8, 4, 18, 0.96)),
    radial-gradient(90% 120% at 18% -20%, rgba(159, 102, 255, 0.22), transparent 62%);
}

body.page-home .site-footer .footer-inner {
  gap: clamp(1.7rem, 3vw, 2.7rem);
}

body.page-home .site-footer .footer-brand {
  gap: 0.9rem;
}

body.page-home .site-footer .footer-col h3 {
  color: rgba(241, 232, 255, 0.62);
  margin-bottom: 0.34rem;
}

body.page-home .site-footer .footer-col a {
  color: rgba(247, 241, 255, 0.88);
}

@media (max-width: 1000px) {
  body.page-home .how-it-works::before,
  body.page-home .audience::before {
    inset: -0.1rem 0.5rem;
  }
}

@media (max-width: 768px) {
  body.page-home main {
    gap: 3.35rem;
  }

  body.page-home .hero {
    padding-top: 1.4rem;
  }

  body.page-home .hero-content {
    gap: 0.95rem;
  }

  body.page-home .hero-export-line {
    gap: 0.34rem;
  }

  body.page-home .hero-trust-strip {
    margin-top: 0.35rem;
    gap: 0.38rem;
  }

  body.page-home .qb-bookshowcase {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  body.page-home .qb-book-swiper {
    padding-top: 0.55rem;
  }

  body.page-home .qb-book-swiper::before,
  body.page-home .qb-book-swiper::after {
    display: none;
  }

  body.page-home .qb-cover {
    width: min(100%, 210px);
    border-radius: 15px;
  }

  body.page-home .qb-book-swiper .swiper-button-prev,
  body.page-home .qb-book-swiper .swiper-button-next {
    display: none;
  }

  body.page-home .how-it-works::before,
  body.page-home .audience::before {
    display: none;
  }

  body.page-home .persona-top {
    flex-wrap: nowrap;
    gap: 0.72rem;
  }

  body.page-home .persona-card h3 {
    font-size: 1rem;
  }
}
