:root {
  --bg: #070d18;
  --bg-2: #0b1422;
  --text: #eef3fa;
  --muted: #9fb0c6;
  --line: rgba(255,255,255,0.10);
  --line-strong: rgba(255,255,255,0.18);
  --accent: #d8b673;
  --accent-2: #7fd1ff;
  --card: linear-gradient(160deg, rgba(255,255,255,0.065), rgba(255,255,255,0.02));
  --max: 1180px;
  --radius: 22px;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Sora", "Inter", ui-sans-serif, system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background:
    radial-gradient(900px circle at 12% -6%, rgba(127,209,255,0.16), transparent 45%),
    radial-gradient(820px circle at 92% 2%, rgba(216,182,115,0.14), transparent 42%),
    linear-gradient(180deg, #070d18 0%, #0a1322 48%, #060b16 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.62;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(20px);
  background: rgba(7,12,22,0.72);
  border-bottom: 1px solid var(--line);
}
.nav { height: 74px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; flex-direction: column; line-height: 1.05; }
.brand strong { font-family: var(--font-display); font-size: 1.18rem; font-weight: 800; letter-spacing: 0.24em; }
.brand span { font-size: 0.68rem; color: var(--muted); letter-spacing: 0.2em; text-transform: uppercase; margin-top: 3px; }
.nav-links { display: flex; gap: 28px; align-items: center; color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.nav-links a { transition: color .18s ease; }
.nav-links a:hover { color: var(--text); }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  border: 1px solid rgba(216,182,115,0.55);
  background: linear-gradient(135deg, rgba(216,182,115,0.32), rgba(216,182,115,0.10));
  color: #fdf6e7; font-weight: 600; letter-spacing: 0.01em;
  box-shadow: 0 10px 30px rgba(216,182,115,0.12), 0 1px 0 rgba(255,255,255,0.12) inset;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(216,182,115,0.22), 0 1px 0 rgba(255,255,255,0.18) inset; }
.button.secondary { border-color: var(--line-strong); background: rgba(255,255,255,0.05); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset; }
.button.secondary:hover { background: rgba(255,255,255,0.09); }

.hero { padding: 92px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.eyebrow { display: inline-flex; gap: 12px; align-items: center; color: var(--accent); text-transform: uppercase; letter-spacing: 0.2em; font-weight: 700; font-size: 0.76rem; margin-bottom: 24px; }
.eyebrow::before { content: ""; width: 36px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent)); }

h1 {
  margin: 0; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(4rem, 9.5vw, 8.4rem); line-height: 0.9; letter-spacing: -0.02em; text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #dfe7f3 62%, #c8b488 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.subtitle { margin: 26px 0 0; max-width: 760px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 2.1vw, 1.9rem); line-height: 1.22; letter-spacing: -0.02em; color: #eaf0fa; }
.hero-copy { margin: 22px 0 0; max-width: 660px; color: var(--muted); font-size: 1.07rem; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.trust-strip { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 10px; }
.trust-strip span { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: #cdd9ec; background: rgba(255,255,255,0.035); font-size: 0.85rem; font-weight: 500; }

.cover-card { position: relative; padding: 16px; border: 1px solid var(--line-strong); border-radius: 30px; background: var(--card); box-shadow: 0 50px 120px rgba(0,0,0,0.55), 0 1px 0 rgba(255,255,255,0.08) inset; }
.book-cover-img { width: 100%; height: auto; display: block; border-radius: 18px; border: 1px solid rgba(255,255,255,0.16); box-shadow: 0 30px 80px rgba(0,0,0,0.55); }

section { padding: 78px 0; }
.section-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 18px; }
.section-title::before { content: ""; display: block; width: 40px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), rgba(216,182,115,0.2)); margin-bottom: 20px; }
.section-lead { max-width: 820px; color: var(--muted); font-size: 1.1rem; margin: 0 0 36px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 26px; box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 24px 60px rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.08) inset; }
.card h3 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.2; }
.card p { margin: 0; color: var(--muted); }

.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.topic { display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 14px; padding: 15px 16px; color: #dce7f6; background: rgba(255,255,255,0.035); font-weight: 500; font-size: 0.96rem; line-height: 1.25; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.topic::before { content: ""; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(216,182,115,0.14); }
.topic:hover { transform: translateY(-2px); border-color: rgba(216,182,115,0.4); background: rgba(255,255,255,0.06); }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 46px; align-items: start; }
.toc { display: grid; gap: 14px; }
.toc-item { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); transition: transform .2s ease, border-color .2s ease; }
.toc-item:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.toc-item strong { display: block; margin-bottom: 6px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.toc-item span { color: var(--muted); }

.quote { border-left: 3px solid var(--accent); padding: 6px 0 6px 24px; color: #eaf1fb; font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; line-height: 1.4; letter-spacing: -0.01em; }

.author-box { display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: center; border: 1px solid var(--line); border-radius: 28px; padding: 34px; background: var(--card); box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 30px 80px rgba(0,0,0,0.3); }
.author-photo { width: 256px; height: 256px; max-width: 100%; object-fit: cover; border-radius: 50%; border: 2px solid rgba(216,182,115,0.45); box-shadow: 0 16px 50px rgba(0,0,0,0.4); }
.author-box h2 { margin: 0 0 12px; font-family: var(--font-display); font-weight: 700; font-size: 2rem; letter-spacing: -0.01em; }
.author-box p { margin: 0 0 16px; color: var(--muted); }
.contact-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.contact-list a { border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 16px; color: #eaf1fb; background: rgba(255,255,255,0.05); font-weight: 500; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.contact-list a:hover { border-color: rgba(216,182,115,0.5); background: rgba(255,255,255,0.09); transform: translateY(-2px); }

.cta { text-align: center; border: 1px solid rgba(216,182,115,0.32); background: radial-gradient(600px circle at 50% -20%, rgba(216,182,115,0.18), transparent 60%), var(--card); border-radius: 30px; padding: 60px 28px; box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset; }
.cta h2 { margin: 0 0 14px; font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 3.8vw, 3.6rem); line-height: 1.02; letter-spacing: -0.02em; }
.cta p { margin: 0 auto 30px; max-width: 640px; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); padding: 38px 0; color: var(--muted); font-size: 0.92rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.nav-toggle { display: none; width: 46px; height: 46px; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 13px; background: rgba(255,255,255,0.05); cursor: pointer; }
.nav-toggle-inner, .nav-toggle-inner::before, .nav-toggle-inner::after { content: ""; display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s ease, opacity .2s ease, top .3s ease, background .2s ease; }
.nav-toggle-inner { position: relative; }
.nav-toggle-inner::before { position: absolute; top: -7px; }
.nav-toggle-inner::after  { position: absolute; top: 7px; }
.nav-toggle.open .nav-toggle-inner { background: transparent; }
.nav-toggle.open .nav-toggle-inner::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open .nav-toggle-inner::after  { top: 0; transform: rotate(-45deg); }

.mobile-menu { display: none; }

.fab { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; padding: 13px 19px; border-radius: 999px; background: #0a66c2; color: #fff; font-weight: 600; border: 1px solid rgba(255,255,255,0.2); box-shadow: 0 18px 50px rgba(10,102,194,0.45); transition: transform .2s ease, box-shadow .2s ease; }
.fab:hover { transform: translateY(-2px); box-shadow: 0 26px 64px rgba(10,102,194,0.6); }
.fab svg { width: 22px; height: 22px; fill: #fff; }

@media (max-width: 920px) {
  .hero-grid, .split, .author-box { grid-template-columns: 1fr; }
  .grid-3, .topic-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .container { width: 100%; padding-left: 30px; padding-right: 30px; }
  .author-box { justify-items: start; }
  .mobile-menu { position: absolute; top: 100%; left: 0; right: 0; display: grid; gap: 6px; padding: 14px 30px 22px; background: rgba(7,12,22,0.98); border-bottom: 1px solid var(--line); box-shadow: 0 24px 50px rgba(0,0,0,0.45); opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity .28s ease, transform .28s ease; }
  .mobile-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .mobile-menu a { padding: 13px 12px; border-radius: 12px; color: var(--muted); font-size: 1.05rem; }
  .mobile-menu a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
  .mobile-menu a.button { color: var(--text); justify-content: flex-start; margin-top: 6px; }
  .site-footer { padding-bottom: 104px; }
  .footer-grid { gap: 14px; }
}

@media (max-width: 560px) {
  .container { width: 100%; padding-left: 30px; padding-right: 30px; }
  .grid-3, .topic-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 46px; }
  h1 { font-size: clamp(2.8rem, 13vw, 4rem); }
  .fab span { display: none; }
  .fab { padding: 14px; }
}
