/* Base Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f1629;
  --bg-2: #161f38;
  --bg-card: #1a2744;
  --fg: #faf8f4;
  --fg-muted: #9aa3b8;
  --accent: #f0a500;
  --accent-dim: rgba(240, 165, 0, 0.15);
  --accent-glow: rgba(240, 165, 0, 0.3);
  --border: rgba(250, 248, 244, 0.08);
  --radius: 12px;
  --radius-sm: 6px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
}

/* Navigation */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(15, 22, 41, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: var(--bg);
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--fg); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 32px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(240,165,0,0.08) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(100, 130, 255, 0.06) 0%, transparent 70%);
  bottom: 0;
  left: 20%;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(250,248,244,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250,248,244,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

.hero-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 12px var(--accent); }
  50% { opacity: 0.7; box-shadow: 0 0 20px var(--accent); }
}

.hero-headline {
  font-size: clamp(36px, 4.5vw, 60px);
  color: var(--fg);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-stat-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero-stat { display: flex; flex-direction: column; gap: 4px; }

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 11px;
  color: var(--fg-muted);
  line-height: 1.3;
  max-width: 90px;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Pipeline Diagram */
.pipeline-diagram {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.pipeline-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 20px;
}

.pipeline-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: default;
}

.pipeline-step:hover {
  border-color: rgba(240, 165, 0, 0.3);
}

.step-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-icon svg { width: 20px; height: 20px; }

.step-icon-manuscript { background: rgba(100, 140, 255, 0.15); color: #8ba8ff; }
.step-icon-ai { background: rgba(240, 165, 0, 0.15); color: var(--accent); }
.step-icon-content { background: rgba(100, 220, 160, 0.12); color: #64dc9e; }
.step-icon-launch { background: rgba(255, 120, 140, 0.12); color: #ff788c; }

.step-text { display: flex; flex-direction: column; gap: 2px; flex: 1; }

.step-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}

.step-desc {
  font-size: 12px;
  color: var(--fg-muted);
}

.step-glow {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(100, 140, 255, 0.8);
  box-shadow: 0 0 8px rgba(100, 140, 255, 0.6);
}

.step-glow-amber {
  background: rgba(240, 165, 0, 0.8);
  box-shadow: 0 0 8px rgba(240, 165, 0, 0.6);
}

.pipeline-connector {
  display: flex;
  align-items: center;
  padding: 4px 0 4px 56px;
  position: relative;
}

.connector-line {
  width: 1px;
  height: 20px;
  background: linear-gradient(to bottom, rgba(240,165,0,0.4), rgba(240,165,0,0.1));
  margin-left: 20px;
}

.connector-arrow {
  position: absolute;
  left: 20px;
  top: 24px;
  transform: translateY(-50%);
  color: var(--accent);
}

.connector-arrow svg { width: 12px; height: 12px; }

/* Shared Section Styles */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 44px);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* How It Works */
.how-it-works {
  padding: 100px 32px;
  background: var(--bg);
}

.steps-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}

.step-card:hover {
  border-color: rgba(240, 165, 0, 0.25);
  transform: translateY(-4px);
}

.step-number {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  font-weight: 900;
  color: rgba(240, 165, 0, 0.12);
  position: absolute;
  top: 24px;
  right: 28px;
  line-height: 1;
}

.step-icon-lg {
  width: 56px;
  height: 56px;
  background: var(--accent-dim);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.step-icon-lg svg { width: 28px; height: 28px; }

.step-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.step-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 10px;
  border-radius: 4px;
}

/* Features */
.features-section {
  padding: 100px 32px;
  background: var(--bg-2);
  position: relative;
}

.features-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(240,165,0,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.features-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  transition: border-color 0.2s;
}

.feature-card:hover { border-color: rgba(240, 165, 0, 0.2); }

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
}

.feature-icon svg { width: 22px; height: 22px; }

.feature-card h4 {
  font-size: 16px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* Pipeline Demo */
.pipeline-section {
  padding: 100px 32px;
  background: var(--bg);
}

.pipeline-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.demo-window {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(240,165,0,0.05);
}

.demo-bar {
  background: var(--bg-card);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.demo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.demo-title {
  font-size: 12px;
  color: var(--fg-muted);
  margin-left: 8px;
}

.demo-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.demo-book {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.demo-book-cover {
  width: 72px;
  height: 96px;
  background: linear-gradient(135deg, #1e3a6e, #2d4a8a);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  gap: 4px;
  flex-shrink: 0;
}

.book-title-sm {
  font-family: 'Playfair Display', serif;
  font-size: 10px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
}

.book-author-sm {
  font-size: 9px;
  color: rgba(250,248,244,0.6);
}

.book-badge {
  font-size: 8px;
  background: rgba(240,165,0,0.2);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 3px;
  margin-top: 4px;
}

.demo-book-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  flex: 1;
}

.meta-row { display: flex; flex-direction: column; gap: 2px; }
.meta-label { font-size: 10px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.meta-val { font-size: 12px; color: var(--fg); font-weight: 500; }

.output-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 8px;
}

.output-list { display: flex; flex-direction: column; gap: 8px; }

.output-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  color: var(--fg-muted);
}

.output-icon { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.output-icon svg { width: 16px; height: 16px; }

.output-item span:nth-child(2) { flex: 1; }

.output-status {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

.output-status.ready {
  background: rgba(100, 220, 160, 0.12);
  color: #64dc9e;
}

.output-status.scheduled {
  background: rgba(100, 140, 255, 0.12);
  color: #8ba8ff;
}

.pipeline-copy { padding: 20px 0; }

.pipeline-heading {
  font-size: clamp(26px, 3vw, 38px);
  margin-bottom: 20px;
}

.pipeline-body {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.pipeline-stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.pipe-stat { display: flex; flex-direction: column; gap: 4px; }
.pipe-num { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; color: var(--accent); }
.pipe-label { font-size: 11px; color: var(--fg-muted); max-width: 80px; line-height: 1.3; }

/* Pricing */
.pricing-section {
  padding: 100px 32px;
  background: var(--bg-2);
}

.pricing-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  position: relative;
}

.pricing-card-featured {
  border-color: rgba(240, 165, 0, 0.4);
  background: linear-gradient(180deg, rgba(240,165,0,0.06) 0%, var(--bg-card) 60%);
  box-shadow: 0 0 40px rgba(240, 165, 0, 0.08);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 20px;
}

.pricing-tier {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
}

.price-amount {
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  font-weight: 900;
  color: var(--fg);
}

.price-period { font-size: 16px; color: var(--fg-muted); }

.pricing-desc {
  font-size: 14px;
  color: var(--fg-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.pricing-features li {
  font-size: 14px;
  color: var(--fg-muted);
  padding-left: 20px;
  position: relative;
}

.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.pricing-cta { margin-top: auto; }

/* CTAs */
.cta-primary, .cta-secondary {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  text-align: center;
  width: 100%;
}

.cta-primary {
  background: var(--accent);
  color: var(--bg);
}

.cta-primary:hover {
  background: #ffc420;
  box-shadow: 0 8px 24px rgba(240,165,0,0.3);
}

.cta-secondary {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}

.cta-secondary:hover {
  border-color: rgba(250,248,244,0.25);
  background: rgba(250,248,244,0.04);
}

.pricing-note {
  text-align: center;
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 32px;
}

/* Closing */
.closing-section {
  padding: 100px 32px;
  background: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closing-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(240,165,0,0.08) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(60px);
  pointer-events: none;
}

.closing-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.closing-headline {
  font-size: clamp(32px, 4vw, 52px);
  margin-bottom: 24px;
  line-height: 1.1;
}

.closing-body {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.closing-cta { margin-top: 40px; }

.cta-large {
  font-size: 16px;
  padding: 16px 36px;
  display: inline-block;
  width: auto;
}

.closing-cta-note {
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 12px;
}

/* Footer */
.site-footer {
  padding: 60px 32px 32px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-mark {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: var(--bg);
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.footer-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
}

.footer-tagline {
  font-size: 13px;
  color: var(--fg-muted);
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-head {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 13px;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--fg); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--fg-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .pipeline-inner { grid-template-columns: 1fr; gap: 48px; }
  .steps-grid, .features-grid, .pricing-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-links { flex-wrap: wrap; }
  .hero { padding-top: 100px; }
  .hero-stat-row { flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .pricing-card { padding: 24px 20px; }
  .cta-primary, .cta-secondary { padding: 14px 20px; }
}