/* Anime AI — palette taken from the app icon and store screenshots (deep navy-violet background, glowing violet accents) */
:root {
  --brand: #8b5cf6;
  --brand-2: #c084fc;
  --brand-3: #e879f9;
  --bg: #0d0a1f;
  --bg-2: #15102e;
  --surface: #1c1640;
  --surface-2: #251c52;
  --line: rgba(196, 167, 255, 0.18);
  --text: #f4f1ff;
  --muted: #bdb3e0;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow: 0 24px 60px -20px rgba(124, 58, 237, 0.55);
  --container: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand-2); text-decoration: none; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 3px;
  border-radius: 6px;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 10, 31, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 19px; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 6px 18px -6px rgba(139, 92, 246, 0.8); }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav a:hover { color: #fff; }
.nav .nav-hide-sm { display: none; }

/* ---------- Buttons / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(192, 132, 252, 0.35);
  color: #e3d6ff; font-size: 14px; font-weight: 600;
}
.pill svg { width: 16px; height: 16px; }

.store-note {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 20px; border-radius: 16px;
  background: linear-gradient(135deg, var(--brand) 0%, #a855f7 55%, var(--brand-3) 100%);
  color: #fff; font-weight: 700; box-shadow: var(--shadow);
}
.store-note svg { width: 26px; height: 26px; flex: none; }
.store-note small { display: block; font-weight: 500; font-size: 12px; opacity: 0.9; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 56px 0 72px;
  background:
    radial-gradient(800px 480px at 85% 10%, rgba(168, 85, 247, 0.35), transparent 60%),
    radial-gradient(600px 400px at 0% 90%, rgba(139, 92, 246, 0.28), transparent 60%),
    linear-gradient(180deg, #120c2c 0%, var(--bg) 100%);
}
.hero .container { display: grid; gap: 48px; align-items: center; }
.hero h1 { font-size: 44px; line-height: 1.08; margin: 18px 0 14px; letter-spacing: -0.02em; }
.hero h1 .grad {
  background: linear-gradient(90deg, var(--brand-2), var(--brand-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.text-link { font-weight: 600; color: #e3d6ff; display: inline-flex; gap: 6px; align-items: center; }

.hero-visual { position: relative; display: flex; justify-content: center; min-height: 420px; }
.shot {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px -24px rgba(124, 58, 237, 0.7), 0 0 0 1px rgba(196, 167, 255, 0.22);
  background: var(--surface);
}
.hero-visual .shot { width: 62%; max-width: 300px; }
.hero-visual .shot.front { position: relative; z-index: 2; transform: rotate(-3deg); }
.hero-visual .shot.back {
  position: absolute; z-index: 1; width: 52%; max-width: 250px;
  right: 2%; top: 40px; transform: rotate(7deg); opacity: 0.9;
}
.glow {
  position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.55), transparent 70%);
  filter: blur(30px); top: 15%; left: 50%; transform: translateX(-50%); z-index: 0;
}

/* ---------- Highlights strip ---------- */
.highlights { padding: 0 0 40px; margin-top: -24px; position: relative; z-index: 3; }
.highlights ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.highlights li {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted);
}
.highlights li strong { display: block; color: var(--text); font-size: 16px; }
.icon-badge {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(232, 121, 249, 0.25));
  color: #f0e6ff;
}
.icon-badge svg { width: 22px; height: 22px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { font-size: 32px; line-height: 1.15; margin: 10px 0 10px; letter-spacing: -0.01em; }
.section-head p { color: var(--muted); margin: 0; }
.eyebrow { color: var(--brand-2); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }

/* Features (alternating) */
.feature { display: grid; gap: 32px; align-items: center; padding: 28px 0; }
.feature + .feature { border-top: 1px solid var(--line); padding-top: 56px; margin-top: 28px; }
.feature .shot { max-width: 300px; margin: 0 auto; transition: transform 0.35s ease; }
.feature .shot:hover { transform: translateY(-6px); }
.feature h3 { font-size: 28px; line-height: 1.2; margin: 12px 0 12px; }
.feature p { color: var(--muted); margin: 0 0 16px; max-width: 34em; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 4px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Gallery — book gallery: an open storybook, one chapter (spread) per screenshot.
   CSS-only: hidden radios drive which spread is shown; labels turn the pages. */
.bookshelf { position: relative; max-width: 980px; margin: 0 auto; perspective: 2200px; }
.book-radio {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.book {
  position: relative; padding: 12px; border-radius: 22px;
  background:
    radial-gradient(400px 200px at 10% 0%, rgba(232, 121, 249, 0.35), transparent 70%),
    linear-gradient(135deg, #2e1a6b 0%, #4c1d95 55%, #6b21a8 100%);
  box-shadow: 0 40px 90px -30px rgba(124, 58, 237, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
/* page-stack edges under the cover */
.book::before, .book::after {
  content: ""; position: absolute; left: 18px; right: 18px; height: 10px; z-index: -1;
  border-radius: 0 0 14px 14px; background: #d9ccf5;
}
.book::before { bottom: -6px; }
.book::after { bottom: -12px; left: 30px; right: 30px; background: #b8a6e6; }
.book-radio:focus-visible ~ .book { outline: 2px solid var(--brand-2); outline-offset: 6px; }

.spread {
  display: none; grid-template-columns: 1fr; border-radius: 14px; overflow: hidden;
  transform-style: preserve-3d;
}
#bk-1:checked ~ .book .spread-1,
#bk-2:checked ~ .book .spread-2,
#bk-3:checked ~ .book .spread-3,
#bk-4:checked ~ .book .spread-4,
#bk-5:checked ~ .book .spread-5 { display: grid; }

.page { position: relative; color: #2a1f4d; }
.page-left {
  display: grid; place-items: center; padding: 28px 24px;
  background:
    radial-gradient(circle at 50% 40%, rgba(168, 85, 247, 0.28), transparent 65%),
    linear-gradient(180deg, #efe6ff 0%, #e2d3ff 100%);
  animation: pageFade 0.5s ease both;
}
.page-left .shot { width: 100%; max-width: 230px; border-radius: 24px; transform: rotate(-2deg); }
.page-right {
  display: flex; flex-direction: column; padding: 30px 26px 22px;
  background:
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(124, 58, 237, 0.08) 31px 32px),
    linear-gradient(180deg, #fbf8ff 0%, #f1eaff 100%);
  transform-origin: top center; animation: pageTurnY 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
/* ribbon bookmark */
.page-right::before {
  content: ""; position: absolute; top: -2px; right: 26px; width: 22px; height: 54px;
  background: linear-gradient(180deg, var(--brand-3), var(--brand));
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
}
.chapter { color: #7c3aed; font-weight: 800; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
.page-right h3 { font-size: 28px; line-height: 1.15; margin: 8px 0 12px; color: #1e1442; }
.page-right p { margin: 0 0 20px; color: #4b3f74; }
.page-nav {
  margin-top: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-top: 16px; border-top: 1px dashed rgba(124, 58, 237, 0.3);
}
.page-no { color: #7a6ca8; font-size: 14px; font-style: italic; }
.turn {
  cursor: pointer; user-select: none; font-weight: 700; font-size: 15px;
  padding: 8px 14px; border-radius: 999px; transition: filter 0.2s ease, transform 0.2s ease;
}
.turn.next { margin-left: auto; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-3)); }
.turn.prev { color: #5b21b6; background: rgba(124, 58, 237, 0.1); }
.turn:hover { filter: brightness(1.08); transform: translateY(-1px); }

.book-tabs { display: flex; justify-content: center; gap: 10px; margin-top: 36px; flex-wrap: wrap; }
.book-tabs label {
  cursor: pointer; display: grid; justify-items: center; gap: 6px; width: 62px;
  color: var(--muted); font-size: 12px; font-weight: 600; transition: color 0.2s ease, transform 0.2s ease;
}
.book-tabs img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 10px;
  border: 2px solid var(--line); opacity: 0.6; transition: opacity 0.2s ease, border-color 0.2s ease;
}
.book-tabs label:hover { color: #fff; transform: translateY(-2px); }
.book-tabs label:hover img { opacity: 0.9; }
#bk-1:checked ~ .book-tabs label[for="bk-1"],
#bk-2:checked ~ .book-tabs label[for="bk-2"],
#bk-3:checked ~ .book-tabs label[for="bk-3"],
#bk-4:checked ~ .book-tabs label[for="bk-4"],
#bk-5:checked ~ .book-tabs label[for="bk-5"] { color: #fff; }
#bk-1:checked ~ .book-tabs label[for="bk-1"] img,
#bk-2:checked ~ .book-tabs label[for="bk-2"] img,
#bk-3:checked ~ .book-tabs label[for="bk-3"] img,
#bk-4:checked ~ .book-tabs label[for="bk-4"] img,
#bk-5:checked ~ .book-tabs label[for="bk-5"] img { opacity: 1; border-color: var(--brand-3); }

@keyframes pageFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pageTurnY { from { opacity: 0.2; transform: rotateX(-75deg); } to { opacity: 1; transform: none; } }
@keyframes pageTurnX { from { opacity: 0.2; transform: rotateY(-100deg); } to { opacity: 1; transform: none; } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
.steps li {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px 24px;
}
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -14px; right: 20px;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-3)); font-weight: 800; color: #fff;
}
.steps h3 { margin: 14px 0 6px; font-size: 20px; }
.steps p { margin: 0; color: var(--muted); }

/* Audience cards */
.cards { display: grid; gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: border-color 0.25s ease, transform 0.25s ease;
}
.card:hover { border-color: rgba(192, 132, 252, 0.5); transform: translateY(-3px); }
.card h3 { margin: 14px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* Functions list */
.functions { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.functions li {
  padding: 9px 16px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line);
  color: #e3d6ff; font-size: 15px;
}

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 600; font-size: 17px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 14px; font-size: 24px; color: var(--brand-2); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* CTA */
.cta {
  position: relative; overflow: hidden; text-align: center;
  border-radius: var(--radius-lg); padding: 56px 24px;
  background:
    radial-gradient(500px 260px at 20% 0%, rgba(232, 121, 249, 0.35), transparent 70%),
    linear-gradient(135deg, #3b1d8f 0%, #5b21b6 50%, #7e22ce 100%);
  box-shadow: var(--shadow);
}
.cta img { width: 84px; height: 84px; border-radius: 22px; margin: 0 auto 18px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6); }
.cta h2 { font-size: 32px; margin: 0 0 10px; }
.cta p { color: #e9defe; max-width: 34em; margin: 0 auto 24px; }
.cta .store-note { background: rgba(13, 10, 31, 0.55); border: 1px solid rgba(255, 255, 255, 0.25); box-shadow: none; }

/* Contact */
.contact-box {
  max-width: 720px; margin: 0 auto; text-align: center;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 24px;
}
.contact-box p { color: var(--muted); margin: 0 0 12px; }
.contact-box a { font-weight: 700; font-size: 18px; word-break: break-all; }

/* ---------- Legal pages ---------- */
.legal { padding: 56px 0 80px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: 38px; line-height: 1.15; margin: 8px 0 8px; }
.legal .meta { color: var(--muted); margin: 0 0 32px; }
.legal h2 { font-size: 23px; margin: 40px 0 10px; }
.legal p, .legal li { color: #ddd5f7; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal .toc {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin-bottom: 8px;
}
.legal .toc ol { margin: 6px 0 0; padding-left: 22px; }
.legal .toc a { color: #e3d6ff; }
.legal .toc ol ol { margin: 4px 0 6px; list-style: lower-alpha; }
.legal h3 { font-size: 19px; margin: 28px 0 8px; color: #f1ebff; }
.legal .notice {
  background: var(--bg-2); border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: 12px; padding: 16px 20px; margin: 0 0 24px;
}
.legal .notice p { margin: 0; color: #f1ebff; }
.legal .note { color: var(--muted); font-size: 15px; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.notfound .code {
  font-size: 96px; font-weight: 800; line-height: 1;
  background: linear-gradient(90deg, var(--brand-2), var(--brand-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.notfound p { color: var(--muted); }
.btn {
  display: inline-block; margin-top: 12px; padding: 12px 22px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), #a855f7); color: #fff; font-weight: 700;
}
.btn:hover { color: #fff; filter: brightness(1.1); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; background: #0a0818; color: var(--muted); font-size: 15px; }
.site-footer .container { display: grid; gap: 20px; }
.footer-brand { display: flex; gap: 12px; align-items: center; color: var(--text); font-weight: 700; }
.footer-brand img { width: 34px; height: 34px; border-radius: 9px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: #fff; }
.site-footer p { margin: 0; }

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .nav .nav-hide-sm { display: inline; }
  .hero { padding: 80px 0 104px; }
  .hero h1 { font-size: 52px; }
  .highlights ul { grid-template-columns: repeat(4, 1fr); }
  .section { padding: 96px 0; }
  .section-head h2 { font-size: 38px; }
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature.reverse .feature-media { order: 2; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .book { padding: 16px; }
  .spread { grid-template-columns: 1fr 1fr; }
  .page-left { padding: 40px 32px; }
  .page-left .shot { max-width: 260px; }
  /* spine: shadow on the inner edges of both pages */
  .page-left::after, .page-right::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 40px; pointer-events: none;
  }
  .page-left::after { right: 0; background: linear-gradient(90deg, transparent, rgba(46, 16, 101, 0.25)); }
  .page-right::after { left: 0; background: linear-gradient(270deg, transparent, rgba(46, 16, 101, 0.22)); }
  .page-right { padding: 48px 44px 30px 52px; transform-origin: left center; animation-name: pageTurnX; }
  .page-right h3 { font-size: 34px; }
  .book-tabs label { width: 76px; }
  .site-footer .container { grid-template-columns: 1fr auto; align-items: center; }
  .cta { padding: 72px 40px; }
  .cta h2 { font-size: 38px; }
}

@media (min-width: 1024px) {
  .hero .container { grid-template-columns: 1.05fr 1fr; }
  .hero h1 { font-size: 56px; }
  .hero-visual { min-height: 560px; }
  .section { padding: 112px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
