:root {
  --bg: #0f172a;
  --bg-soft: #111c34;
  --card: rgba(255, 255, 255, 0.08);
  --card-strong: rgba(255, 255, 255, 0.14);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --primary: #f59e0b;
  --secondary: #38bdf8;
  --border: rgba(255, 255, 255, 0.15);
  --shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

body.light {
  --bg: #f8fafc;
  --bg-soft: #ffffff;
  --card: rgba(15, 23, 42, 0.05);
  --card-strong: rgba(15, 23, 42, 0.08);
  --text: #0f172a;
  --muted: #475569;
  --primary: #d97706;
  --secondary: #0284c7;
  --border: rgba(15, 23, 42, 0.1);
  --shadow: 0 15px 40px rgba(15, 23, 42, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.2), transparent 25%),
    radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.18), transparent 25%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 18px;
}

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, 92%);
  margin: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 999;
}

.skip-link:focus {
  left: 10px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(15, 23, 42, 0.45);
  border-bottom: 1px solid var(--border);
}

body.light .site-header {
  background: rgba(255, 255, 255, 0.75);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.logo-icon {
  font-size: 1.8rem;
}

.nav {
  display: flex;
  gap: 22px;
}

.nav a {
  color: var(--muted);
  font-weight: 500;
  transition: 0.3s;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  gap: 10px;
}

.theme-toggle,
.menu-btn {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
}

.menu-btn {
  display: none;
}

.hero {
  padding: 80px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.hero h1,
.section-title h1,
.section-title h2,
.about-grid h1,
.contact-grid h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero p {
  color: var(--muted);
  margin-bottom: 22px;
  max-width: 620px;
}

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

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 14px;
  font-weight: 600;
  transition: 0.3s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #fb7185);
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.full {
  width: 100%;
  text-align: center;
}

.hero-image-card,
.card,
.book-card,
.category-card,
.about-box,
.contact-form,
.cta-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.hero-image-card {
  padding: 20px;
}

.section {
  padding: 70px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 36px;
}

.feature-grid,
.book-grid,
.category-grid {
  display: grid;
  gap: 24px;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.book-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.category-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card,
.category-card {
  padding: 28px;
}

.book-card {
  padding: 18px;
  text-align: center;
}

.book-card img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  margin-bottom: 15px;
}

.book-card h3,
.card h3,
.category-card h3,
.about-box h3 {
  margin-bottom: 10px;
}

.book-card p,
.card p,
.category-card p,
.about-grid p,
.contact-grid p {
  color: var(--muted);
}

.price {
  display: inline-block;
  margin: 14px 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.spotlight-grid,
.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  align-items: center;
}

.mini-book-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.mini-book {
  background: var(--card-strong);
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--border);
}

.about-box ul {
  padding-left: 20px;
}

.cta-box {
  text-align: center;
  padding: 50px 24px;
}

.contact-form {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  outline: none;
}

body.light .contact-form input,
body.light .contact-form textarea {
  background: rgba(15, 23, 42, 0.03);
}

.site-footer {
  margin-top: 40px;
  padding: 30px 0 10px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  width: min(1120px, 92%);
  margin: auto;
}

.footer-grid a {
  display: block;
  color: var(--muted);
  margin-top: 8px;
}

.copyright {
  text-align: center;
  color: var(--muted);
  padding: 18px 0 8px;
}

@media (max-width: 900px) {
  .hero-grid,
  .feature-grid,
  .category-grid,
  .spotlight-grid,
  .about-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    position: absolute;
    top: 80px;
    right: 4%;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    width: 220px;
    display: none;
    flex-direction: column;
    box-shadow: var(--shadow);
  }

  .nav.show {
    display: flex;
  }

  .menu-btn {
    display: inline-block;
  }
}


.left-title {
  text-align: left;
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 60ch;
}

.about-hero {
  padding-top: 90px;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
}

.about-copy h1 {
  max-width: 10ch;
  margin-bottom: 18px;
}

.about-feature-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.about-feature-card h3 {
  margin-bottom: 20px;
  font-size: 1.6rem;
}

.about-feature-list {
  display: grid;
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #fb7185);
  margin-top: 10px;
  flex-shrink: 0;
}

.feature-item h4 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.feature-item p {
  color: var(--muted);
}

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

.value-card {
  min-height: 220px;
}

.about-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(56,189,248,0.08));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.contact-intro h1 {
  margin-bottom: 16px;
}

.contact-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.contact-detail-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.contact-detail-card h3 {
  margin-bottom: 8px;
}

.contact-detail-card p {
  color: var(--muted);
}

.contact-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.contact-panel-top {
  margin-bottom: 18px;
}

.contact-panel-top h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.form-status {
  margin-top: 14px;
  min-height: 28px;
  font-weight: 500;
}

.form-status.success {
  color: #4ade80;
}

.form-status.error {
  color: #fb7185;
}

.form-status.info {
  color: #7dd3fc;
}

.contact-form button:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .about-hero-grid,
  .value-grid,
  .contact-hero-grid,
  .contact-details-grid,
  .about-banner {
    grid-template-columns: 1fr;
  }

  .about-banner {
    align-items: flex-start;
  }

  .about-copy h1 {
    max-width: 100%;
  }
}

.books-hero,
.category-hero {
  display: grid;
  gap: 28px;
}

.books-hero h1,
.category-hero h1 {
  max-width: 12ch;
}

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

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-card h3 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.stat-card p {
  color: var(--muted);
}

.premium-book-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.premium-book-card {
  overflow: hidden;
  padding: 0;
  text-align: left;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

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

.book-cover-wrap {
  position: relative;
  padding: 18px 18px 0;
}

.book-cover-wrap img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 20px;
}

.book-badge {
  position: absolute;
  top: 28px;
  left: 28px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  z-index: 2;
}

.book-card-content {
  padding: 18px 18px 22px;
}

.book-meta-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.book-category-tag {
  color: var(--secondary);
  font-size: 0.88rem;
  font-weight: 600;
}

.book-rating {
  color: #fbbf24;
  font-size: 0.92rem;
  font-weight: 600;
}

.book-author {
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 500;
}

.book-desc {
  color: var(--muted);
  min-height: 52px;
  margin-bottom: 18px;
}

.book-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.book-bottom-row .btn {
  padding: 11px 18px;
}

.premium-category-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.premium-category-card {
  text-align: left;
  padding: 30px;
  border-radius: 24px;
  min-height: 260px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.premium-category-card:hover {
  transform: translateY(-8px);
  border-color: rgba(245, 158, 11, 0.45);
}

.category-icon {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  margin-bottom: 18px;
  font-size: 1.5rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
}

.category-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--primary);
  font-weight: 600;
}

.category-link:hover {
  color: #fb7185;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 3000;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .books-hero-stats,
  .premium-category-grid {
    grid-template-columns: 1fr;
  }

  .book-bottom-row {
    flex-direction: column;
    align-items: stretch;
  }

  .books-hero h1,
  .category-hero h1 {
    max-width: 100%;
  }

  .toast {
    right: 16px;
    left: 16px;
    bottom: 18px;
  }
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-svg {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.home-hero {
  padding-top: 90px;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: center;
}

.home-hero-copy h1 {
  max-width: 10ch;
  margin-bottom: 18px;
}

.hero-trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.hero-trust-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.hero-trust-item strong {
  display: block;
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.hero-trust-item span {
  color: var(--muted);
  font-size: 0.95rem;
}

.home-hero-visual {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-panel-main {
  width: min(100%, 360px);
  padding: 26px;
  text-align: center;
  position: relative;
}

.hero-panel-main img {
  width: 100%;
  max-width: 260px;
  margin: 14px auto 18px;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.24);
}

.hero-panel-badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  color: #ffd27a;
  border: 1px solid rgba(245, 158, 11, 0.28);
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-book-meta h3 {
  margin-bottom: 6px;
  font-size: 1.35rem;
}

.hero-book-meta p {
  color: var(--muted);
}

.hero-floating-card {
  position: absolute;
  width: 210px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.28);
  backdrop-filter: blur(10px);
}

.floating-label {
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.hero-floating-card h4 {
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.hero-floating-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.top-card {
  top: 48px;
  left: -10px;
}

.bottom-card {
  right: -10px;
  bottom: 48px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.trust-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.trust-box h3 {
  margin-bottom: 10px;
}

.trust-box p {
  color: var(--muted);
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
}

.editorial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.large-editorial {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.large-editorial h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-bottom: 14px;
  max-width: 14ch;
}

.large-editorial p {
  color: var(--muted);
  margin-bottom: 18px;
}

.compact-editorial {
  min-height: 149px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.compact-editorial h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.compact-editorial p {
  color: var(--muted);
}

.home-cta-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 34px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(56,189,248,0.08));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.home-cta-box h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  max-width: 14ch;
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .home-hero-grid,
  .hero-trust-row,
  .trust-strip,
  .editorial-grid,
  .home-cta-box {
    grid-template-columns: 1fr;
  }

  .home-hero-visual {
    min-height: auto;
    padding-top: 20px;
  }

  .hero-floating-card {
    position: static;
    width: 100%;
    margin-top: 16px;
  }

  .home-cta-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-hero-copy h1,
  .large-editorial h2,
  .home-cta-box h2 {
    max-width: 100%;
  }
}