/* Homepage v2 — hero key art, falling Konoha leaves, scroll-shaped download card. */
.hero { position: relative; padding-bottom: 170px; background: var(--ink-900); isolation: isolate; }
.hero-bg img { width: 100%; height: auto; }
.hero::after { /* fade key art into the page colour */
  content: ""; position: absolute; left: 0; right: 0; bottom: 120px; height: 220px; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(18, 10, 16, 0), var(--ink-900) 85%);
}

/* ---------- Falling leaves ---------- */
.hero-leaves { position: absolute; top: 0; left: 0; right: 0; bottom: 170px; z-index: 2; overflow: hidden; pointer-events: none; }
.leaf {
  position: absolute; top: -80px; width: 56px; height: 46px;
  background: url("../img/leaf-1.webp") center/contain no-repeat;
  opacity: .9; animation: leaf-fall 13s linear infinite;
}
.leaf.l1 { left: 6%;  animation-delay: -2s; }
.leaf.l2 { left: 22%; width: 42px; height: 26px; background-image: url("../img/leaf-2.webp"); animation-duration: 16s; animation-delay: -9s; }
.leaf.l3 { left: 41%; width: 48px; height: 16px; background-image: url("../img/leaf-3.webp"); animation-duration: 11s; animation-delay: -5s; }
.leaf.l4 { left: 63%; animation-duration: 15s; animation-delay: -12s; }
.leaf.l5 { left: 79%; width: 42px; height: 26px; background-image: url("../img/leaf-2.webp"); animation-duration: 12s; animation-delay: -3s; }
.leaf.l6 { left: 92%; width: 48px; height: 16px; background-image: url("../img/leaf-3.webp"); animation-duration: 17s; animation-delay: -7s; }
@keyframes leaf-fall {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  25%  { transform: translate3d(-40px, 25vh, 0) rotate(80deg); }
  50%  { transform: translate3d(30px, 50vh, 0) rotate(160deg); }
  75%  { transform: translate3d(-30px, 75vh, 0) rotate(250deg); }
  100% { transform: translate3d(20px, 105vh, 0) rotate(340deg); }
}

/* ---------- Download card (scroll) ---------- */
.download-card {
  position: absolute; z-index: 5; left: 50%; bottom: 10px; transform: translateX(-50%);
  width: min(900px, calc(100% - 32px)); padding: 0 92px;
  animation: card-in .8s cubic-bezier(.2, .9, .25, 1.1) .3s both;
}
.scroll-rod {
  position: absolute; top: -26px; bottom: -26px; width: 118px; z-index: 2;
  background: url("../img/scroll-rod.webp") center/contain no-repeat;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .55));
}
.scroll-rod--left { left: 0; }
.scroll-rod--right { right: 0; transform: scaleX(-1); }
.download-paper {
  position: relative; padding: 30px 40px 34px; text-align: center; color: var(--paper-ink);
  background: url("../img/scroll-paper.webp") center/100% 100% no-repeat, var(--paper);
  box-shadow: inset 0 0 40px rgba(122, 70, 20, .35), 0 18px 40px rgba(0, 0, 0, .55);
}
.download-paper::before { /* Uzumaki swirl watermark */
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; opacity: .14;
  background: url("../img/spiral.webp") center/180px no-repeat;
}
.download-title { margin: 0; font: 400 clamp(24px, 2.4vw, 38px)/1.1 var(--font-display); color: var(--akatsuki); letter-spacing: .03em; }
.download-tagline { margin: 6px 0 20px; font-weight: 700; font-size: clamp(14px, 1.15vw, 18px); }
.download-actions { position: relative; display: flex; align-items: center; justify-content: center; gap: 18px; }

.btn-download-main {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  width: 330px; height: 86px; padding: 0 36px 4px;
  color: #4a1d00; background: url("../img/btn-gold.webp") center/100% 100% no-repeat;
  filter: drop-shadow(0 6px 10px rgba(120, 50, 0, .45));
  transition: transform .2s ease, filter .2s ease;
  animation: download-pulse 2.6s ease-in-out infinite;
}
.btn-download-main { position: relative; overflow: hidden; border-radius: 10px; }
.btn-download-main::after { /* light sweep across the gold plate */
  content: ""; position: absolute; top: -10%; bottom: -10%; left: -45%; width: 32%; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .75), rgba(255, 255, 255, 0));
  transform: skewX(-22deg); animation: download-shine 2.8s ease-in-out infinite;
}
.btn-download-main svg { width: 34px; height: 34px; flex: 0 0 auto; animation: arrow-bob 1.3s ease-in-out infinite; }
@keyframes download-shine { 0%, 55% { left: -45%; } 100% { left: 125%; } }
@keyframes arrow-bob { 50% { transform: translateY(4px); } }
.btn-download-main span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.btn-download-main strong { font-size: 28px; font-weight: 800; letter-spacing: .06em; }
.btn-download-main small { font-size: 14px; font-weight: 700; opacity: .85; }
.btn-download-main:hover { transform: translateY(-3px) scale(1.02); filter: drop-shadow(0 10px 14px rgba(120, 50, 0, .55)) brightness(1.08); }
@keyframes download-pulse { 50% { filter: drop-shadow(0 6px 18px rgba(255, 170, 40, .85)); } }

.download-sub { display: flex; flex-direction: column; gap: 10px; }
.btn-sub {
  display: grid; place-items: center; width: 168px; height: 50px;
  font-weight: 800; font-size: 17px; letter-spacing: .06em; color: #fff4e0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
  background: url("../img/btn-red.webp") center/100% 100% no-repeat;
  border-radius: 6px; box-shadow: 0 4px 10px rgba(80, 10, 10, .4);
  transition: transform .2s ease, filter .2s ease;
}
.btn-sub:hover { transform: translateY(-2px); filter: brightness(1.12); }
@keyframes card-in { from { opacity: 0; transform: translate(-50%, 40px) scale(.96); } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .download-card { padding: 0 70px; }
  .scroll-rod { width: 90px; }
  .btn-download-main { width: 280px; height: 74px; }
  .btn-download-main strong { font-size: 24px; }
}
@media (max-width: 767px) {
  .hero { padding-bottom: 0; }
  .hero::after { bottom: 0; height: 6vw; } /* key art already fades to dark; keep the slogan readable */
  .hero-leaves { bottom: 0; }
  .download-card {
    position: relative; left: auto; bottom: auto; transform: none;
    width: calc(100% - 24px); margin: 14px auto 0; padding: 0 44px;
    animation-name: card-in-mobile;
  }
  .scroll-rod { width: 56px; top: -16px; bottom: -16px; }
  .download-paper { padding: 22px 14px 24px; }
  .download-actions { flex-direction: column; gap: 12px; }
  .btn-download-main { width: 100%; max-width: 300px; height: 76px; }
  .download-sub { flex-direction: row; width: 100%; max-width: 300px; }
  .btn-sub { flex: 1; width: auto; height: 46px; font-size: 15px; }
}
@keyframes card-in-mobile { from { opacity: 0; transform: translateY(30px); } }
@media (max-width: 360px) {
  .btn-download-main { padding: 0 18px 4px; gap: 8px; }
  .btn-download-main strong { font-size: 21px; }
  .btn-download-main svg { width: 26px; height: 26px; }
}
