:root {
  --ink: #163038;
  --ink-soft: #2a4a52;
  --paper: #f3efe4;
  --mist: #d7ebe6;
  --teal: #2f8f8a;
  --teal-deep: #1a5c5a;
  --gold: #d4a43a;
  --gold-bright: #f0c45a;
  --dusk: #6b8cae;
  --shadow: rgba(18, 40, 46, 0.28);
  --radius: 18px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-body: "Noto Serif SC", "Songti SC", serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(240, 196, 90, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 20%, rgba(47, 143, 138, 0.16), transparent 50%),
    linear-gradient(180deg, #e8f2ef 0%, var(--paper) 38%, #e4ebe4 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.section-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.section-head {
  max-width: 40rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.78rem 1.35rem;
  font: inherit;
  font-size: 0.98rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-decoration: none;
}

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

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #2a2208;
  box-shadow: 0 8px 22px rgba(212, 164, 58, 0.35);
}

.btn-teal {
  background: linear-gradient(180deg, #3aa8a1, var(--teal));
  color: #f4fffd;
  box-shadow: 0 8px 22px rgba(47, 143, 138, 0.3);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(22, 48, 56, 0.18);
  color: var(--ink);
  backdrop-filter: blur(8px);
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(243, 239, 228, 0.78);
  border-bottom: 1px solid rgba(22, 48, 56, 0.08);
}

.topbar-inner {
  width: min(100% - 1.5rem, var(--max));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(240, 196, 90, 0.55);
}

.nav {
  display: flex;
  gap: 0.9rem;
  flex-wrap: nowrap;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--teal-deep);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  border-radius: 2px;
}

.nav-drawer {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 1rem 1rem;
  border-top: 1px solid rgba(22, 48, 56, 0.08);
  background: rgba(243, 239, 228, 0.96);
}

.nav-drawer a {
  padding: 0.75rem 0.5rem;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid rgba(22, 48, 56, 0.06);
}

.nav-drawer.is-open {
  display: flex;
}

/* Hero */
.hero {
  --hero-mx: 0px;
  --hero-my: 0px;
  position: relative;
  min-height: clamp(420px, 72vh, 680px);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #f7f3e8;
}

.hero-media {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: translate3d(calc(var(--hero-mx) * -0.012), calc(var(--hero-my) * -0.01), 0) scale(1.04);
  transition: transform 0.45s ease-out;
  will-change: transform;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 48%, rgba(10, 24, 30, 0.55), transparent 70%),
    linear-gradient(180deg, rgba(12, 28, 34, 0.35) 0%, rgba(12, 28, 34, 0.28) 40%, rgba(12, 28, 34, 0.62) 100%);
}

.hero-aurora {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 42% 28% at 72% 28%, rgba(240, 196, 90, 0.22), transparent 70%),
    radial-gradient(ellipse 36% 30% at 28% 62%, rgba(90, 190, 180, 0.16), transparent 68%);
  animation: heroAurora 11s ease-in-out infinite alternate;
  mix-blend-mode: soft-light;
}

.hero-beam {
  position: absolute;
  right: 8%;
  top: 6%;
  width: min(28vw, 220px);
  height: min(55vh, 420px);
  background: linear-gradient(180deg, rgba(255, 230, 150, 0.28), rgba(255, 210, 120, 0.08) 42%, transparent 78%);
  clip-path: polygon(42% 0, 58% 0, 88% 100%, 12% 100%);
  filter: blur(10px);
  opacity: 0.55;
  animation: heroBeam 6.5s ease-in-out infinite;
  transform-origin: top center;
}

.hero-sparks {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-spark {
  position: absolute;
  width: var(--size, 4px);
  height: var(--size, 4px);
  border-radius: 50%;
  background: radial-gradient(circle, #fff8d8 0%, #f0c45a 45%, transparent 72%);
  box-shadow: 0 0 8px rgba(240, 196, 90, 0.55);
  opacity: 0;
  animation: heroSpark var(--dur, 7s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  left: var(--x, 50%);
  top: var(--y, 50%);
}

.hero-spark.is-teal {
  background: radial-gradient(circle, #e8fffb 0%, #7ad8c8 50%, transparent 72%);
  box-shadow: 0 0 8px rgba(122, 216, 200, 0.5);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 40rem);
  margin: 0 auto;
  padding: 2.5rem 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: heroCopyIn 0.9s ease both;
}

.hero-kicker {
  margin: 0 0 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: rgba(247, 243, 232, 0.88);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.hero-title-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.hero-title-art {
  width: min(100%, 440px);
  margin-inline: auto;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.4));
  animation: heroTitleFloat 5.5s ease-in-out infinite;
}

.hero-title-shine {
  position: absolute;
  inset: 8% 5%;
  border-radius: 12px;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.18) 48%,
    rgba(255, 236, 180, 0.28) 52%,
    transparent 68%
  );
  background-size: 220% 100%;
  mix-blend-mode: soft-light;
  pointer-events: none;
  animation: heroShine 4.8s ease-in-out infinite;
}

.hero-lead {
  max-width: 28rem;
  margin: 0.9rem auto 1.5rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: rgba(247, 243, 232, 0.94);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hero .btn-gold {
  animation: heroBtnPulse 3.2s ease-in-out infinite;
}

.hero .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff8e8;
}

@keyframes heroAurora {
  from {
    transform: translate3d(-1.5%, 0.8%, 0) scale(1);
    opacity: 0.75;
  }
  to {
    transform: translate3d(2%, -1.2%, 0) scale(1.06);
    opacity: 1;
  }
}

@keyframes heroBeam {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleY(0.92) skewX(-2deg);
  }
  50% {
    opacity: 0.7;
    transform: scaleY(1.05) skewX(2deg);
  }
}

@keyframes heroSpark {
  0% {
    opacity: 0;
    transform: translate3d(0, 12px, 0) scale(0.6);
  }
  18% {
    opacity: 0.9;
  }
  55% {
    opacity: 0.7;
    transform: translate3d(8px, -28px, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(-6px, -54px, 0) scale(0.4);
  }
}

@keyframes heroTitleFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes heroShine {
  0%,
  30% {
    background-position: 130% 0;
    opacity: 0;
  }
  45% {
    opacity: 1;
  }
  70%,
  100% {
    background-position: -40% 0;
    opacity: 0;
  }
}

@keyframes heroCopyIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroBtnPulse {
  0%,
  100% {
    box-shadow: 0 8px 22px rgba(212, 164, 58, 0.35);
  }
  50% {
    box-shadow: 0 10px 28px rgba(240, 196, 90, 0.55);
  }
}

#features,
#gallery,
#download,
#learn {
  scroll-margin-top: 72px;
}

/* Features */
.features {
  padding: 3rem 0 2rem;
}

.feat-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.feat-grid li {
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(22, 48, 56, 0.08);
  box-shadow: 0 14px 34px rgba(22, 48, 56, 0.07);
}

.feat-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.feat-grid h3 {
  margin: 0.95rem 1rem 0.35rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
}

.feat-grid p {
  margin: 0 1rem 1.1rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.keyword-band {
  margin-top: 2rem;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: rgba(47, 143, 138, 0.08);
  border: 1px dashed rgba(47, 143, 138, 0.35);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.keyword-band strong {
  color: var(--teal-deep);
  font-weight: 600;
}

/* Gallery */
.gallery {
  padding: 3rem 0;
}

.gal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.gal-grid figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #163038;
  box-shadow: 0 12px 28px rgba(22, 48, 56, 0.12);
}

.gal-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gal-grid figure:hover img {
  transform: scale(1.04);
}

.gal-grid figcaption {
  padding: 0.65rem 0.8rem 0.85rem;
  font-size: 0.86rem;
  color: #e8f2ef;
  background: linear-gradient(180deg, transparent, rgba(12, 28, 34, 0.92));
  margin-top: -2.4rem;
  position: relative;
}

.gal-wide {
  grid-column: span 2;
}

.gal-wide img {
  aspect-ratio: 16 / 9;
}

/* Download */
.download {
  padding: 3.5rem 0 4.5rem;
}

.download-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(26, 58, 66, 0.94), rgba(47, 143, 138, 0.88)),
    url("../assets/atmosphere.jpg") center / cover;
  color: #f4f7f2;
  box-shadow: 0 24px 50px rgba(22, 48, 56, 0.22);
}

.download-copy h2 {
  margin: 0 0 0.8rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
}

.download-copy p {
  margin: 0 0 1rem;
  color: rgba(244, 247, 242, 0.88);
}

.dl-points {
  margin: 0;
  padding-left: 1.15rem;
  color: rgba(244, 247, 242, 0.9);
}

.qr-card {
  margin: 0;
  justify-self: center;
  text-align: center;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.qr-card img {
  width: min(100%, 240px);
  margin: 0 auto;
  border-radius: 12px;
}

.qr-card figcaption {
  margin-top: 0.65rem;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

/* Footer */
.site-foot {
  padding: 2.2rem 0 1.5rem;
  border-top: 1px solid rgba(22, 48, 56, 0.08);
  background: rgba(22, 48, 56, 0.04);
}

.foot-inner {
  display: grid;
  gap: 1.15rem;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.foot-brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.foot-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink);
  line-height: 1.2;
}

.foot-brand p {
  margin: 0.28rem 0 0;
  color: rgba(42, 74, 82, 0.72);
  font-size: 0.82rem;
  line-height: 1.45;
}

.foot-seo {
  margin: 0;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(22, 48, 56, 0.08);
  color: rgba(42, 74, 82, 0.58);
  font-size: 0.75rem;
  line-height: 1.7;
  max-width: 40rem;
}

.foot-copy {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  color: rgba(42, 74, 82, 0.5);
  font-size: 0.72rem;
  line-height: 1.5;
}

.foot-beian {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.85rem;
  margin-left: 0;
}

.foot-beian a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.foot-beian a:hover {
  color: var(--teal-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.foot-ga {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.foot-ga img {
  width: 14px;
  height: 14px;
  display: block;
  flex-shrink: 0;
}

.foot-line {
  white-space: nowrap;
}

@media (max-width: 720px) {
  .foot-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .foot-beian {
    margin-left: 0;
  }
}

/* Responsive */
@media (max-width: 920px) {
  .feat-grid {
    grid-template-columns: 1fr;
  }

  .feat-grid img {
    aspect-ratio: 16 / 10;
  }

  .gal-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gal-wide {
    grid-column: span 2;
  }

  .download-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .dl-points {
    text-align: left;
    display: inline-block;
  }
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    min-height: 0;
    height: auto;
    place-items: start center;
    padding: 1.6rem 0 2.2rem;
  }

  .hero-bg {
    object-position: center 62%;
    transform: none;
  }

  .hero-beam {
    right: 2%;
    width: 34vw;
    opacity: 0.4;
  }

  .hero-veil {
    background:
      radial-gradient(ellipse 90% 70% at 50% 35%, rgba(10, 24, 30, 0.58), transparent 72%),
      linear-gradient(180deg, rgba(12, 28, 34, 0.42) 0%, rgba(12, 28, 34, 0.28) 55%, rgba(12, 28, 34, 0.55) 100%);
  }

  .hero-copy {
    padding: 0;
  }

  .hero-title-art {
    width: min(100%, 280px);
  }

  .hero-lead {
    margin: 0.7rem auto 1.1rem;
    font-size: 1rem;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 calc(50% - 0.4rem);
    min-width: 8.5rem;
  }

  .gal-grid {
    grid-template-columns: 1fr;
  }

  .gal-wide {
    grid-column: span 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .gal-grid img,
  .hero-bg,
  .hero-aurora,
  .hero-beam,
  .hero-spark,
  .hero-title-art,
  .hero-title-shine,
  .hero-copy,
  .hero .btn-gold {
    transition: none !important;
    animation: none !important;
  }

  .hero-bg {
    transform: none;
  }

  .hero-title-shine,
  .hero-beam,
  .hero-sparks {
    display: none;
  }
}

/* —— Inner pages —— */
.page-hero {
  position: relative;
  min-height: 280px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f7f3e8;
}

.page-hero-media {
  position: absolute;
  inset: 0;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.page-hero .hero-veil {
  background:
    linear-gradient(180deg, rgba(12, 28, 34, 0.25) 0%, rgba(12, 28, 34, 0.55) 100%);
}

.page-hero-copy {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 4.5rem 0 2rem;
}

.page-hero-copy h1 {
  margin: 0.35rem 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.page-hero-copy p {
  margin: 0;
  max-width: 36rem;
  color: rgba(247, 243, 232, 0.9);
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  font-size: 0.86rem;
  color: rgba(247, 243, 232, 0.75);
}

.crumb a {
  color: rgba(255, 236, 190, 0.95);
  text-decoration: none;
}

.crumb span[aria-hidden="true"] {
  opacity: 0.55;
}

.content-wrap {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 2.4rem 0 3.5rem;
}

.prose {
  max-width: 46rem;
}

.prose h2 {
  margin: 2rem 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
}

.prose h3 {
  margin: 1.4rem 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose a {
  color: var(--teal-deep);
}

.prose .lead {
  font-size: 1.08rem;
  color: var(--ink);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0 0 1.4rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.beast-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.beast-grid > li {
  display: flex;
  min-width: 0;
}

.beast-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
  height: 100%;
  padding: 1rem 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(22, 48, 56, 0.1);
  box-shadow: 0 12px 28px rgba(22, 48, 56, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

a.beast-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(22, 48, 56, 0.12);
}

.beast-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #fff8e8;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.beast-portrait {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.55), transparent 55%),
    linear-gradient(160deg, rgba(47, 143, 138, 0.18), rgba(22, 48, 56, 0.12));
  border: 1px solid rgba(22, 48, 56, 0.1);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.beast-portrait img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 4px 8px rgba(22, 48, 56, 0.18));
}

.beast-card h2,
.beast-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
}

.beast-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  min-height: calc(1.55em * 2);
  color: var(--ink-soft);
}

.beast-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
}

.tag {
  font-size: 0.75rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(47, 143, 138, 0.12);
  color: var(--teal-deep);
}

.tag.warn {
  background: rgba(212, 164, 58, 0.18);
  color: #8a5a10;
}

.tag.danger {
  background: rgba(200, 80, 70, 0.14);
  color: #8a3030;
}

.card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.card-list a {
  display: grid;
  gap: 0.35rem;
  padding: 1.1rem 1.2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(22, 48, 56, 0.1);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card-list a:hover {
  border-color: rgba(212, 164, 58, 0.55);
  transform: translateY(-1px);
}

.card-list h2,
.card-list h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
}

.card-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.note-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.note-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(22, 48, 56, 0.1);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 12px 28px rgba(22, 48, 56, 0.07);
}

.note-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.note-card .note-body {
  padding: 1rem 1.05rem 1.15rem;
  display: grid;
  gap: 0.4rem;
}

.note-card h2,
.note-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 400;
}

.note-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.cta-strip {
  margin-top: 2.5rem;
  padding: 1.35rem 1.4rem;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(26, 58, 66, 0.92), rgba(47, 143, 138, 0.85));
  color: #f4f7f2;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cta-strip p {
  margin: 0;
  max-width: 28rem;
  color: rgba(244, 247, 242, 0.92);
}

.cta-strip .btn-gold {
  flex-shrink: 0;
}

.foot-nav {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 0.7rem 1.6rem;
  margin: 0;
}

.foot-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

@media (min-width: 860px) {
  .foot-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand nav"
      "seo seo"
      "copy copy";
    align-items: center;
    column-gap: 2rem;
    row-gap: 1.15rem;
  }

  .foot-brand { grid-area: brand; }
  .foot-nav {
    grid-area: nav;
    justify-self: end;
    grid-template-columns: repeat(6, max-content);
    gap: 0 1.35rem;
  }
  .foot-seo { grid-area: seo; }
  .foot-copy { grid-area: copy; }
}

.foot-nav a:hover {
  color: var(--teal-deep);
}

.related {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(22, 48, 56, 0.1);
}

.related h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
}

.stat-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.4rem;
  font-size: 0.92rem;
}

.stat-table th,
.stat-table td {
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid rgba(22, 48, 56, 0.1);
}

.stat-table th {
  color: var(--ink);
  font-weight: 600;
}

.stat-table td {
  color: var(--ink-soft);
}

@media (max-width: 920px) {
  .beast-grid,
  .note-grid,
  .note-grid.cols-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .beast-grid,
  .note-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    min-height: 240px;
  }
}
