/* KairoTyper — Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Mono:wght@300;400;500&display=swap');

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

:root {
  --bg: #0d0d0f;
  --bg2: #111114;
  --bg3: #16161a;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --text: #e8e6e0;
  --text-muted: #7a7870;
  --text-dim: #4a4845;
  --accent: #c8a96e;
  --accent2: #9b7f4e;
  --accent-glow: rgba(200, 169, 110, 0.15);
  --red: #d96b6b;
  --green: #7abf8e;
  --mono: 'DM Mono', monospace;
  --serif: 'Crimson Pro', Georgia, serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
  background: rgba(13,13,15,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.nav-logo span { color: var(--text-muted); font-weight: 300; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

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

.btn-nav {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--accent2);
  color: var(--accent);
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  background: transparent;
}

.btn-nav:hover { background: var(--accent-glow); }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(200,169,110,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.4rem;
}

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

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  font-weight: 300;
  max-width: 520px;
  line-height: 1.7;
  margin: 1.5rem auto 2.5rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent);
  color: #0d0d0f;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  transition: opacity 0.2s, transform 0.2s;
  cursor: pointer;
}

.hero-cta:hover { opacity: 0.9; transform: translateY(-1px); }

.hero-cta svg { width: 16px; height: 16px; }

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stat-num {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--accent);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

/* ─── BOOK CARD ─── */
.book-section {
  padding: 5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.section-title {
  font-size: 0.75rem;
  font-family: var(--mono);
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.book-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 200px 1fr;
  overflow: hidden;
  transition: border-color 0.2s;
}

.book-card:hover { border-color: var(--border2); }

.book-cover {
  background: linear-gradient(160deg, #1a1a20 0%, #0d0d0f 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  border-right: 1px solid var(--border);
  gap: 1rem;
}

.book-emoji {
  font-size: 3.5rem;
  line-height: 1;
  filter: drop-shadow(0 0 20px rgba(200,169,110,0.3));
}

.book-genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: center;
}

.genre-tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border2);
  border-radius: 2px;
  color: var(--text-muted);
}

.book-info {
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.book-title {
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.book-author {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.book-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-style: italic;
}

.book-meta {
  display: flex;
  gap: 1.5rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.meta-val {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

.meta-key {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.book-action {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-start {
  background: var(--accent);
  color: #0d0d0f;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.7rem 1.6rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-start:hover { opacity: 0.85; }

.progress-resume {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ─── HOW IT WORKS ─── */
.how-section {
  padding: 5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.how-item {
  background: var(--bg2);
  padding: 2rem;
}

.how-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.how-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.how-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
}

.footer-text {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 700px) {
  .book-card { grid-template-columns: 1fr; }
  .book-cover { flex-direction: row; padding: 1.5rem; border-right: none; border-bottom: 1px solid var(--border); }
  .how-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 2rem; }
  .nav-links { display: none; }
}
