:root {
  --bg:      #faf9f5;
  --surface: #f0ede6;
  --border:  #e2ddd5;
  --accent:  #d97757;
  --accent-dark: #b85e3e;
  --text:    #1a1714;
  --muted:   #6b6560;
}

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

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('../assets/dot-pattern.png');
  background-repeat: repeat;
  background-size: auto;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.mono {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ──────────────── Layout ──────────────── */

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

section {
  padding: 72px 0;
}

section + section {
  border-top: 1px solid var(--border);
}


.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--text);
}

/* ──────────────── Nav ──────────────── */

nav {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  background-color: rgba(250, 249, 245, 0.92);
  backdrop-filter: blur(8px);
  z-index: 100;
}

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

.nav-brand {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 600;
}

.nav-brand span {
  color: var(--accent);
}

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background-color: var(--accent);
  color: #fff;
}

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

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

/* ──────────────── Hero ──────────────── */

#hero {
  padding: 80px 0 72px;
  border-top: none;
}

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

.hero-cover img {
  width: 100%;
  mix-blend-mode: multiply;
  border-radius: 4px;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.18)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12));
}

.hero-prompt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 20px;
  background: var(--surface);
  display: inline-block;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.hero-prompt .cursor {
  color: var(--accent);
  animation: blink 1.1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-note {
  font-size: 0.78rem;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

/* ──────────────── Value Props ──────────────── */

#value {
  padding: 56px 0;
}

.value-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.value-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.value-check {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}

.value-text {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
}

/* ──────────────── Chapters ──────────────── */

#chapters .chapter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.chapter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 18px;
  gap: 12px;
}

.chapter-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  min-width: 24px;
}

.chapter-name {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text);
}

.badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.badge-available {
  background: rgba(217, 119, 87, 0.12);
  color: var(--accent);
  border: 1px solid rgba(217, 119, 87, 0.3);
}

.badge-soon {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

/* ──────────────── Testimonials ──────────────── */

#testimonials .testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial-quote {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.7;
  flex: 1;
}

.testimonial-quote::before {
  content: '\201C';
  font-size: 2rem;
  color: var(--accent);
  line-height: 0;
  vertical-align: -0.5rem;
  margin-right: 2px;
  font-family: Georgia, serif;
}

.testimonial-author {
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
}

.testimonial-role {
  font-size: 0.78rem;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

/* ──────────────── Author ──────────────── */

#author .author-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
}

.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.author-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.author-handle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}

.author-bio {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ──────────────── Final CTA ──────────────── */

#cta {
  text-align: center;
  padding: 72px 0;
}

#cta .cta-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

#cta .cta-sub {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

/* ──────────────── Footer ──────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

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

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

.footer-link {
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-link:hover {
  color: var(--accent);
}

/* ──────────────── Responsive ──────────────── */

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-cover {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .value-list {
    grid-template-columns: 1fr;
  }

  #chapters .chapter-grid {
    grid-template-columns: 1fr;
  }

  #testimonials .testimonial-grid {
    grid-template-columns: 1fr;
  }

  #author .author-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .author-avatar {
    margin: 0 auto;
  }

  .nav-brand {
    font-size: 0.75rem;
  }
}
