.home { overflow: hidden; }
.home-container { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }

.landing-header {
  position: sticky;
  z-index: 30;
  top: 0;
  background: var(--brand-blue);
  color: white;
  box-shadow: 0 5px 18px rgba(2, 8, 91, 0.2);
}

.landing-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(1180px, calc(100% - 2rem));
  min-height: 72px;
  margin-inline: auto;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.landing-brand { display: inline-flex; align-items: center; }
.landing-brand img { display: block; width: 116px; height: auto; }
.landing-nav { display: flex; justify-content: center; gap: clamp(1rem, 2.5vw, 2rem); }
.landing-nav a, .landing-sign-in { color: white; font-size: 0.88rem; font-weight: 700; text-decoration: none; }
.landing-nav a:hover, .landing-sign-in:hover { text-decoration: underline; text-underline-offset: 0.25rem; }
.landing-header__actions, .landing-header__auth { display: flex; align-items: center; gap: 0.7rem; }

.home-hero { background: var(--canvas); }
.home-hero__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr); align-items: center; min-height: 680px; padding-block: 5rem; gap: clamp(3rem, 8vw, 7rem); }
.home-hero__content { max-width: 650px; }
.home-hero h1 { max-width: 640px; font-size: clamp(3.2rem, 6.5vw, 5.8rem); }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.home-button { min-height: 46px; padding-inline: 1.25rem; }
.home-hero__visual { position: relative; display: grid; min-height: 500px; place-items: center; }
.home-hero__visual::before { position: absolute; width: min(90%, 430px); aspect-ratio: 1; border: 1px solid rgba(198, 156, 108, 0.65); border-radius: 50%; content: ""; }
.home-cover-stack { position: relative; width: min(100%, 460px); height: 500px; }
.home-cover-stack__cover { position: absolute; top: 50%; left: 50%; display: block; width: min(54%, 230px); aspect-ratio: 9 / 13; border: 6px solid white; border-radius: 7px; object-fit: cover; box-shadow: 0 22px 48px rgba(4, 14, 133, 0.2); }
.home-cover-stack__cover--1 { z-index: 3; transform: translate(-50%, -50%); }
.home-cover-stack__cover--2 { z-index: 2; transform: translate(-90%, -48%) rotate(-8deg); }
.home-cover-stack__cover--3 { z-index: 1; transform: translate(-10%, -48%) rotate(8deg); }
.home-hero__brand-mark { z-index: 1; display: grid; width: min(88%, 420px); min-height: 260px; padding: 3rem; border-radius: var(--radius); background: var(--brand-blue); box-shadow: var(--shadow); place-items: center; }
.home-hero__brand-mark img { width: min(100%, 300px); }

.home-section { padding-block: clamp(5rem, 8vw, 7.5rem); scroll-margin-top: 80px; }
.home-section__heading { max-width: 680px; margin-bottom: 3rem; }
.home-section__heading p:last-child { color: var(--muted); font-size: 1.02rem; }
.home-section__heading--centered { margin-inline: auto; text-align: center; }

.home-books { border-block: 1px solid var(--border); background: var(--surface); }
.home-books__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.home-books__action { display: flex; justify-content: center; margin-top: 2rem; }
.home-book { overflow: hidden; margin: 0; border: 1px solid var(--border); border-radius: 10px; background: white; box-shadow: 0 8px 24px rgba(4, 14, 133, 0.06); }
.home-book > img { display: block; width: 100%; aspect-ratio: 9 / 13; object-fit: cover; }

.home-features__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--border); }
.home-feature { padding: 2.5rem 2rem; border-right: 1px solid var(--border); }
.home-feature:last-child { border-right: 0; }
.home-feature__number { display: block; margin-bottom: 2rem; color: var(--brand-gold); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.15em; }
.home-feature h3 { color: var(--brand-blue); font-size: 1.05rem; }
.home-feature p { margin-bottom: 0; color: var(--muted); font-size: 0.92rem; }

.home-testimonials { background: #fffdf9; }
.home-testimonials__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.home-testimonial { display: flex; min-height: 100%; margin: 0; padding: 1.6rem; border: 1px solid rgba(198, 156, 108, 0.45); border-radius: 10px; background: white; flex-direction: column; }
.home-testimonial blockquote { margin: 0; color: var(--ink); font-family: "Sanomat Web", Georgia, serif; font-size: 1.16rem; font-style: italic; line-height: 1.5; }
.home-testimonial figcaption { margin-top: auto; padding-top: 1.5rem; color: var(--brand-blue); font-size: 0.8rem; font-weight: 700; }

.home-final-cta { padding-block: 5rem; background: var(--brand-blue); color: white; }
.home-final-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 3rem; }
.home-final-cta h2 { max-width: 680px; color: white; }
.home-final-cta .eyebrow { color: var(--brand-gold) !important; }
.home-final-cta__actions { display: flex; align-items: center; flex-shrink: 0; gap: 1rem; }
.home-button--light { border-color: white; background: white; color: var(--brand-blue); }
.home-button--light:hover { border-color: var(--brand-gold); background: var(--brand-gold); color: white; }

.landing-footer { padding-block: 2.2rem; background: var(--brand-blue-dark); color: white; }
.landing-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.landing-footer img { width: 110px; }
.landing-footer p { margin: 0; color: rgba(255, 255, 255, 0.7); font-size: 0.78rem; }
.landing-footer .locale-switcher { gap: 0.25rem; }
.landing-footer .locale-button { min-width: 34px; min-height: 34px; border-color: rgba(255, 255, 255, 0.4); background: transparent; color: white; }
.landing-footer .locale-button.is-active { border-color: white; background: white; color: var(--brand-blue); }

@media (max-width: 980px) {
  .landing-header__inner { grid-template-columns: auto 1fr; }
  .landing-nav { display: none; }
  .landing-header__actions { justify-self: end; }
  .home-hero__inner { grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr); gap: 2rem; }
  .home-books__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-feature:nth-child(2) { border-right: 0; }
  .home-feature:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .home-feature:last-child { grid-column: 1 / -1; border-right: 0; }
  .home-testimonials__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .home-container { width: min(100% - 1.25rem, 1180px); }
  .landing-header__inner { display: flex; width: calc(100% - 1rem); padding-block: 0.65rem; flex-wrap: wrap; gap: 0.65rem; }
  .landing-brand { margin-right: auto; }
  .landing-brand img { width: 96px; }
  .landing-header__actions { min-width: 0; }
  .landing-header__auth { min-width: 0; gap: 0.55rem; }
  .home-hero__inner { grid-template-columns: minmax(0, 1fr); min-height: auto; padding-block: 4rem 3rem; }
  .home-hero__content, .home-hero__visual { width: 100%; min-width: 0; }
  .home-hero h1 { font-size: clamp(2.75rem, 13vw, 3.9rem); }
  .home-hero__visual { min-height: 390px; }
  .home-cover-stack { height: 390px; }
  .home-cover-stack__cover { width: min(49%, 180px); }
  .home-section { padding-block: 4rem; }
  .home-section__heading { margin-bottom: 2rem; }
  .home-books__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .home-features__grid, .home-testimonials__grid { grid-template-columns: 1fr; }
  .home-feature { border-right: 0; border-bottom: 1px solid var(--border); }
  .home-feature:last-child { grid-column: auto; border-bottom: 0; }
  .home-final-cta__inner { align-items: flex-start; flex-direction: column; }
  .landing-footer__inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 380px) {
  .landing-footer .locale-button { min-width: 31px; padding-inline: 0.35rem; }
  .landing-header__auth { justify-content: space-between; width: 100%; font-size: 0.82rem; }
  .home-hero__actions, .home-final-cta__actions { align-items: stretch; flex-direction: column; }
  .home-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .landing-header *, .home * { scroll-behavior: auto; transition: none !important; }
}
