
:root {
  --violet: #a855f7;
  --magenta: #e879f9;
  --pink: #f0abfc;
  --deep: #6b21a8;
  --ink: #6d28d9;
  --muted: #6b5b83;
  --page: #fbf7ff;
  --soft: #fae8ff;
  --line: rgba(107, 33, 168, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 20;
  transition: background .25s ease, box-shadow .25s ease;
  background: linear-gradient(180deg, rgba(168,85,247,.92), rgba(168,85,247,.4) 75%, transparent);
}
body.inner .site-header,
body.is-scrolled .site-header {
  background: rgba(251,247,255,.94);
  box-shadow: 0 10px 24px rgba(107,33,168,.08);
  backdrop-filter: blur(16px);
}
.nav { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -.03em; }
.brand img { width: 38px; height: 38px; border-radius: 11px; object-fit: cover; }
.site-header .brand, .nav-links a { color: #fff; }
body.inner .site-header .brand,
body.inner .nav-links a,
body.is-scrolled .site-header .brand,
body.is-scrolled .nav-links a { color: var(--ink); }
.nav-links { display: flex; gap: 26px; align-items: center; font-weight: 700; font-size: 15px; }
.store-pills { display: flex; align-items: center; gap: 10px; }
.menu-button { display: none; width: 42px; height: 42px; border: 0; background: transparent; }
.menu-button span { display: block; height: 2px; margin: 6px 10px; background: #fff; }
body.inner .menu-button span,
body.is-scrolled .menu-button span { background: var(--ink); }

.hero { min-height: 760px; position: relative; overflow: hidden; color: #fff; }
.novel-hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,.35), transparent 32%),
    linear-gradient(132deg, #f0abfc 0%, #e879f9 38%, #c084fc 100%);
}
.hero:after {
  content: "";
  position: absolute; inset: auto -10% -22% -10%; height: 38%;
  background: var(--page);
  border-radius: 50% 50% 0 0 / 35% 35% 0 0;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr .9fr; gap: 48px;
  align-items: center; min-height: 760px; padding-top: 70px;
}
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 800; color: var(--violet); }
.hero .eyebrow { color: rgba(255,255,255,.82); }
h1, h2 { margin: 0; letter-spacing: -.04em; line-height: 1.08; }
h1 { font-size: clamp(34px, 5vw, 52px); max-width: 720px; }
h2 { font-size: clamp(26px, 3.2vw, 34px); }
p { font-size: 16px; line-height: 1.7; color: var(--muted); }
.hero p { color: rgba(255,255,255,.9); }
.hero-lede { max-width: 520px; font-size: 17px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 16px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 12px 20px; font-weight: 800; font-size: 15px; border: 1px solid transparent;
}
.button.primary { background: #fff; color: var(--deep); }
.button.ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.button.line { border-color: var(--line); color: var(--ink); background: #fff; }
.button.accent { background: linear-gradient(135deg, var(--violet), var(--magenta)); color: #fff; }

.play-round {
  width: 46px; height: 46px; border-radius: 50%; background: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 24px rgba(107,33,168,.16);
}
.play-round img { width: 24px; height: 24px; }
.store-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.store-button {
  display: inline-flex; align-items: center; gap: 10px; min-width: 176px;
  padding: 10px 16px; border-radius: 999px; background: #fff; color: var(--ink);
  box-shadow: 0 14px 32px rgba(107,33,168,.16); font-weight: 800;
  transition: transform .22s ease, box-shadow .22s ease;
}
.store-button:hover { transform: translateY(-3px); }
.store-button small { display: block; font-size: 9px; letter-spacing: .12em; color: var(--muted); line-height: 1; }
.store-button b { font-size: 15px; }
.store-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--soft); flex: none; }
.store-icon img { width: 24px; height: 24px; }
.hero .store-button { background: rgba(255,255,255,.96); }

.proof { display: flex; align-items: center; gap: 12px; margin-top: 24px; font-size: 14px; color: rgba(255,255,255,.9); }
.proof-stack { display: flex; }
.proof-stack img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; margin-left: -8px; }
.proof-stack img:first-child { margin-left: 0; }

.hero-copy { position: relative; z-index: 2; }
.hero-library { position: relative; height: 560px; perspective: 1100px; transform: rotateX(var(--tiltX,0deg)) rotateY(var(--tiltY,0deg)); transform-style: preserve-3d; transition: transform .12s linear; }
.hero-library:before {
  content: ""; position: absolute; left: 8%; right: 4%; bottom: 58px; height: 86px;
  border-radius: 50%; background: radial-gradient(ellipse at center, rgba(0,0,0,.28), transparent 70%); filter: blur(8px);
}
.book-float {
  position: absolute; border-radius: 26px; overflow: hidden;
  border: 7px solid rgba(255,255,255,.94); background: #fff;
  box-shadow: 0 34px 80px rgba(76, 16, 101, .35);
  transition: transform .35s ease;
}
.book-float img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.book-a { width: 38%; height: 74%; left: 0; top: 80px; animation: floatA 6s ease-in-out infinite; }
.book-b { width: 42%; height: 82%; right: 4%; top: 46px; animation: floatB 7s ease-in-out infinite; }
.book-c { width: 30%; height: 58%; left: 34%; bottom: 22px; animation: floatC 5.5s ease-in-out infinite; }
.hero-library:hover .book-a { transform: rotateY(10deg) rotateZ(-10deg) translateY(-10px); }
.hero-library:hover .book-b { transform: translateZ(90px) rotateY(-10deg) rotateZ(8deg) translateY(-12px); }
.hero-library:hover .book-c { transform: translateZ(140px) translateY(-12px); }
.reading-glow {
  position: absolute; width: 230px; height: 230px; border-radius: 50%; right: 16%; top: 30%;
  background: radial-gradient(circle, rgba(255,255,255,.42), rgba(240,171,252,.2) 45%, transparent 72%);
}
@keyframes floatA {
  0%,100% { transform: rotateY(16deg) rotateZ(-8deg) translateY(0); }
  50% { transform: rotateY(16deg) rotateZ(-8deg) translateY(-12px); }
}
@keyframes floatB {
  0%,100% { transform: translateZ(80px) rotateY(-14deg) rotateZ(6deg) translateY(0); }
  50% { transform: translateZ(80px) rotateY(-14deg) rotateZ(6deg) translateY(-14px); }
}
@keyframes floatC {
  0%,100% { transform: translateZ(120px) rotateZ(2deg) translateY(0); }
  50% { transform: translateZ(120px) rotateZ(2deg) translateY(-10px); }
}

.shelf, .product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; padding: 88px 0; }
.orb-wrap { min-height: 400px; position: relative; }
.orb {
  width: 380px; height: 380px; border-radius: 50%; margin: auto; overflow: hidden;
  background: radial-gradient(circle at 30% 30%, #fae8ff, #f0abfc 52%, #c084fc);
  box-shadow: inset 0 -30px 60px rgba(126,34,206,.16), 0 30px 80px rgba(168,85,247,.22);
}
.orb-track {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  width: 140%; height: 140%; margin: -20%;
  animation: spinShelf 42s linear infinite;
}
.orb-wrap:hover .orb-track { animation-play-state: paused; }
.orb-track img { width: 100%; height: 170px; object-fit: cover; display: block; }
@keyframes spinShelf { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.checks { display: grid; gap: 12px; margin-top: 24px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--violet); flex: none; }

.rail { padding: 72px 0; }
.book-rail { background: linear-gradient(180deg, #fae8ff 0%, var(--page) 100%); overflow: hidden; }
.rail-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 26px; gap: 20px; }
.book-marquee { overflow: hidden; padding: 10px 0 26px; }
.book-track {
  display: flex; gap: 18px; width: max-content;
  overflow-x: auto; scrollbar-width: none;
}
.book-track::-webkit-scrollbar { display: none; }
.book-tile {
  width: 210px; margin: 0; border-radius: 22px; background: #fff; overflow: hidden;
  box-shadow: 0 18px 42px rgba(107,33,168,.12);
  transition: transform .22s ease, box-shadow .22s ease;
}
.book-tile:hover { transform: translateY(-8px) rotate(-1deg); }
.book-tile img { width: 100%; aspect-ratio: 9/16; object-fit: cover; object-position: center top; }
.book-tile figcaption { padding: 13px 14px 16px; font-weight: 800; font-size: 14px; line-height: 1.25; }


.quote { display: grid; grid-template-columns: 1.1fr .9fr; gap: 54px; padding: 88px 0; }
.quote blockquote { font-size: clamp(24px, 3.2vw, 36px); line-height: 1.2; letter-spacing: -.03em; font-weight: 800; margin: 0; color: #7c3aed; }
.quote blockquote span { color: var(--violet); }
.who { display: flex; gap: 12px; align-items: center; margin-top: 22px; }
.who img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; }
.who b { display: block; }
.who span { font-size: 14px; color: var(--muted); }

.product { background: var(--page); }
.phones { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.phone {
  border-radius: 30px; background: #e9d5ff; padding: 10px;
  box-shadow: 0 26px 70px rgba(107,33,168,.18);
  transform: rotate(-4deg); transition: transform .3s ease;
}
.phone:nth-child(2) { transform: rotate(5deg); margin-top: 44px; }
.phone:hover { transform: rotate(0) translateY(-8px); }
.phone img { border-radius: 22px; aspect-ratio: 9/16; width: 100%; object-fit: cover; object-position: center top; }

.download { padding: 80px 0; background: linear-gradient(135deg, #faf5ff, #fae8ff); }
.download-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-radius: 28px; background: rgba(255,255,255,.72); padding: 34px;
  box-shadow: 0 24px 70px rgba(107,33,168,.1);
}
.download .store-actions { justify-content: flex-end; }
.download .store-button { border: 1px solid var(--line); }

.site-footer { background: linear-gradient(180deg, #f3e8ff, #fae8ff); color: #4c1d95; padding: 48px 0 24px; }
.site-footer p, .site-footer a { color: #6b5b83; }
.footer-bar { display: flex; justify-content: space-between; gap: 24px; }
.footer-brand { display: grid; gap: 6px; }
.footer-mail { color: #7e22ce; font-weight: 700; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; font-weight: 700; }
.footer-links a:hover { color: #7e22ce; }
.footer-bottom { border-top: 1px solid rgba(126,34,206,.12); margin-top: 28px; padding-top: 18px; color: #8b7a9e; font-size: 13px; }

body.inner { background: #fff; }
.doc { padding: 120px 0 80px; }
.page-hero { padding: 120px 0 28px; background: linear-gradient(135deg, #fae8ff, #fff); }
.doc-page { width: min(760px, calc(100% - 40px)); margin: 0 auto; }
.doc-page h1 { font-size: 32px; }
.doc-date { font-size: 15px; }
.legal-copy, .contact-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.legal-copy h1 { font-size: 28px; }
.legal-copy h2, .legal-copy h3 { font-size: 18px; margin-top: 24px; }
.legal-copy p, .legal-copy li { font-size: 16px; line-height: 1.75; color: #3b2a55; }
.legal-copy a, .contact-card a { color: var(--violet); font-weight: 700; }

@media (max-width: 820px) {
  .nav-links, .store-pills { display: none; }
  .menu-button { display: block; }
  .nav.is-open .nav-links {
    display: flex; position: absolute; top: 74px; left: 20px; right: 20px;
    flex-direction: column; background: #fff; border-radius: 18px; padding: 18px;
    box-shadow: 0 20px 50px rgba(107,33,168,.16);
  }
  .nav.is-open .nav-links a { color: var(--ink); }
  .hero-inner, .shelf, .product-grid, .quote { grid-template-columns: 1fr; }
  .hero, .hero-inner { min-height: 0; }
  .hero-inner { padding: 96px 0 56px; }
  .hero-library { height: 420px; }
  .orb { width: min(330px, 90vw); height: min(330px, 90vw); }
  .download-band, .footer-bar { align-items: flex-start; flex-direction: column; }
  .store-actions { width: 100%; }
  .store-button { min-width: 0; flex: 1; }
  .download .store-actions { justify-content: flex-start; }
  .book-tile { width: 165px; }
}

.fan-wrap { min-height: 420px; display: grid; place-items: center; perspective: 900px; }
.fan { position: relative; width: 230px; height: 340px; }
.fan img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  border-radius: 18px; border: 6px solid #fff;
  box-shadow: 0 18px 40px rgba(168,85,247,.2);
  transition: transform .55s ease, opacity .55s ease, z-index 0s .2s;
}
.fan img:nth-child(1) { transform: translateX(-70px) rotate(-14deg) scale(.92); z-index: 1; }
.fan img:nth-child(2) { transform: translateX(-36px) rotate(-7deg) scale(.96); z-index: 2; }
.fan img:nth-child(3) { transform: translateX(0) rotate(0) scale(1); z-index: 6; }
.fan img:nth-child(4) { transform: translateX(36px) rotate(7deg) scale(.96); z-index: 2; }
.fan img:nth-child(5) { transform: translateX(70px) rotate(14deg) scale(.92); z-index: 1; }
.fan img:nth-child(n+6) { opacity: 0; transform: translateY(24px) scale(.86); z-index: 0; }
.book-tile { position: relative; }
.book-tile:after {
  content: ""; position: absolute; inset: 0 auto 44px 0; width: 40%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.38), transparent);
  transform: translateX(-120%);
  pointer-events: none;
}
.book-tile:hover:after { animation: shine .8s ease; }
@keyframes shine { to { transform: translateX(280%); } }
