:root {
  --bg: #120d2e;
  --bg2: #1d1550;
  --card: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f4f1ff;
  --muted: #b9b2e6;
  --gold: #ffc86b;
  --gold2: #ffad42;
  --ink: #2a1650;
  --radius: 22px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 700px at 80% -10%, #3a2a8a 0%, transparent 60%),
              radial-gradient(900px 600px at -10% 40%, #4a2370 0%, transparent 60%),
              linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .55;
  background-image:
    radial-gradient(1.5px 1.5px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 90px 120px, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 160px 60px, #ffe2a8 50%, transparent 51%),
    radial-gradient(1px 1px at 230px 180px, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 300px 90px, #fff 50%, transparent 51%);
  background-size: 340px 240px;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(1080px, 100% - 40px); margin: 0 auto; }
.narrow { width: min(720px, 100% - 40px); margin: 0 auto; }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 24px; color: var(--text); }
.logo:hover { text-decoration: none; }
.moon { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset -9px 3px 0 0 var(--gold); transform: rotate(-20deg); filter: drop-shadow(0 0 10px rgba(255,200,107,.6)); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer;
  font: inherit; font-weight: 600; border-radius: 999px; padding: 14px 26px; font-size: 16px; transition: transform .15s, box-shadow .2s, opacity .2s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn-gold { background: linear-gradient(180deg, var(--gold), var(--gold2)); color: var(--ink); box-shadow: 0 10px 30px rgba(255, 173, 66, .35); }
.btn-ghost { background: var(--card); color: var(--text); border: 1px solid var(--line); }
.btn-small { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* hero */
.hero { display: grid; gap: 40px; align-items: center; padding: 30px 0 60px; grid-template-columns: 1.1fr .9fr; }
.eyebrow { display: inline-block; background: rgba(255,200,107,.14); color: var(--gold); border: 1px solid rgba(255,200,107,.35);
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }
h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.08; margin: 18px 0 14px; letter-spacing: -0.02em; }
h1 .hl { color: var(--gold); text-shadow: 0 0 30px rgba(255,200,107,.35); }
h2 { font-size: clamp(26px, 4vw, 38px); line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.01em; }
h3 { margin: 0 0 6px; font-size: 19px; }
.lead { color: var(--muted); font-size: 18px; max-width: 540px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; align-items: center; }
.note { color: var(--muted); font-size: 13px; }

/* story card mock */
.mock { background: var(--card); border: 1px solid var(--line); border-radius: 30px; padding: 26px; backdrop-filter: blur(8px);
  box-shadow: 0 30px 80px rgba(0,0,0,.35); position: relative; }
.mock .tag { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; color: var(--muted); }
.dot { width: 22px; height: 22px; border-radius: 50%; background: var(--gold); }
.mock p { font-size: 19px; margin: 18px 0; }
.mock .name { color: var(--gold); font-weight: 700; text-shadow: 0 0 16px rgba(255,200,107,.5); }
.wave { display: flex; align-items: center; gap: 5px; height: 50px; margin-top: 10px; }
.wave i { display: block; width: 6px; border-radius: 3px; background: rgba(255,255,255,.75); animation: w 1.2s ease-in-out infinite; }
@keyframes w { 0%,100% { height: 12px } 50% { height: 42px } }
.play { width: 46px; height: 46px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; flex: none; margin-right: 8px; }
.play::after { content: ""; border-left: 14px solid var(--ink); border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }

/* sections */
section { padding: 56px 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step-n { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: rgba(255,200,107,.16); color: var(--gold); margin-bottom: 12px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.list li { display: flex; gap: 12px; align-items: flex-start; }
.list li::before { content: "✦"; color: var(--gold); }
.price { font-size: 52px; font-weight: 700; line-height: 1; }
.price small { font-size: 18px; color: var(--muted); font-weight: 500; }
.pricing { max-width: 440px; margin: 0 auto; text-align: center; border: 1px solid rgba(255,200,107,.45); box-shadow: 0 0 60px rgba(255,200,107,.12); }
details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }
footer { border-top: 1px solid var(--line); padding: 30px 0 50px; color: var(--muted); font-size: 14px; }
footer .links { display: flex; gap: 18px; flex-wrap: wrap; }

/* app */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
label { display: block; font-size: 14px; color: var(--muted); margin: 12px 0 6px; }
input, select, textarea { width: 100%; font: inherit; color: var(--text); background: rgba(0,0,0,.25); border: 1px solid var(--line);
  border-radius: 14px; padding: 13px 14px; font-size: 16px; outline: none; }
input:focus, select:focus { border-color: var(--gold); }
select option { color: #111; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text); padding: 9px 15px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 14px; }
.chip.on { background: var(--gold); color: var(--ink); border-color: var(--gold); font-weight: 600; }
.pill { font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.1); }
.pill.premium { background: var(--gold); color: var(--ink); }
.hidden { display: none !important; }
.err { color: #ffb4b4; font-size: 14px; margin-top: 10px; }
.ok { color: #b9f5c8; font-size: 14px; margin-top: 10px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 16px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.gbtn { background: #fff; color: #222; }
.story-title { font-size: 24px; margin: 6px 0 12px; }
.story-text { white-space: pre-line; font-size: 18px; color: #e9e5ff; max-height: 50vh; overflow: auto; padding-right: 6px; }
audio { width: 100%; margin: 12px 0; }
.lib-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.lib-item:last-child { border-bottom: 0; }
.loader { text-align: center; padding: 30px 10px; }
.loader .moon { width: 64px; height: 64px; margin: 0 auto 16px; box-shadow: inset -20px 6px 0 0 var(--gold); animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: rotate(-20deg) translateY(-8px); } }
.modal { position: fixed; inset: 0; background: rgba(8, 5, 25, .78); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal-box { background: #1b1446; border: 1px solid var(--line); border-radius: 24px; width: min(520px, 100%); max-height: 92vh; overflow: auto; padding: 22px; }
.sleep { position: fixed; inset: 0; background: #000; z-index: 60; display: grid; place-items: center; color: #333; font-size: 14px; }
.legal h1 { font-size: 34px; }
.legal h2 { font-size: 22px; margin-top: 30px; }
.legal p, .legal li { color: #dcd6ff; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 10px; }
  .grid3 { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
  .lead { font-size: 16px; }
}
