:root {
  --bg: #14110d;
  --bg-2: #0e0c09;
  --surface: #1d1813;
  --surface-2: #241e17;
  --gold: #c8a45c;
  --gold-bright: #e3c07a;
  --gold-deep: #9a7d3f;
  --ink: #ece4d6;
  --muted: #9b9080;
  --muted-dim: #6f675b;
  --line: rgba(200, 164, 92, 0.16);
  --glass: rgba(36, 30, 23, 0.55);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 700px at 50% -10%, #1c1812 0%, var(--bg) 45%, var(--bg-2) 100%);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--gold-bright); }
strong { color: var(--ink); font-weight: 700; }

/* Ambient gold glow that drifts behind the hero */
.glow {
  position: fixed;
  top: -20vh; left: 50%; transform: translateX(-50%);
  width: 90vw; max-width: 1100px; height: 80vh;
  background: radial-gradient(closest-side, rgba(200, 164, 92, 0.20), rgba(200, 164, 92, 0.05) 55%, transparent 75%);
  filter: blur(20px);
  pointer-events: none; z-index: 0;
  animation: floaty 14s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); opacity: .9; }
  50% { transform: translateX(-50%) translateY(24px) scale(1.05); opacity: 1; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; font-family: var(--sans); font-weight: 700; font-size: .98rem;
  padding: .85rem 1.5rem; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s ease, box-shadow .3s ease, background .3s;
  letter-spacing: .01em;
}
.btn-gold {
  color: #1a140a;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 10px 30px rgba(200, 164, 92, 0.28), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(200, 164, 92, 0.42); }
.btn-ghost {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-block { width: 100%; padding: 1rem; font-size: 1.05rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1.1rem clamp(1rem, 4vw, 2.5rem);
  transition: background .35s ease, border-color .35s ease, padding .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(14, 12, 9, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
  padding-top: .8rem; padding-bottom: .8rem;
}
.brand { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: .01em; }
.brand .quill { filter: drop-shadow(0 2px 8px rgba(200,164,92,.4)); }
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: .95rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--gold-bright); }
.nav-signin { margin-left: 1.4rem; padding: .55rem 1.2rem; }

/* ---------- Layout ---------- */
main { position: relative; z-index: 1; }
.section {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(4rem, 11vw, 9rem) clamp(1.2rem, 5vw, 2.5rem);
}
.section-head { max-width: 720px; margin-bottom: 3rem; }
.kicker {
  text-transform: uppercase; letter-spacing: .28em; font-size: .76rem; font-weight: 700;
  color: var(--gold); margin: 0 0 1rem;
}
h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.1; margin: 0 0 1rem; letter-spacing: -.01em; }
h3 { font-family: var(--sans); font-weight: 700; font-size: 1.25rem; margin: 0 0 .5rem; }
.lede { color: var(--muted); font-size: 1.12rem; max-width: 60ch; }

/* ---------- Hero ---------- */
.hero {
  max-width: 940px; margin: 0 auto; text-align: center;
  padding: clamp(8rem, 18vw, 12rem) clamp(1.2rem, 5vw, 2rem) clamp(3rem, 8vw, 5rem);
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .24em; font-size: .78rem; font-weight: 600;
  color: var(--gold); margin: 0 0 1.6rem;
}
.hero-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.7rem, 8vw, 5.4rem); line-height: 1.02; letter-spacing: -.02em;
  margin: 0 0 1.6rem;
  background: linear-gradient(180deg, #fff7ea 0%, var(--ink) 55%, #b9ab93 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 62ch; margin: 0 auto 2rem; }
.hero-sub strong { color: var(--gold-bright); font-weight: 700; }
.typeline {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--serif); font-style: italic; color: var(--muted);
  background: var(--glass); border: 1px solid var(--line); border-radius: 999px;
  padding: .5rem 1.1rem; margin-bottom: 2.4rem; min-height: 2.2rem;
  backdrop-filter: blur(8px);
}
.type-label { text-transform: uppercase; letter-spacing: .18em; font-family: var(--sans); font-style: normal; font-size: .66rem; font-weight: 700; color: var(--gold); }
.type-cursor { color: var(--ink); }
.type-cursor::after { content: '▌'; color: var(--gold); animation: blink 1s step-end infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Glass ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 20px;
  backdrop-filter: blur(14px) saturate(130%);
  box-shadow: var(--shadow);
}

/* ---------- Meet / demo ---------- */
.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; align-items: start; }
.chat { padding: 1.5rem; display: flex; flex-direction: column; gap: .8rem; }
.bubble { padding: .8rem 1.05rem; border-radius: 16px; font-size: .98rem; line-height: 1.5; max-width: 88%; }
.bubble.pen { background: rgba(200,164,92,.10); border: 1px solid var(--line); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 5px; }
.bubble.you { background: rgba(255,255,255,.05); color: var(--muted); align-self: flex-end; border-bottom-right-radius: 5px; }
.book { padding: 1.8rem; position: relative; overflow: hidden; }
.book::before { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(200,164,92,.08), transparent 60%); pointer-events: none; }
.book-tab { text-transform: uppercase; letter-spacing: .2em; font-size: .66rem; font-weight: 700; color: var(--gold); margin-bottom: 1rem; }
.book-chapter { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; color: var(--gold-bright); margin: 0 0 .9rem; }
.book-prose, .page p { font-family: var(--serif); font-size: 1.06rem; line-height: 1.8; color: #ddd2bf; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card { padding: 2rem 1.7rem; transition: transform .3s ease, border-color .3s ease; }
.card:hover { transform: translateY(-6px); border-color: rgba(200,164,92,.4); }
.step-no { font-family: var(--serif); font-size: 2.4rem; color: var(--gold-deep); margin-bottom: .6rem; line-height: 1; }
.card p { color: var(--muted); margin: 0; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.feature { padding: 1.7rem 1.5rem; transition: transform .3s ease, border-color .3s; }
.feature:hover { transform: translateY(-4px); border-color: rgba(200,164,92,.35); }
.feature .fi { font-size: 1.7rem; display: block; margin-bottom: .9rem; filter: drop-shadow(0 3px 10px rgba(200,164,92,.25)); }
.feature p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Sample page ---------- */
.page {
  max-width: 760px; margin: 0 auto;
  background: linear-gradient(180deg, #fbf6ea, #f3ead6);
  color: #2b2317; border-radius: 14px;
  padding: clamp(2rem, 5vw, 3.4rem);
  box-shadow: var(--shadow);
  position: relative;
}
.page .book-chapter { color: #6a5326; }
.page p { color: #3a3120; }
.page-by { font-style: italic; color: #8a7a55 !important; font-size: .95rem !important; margin-top: 1.4rem; }

/* ---------- Request ---------- */
.request { display: flex; justify-content: center; }
.request-card { width: 100%; max-width: 620px; padding: clamp(2rem, 5vw, 3.2rem); text-align: center; }
.request-form { margin-top: 1.8rem; text-align: left; }
.request-form .row { display: flex; gap: .8rem; }
.request-form input, .request-form textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 12px;
  padding: .85rem 1rem; margin-bottom: .8rem; transition: border-color .2s, box-shadow .2s;
}
.request-form input::placeholder, .request-form textarea::placeholder { color: var(--muted-dim); }
.request-form input:focus, .request-form textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,164,92,.15);
}
.request-form textarea { resize: vertical; }
.form-msg { color: #e6a98f; min-height: 1.2em; margin: .6rem 0 0; font-size: .92rem; text-align: center; }
.request-done { text-align: center; padding: 1rem 0; }
.done-mark { font-size: 2.4rem; color: var(--gold-bright); margin-bottom: .5rem; text-shadow: 0 0 22px rgba(200,164,92,.5); }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 1; text-align: center; padding: 4rem 1.5rem 3rem; border-top: 1px solid var(--line); margin-top: 3rem; color: var(--muted); }
.footer-brand { font-family: var(--serif); font-size: 1.5rem; margin-bottom: .6rem; }
.footer p { margin: .3rem 0; font-size: .95rem; }
.footer a { color: var(--gold); }
.footer-links { display: flex; gap: 1.6rem; justify-content: center; flex-wrap: wrap; margin: 1.4rem 0; }
.footer-links a { color: var(--muted); font-weight: 500; }
.footer-links a:hover { color: var(--gold-bright); }
.fine { color: var(--muted-dim); font-size: .82rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .demo, .steps, .features { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .request-form .row { flex-direction: column; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glow { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .type-cursor::after { animation: none; }
}
