/* ---------- Kinotale landing — design tokens ---------- */
:root {
  --c-bg: #fff8ef;
  --c-bg-2: #fff3e2;
  --c-ink: #1f1640;
  --c-ink-2: #4b3f73;
  --c-muted: #6b6288;
  --c-primary: #6c5ce7;
  --c-primary-ink: #4a3bc9;
  --c-accent: #ffb86b;
  --c-accent-2: #ff8fa3;
  --c-card: #ffffff;
  --c-border: #ece3f5;

  --shadow-sm: 0 2px 6px rgba(44, 22, 80, 0.06);
  --shadow-md: 0 10px 30px rgba(44, 22, 80, 0.1);
  --shadow-lg: 0 30px 60px rgba(44, 22, 80, 0.18);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1160px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-sans);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}

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

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  margin: 0 0 0.4em;
}
.display {
  font-size: clamp(2.25rem, 4.5vw + 1rem, 4.25rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.section-title {
  font-size: clamp(1.8rem, 2vw + 1rem, 2.75rem);
  line-height: 1.1;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-primary-ink);
  background: rgba(108, 92, 231, 0.1);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.accent {
  background: linear-gradient(110deg, #6c5ce7 10%, #ff8fa3 55%, #ffb86b 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  font-size: 1.15rem;
  color: var(--c-ink-2);
  max-width: 46ch;
  margin: 0 0 28px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn--lg {
  padding: 16px 28px;
  font-size: 1.05rem;
}
.btn--primary {
  background: linear-gradient(135deg, #7a6cf5, #6c5ce7);
  color: #fff;
  box-shadow: 0 10px 24px rgba(108, 92, 231, 0.35);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(108, 92, 231, 0.42);
}
.btn--ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-border);
}
.btn--ghost:hover {
  background: #fff;
  box-shadow: var(--shadow-sm);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(140%) blur(10px);
  background: rgba(255, 248, 239, 0.78);
  border-bottom: 1px solid rgba(44, 22, 80, 0.06);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand__mark {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 4px 10px rgba(108, 92, 231, 0.35));
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}
.nav__links {
  display: flex;
  gap: 28px;
  font-weight: 500;
  color: var(--c-ink-2);
}
.nav__links a:hover {
  color: var(--c-primary-ink);
}
@media (max-width: 720px) {
  .nav__links {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 100px;
  overflow: hidden;
  background:
    radial-gradient(1000px 500px at 10% -10%, #efeafd 0%, transparent 60%),
    radial-gradient(800px 500px at 110% 10%, #ffe7d1 0%, transparent 60%),
    var(--c-bg);
}
.hero__stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(108, 92, 231, 0.35), transparent 50%),
    radial-gradient(1.5px 1.5px at 80% 20%, rgba(255, 184, 107, 0.5), transparent 50%),
    radial-gradient(2px 2px at 60% 70%, rgba(255, 143, 163, 0.45), transparent 50%),
    radial-gradient(1.5px 1.5px at 30% 80%, rgba(108, 92, 231, 0.3), transparent 50%),
    radial-gradient(2px 2px at 90% 60%, rgba(255, 184, 107, 0.35), transparent 50%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
}
.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero__meta {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--c-muted);
}

/* Hero illustration — storybook */
.hero__art {
  position: relative;
  min-height: 420px;
}
.book {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  aspect-ratio: 16 / 11;
  display: grid;
  grid-template-columns: 1fr 6px 1fr;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(-1.5deg);
}
.book::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(44, 22, 80, 0.08);
  pointer-events: none;
}
.book__spine {
  background: linear-gradient(180deg, #ece3f5, #d9ceeb);
}
.book__page {
  padding: 18px 20px;
  position: relative;
}
.book__page--left {
  background: linear-gradient(180deg, #efeafd, #fff);
}
.book__page--right {
  background: #fffdf8;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.book__title {
  font-size: 1.1rem;
  margin: 8px 0 8px;
  line-height: 1.2;
}
.book__text {
  font-size: 0.85rem;
  color: var(--c-ink-2);
  margin: 0;
}
.book__paging {
  font-size: 0.7rem;
  color: var(--c-muted);
  text-align: right;
}

/* illustrated scene on left page */
.scene {
  position: absolute;
  inset: 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, #2d1e5f 0%, #5a3d9a 60%, #e3a77b 100%);
  overflow: hidden;
}
.moon {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff6d5, #ffd28a);
  box-shadow: 0 0 28px rgba(255, 214, 138, 0.7);
}
.hill {
  position: absolute;
  bottom: -40px;
  left: -10%;
  width: 120%;
  height: 70%;
  background: #3d2a73;
  border-radius: 50% 50% 0 0 / 40% 40% 0 0;
}
.hill--back {
  background: #4f3890;
  bottom: -20px;
  height: 55%;
  left: -20%;
  width: 140%;
  opacity: 0.9;
}
.tree {
  position: absolute;
  bottom: 36%;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 30px solid #24183f;
}
.tree--1 {
  left: 18%;
}
.tree--2 {
  left: 70%;
  bottom: 32%;
  border-left-width: 8px;
  border-right-width: 8px;
  border-bottom-width: 24px;
}
.character {
  position: absolute;
  bottom: 18%;
  left: 44%;
  width: 22px;
  height: 28px;
  background: #ffb86b;
  border-radius: 10px 10px 6px 6px;
  box-shadow:
    -4px -2px 0 #ffb86b,
    4px -2px 0 #ffb86b,
    0 -10px 0 #ffd9a8;
}

.float {
  position: absolute;
  font-size: 1.6rem;
  filter: drop-shadow(0 6px 12px rgba(44, 22, 80, 0.2));
  animation: floaty 6s ease-in-out infinite;
}
.float--1 {
  top: 4%;
  left: 2%;
  animation-delay: 0s;
}
.float--2 {
  top: 20%;
  right: 4%;
  animation-delay: 1.5s;
}
.float--3 {
  bottom: 6%;
  left: 10%;
  animation-delay: 3s;
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-10px) rotate(3deg);
  }
}

/* ---------- Sections ---------- */
.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-sub {
  color: var(--c-ink-2);
  margin: 8px auto 0;
  max-width: 52ch;
}

/* ---------- Features ---------- */
.features {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--c-bg) 0%, #fff 100%);
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
@media (max-width: 820px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 28px 26px 26px;
  box-shadow: var(--shadow-sm);
}
.step__num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7a6cf5, #ffb86b);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;
  margin-bottom: 14px;
  box-shadow: 0 8px 18px rgba(108, 92, 231, 0.35);
}
.step h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.step p {
  margin: 0;
  color: var(--c-ink-2);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}
.feature {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.feature__icon {
  font-size: 1.6rem;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f4efff;
  margin-bottom: 12px;
}
.feature h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.feature p {
  margin: 0;
  color: var(--c-ink-2);
  font-size: 0.95rem;
}

/* ---------- Showcase ---------- */
.showcase {
  padding: 100px 0;
  background: #fff;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .cards {
    grid-template-columns: 1fr;
  }
}
.card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card__cover {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}
.card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 50% at 50% 100%, rgba(0, 0, 0, 0.25), transparent);
}
.card__sparkle {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.9), transparent 50%),
    radial-gradient(1.5px 1.5px at 70% 40%, rgba(255, 255, 255, 0.8), transparent 50%),
    radial-gradient(2px 2px at 40% 75%, rgba(255, 255, 255, 0.9), transparent 50%),
    radial-gradient(1.5px 1.5px at 85% 80%, rgba(255, 255, 255, 0.7), transparent 50%);
}
.card__cover--1 {
  background: linear-gradient(160deg, #2d1e5f 0%, #6c5ce7 60%, #ff8fa3 100%);
}
.card__cover--2 {
  background: linear-gradient(160deg, #0d2a4f 0%, #4a90e2 60%, #a8d8f5 100%);
}
.card__cover--3 {
  background: linear-gradient(160deg, #3a1e3c 0%, #c85a9c 55%, #ffb86b 100%);
}
.card__body {
  padding: 20px 22px 24px;
}
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-primary-ink);
  background: rgba(108, 92, 231, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.card h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.card p {
  margin: 0;
  color: var(--c-ink-2);
  font-size: 0.95rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  padding: 90px 0;
  background:
    radial-gradient(700px 400px at 80% 20%, rgba(255, 184, 107, 0.25), transparent 60%),
    radial-gradient(700px 400px at 10% 80%, rgba(255, 143, 163, 0.2), transparent 60%),
    linear-gradient(135deg, #2d1e5f, #4a3bc9);
  color: #fff;
}
.cta-band__inner {
  text-align: center;
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(2rem, 2.5vw + 1rem, 3rem);
  margin-bottom: 8px;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 48ch;
  margin: 0 auto 24px;
}

/* ---------- Footer ---------- */
.footer {
  background: #160f2e;
  color: #cfc6e6;
  padding: 64px 0 28px;
}
.footer .brand__name {
  color: #fff;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 720px) {
  .footer__inner {
    grid-template-columns: 1fr;
  }
}
.footer__tag {
  margin-top: 8px;
  color: #9990b8;
  max-width: 30ch;
}
.footer__links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.footer__links h5 {
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.footer__links a {
  display: block;
  padding: 4px 0;
  color: #cfc6e6;
}
.footer__links a:hover {
  color: #fff;
}
.footer__legal {
  padding-top: 20px;
  color: #9990b8;
}

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  .float {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}
