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

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

body.marketing header.site-header .nav-inner,
body:not(.app-dashboard) header.site-header .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: 6rem;
}

.hero {
  position: relative;
  padding: 6rem 1.5rem 3rem;
  overflow: hidden;
}

.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: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  margin: 0 0 1rem;
  line-height: 1.1;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 1rem;
}

.subtext {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(245, 242, 255, 0.85);
  margin-bottom: 2rem;
}

.hero-highlight {
  margin-top: 10px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 0 18px rgba(179, 78, 233, 0.22);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  color: #fff;
  font-weight: 700;
  border: 1px solid transparent;
  box-shadow: 0 12px 24px rgba(106, 13, 173, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(106, 13, 173, 0.45);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

.btn-small {
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
}

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

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

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

.hero-card {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}

.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: visible;
  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::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.16) 38%,
    rgba(255, 255, 255, 0.38) 50%,
    rgba(255, 255, 255, 0.16) 62%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-160%) skewX(-18deg);
  opacity: 0.55;
  pointer-events: none;
  animation: genreShine 3.8s ease-in-out infinite;
}

.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);
}

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

.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 .brand img {
    height: 92px !important;
  }

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

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

#qbooklyai-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;
}

#qbooklyai-animated-hero .qbooklyai-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;
}

#qbooklyai-animated-hero .qbooklyai-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;
}

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

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

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

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

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

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

#qbooklyai-animated-hero.is-orbit .qbooklyai-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;
}

#qbooklyai-animated-hero.is-orbit .qbooklyai-animated-hero__slide.is-active,
#qbooklyai-animated-hero.is-orbit .qbooklyai-animated-hero__slide.is-prev,
#qbooklyai-animated-hero.is-orbit .qbooklyai-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));
}

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

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

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

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

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

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

#qbooklyai-animated-hero .qbooklyai-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));
}

#qbooklyai-animated-hero .qbooklyai-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;
}

#qbooklyai-animated-hero .qbooklyai-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);
}

#qbooklyai-animated-hero .qbooklyai-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);
}

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


#qbooklyai-animated-hero .qbooklyai-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;
}

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

#qbooklyai-animated-hero .qbooklyai-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%;
}

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

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

#qbooklyai-animated-hero .qbooklyai-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;
}

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

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

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

#qbooklyai-animated-hero .qbooklyai-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;
}

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

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

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

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

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


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

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

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

  body.page-home #qbooklyai-animated-hero .qbooklyai-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(560px, 100%);
  padding: 1rem;
}

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


.hero-visual--demo {
  align-self: start;
}

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

@media (min-width: 992px) {
  .hero-demo-video {
    max-height: 62vh;
  }
}

@media (max-width: 768px) {
  .hero-content {
    gap: 1.5rem;
  }
  .hero-video-card {
    padding: 0.65rem;
  }
}

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