/* Pokémon Mouse Follower — landing page */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f6fb;
  --card: #ffffff;
  --border: #e6e8f0;
  --text: #1b1f2a;
  --muted: #5b6172;
  --primary: #5b61f0;
  --primary-ink: #ffffff;
  --accent: #ffcb05;      /* pokémon yellow */
  --shadow: 0 6px 24px rgba(20, 22, 40, .08);
  --radius: 16px;
  --maxw: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1117; --bg-soft: #141925; --card: #171c28; --border: #262c3b;
    --text: #e8eaf2; --muted: #9aa2b6; --primary: #818cf8; --primary-ink: #0e1117;
    --shadow: 0 6px 28px rgba(0,0,0,.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Hiragino Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }

/* header */
header.site {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(150%) blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav .spacer { flex: 1; }
.nav a.navlink { color: var(--muted); font-weight: 600; font-size: 14px; }
.nav a.navlink:hover { color: var(--text); text-decoration: none; }
.langs { display: flex; gap: 8px; font-size: 13px; }
.langs a { color: var(--muted); font-weight: 600; }
.langs a[aria-current="true"] { color: var(--text); text-decoration: underline; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: var(--primary-ink);
  font-weight: 700; padding: 10px 18px; border-radius: 999px;
  border: 0; cursor: pointer; font-size: 15px;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn.sm { padding: 7px 14px; font-size: 14px; }

/* hero */
.hero { padding: 64px 0 40px; }
.hero .grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.badge {
  font-size: 12.5px; font-weight: 700; color: var(--muted);
  background: var(--bg-soft); border: 1px solid var(--border);
  padding: 5px 11px; border-radius: 999px;
}
.hero h1 { font-size: clamp(34px, 5vw, 54px); margin: 0 0 14px; }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); margin: 0 0 26px; max-width: 42ch; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta .note { font-size: 13px; color: var(--muted); }
.hero .shot {
  border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: var(--shadow); overflow: hidden; background: var(--card);
}
.hero .shot img { width: 100%; }

/* walking band */
.band { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; }
.band .row { display: flex; align-items: flex-end; justify-content: center; gap: 34px; height: 120px; padding: 0 20px; }
.walker { background-repeat: no-repeat; align-self: flex-end; }
.w001 { width: 90px; height: 90px; background-image: url(walk/001.png); background-size: 540px 90px; animation: b001 .8s steps(6) infinite; }
.w004 { width: 90px; height: 90px; background-image: url(walk/004.png); background-size: 360px 90px; animation: b004 .55s steps(4) infinite; }
.w007 { width: 90px; height: 90px; background-image: url(walk/007.png); background-size: 360px 90px; animation: b007 .55s steps(4) infinite; }
.w025 { width: 72px; height: 90px; background-image: url(walk/025.png); background-size: 288px 90px; animation: b025 .5s steps(4) infinite; }
.w054 { width: 54px; height: 90px; background-image: url(walk/054.png); background-size: 216px 90px; animation: b054 .5s steps(4) infinite; }
.w133 { width: 75px; height: 90px; background-image: url(walk/133.png); background-size: 525px 90px; animation: b133 .9s steps(7) infinite; }
.w143 { width: 60px; height: 90px; background-image: url(walk/143.png); background-size: 240px 90px; animation: b143 .6s steps(4) infinite; }
@keyframes b001 { to { background-position-x: -540px; } }
@keyframes b004 { to { background-position-x: -360px; } }
@keyframes b007 { to { background-position-x: -360px; } }
@keyframes b025 { to { background-position-x: -288px; } }
@keyframes b054 { to { background-position-x: -216px; } }
@keyframes b133 { to { background-position-x: -525px; } }
@keyframes b143 { to { background-position-x: -240px; } }
@media (prefers-reduced-motion: reduce) { .walker { animation: none !important; } }

/* sections */
section { padding: 64px 0; }
.sec-head { text-align: center; max-width: 60ch; margin: 0 auto 40px; }
.sec-head h2 { font-size: clamp(26px, 3.5vw, 36px); margin: 0 0 10px; }
.sec-head p { color: var(--muted); margin: 0; font-size: 17px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.feature .ico { font-size: 26px; }
.feature h3 { font-size: 17px; margin: 12px 0 6px; }
.feature p { color: var(--muted); margin: 0; font-size: 14.5px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.split img { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.split h3 { font-size: 22px; margin: 0 0 10px; }
.split p { color: var(--muted); margin: 0 0 10px; }
.split ul { color: var(--muted); margin: 0; padding-left: 18px; }
.split li { margin: 4px 0; }

.flow { text-align: center; }
.flow pre {
  display: inline-block; text-align: left; background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: 12px; padding: 18px 22px;
  color: var(--text); font-size: 14px; overflow-x: auto; max-width: 100%;
}

/* install */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.step::before { counter-increment: s; content: counter(s); display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 999px; background: var(--primary); color: var(--primary-ink); font-weight: 800; margin-bottom: 10px; }
.step h3 { font-size: 16px; margin: 0 0 4px; }
.step p { color: var(--muted); margin: 0; font-size: 14px; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
p code, li code { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; font-size: .9em; }

/* faq */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border: 1px solid var(--border); border-radius: 12px; background: var(--card); padding: 4px 18px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 14px; }

/* footer */
footer.site { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 40px 0; color: var(--muted); font-size: 14px; }
footer.site .cols { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--text); }
.disclaimer { margin-top: 20px; font-size: 12.5px; color: var(--muted); }

@media (max-width: 820px) {
  .hero .grid, .split { grid-template-columns: 1fr; }
  .features, .steps { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 20px; }
  .band .row { gap: 18px; }        /* 7 walkers still fit down to ~680px */
}

/* Header + walking band on phones/tablets */
@media (max-width: 680px) {
  .nav { gap: 10px; }
  .nav .navlink { display: none; }                     /* drop Features/FAQ/GitHub */
  .brand { font-size: 15px; white-space: nowrap; }
  .brand img { width: 24px; height: 24px; }
  .band .row { height: 108px; }
  .w143, .w054 { display: none; }                      /* 5 walkers remain */
}
@media (max-width: 600px) {
  .nav { gap: 8px; }
  .langs { display: none; }                            /* keep brand + Download (langs still in footer) */
  .brand { font-size: 14px; }
  .brand img { width: 22px; height: 22px; }
}
@media (max-width: 560px) {
  .band .row { gap: 14px; height: 96px; }
  .w133, .w001 { display: none; }                      /* 3 walkers remain */
}
@media (max-width: 440px) {
  .wrap { padding: 0 16px; }
}
