/* =========================================================
   Bea Hana, halaman Proyek gaya "landing" (mockup bu Bea)
   Dipakai oleh: lias.html (Game 1, LIAS / "Agro Decide")
   Dependensi: assets/css/style.css (variabel warna, header, footer)
   ========================================================= */

.landing {
  position: relative;
  isolation: isolate;
}

/* ---------------- hero: background pemandangan full-bleed ---------------- */

.landing-hero {
  position: relative;
  overflow: hidden;
  scroll-margin-top: calc(var(--header-h) + 2px);
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding: clamp(28px, 5vw, 56px) 0 clamp(20px, 4vw, 40px);
}

.lh-back--up { margin-top: 2px; }

.landing-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  user-select: none;
  pointer-events: none;
}

/* blend dihapus (permintaan): tiap bagian tampil polos & nempel tanpa jarak */

/* ---------------- susunan: karakter (kiri) + teks (kanan) ---------------- */

.landing-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: end;
  gap: clamp(16px, 4vw, 52px);
  width: 100%;
}

/* karakter */
.lh-figure {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 0;
}

.lh-figure img {
  width: 100%;
  max-width: clamp(300px, 42vw, 560px);
  height: auto;
  filter: drop-shadow(0 28px 34px rgba(20, 48, 18, 0.30));
  animation: lh-float 7s var(--ease) infinite;
}

@keyframes lh-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

@media (prefers-reduced-motion: reduce) {
  .lh-figure img { animation: none; }
}

/* blok teks */
.lh-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: clamp(6px, 6vh, 70px);
}

.lh-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(24, 38, 32, 0.10);
  border-radius: 999px;
  padding: 7px 14px 7px 11px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.lh-back svg { width: 16px; height: 16px; }

.lh-back:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 8px 18px rgba(27, 42, 40, 0.12);
}

.lh-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--c1);
  background: #ffffff;
  border: 1px solid rgba(63, 154, 43, 0.28);
  border-radius: 999px;
  padding: 5px 13px;
}

.lh-logo {
  width: min(430px, 86%);
  height: auto;
  margin: 2px 0 2px -6px;
  filter: drop-shadow(0 14px 18px rgba(20, 60, 20, 0.20));
}

.lh-copy__text {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  max-width: 540px;
  box-shadow: none;
}

.lh-copy__text p {
  margin: 0;
  color: #2f3b34;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.55);
  white-space: pre-line;
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.72;
}

/* tombol Download (pakai PNG dari bu Bea) */
.lh-download {
  display: inline-block;
  line-height: 0;
  border-radius: 16px;
  transition: transform 0.22s var(--ease), filter 0.22s var(--ease);
}

.lh-download img {
  display: block;
  width: clamp(190px, 20vw, 244px);
  height: auto;
}

.lh-download:hover {
  transform: translateY(-3px);
  filter: brightness(1.03);
}

.lh-download:active { transform: translateY(0); }

.lh-download.is-disabled {
  cursor: not-allowed;
  opacity: 0.62;
  filter: grayscale(0.22);
}
.lh-download.is-disabled:hover { transform: none; filter: grayscale(0.22); }

.lh-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  background: #ffffff;
  border-radius: 999px;
  padding: 5px 13px;
}

/* varian terbalik: teks di kiri, karakter di kanan (dipakai game ke-2, EcoSim) */
.landing-hero--flip .lh-copy { order: 1; }
.landing-hero--flip .lh-figure { order: 2; }

/* ---------------- responsif ---------------- */

@media (max-width: 900px) {
  .landing-hero { min-height: 0; padding-top: 18px; }
  .landing-inner { grid-template-columns: 1fr; gap: 6px; }
  .lh-copy { order: 1; padding-bottom: 0; align-items: center; text-align: center; }
  .lh-copy__text { text-align: left; }
  .lh-figure { order: 2; }
  .lh-figure img { max-width: min(380px, 78vw); }
  .lh-logo { margin-left: 0; width: min(360px, 88%); }
}

@media (max-width: 520px) {
  .lh-back span { display: none; }
  .lh-download img { width: 200px; }
}
