/* static/landing.css - landing-only UI/FX (no search / play-all controls here) */

.landing-body {
  min-height: 100vh;
}

.landing-header {
  position: relative;
}

.landing-header .header-top {
  justify-content: center;
  padding-inline: 24px;
}

.landing-header .header-left {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(72px, 1fr) auto minmax(72px, 1fr);
  align-items: center;
  gap: 16px;
}

.landing-header .logo {
  justify-self: start;
}

.landing-header .srm-text {
  grid-column: 2;
  align-items: center;
  text-align: center;
}

.landing-header .srm-title {
  font-size: clamp(1.3rem, 2.2vw, 3.5rem);
  line-height: 1;
}

.landing-main {
  padding: 28px 18px 44px;
}

.hero {
  max-width: 1160px;
  margin: 0 auto;
}

.hero-title {
  text-align: center;
  padding: 8px 12px 0;
  max-width: 920px;
  margin: 0 auto;
}

.hero-title h1 {
  margin: 0;
  font-size: 42px;
  letter-spacing: .5px;
  line-height: 1.05;
  font-weight: 900;
  color: var(--ink);
}

.hero-tag {
  margin: 7px 0 0;
  color: rgba(90,48,19, .65);
  font-weight: 650;
}

.hero-top {
  text-align: center;
  padding: 18px 12px 26px;
  margin-top: 12px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.hero-top h2 {
  margin: 0;
  font-size: 34px;
  letter-spacing: .3px;
  font-weight: 900;
  color: var(--ink);
}

.hero-sub {
  margin: 10px auto 0;
  max-width: 860px;
  color: rgba(90,48,19, .65);
  font-weight: 650;
  line-height: 1.6;
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.chapter-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 20px 20px 18px;
  text-decoration: none;
  color: rgba(90,48,19, .95);
  border: 1px solid rgba(162,94,34, .12);
  box-shadow: 0 22px 60px rgba(100,49,18, .12);
  background:
    radial-gradient(900px 380px at 20% 15%, rgba(255,255,255, .42), transparent 55%),
    radial-gradient(700px 360px at 85% 10%, rgba(255,184,101, .26), transparent 56%),
    linear-gradient(180deg, rgba(255, 250, 241, .88), rgba(255, 233, 193, .82) 56%, rgba(244, 208, 164, .88));
  transform: translateY(0);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, filter .22s ease;
}

.chapter-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 80px rgba(100,49,18, .18);
  border-color: rgba(239,138,58, .32);
  filter: saturate(1.05);
}
.chapter-card:active{
  transform: translateY(-2px) scale(.99);
}

.card-sheen {
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(35deg, transparent 40%, rgba(255, 255, 255, .45) 55%, transparent 70%);
  transform: translateX(-30%) rotate(12deg);
  opacity: .25;
  pointer-events: none;
  transition: opacity .22s ease, transform .55s cubic-bezier(.2, .9, .2, 1);
}

.chapter-card:hover .card-sheen {
  opacity: .40;
  transform: translateX(12%) rotate(12deg);
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 10px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .2px;
  background: rgba(255, 255, 255, .70);
  border: 1px solid rgba(0, 0, 0, .08);
}

.count {
  font-weight: 900;
  color: rgba(90,48,19, .70);
  font-size: 12px;
}

.chapter-card h3 {
  margin: 14px 0 6px;
  font-size: 28px;
  letter-spacing: .2px;
}

.card-sub {
  margin: 0;
  color: rgba(90,48,19, .72);
  line-height: 1.65;
  font-weight: 650;
}

.card-cta {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: .3px;
  color: rgba(90,48,19, .95);
  background: linear-gradient(135deg, rgba(200,91,24, .16), rgba(239,138,58, .16));
  border: 1px solid rgba(162,94,34, .12);
}

.card-cta span {
  transition: transform .2s ease;
}
.chapter-card:hover .card-cta span {
  transform: translateX(3px);
}

@media (max-width: 980px) {
  .landing-header .header-left {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .landing-header .logo,
  .landing-header .srm-text {
    grid-column: auto;
    justify-self: center;
  }

  .chapter-grid { grid-template-columns: 1fr; }
  .chapter-card { padding: 18px 18px 16px; }
  .hero-title h1 { font-size: 34px; }
  .hero-top h2 { font-size: 30px; }
}
