:root {
  --bg-dark: #1A1612;
  --surface-dark: #252017;
  --card-dark: #2D2820;
  --primary: #8B7355;
  --accent: #D4A574;
  --text: #E8E0D5;
  --text-muted: #9A9285;
  --border: rgba(139, 115, 85, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Literata', Georgia, serif;
  background-color: var(--bg-dark);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.3;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(26, 22, 18, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 16px 0;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
}

.nav-brand img {
  height: 40px;
  width: auto;
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--surface-dark) 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 24px;
  color: var(--text);
}

.hero-text h1 span {
  color: var(--accent);
}

.hero-text .tagline {
  font-size: 1.35rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-screenshots {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
}

.screenshot {
  position: absolute;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.screenshot-back {
  height: 420px;
  transform: translateX(-25%) rotate(-6deg);
  z-index: 1;
}

.screenshot-front {
  height: 480px;
  transform: translateX(15%) rotate(3deg);
  z-index: 2;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: 'Literata', Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--text);
}

.btn-primary:hover {
  background: var(--accent);
  color: var(--bg-dark);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--bg-dark);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Features Section */
.features {
  padding: 120px 0;
  background: var(--surface-dark);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.book-card {
  text-align: center;
  transition: transform 0.2s;
}

.book-card:hover {
  transform: translateY(-8px);
}

.book-cover {
  margin-bottom: 24px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-cover img {
  width: auto;
  height: 100%;
  max-width: 200px;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.3);
}

.book-info h3 {
  font-size: 1.5rem;
  margin-bottom: 4px;
  color: var(--text);
}

.book-author {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 12px;
  font-style: italic;
}

.book-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.library-note {
  text-align: center;
  margin-top: 60px;
  padding: 32px;
  background: var(--card-dark);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.library-note p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0;
}

.library-note strong {
  color: var(--accent);
}

/* Companion Section */
.companion {
  padding: 120px 0;
  background: var(--bg-dark);
}

.companion-intro {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 60px;
  line-height: 1.7;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 48px;
}

.benefit h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--accent);
}

.benefit p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Story Section */
.story {
  padding: 100px 0;
  background: var(--surface-dark);
}

.story-content {
  max-width: 700px;
  margin: 0 auto;
}

.story h2 {
  font-size: 2rem;
  margin-bottom: 32px;
  color: var(--accent);
}

.story p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.story em {
  color: var(--text);
  font-style: italic;
}

.story-author {
  margin-top: 32px;
  color: var(--text);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-style: italic;
}

/* CTA Section */
.cta {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--surface-dark) 0%, var(--bg-dark) 100%);
  text-align: center;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Store Badges */
.store-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.store-badge {
  opacity: 0.5;
  filter: grayscale(100%);
  cursor: not-allowed;
  transition: opacity 0.2s;
}

.store-badge img {
  height: 44px;
  width: auto;
}

/* Footer */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-dark);
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Downloads Page */
.page-header {
  padding: 140px 0 80px;
  background: var(--surface-dark);
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 16px;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.downloads-section {
  padding: 80px 0;
  background: var(--bg-dark);
}

.download-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.download-card {
  background: var(--card-dark);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  transition: border-color 0.2s;
}

.download-card:hover {
  border-color: var(--primary);
}

.download-card .platform-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.download-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.download-card .version {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.download-card .btn {
  width: 100%;
  justify-content: center;
}

.stores-section {
  text-align: center;
  padding: 60px 0;
  border-top: 1px solid var(--border);
}

.stores-section h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.stores-section p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Privacy Page */
.privacy-content {
  padding: 60px 0 120px;
  background: var(--bg-dark);
}

.privacy-content .container {
  max-width: 800px;
}

.privacy-content h2 {
  font-size: 1.8rem;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--accent);
}

.privacy-content h2:first-child {
  margin-top: 0;
}

.privacy-content p {
  margin-bottom: 16px;
  color: var(--text-muted);
}

.privacy-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.privacy-content li {
  color: var(--text-muted);
  margin-bottom: 8px;
}

.privacy-content strong {
  color: var(--text);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .store-badges {
    justify-content: center;
  }

  .hero-screenshots {
    min-height: 400px;
    margin-top: 40px;
  }

  .screenshot-back {
    height: 320px;
  }

  .screenshot-front {
    height: 360px;
  }

  .books-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .download-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

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

  footer .container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}
