@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  /* Bookneste Brand Colors */
  --bg: #101814;
  --bg-soft: #16211c;
  --card: #1b2822;
  --card-hover: #223129;

  --text: #f8f5ec;
  --muted: #a9afa8;

  --border: #304039;

  /* Logo Gold */
  --gold: #b9974f;
  --gold-light: #d0b36d;
  --gold-dark: #927536;

  /* Logo Green */
  --green: #16251f;
  --green-light: #243a30;

  /* Cream */
  --cream: #f5f0e5;
}

/* =========================
   RESET
========================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

/* =========================
   NAVBAR
========================= */

.navbar {
  width: min(1180px, calc(100% - 40px));
  height: 82px;
  margin: auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: "Playfair Display", serif;

  font-size: 25px;
  font-weight: 700;

  letter-spacing: 2px;

  color: var(--cream);
}

.logo span {
  color: var(--gold-light);
}

.navbar nav {
  display: flex;
  gap: 34px;
}

.navbar nav a,
.footer-links a {
  color: var(--muted);
  font-size: 14px;

  transition: 0.2s ease;
}

.navbar nav a:hover,
.footer-links a:hover {
  color: var(--gold-light);
}

/* =========================
   BUTTONS
========================= */

.nav-btn,
.buy-btn {
  background: var(--gold);
  color: #121713;

  padding: 11px 19px;

  border-radius: 6px;

  font-size: 13px;
  font-weight: 700;

  transition: 0.2s ease;
}

.nav-btn:hover,
.buy-btn:hover {
  background: var(--gold-light);

  transform: translateY(-2px);

  box-shadow: 0 8px 25px rgba(185, 151, 79, 0.18);
}

/* =========================
   HERO
========================= */

.hero {
  min-height: 680px;

  width: min(1180px, calc(100% - 40px));

  margin: auto;

  display: grid;

  grid-template-columns: 1fr 1fr;

  align-items: center;

  gap: 50px;

  padding: 70px 0 100px;
}

.eyebrow {
  color: var(--gold-light);

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 2px;
}

.hero h1 {
  font-family: "Playfair Display", serif;

  font-size: clamp(55px, 7vw, 88px);

  line-height: 0.98;

  letter-spacing: -4px;

  margin: 18px 0 25px;
}

.hero h1 span {
  color: var(--gold-light);
}

.hero-content > p {
  color: var(--muted);

  max-width: 530px;

  font-size: 17px;
}

/* =========================
   HERO ACTIONS
========================= */

.hero-actions {
  display: flex;

  gap: 12px;

  margin-top: 32px;
}

.btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding: 14px 22px;

  border-radius: 6px;

  font-size: 14px;

  font-weight: 700;

  transition: 0.2s ease;
}

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

.primary {
  background: var(--gold);

  color: #121713;
}

.primary:hover {
  background: var(--gold-light);
}

.secondary {
  border: 1px solid var(--border);

  color: var(--cream);
}

.secondary:hover {
  border-color: var(--gold);

  color: var(--gold-light);
}

/* =========================
   TRUST
========================= */

.trust {
  display: flex;

  gap: 22px;

  margin-top: 22px;

  color: #858e87;

  font-size: 12px;
}

/* =========================
   HERO BOOKS
========================= */

.hero-books {
  min-height: 510px;

  position: relative;

  display: flex;

  align-items: center;
  justify-content: center;
}

.glow {
  position: absolute;

  width: 330px;
  height: 330px;

  border-radius: 50%;

  background: var(--gold);

  filter: blur(110px);

  opacity: 0.09;
}

.book-card {
  position: absolute;

  width: 245px;
  height: 350px;

  border-radius: 5px 12px 12px 5px;

  overflow: hidden;

  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.55);
}

.book-main {
  z-index: 2;

  transform:
    rotate(5deg)
    translateX(20px);
}

.book-back {
  z-index: 1;

  transform:
    rotate(-10deg)
    translateX(-125px)
    translateY(15px);
}

/* =========================
   BOOK COVERS
========================= */

.book-cover {
  width: 100%;
  height: 100%;

  padding: 28px;

  color: var(--cream);

  display: flex;

  flex-direction: column;

  justify-content: space-between;
}

.book-cover small,
.product-cover small {
  font-size: 9px;

  font-weight: 700;

  letter-spacing: 2px;

  color: var(--gold-light);
}

.book-cover h3,
.product-cover h3 {
  font-family: "Playfair Display", serif;

  font-size: 25px;

  line-height: 1.05;
}

.book-cover p,
.product-cover p {
  font-size: 11px;

  color: #c2c5bd;

  opacity: 0.8;
}

/* Main Book */

.cover-dark {
  background:
    linear-gradient(
      145deg,
      #26382f,
      #101713
    );

  border: 1px solid #35483d;
}

/* Gold Book */

.cover-purple {
  background:
    linear-gradient(
      145deg,
      #b9974f,
      #70572b
    );
}

/* Secondary Books */

.cover-blue {
  background:
    linear-gradient(
      145deg,
      #294038,
      #111b16
    );
}

.cover-green {
  background:
    linear-gradient(
      145deg,
      #3b5145,
      #142019
    );
}

/* =========================
   FLOATING NOTE
========================= */

.floating-note {
  position: absolute;

  z-index: 3;

  right: 0;

  bottom: 20px;

  background: var(--card);

  border: 1px solid var(--border);

  padding: 14px 18px;

  border-radius: 7px;

  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.35);

  font-size: 12px;

  font-weight: 600;

  color: var(--cream);
}

/* =========================
   SECTIONS
========================= */

.section {
  width: min(1180px, calc(100% - 40px));

  margin: auto;

  padding: 100px 0;
}

.section-heading {
  display: flex;

  justify-content: space-between;

  align-items: end;

  gap: 30px;

  margin-bottom: 45px;
}

.section-heading h2 {
  font-family: "Playfair Display", serif;

  font-size: 48px;

  line-height: 1.1;

  letter-spacing: -2px;

  margin-top: 10px;

  color: var(--cream);
}

.section-heading > p {
  max-width: 330px;

  color: var(--muted);

  font-size: 14px;
}

/* =========================
   BOOK GRID
========================= */

.books-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 22px;
}

.product {
  background: var(--card);

  border: 1px solid var(--border);

  border-radius: 9px;

  overflow: hidden;

  transition: 0.25s ease;
}

.product:hover {
  transform: translateY(-6px);

  background: var(--card-hover);

  border-color: #4b584f;

  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.35);
}

.product-cover {
  height: 320px;

  padding: 28px;

  display: flex;

  flex-direction: column;

  justify-content: space-between;

  color: var(--cream);
  overflow: hidden;
}

.product-cover h3 {
  font-size: 30px;
}

.product-info {
  padding: 23px;
}

.product-info h3 {
  font-size: 17px;

  margin-bottom: 5px;

  color: var(--cream);
}

.product-info p {
  color: var(--muted);

  font-size: 13px;
}

.product-bottom {
  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-top: 20px;
}

.product-bottom strong {
  font-size: 17px;

  color: var(--gold-light);
}

/* =========================
   WHY US
========================= */

.why {
  max-width: 1180px;
}

.centered {
  display: block;

  text-align: center;
}

.centered > p {
  margin: 14px auto 0;
}

.features {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 20px;
}

.feature {
  background: var(--card);

  border: 1px solid var(--border);

  padding: 32px;

  border-radius: 9px;

  transition: 0.2s ease;
}

.feature:hover {
  border-color: var(--gold-dark);

  transform: translateY(-3px);
}

.icon {
  color: var(--gold-light);

  font-size: 12px;

  font-weight: 700;

  margin-bottom: 35px;
}

.feature h3 {
  font-size: 20px;

  margin-bottom: 8px;

  color: var(--cream);
}

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

  font-size: 14px;
}

/* =========================
   CTA
========================= */

.cta {
  width: min(1180px, calc(100% - 40px));

  margin: 30px auto 100px;

  padding: 65px;

  border-radius: 12px;

  background:
    linear-gradient(
      135deg,
      #24362d,
      #152019
    );

  border: 1px solid #34473c;

  color: var(--cream);

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 30px;

  position: relative;

  overflow: hidden;
}

.cta::after {
  content: "";

  position: absolute;

  width: 300px;
  height: 300px;

  right: -100px;
  top: -150px;

  border-radius: 50%;

  border: 1px solid rgba(185, 151, 79, 0.18);

  box-shadow:
    0 0 0 35px rgba(185, 151, 79, 0.03),
    0 0 0 70px rgba(185, 151, 79, 0.02);
}

.cta h2 {
  font-family: "Playfair Display", serif;

  font-size: 48px;

  line-height: 1.05;

  margin: 12px 0;
}

.cta p {
  color: #aeb5ae;

  font-size: 14px;
}

.light {
  background: var(--gold);

  color: #111713;

  white-space: nowrap;

  position: relative;

  z-index: 2;
}

.light:hover {
  background: var(--gold-light);
}

/* =========================
   FOOTER
========================= */

footer {
  border-top: 1px solid var(--border);

  width: min(1180px, calc(100% - 40px));

  margin: auto;

  padding: 45px 0;

  display: grid;

  grid-template-columns: 1fr auto;

  gap: 20px;
}

footer p {
  color: var(--muted);

  font-size: 12px;

  margin-top: 8px;
}

.footer-links {
  display: flex;

  gap: 25px;

  align-items: center;
}

.copyright {
  grid-column: 1 / -1;

  padding-top: 15px;

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

/* =========================
   MOBILE
========================= */

@media (max-width: 850px) {

  .navbar nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;

    padding-top: 50px;
  }

  .hero-books {
    min-height: 450px;
  }

  .books-grid,
  .features {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 15px;
  }

  .cta {
    flex-direction: column;

    align-items: flex-start;

    padding: 45px 30px;
  }
}

/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 520px) {

  .navbar {
    width: calc(100% - 28px);
  }

  .nav-btn {
    padding: 9px 12px;
  }

  .hero {
    width: calc(100% - 28px);
  }

  .hero h1 {
    font-size: 55px;

    letter-spacing: -3px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .trust {
    flex-direction: column;

    gap: 7px;
  }

  .book-card {
    width: 205px;

    height: 295px;
  }

  .book-back {
    transform:
      rotate(-10deg)
      translateX(-85px);
  }

  .floating-note {
    right: 0;

    bottom: 0;
  }

  .section,
  .cta,
  footer {
    width: calc(100% - 28px);
  }

  .section-heading h2,
  .cta h2 {
    font-size: 38px;
  }

  footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}
}