:root {
  --bg: #0d0d10;
  --bg-alt: #15151a;
  --fg: #f5f5f7;
  --muted: #a1a1aa;
  --accent: #e63946;
  --accent-2: #f4a261;
  --card: #1c1c22;
  --border: #2a2a32;
  --maxw: 1180px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,13,16,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
}
.logo {
  font-weight: 800; letter-spacing: .12em;
  font-size: 18px;
}
.logo span { color: var(--accent); }

.nav-menu {
  display: flex; gap: 28px; list-style: none; margin: 0; padding: 0;
}
.nav-menu a {
  font-size: 14px; font-weight: 500; color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em;
  transition: color .2s;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--fg); }

.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; }

/* Hero */
.hero {
  padding: 120px 0 100px;
  background: radial-gradient(circle at 70% 30%, rgba(230,57,70,.15), transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(244,162,97,.1), transparent 60%);
}
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05; margin: 0 0 24px;
  font-weight: 800; letter-spacing: -.02em;
}
.lead {
  font-size: 20px; color: var(--muted); max-width: 640px;
}
.cta-row { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .15s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn-outline:hover { background: var(--fg); color: var(--bg); }

/* Sections */
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800; margin: 0 0 12px;
  letter-spacing: -.01em;
}
.section-title span { color: var(--accent); }
.section-sub { color: var(--muted); margin: 0 0 40px; max-width: 640px; }

.features { padding: 100px 0; }
.grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 40px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, border-color .25s;
  display: block;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card-img {
  aspect-ratio: 4/3;
  background-size: cover; background-position: center;
  background-color: #222;
}
.card h3 { margin: 20px 24px 8px; font-size: 22px; }
.card p { margin: 0 24px 24px; color: var(--muted); font-size: 15px; }

/* Banner */
.banner {
  background: linear-gradient(135deg, var(--accent), #b32330);
  padding: 80px 0;
  text-align: center;
}
.banner h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 16px; }
.banner p { font-size: 18px; max-width: 640px; margin: 0 auto 32px; opacity: .95; }
.banner .btn { background: #fff; color: var(--accent); border-color: #fff; }

/* Page hero */
.page-hero {
  padding: 80px 0 40px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  margin: 0 0 16px; font-weight: 800;
  letter-spacing: -.02em;
}
.page-hero h1 span { color: var(--accent); }
.kicker { margin: 0 0 16px; color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .1em; }
.kicker a:hover { color: var(--accent); }

/* Intro */
.intro { padding: 60px 0; }
.intro p { font-size: 17px; color: #d4d4d8; margin: 0 0 20px; }
.intro h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 24px; }
.accent { color: var(--accent); }

/* Book page */
.book-section { padding: 80px 0; }
.book-grid {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px;
  align-items: start;
}
.book-cover img {
  width: 100%; border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(0,0,0,.5);
}
.book-info .tag {
  display: inline-block; padding: 6px 14px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700;
  letter-spacing: .12em; border-radius: 999px;
  margin-bottom: 20px;
}
.book-info h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin: 0 0 24px; line-height: 1.05;
  font-weight: 800;
}
.book-info h1 span { color: var(--muted); font-weight: 500; font-size: .6em; display: block; margin-top: 8px; }
.book-info p { font-size: 17px; color: #d4d4d8; margin: 0 0 20px; }

/* Testimonials */
.testimonials { padding: 80px 0; background: var(--bg-alt); }
.testimonials blockquote {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  margin: 0;
}
.testimonials blockquote p { margin: 0 0 16px; font-size: 16px; font-style: italic; }
.testimonials blockquote footer { color: var(--accent); font-weight: 600; font-size: 14px; }

/* Contact */
.contact { padding: 80px 0; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: start;
}
.contact-info h2 { font-size: 36px; margin: 0 0 16px; }
.email-big {
  margin-top: 30px; font-size: clamp(20px, 3vw, 28px);
  font-weight: 700; word-break: break-all;
}
.email-big a:hover { color: var(--accent); }

.contact-form {
  display: flex; flex-direction: column; gap: 18px;
  background: var(--card); border: 1px solid var(--border);
  padding: 32px; border-radius: var(--radius);
}
.contact-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; color: var(--muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
}
.contact-form input,
.contact-form textarea {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 14px;
  color: var(--fg); font-size: 15px;
  font-family: inherit; resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form button { align-self: flex-start; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  margin-top: 80px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.site-footer h4 {
  font-size: 13px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); margin: 0 0 16px;
}
.site-footer p { color: var(--muted); margin: 8px 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a:hover { color: var(--accent); }
.copyright {
  text-align: center; color: var(--muted); font-size: 13px;
  padding-top: 30px; border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: 1fr; gap: 40px; }
  .book-cover { max-width: 340px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }

  .nav-toggle-label {
    display: block; width: 32px; height: 24px; position: relative;
  }
  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    display: block; position: absolute; height: 3px; width: 100%;
    background: var(--fg); border-radius: 2px; transition: .3s;
  }
  .nav-toggle-label span { top: 50%; transform: translateY(-50%); }
  .nav-toggle-label span::before { content: ''; top: -9px; }
  .nav-toggle-label span::after { content: ''; top: 9px; }

  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .nav-menu li { width: 100%; }
  .nav-menu a {
    display: block; padding: 16px 24px;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle:checked ~ .nav-menu { max-height: 500px; }
  .nav-toggle:checked ~ .nav-toggle-label span { background: transparent; }
  .nav-toggle:checked ~ .nav-toggle-label span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-label span::after { top: 0; transform: rotate(-45deg); }

  .hero { padding: 80px 0 60px; }
  .features, .testimonials, .contact, .book-section { padding: 60px 0; }
}
