/* Prompt Music landing — Apple-style minimalism, gold-on-black */
:root {
    --bg: #000000;
    --bg-elev: #0a0a0a;
    --bg-card: #111111;
    --fg: #f5f5f7;
    --fg-mute: #a0a0a8;
    --fg-dim: #6e6e76;
    --accent: #d4af37;
    --gold: #d4af37;
    --gold-light: #e8c659;
    --border: rgba(255,255,255,0.06);
    --radius: 14px;
    --max-w: 1140px;
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--fg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; position: relative; }
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: radial-gradient(circle, rgba(212,175,55,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: 0 0;
  animation: dots-bg-scan 90s linear infinite;
}
@keyframes dots-bg-scan { 0% { background-position: 0 0; } 100% { background-position: 24px 24px; } }
.header, section, footer { position: relative; z-index: 2; }

/* WCAG: respect reduced-motion preference globally */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Typography morph BOOKS → MUSIC hero animation */
.hero-morph { font-size: clamp(48px, 9vw, 96px); font-weight: 800; letter-spacing: 0.08em; line-height: 1; position: relative; z-index: 3; margin: 0 auto 24px; display: inline-block; min-height: 1.2em; color: var(--gold); font-variant-numeric: tabular-nums; }
.hero-morph .ch { display: inline-block; opacity: 0; transform: translateY(20px); animation: letter-in 0.16s ease-out forwards; }
.hero-morph.morphing .ch { animation: letter-morph 0.65s ease-out forwards; }
@keyframes letter-in { 0% { opacity: 0; transform: translateY(20px); filter: blur(4px); } 100% { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes letter-morph { 0% { opacity: 1; filter: blur(0); transform: translateY(0); } 40% { opacity: 0; filter: blur(12px); transform: translateY(-14px) scale(1.1); } 70% { opacity: 0; filter: blur(12px); transform: translateY(14px) scale(0.9); } 100% { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); } }
.hero-tagline { opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease, transform 0.6s ease; }
.hero-tagline.visible { opacity: 1; transform: translateY(0); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--gold); }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* HEADER */
.header { position: sticky; top: 0; z-index: 100; background: rgba(5,5,20,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--fg); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.logo-img { width: 44px; height: 44px; border-radius: 10px; display: block; }
.nav { display: flex; gap: 24px; flex: 1; justify-content: center; }
.nav a { color: var(--fg-mute); font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--fg); }
.cta-mini { background: var(--gold); color: var(--bg) !important; padding: 10px 22px; border-radius: 999px; font-weight: 600; font-size: 14px; transition: all 0.2s; }
.cta-mini:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(212,175,55,0.3); }

/* HERO */
.hero { padding: 120px 0 100px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 50%; left: 50%; width: 900px; height: 900px; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(212,175,55,0.16), transparent 60%); pointer-events: none; animation: orb-pulse 8s ease-in-out infinite; }
@keyframes dots-scan { 0% { background-position: 0 0; } 100% { background-position: 18px 18px; } }
@keyframes orb-pulse { 0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 0.75; transform: translate(-50%, -50%) scale(1.08); } }
@keyframes orb-drift { 0%, 100% { transform: translate(0, 0); opacity: 0.5; } 33% { transform: translate(40vw, -10vh); opacity: 1; } 66% { transform: translate(-20vw, 30vh); opacity: 0.3; } }
.hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 24px; color: var(--fg); position: relative; z-index: 2; }

/* Hero waveform line — thicker glowing wave + traveling Cervantes feather */
.hero-wave { position: absolute; bottom: 0; left: 0; width: 100%; height: 140px; pointer-events: none; z-index: 1; }
.hero-wave .wave-line { fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round; }
.hero-wave .feather-traveler { filter: drop-shadow(0 0 8px rgba(212,175,55,0.7)); }

/* Scroll-triggered fade-in */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Card hover lift dramatic */
.product-card, .poet-card, .example-card, .price-card { transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.product-card:hover, .poet-card:hover, .example-card:hover, .price-card:hover { transform: translateY(-8px); border-color: var(--gold) !important; box-shadow: 0 16px 48px rgba(212,175,55,0.18); }
.hero-sub { font-size: 18px; color: var(--fg-mute); max-width: 680px; margin: 0 auto 32px; }
.hero-sub strong { color: var(--gold); }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.btn { display: inline-block; padding: 14px 32px; border-radius: 999px; font-weight: 600; font-size: 16px; transition: all 0.2s; cursor: pointer; }
.btn-primary { background: var(--gold); color: var(--bg) !important; }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(212,175,55,0.4); }
.btn-ghost { background: transparent; color: var(--fg-mute) !important; border: 1px solid rgba(255,255,255,0.15); }
.btn-ghost:hover { color: var(--fg) !important; border-color: var(--gold); }
.hero-stats { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; }
.stat { color: var(--fg-mute); font-size: 14px; }
.stat b { display: block; color: var(--gold); font-size: 32px; font-weight: 800; line-height: 1; margin-bottom: 4px; }

/* SECTIONS shared */
section { padding: 110px 0; }
h2 { font-size: clamp(32px, 4.5vw, 48px); font-weight: 700; text-align: center; margin-bottom: 16px; letter-spacing: -0.02em; }
.section-sub { text-align: center; color: var(--fg-mute); margin-bottom: 48px; max-width: 640px; margin-left: auto; margin-right: auto; }

/* PRODUCTS */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.product-card { background: var(--bg-card); padding: 32px 28px; border-radius: var(--radius); border: 1px solid var(--border); position: relative; transition: all 0.2s; }
.product-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.product-featured { border-color: var(--gold); background: linear-gradient(180deg, rgba(212,175,55,0.04), var(--bg-card)); }
.product-badge { position: absolute; top: -10px; right: 20px; background: var(--gold); color: var(--bg); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.product-icon { font-size: 36px; margin-bottom: 12px; }
.product-card h3 { font-size: 22px; margin-bottom: 12px; font-weight: 700; }
.product-desc { color: var(--fg-mute); font-size: 15px; margin-bottom: 20px; }
.product-price { font-size: 32px; font-weight: 800; color: var(--gold); }
.bonus-line { text-align: center; margin-top: 32px; color: var(--fg-mute); font-size: 14px; padding: 12px 20px; background: var(--bg-elev); border-radius: 8px; border: 1px solid var(--border); }

/* POETS */
.poets { background: var(--bg-elev); }
.poet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.poet-card { background: var(--bg-card); padding: 20px; border-radius: 10px; border: 1px solid var(--border); transition: all 0.2s; }
.poet-card:hover { transform: translateY(-2px); border-color: var(--gold); }
.poet-card h4 { font-size: 16px; margin-bottom: 4px; color: var(--fg); font-weight: 700; }
.era { display: inline-block; color: var(--gold); font-size: 12px; margin-bottom: 10px; font-weight: 500; }
.poet-card p { color: var(--fg-mute); font-size: 13px; line-height: 1.5; }
.poets-foot { text-align: center; margin-top: 32px; color: var(--fg-dim); font-size: 13px; }

/* EXAMPLES */
.example-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 32px; }
.example-card { background: var(--bg-card); padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); transition: all 0.2s; }
.example-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.example-card h4 { font-size: 18px; margin-bottom: 6px; }
.example-style { color: var(--gold); font-size: 14px; margin-bottom: 12px; font-weight: 500; }
.example-quote { color: var(--fg-mute); font-style: italic; margin-bottom: 16px; font-size: 14px; }
.example-link { font-size: 14px; font-weight: 600; }
.example-audio { width: 100%; margin-top: 8px; height: 36px; border-radius: 8px; filter: invert(0.85) hue-rotate(180deg); }
.examples-cta { text-align: center; }
.examples-cta a { font-size: 16px; font-weight: 600; }

/* PRICING */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 920px; margin: 0 auto; }
.price-card { background: var(--bg-card); padding: 32px 24px; border-radius: var(--radius); border: 1px solid var(--border); text-align: center; transition: all 0.2s; }
.price-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.price-featured { border-color: var(--gold); transform: scale(1.03); }
.price-card h3 { font-size: 20px; margin-bottom: 12px; }
.price { font-size: 48px; font-weight: 900; color: var(--gold); margin-bottom: 20px; line-height: 1; }
.price-card ul { list-style: none; text-align: left; }
.price-card li { padding: 8px 0; color: var(--fg-mute); font-size: 14px; border-bottom: 1px solid var(--border); }
.price-card li::before { content: '✓ '; color: var(--accent); font-weight: 700; }
.pricing-note { text-align: center; margin-top: 32px; color: var(--fg-dim); font-size: 13px; }

/* FAQ */
.faq { background: var(--bg-elev); }
.faq details { background: var(--bg-card); padding: 20px 24px; border-radius: 10px; margin-bottom: 12px; border: 1px solid var(--border); cursor: pointer; transition: all 0.2s; }
.faq details:hover { border-color: var(--accent); }
.faq details[open] { border-color: var(--gold); }
.faq summary { font-weight: 600; font-size: 16px; color: var(--fg); list-style: none; padding-right: 24px; position: relative; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 0; font-size: 24px; color: var(--gold); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--fg-mute); margin-top: 12px; font-size: 15px; }

/* FOOTER */
.footer { padding: 50px 0 30px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin-bottom: 32px; }
.footer h5 { color: var(--fg); font-size: 14px; margin-bottom: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.footer p { color: var(--fg-mute); font-size: 14px; margin-bottom: 8px; }
.logo-foot { margin-bottom: 12px; }
.copyright { text-align: center; padding-top: 24px; border-top: 1px solid var(--border); color: var(--fg-dim); font-size: 13px; }

/* FLOAT CTA */
.float-cta { position: fixed; bottom: 24px; right: 24px; background: var(--gold); color: var(--bg) !important; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; box-shadow: 0 8px 32px rgba(212,175,55,0.35); transition: all 0.2s; z-index: 99; }
.float-cta:hover { transform: translateY(-2px); background: var(--gold-light); box-shadow: 0 12px 40px rgba(212,175,55,0.5); }
.float-icon { font-size: 18px; }

/* MOBILE */
@media (max-width: 768px) {
    .nav { display: none; }
    .hero { padding: 50px 0 40px; }
    .hero-stats { gap: 24px; }
    section { padding: 50px 0; }
    .float-text { display: none; }
    .float-cta { padding: 16px; border-radius: 50%; }
    .price-featured { transform: none; }
}
