/* === MonEbook — Warm literary design === */

:root {
  --bg: #faf3e0;
  --bg-warm: #f5ead0;
  --bg-dark: #1a1a2e;
  --fg: #1a1a2e;
  --fg-muted: #5a5a6e;
  --fg-light: #8a8a9e;
  --accent: #e85d2c;
  --accent-soft: #f0845e;
  --cream: #faf3e0;
  --ink: #1a1a2e;
  --surface: #fff8ec;
  --border: #e8dcc8;
  --radius: 12px;
  --radius-lg: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  color: var(--accent);
}

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 2.5rem;
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 243, 224, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-logo-icon {
  font-size: 1.4rem;
}

.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

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

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

/* === HERO === */
.hero {
  padding: 8rem 2rem 5rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 100%);
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 500px;
  line-height: 1.7;
}

/* Book stack visual */
.book-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transform: perspective(600px) rotateY(-5deg) rotateX(2deg);
}

.book {
  display: flex;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(26, 26, 46, 0.12);
  transition: transform 0.3s ease;
}

.book:hover {
  transform: translateX(8px);
}

.book-spine {
  width: 18px;
  flex-shrink: 0;
}

.book-cover {
  padding: 1.5rem 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.book-1 .book-spine { background: var(--accent); }
.book-1 .book-cover { background: var(--surface); }
.book-2 .book-spine { background: #2d6a4f; }
.book-2 .book-cover { background: #e8f0e8; }
.book-3 .book-spine { background: #3a5ba0; }
.book-3 .book-cover { background: #e8ecf4; }

.book-label {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--fg);
}

.book-meta {
  font-size: 0.75rem;
  color: var(--fg-light);
  font-weight: 500;
}

/* === PROMISE === */
.promise {
  padding: 5rem 2rem;
  background: var(--surface);
}

.promise-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.promise-card {
  padding: 2rem 1.5rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.promise-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(26, 26, 46, 0.08);
}

.promise-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.promise-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--fg);
}

.promise-card p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* === PROCESS === */
.process {
  padding: 5rem 2rem;
  background: var(--bg-dark);
  color: var(--cream);
}

.process-inner {
  max-width: 700px;
  margin: 0 auto;
}

.process .section-label {
  color: var(--accent-soft);
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: var(--cream);
}

.step-content p {
  font-size: 0.9rem;
  color: rgba(250, 243, 224, 0.7);
  line-height: 1.6;
}

.step-connector {
  width: 2px;
  height: 2rem;
  background: rgba(232, 93, 44, 0.3);
  margin-left: 23px;
}

/* === FEATURES === */
.features {
  padding: 5rem 2rem;
  background: var(--bg);
}

.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.features-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.feature-block {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.feature-block:nth-child(even) {
  flex-direction: row-reverse;
}

.feature-text h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.feature-text p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

.feature-icon-large {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: var(--radius);
  color: var(--accent);
}

/* Reader mockup */
.feature-mockup {
  flex-shrink: 0;
  width: 340px;
  background: var(--bg-dark);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(26, 26, 46, 0.15);
}

.mockup-bar {
  padding: 0.6rem 0.8rem;
  display: flex;
  gap: 0.4rem;
  background: #16162a;
}

.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(250, 243, 224, 0.15);
}

.mockup-body {
  display: flex;
  min-height: 200px;
}

.mockup-sidebar {
  width: 130px;
  padding: 0.8rem 0.5rem;
  border-right: 1px solid rgba(250, 243, 224, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mockup-chapter {
  font-size: 0.6rem;
  color: rgba(250, 243, 224, 0.4);
  padding: 0.4rem 0.5rem;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
}

.mockup-chapter.active {
  background: rgba(232, 93, 44, 0.2);
  color: var(--accent-soft);
}

.mockup-content {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mockup-title {
  width: 60%;
  height: 12px;
  background: rgba(250, 243, 224, 0.3);
  border-radius: 3px;
  margin-bottom: 0.5rem;
}

.mockup-line {
  height: 6px;
  background: rgba(250, 243, 224, 0.1);
  border-radius: 3px;
}

.mockup-line.w100 { width: 100%; }
.mockup-line.w95 { width: 95%; }
.mockup-line.w90 { width: 90%; }
.mockup-line.w80 { width: 80%; }
.mockup-line.w70 { width: 70%; }

/* === PRICING === */
.pricing {
  padding: 5rem 2rem;
  background: var(--surface);
}

.pricing-inner {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.pricing-card {
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.2rem;
  margin-bottom: 2rem;
}

.pricing-currency {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--accent);
}

.pricing-value {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 800;
  color: var(--fg);
  line-height: 1;
}

.pricing-period {
  font-size: 1rem;
  color: var(--fg-muted);
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 1.5rem;
}

.pricing-features li {
  padding: 0.6rem 0;
  font-size: 0.95rem;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--border);
  padding-left: 1.5rem;
  position: relative;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-note {
  font-size: 0.85rem;
  color: var(--fg-light);
  font-style: italic;
}

/* === CLOSING === */
.closing {
  padding: 6rem 2rem;
  background: var(--bg-dark);
  color: var(--cream);
  text-align: center;
}

.closing-inner {
  max-width: 700px;
  margin: 0 auto;
}

.closing-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 1.5rem;
  color: var(--cream);
}

.closing-title em {
  color: var(--accent-soft);
}

.closing-text {
  font-size: 1.05rem;
  color: rgba(250, 243, 224, 0.75);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.closing-vision {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  font-style: italic;
  color: var(--accent-soft);
}

/* === FOOTER === */
.footer {
  padding: 2.5rem 2rem;
  background: #12121f;
  color: rgba(250, 243, 224, 0.5);
  font-size: 0.8rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(250, 243, 224, 0.7);
  margin-bottom: 0.3rem;
}

.footer-tagline {
  font-size: 0.8rem;
  color: rgba(250, 243, 224, 0.4);
}

.footer-legal {
  text-align: right;
}

.footer-legal p {
  margin-bottom: 0.2rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .book-stack {
    transform: none;
    max-width: 320px;
    margin: 0 auto;
  }

  .promise-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-block,
  .feature-block:nth-child(even) {
    flex-direction: column;
    text-align: center;
  }

  .feature-mockup {
    width: 100%;
    max-width: 340px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-legal {
    text-align: center;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 480px) {
  .promise-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 6rem 1.2rem 3rem;
  }

  .promise, .process, .features, .pricing, .closing {
    padding: 3.5rem 1.2rem;
  }
}