* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

:root { --ease-out: cubic-bezier(.22, 1, .36, 1); --spring: cubic-bezier(.34, 1.56, .64, 1); --wrap: 1180px; }

/* ── Progress bar ── */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px clamp(16px, 4vw, 40px);
  transition: background .3s, border-color .3s, padding .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-color: var(--line);
  padding-block: 10px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); font-size: 16px; }
.nav-links { display: flex; gap: 24px; font-size: 15px; color: var(--ink-2); margin-right: auto; }
.nav-links a { text-decoration: none; position: relative; white-space: nowrap; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.icon-btn {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer;
}
.icon-btn:hover { color: var(--ink); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font: 500 15px/1 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .2s var(--ease-out), box-shadow .2s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-primary:hover { box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 45%, transparent); }
.btn-primary svg { transition: transform .25s var(--ease-out); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); }
.btn-light { background: #fbf8f4; color: #2b2118; }

/* Przycisk w barwach GitHuba: ciemny w jasnym motywie, jasny w ciemnym. */
.btn-github { --gh-bg: #1f2328; --gh-fg: #ffffff; --gh-pill: rgba(255, 255, 255, .14); background: var(--gh-bg); color: var(--gh-fg); border-color: var(--gh-bg); }
:root[data-theme="dark"] .btn-github { --gh-bg: #f6f8fa; --gh-fg: #1f2328; --gh-pill: rgba(31, 35, 40, .1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-github { --gh-bg: #f6f8fa; --gh-fg: #1f2328; --gh-pill: rgba(31, 35, 40, .1); } }
.btn-github:hover { box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .35); transform: translateY(-1px); }
.btn-github .gh-mark { fill: currentColor; flex: none; transition: transform .5s var(--spring); }
.btn-github:hover .gh-mark { transform: rotate(-12deg) scale(1.08); }
.gh-pill { display: inline-flex; align-items: center; gap: 5px; margin-left: 4px; padding: 4px 9px; border-radius: 999px; background: var(--gh-pill); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.gh-pill-star { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; transition: transform .45s var(--spring), fill .2s, stroke .2s; }
.btn-github:hover .gh-pill-star { fill: #e3b341; stroke: #e3b341; transform: rotate(72deg) scale(1.2); }
.gh-pill [data-gh-stars][hidden] { display: none; }
.magnetic { will-change: transform; }

/* ── Shared ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
.section { max-width: var(--wrap); margin: 0 auto; padding: clamp(72px, 10vw, 128px) clamp(16px, 4vw, 40px) 0; }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font: 700 clamp(30px, 4.4vw, 48px)/1.06 var(--display); letter-spacing: -.035em; text-wrap: balance; }
.lead { margin: 18px auto 0; max-width: 620px; color: var(--ink-2); font-size: clamp(16px, 1.6vw, 18px); text-wrap: pretty; }
.center { text-align: center; margin-top: 36px; }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.in, .no-anim .reveal { opacity: 1; transform: none; }

/* ── Hero ── */
.hero {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) clamp(16px, 4vw, 40px) clamp(48px, 7vw, 88px);
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero-in { opacity: 0; transform: translateY(16px); animation: heroIn .9s var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
@keyframes heroIn { to { opacity: 1; transform: none; } }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); position: relative; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--good); animation: ping 2s var(--ease-out) infinite; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.hero-title { font: 800 clamp(42px, 5.6vw, 72px)/.98 var(--display); letter-spacing: -.045em; text-wrap: balance; }
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .1em .1em 0; margin: 0 -.1em -.1em 0; }
.hero-title .w > span { display: inline-block; transform: translateY(105%); animation: wordUp .9s var(--ease-out) forwards; animation-delay: calc(80ms + var(--i) * 60ms); }
@keyframes wordUp { to { transform: none; } }
.hero-title .accent { color: var(--accent); font-style: italic; }
.hero-sub { margin: 22px 0 0; max-width: 520px; font-size: clamp(16px, 1.7vw, 19px); color: var(--ink-2); text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

/* Hero visual */
.hero-visual { perspective: 1200px; }
.map-card {
  position: relative; aspect-ratio: 1 / 1.02; border-radius: 28px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 30px 80px -20px rgba(43, 33, 24, .25), 0 2px 6px rgba(43, 33, 24, .06);
  transform-style: preserve-3d; transition: transform .5s var(--ease-out);
  overflow: hidden;
}
.mini-map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mm-bg { fill: var(--surface-2); }
.mm-park { fill: color-mix(in srgb, var(--t-biblioteka) 16%, var(--surface-2)); }
.mm-road { fill: none; stroke: var(--surface); stroke-width: 5; stroke-linecap: round; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.6s var(--ease-out) forwards; animation-delay: var(--d); }
.mm-road-sm { stroke-width: 2.5; }
.mm-river { fill: none; stroke: color-mix(in srgb, var(--t-coworking) 30%, var(--surface-2)); stroke-width: 16; stroke-linecap: round; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 2.2s var(--ease-out) .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.mm-label { font: 600 10px var(--font); fill: var(--muted); letter-spacing: .12em; text-transform: uppercase; opacity: 0; animation: fadeIn 1s ease 1.4s forwards; }
@keyframes fadeIn { to { opacity: 1; } }

.mm-pin { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; animation: pinDrop .7s var(--spring) forwards; animation-delay: var(--d); cursor: pointer; }
@keyframes pinDrop { from { opacity: 0; transform: translateY(-26px) scale(.6); } to { opacity: 1; transform: none; } }
.mm-pin .pin-body { transition: transform .35s var(--spring); transform-box: fill-box; transform-origin: 50% 100%; }
.mm-pin.is-active .pin-body { transform: scale(1.35); }
.mm-pin .pin-shape { stroke: var(--surface); stroke-width: 2; }
.mm-pin text { font: 700 10px var(--font); fill: #fff; pointer-events: none; }
.mm-pin .pulse { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.mm-pin.is-active .pulse { animation: pulse 1.6s var(--ease-out) infinite; }
@keyframes pulse { from { opacity: .7; transform: scale(.4); } to { opacity: 0; transform: scale(2.2); } }

.float-chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  opacity: 0; animation: chipIn .8s var(--spring) forwards, bob 5s ease-in-out infinite;
  white-space: nowrap;
}
.float-chip .ico { font-size: 14px; }
.chip-a { top: 7%; left: 6%; animation-delay: 1.5s, 2.3s; }
.chip-b { top: 16%; right: 6%; animation-delay: 1.7s, 2.9s; }
.chip-c { top: 44%; left: 4%; animation-delay: 1.9s, 2.5s; }
@keyframes chipIn { from { opacity: 0; transform: translateY(10px) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

.place-card {
  position: absolute; z-index: 3; left: 5%; right: 5%; bottom: 5%;
  padding: 16px 18px; border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); box-shadow: 0 16px 40px -12px rgba(43, 33, 24, .3);
  opacity: 0; animation: chipIn .9s var(--spring) 2.1s forwards;
}
.place-card .swap { transition: opacity .35s ease, transform .35s var(--ease-out); }
.place-card.is-swapping .swap { opacity: 0; transform: translateY(6px); }
.pc-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.pc-type { font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pc-open { color: var(--good); font-weight: 600; }
.pc-name { font: 700 22px/1.15 var(--display); letter-spacing: -.02em; margin-top: 4px; }
.pc-meta { margin: 2px 0 10px; font-size: 14px; color: var(--ink-2); }
.pc-row { display: flex; justify-content: space-between; align-items: end; }
.pc-score { font: 600 14px var(--font); color: var(--muted); }
.pc-score b { font: 800 30px/1 var(--display); color: var(--ink); letter-spacing: -.03em; }
.pc-score small { margin-left: 6px; }
.pc-bars { display: flex; gap: 3px; align-items: end; height: 22px; }
.pc-bars i { width: 6px; border-radius: 3px; background: var(--line); transition: background .4s, height .5s var(--spring); }
.pc-bars i:nth-child(1) { height: 6px; } .pc-bars i:nth-child(2) { height: 10px; } .pc-bars i:nth-child(3) { height: 14px; } .pc-bars i:nth-child(4) { height: 18px; } .pc-bars i:nth-child(5) { height: 22px; }
.pc-bars i.on { background: var(--accent); }

/* ── Marquee ── */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line); background: var(--surface);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 10px; padding: 18px 26px; font: 600 17px var(--display); letter-spacing: -.01em; white-space: nowrap; text-decoration: none; color: var(--ink-2); transition: color .2s; }
.marquee-item:hover { color: var(--ink); }
.marquee-item i { width: 8px; height: 8px; border-radius: 50%; }
.marquee-item small { font: 500 13px var(--font); color: var(--muted); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Problem ── */
.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pain {
  padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line);
  transition: transform .4s var(--ease-out), box-shadow .4s, opacity .8s var(--ease-out);
}
.pain:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pain h3 { font: 700 19px/1.2 var(--display); letter-spacing: -.02em; margin: 18px 0 6px; }
.pain p { margin: 0; color: var(--ink-2); font-size: 15px; }
.pain-art { height: 110px; border-radius: 16px; background: var(--surface-2); display: grid; place-items: center; position: relative; overflow: hidden; }

.art-wifi svg path, .art-wifi svg circle { fill: none; stroke: var(--ink-2); stroke-width: 5; stroke-linecap: round; }
.art-wifi svg .w0 { fill: var(--ink-2); stroke: none; }
.pain.in .art-wifi .w1 { animation: wifiDie 2.4s ease-in-out infinite; }
.pain.in .art-wifi .w2 { animation: wifiDie 2.4s ease-in-out .15s infinite; }
@keyframes wifiDie { 0%, 30% { opacity: 1; } 45%, 85% { opacity: .12; } 100% { opacity: 1; } }
.loader-dots { position: absolute; bottom: 14px; display: flex; gap: 4px; }
.loader-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: dot 1.2s ease-in-out infinite; }
.loader-dots i:nth-child(2) { animation-delay: .15s; } .loader-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 100% { opacity: .2; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }

.art-battery { gap: 6px; grid-auto-flow: row; }
.battery { width: 92px; height: 42px; border: 4px solid var(--ink-2); border-radius: 10px; padding: 4px; position: relative; }
.battery::after { content: ""; position: absolute; right: -10px; top: 10px; width: 6px; height: 14px; border-radius: 0 3px 3px 0; background: var(--ink-2); }
.battery-fill { display: block; height: 100%; width: 100%; border-radius: 4px; background: var(--good); transform-origin: left; transition: transform 3.2s cubic-bezier(.5, 0, .4, 1), background 3.2s; }
.pain.in .battery-fill { transform: scaleX(.12); background: #d0452f; }
.battery-pct { font: 700 14px var(--font); font-variant-numeric: tabular-nums; color: var(--ink-2); }

.sign { display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0; }
.pain.in .sign { animation: swing 3s ease-in-out infinite; }
@keyframes swing { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.sign-string { width: 40px; height: 16px; border: 2px solid var(--muted); border-bottom: 0; border-radius: 20px 20px 0 0; }
.sign-board { padding: 8px 14px; border-radius: 8px; background: var(--surface); border: 2px solid var(--ink-2); font: 700 14px/1.2 var(--font); text-align: center; }
.sign-board s { text-decoration-thickness: 2px; text-decoration-color: #d0452f; }
.sign-board small { font-weight: 500; color: var(--muted); font-size: 11px; }

.eq { display: flex; gap: 5px; align-items: center; height: 60px; }
.eq i { width: 8px; height: 20%; border-radius: 4px; background: var(--ink-2); }
.pain.in .eq i { animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .1s !important; } .eq i:nth-child(3) { animation-delay: .25s !important; }
.eq i:nth-child(4) { animation-delay: .05s !important; } .eq i:nth-child(5) { animation-delay: .3s !important; }
.eq i:nth-child(6) { animation-delay: .18s !important; } .eq i:nth-child(7) { animation-delay: .4s !important; }
@keyframes eq { 0%, 100% { height: 20%; } 50% { height: 100%; } }

.punch { text-align: center; margin: 48px auto 0; max-width: 700px; font: 600 clamp(20px, 2.4vw, 26px)/1.35 var(--display); letter-spacing: -.02em; color: var(--ink-2); text-wrap: balance; }
.hl { color: var(--ink); background-image: linear-gradient(color-mix(in srgb, var(--accent) 28%, transparent), color-mix(in srgb, var(--accent) 28%, transparent)); background-repeat: no-repeat; background-size: 0% 40%; background-position: 0 88%; transition: background-size 1s var(--ease-out) .5s; }
.punch.in .hl { background-size: 100% 40%; }

/* ── Solution features ── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.feature { background: var(--surface); padding: 28px; transition: background .3s, opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.feature:hover { background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.f-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--surface-2); font-size: 22px; transition: transform .4s var(--spring); }
.feature:hover .f-ico { transform: rotate(-8deg) scale(1.1); }
.feature h3 { font: 700 19px/1.2 var(--display); letter-spacing: -.02em; margin: 16px 0 6px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ── Steps ── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(24px, 4vw, 40px); }
.step { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.step:nth-child(even) .step-art { order: 2; }
.step-art { position: relative; aspect-ratio: 16 / 10; border-radius: 24px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.step-n { font: 800 15px var(--display); color: var(--accent); letter-spacing: .02em; }
.step-copy h3 { font: 700 clamp(24px, 2.8vw, 32px)/1.1 var(--display); letter-spacing: -.03em; margin: 8px 0 12px; }
.step-copy p { margin: 0; color: var(--ink-2); font-size: 17px; max-width: 460px; }

/* Step 1: filters */
.art-filters { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 10px; padding: 24px; }
.tg { padding: 10px 16px; border-radius: 999px; border: 1.5px dashed color-mix(in srgb, var(--ink) 22%, var(--line)); font-size: 15px; color: var(--ink-2); background: var(--surface); }
.step.in .tg:not(.tg-off) { animation: toggleOn 6s var(--ease-out) infinite; animation-delay: calc(var(--i) * 1s + .4s); }
@keyframes toggleOn {
  0%, 8% { border-style: dashed; background: var(--surface); color: var(--ink-2); transform: scale(1); }
  10% { transform: scale(.94); }
  14%, 80% { border-style: solid; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--ink); transform: scale(1); }
  90%, 100% { border-style: dashed; background: var(--surface); color: var(--ink-2); }
}
.cursor { position: absolute; width: 22px; height: 22px; left: 0; top: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l16 9-7 2-3 7z' fill='%232b2118' stroke='white' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: 0; }
.step.in .cursor { animation: cursorPath 6s var(--ease-out) infinite .4s; }
@keyframes cursorPath {
  0% { opacity: 0; transform: translate(60%, 400%); }
  4% { opacity: 1; }
  9%, 14% { transform: translate(var(--c1x, 140px), var(--c1y, 70px)); }
  25%, 30% { transform: translate(var(--c2x, 300px), var(--c2y, 70px)); }
  42%, 47% { transform: translate(var(--c3x, 200px), var(--c3y, 120px)); }
  70% { opacity: 1; }
  80%, 100% { opacity: 0; transform: translate(var(--c3x, 200px), var(--c3y, 160px)); }
}

/* Step 2: pins */
.step-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.sm-river { fill: none; stroke: color-mix(in srgb, var(--t-coworking) 30%, var(--surface-2)); stroke-width: 12; stroke-linecap: round; }
.sm-road { stroke: var(--surface); stroke-width: 4; }
.mp {
  position: absolute; left: var(--x); top: var(--y); width: 30px; height: 30px; margin: -30px 0 0 -15px;
  border-radius: 50% 50% 50% 4px; transform: rotate(-45deg);
  background: var(--t-kawiarnia); border: 2px solid var(--surface); box-shadow: 0 3px 8px rgba(0, 0, 0, .2);
  display: grid; place-items: center; color: #fff; font: 700 12px var(--font);
  opacity: 0;
}
.mp b { transform: rotate(45deg); }
.step.in .mp { animation: mpDrop .7s var(--spring) forwards; animation-delay: calc(.3s + var(--i) * .12s); }
@keyframes mpDrop { from { opacity: 0; transform: rotate(-45deg) translate(-14px, -14px) scale(.5); } to { opacity: 1; transform: rotate(-45deg); } }
.mp-hot { background: var(--accent); z-index: 2; }
.step.in .mp-hot { animation: mpDrop .7s var(--spring) forwards .54s, hot 2s ease-in-out 1.4s infinite; }
@keyframes hot { 0%, 100% { transform: rotate(-45deg) scale(1); } 50% { transform: rotate(-45deg) scale(1.2); } }
.me { position: absolute; left: 58%; top: 74%; width: 14px; height: 14px; border-radius: 50%; background: #2f7ae5; border: 3px solid #fff; box-shadow: 0 0 0 0 rgba(47, 122, 229, .4); }
.step.in .me { animation: meRing 2s ease-out infinite; }
@keyframes meRing { to { box-shadow: 0 0 0 18px rgba(47, 122, 229, 0); } }

/* Step 3: detail */
.art-detail { display: grid; place-items: center; padding: 20px; }
.mini-detail { width: min(300px, 90%); padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 8px; }
.md-head { display: flex; justify-content: space-between; align-items: center; font: 700 17px var(--display); }
.md-open { font: 600 12px var(--font); color: var(--good); }
.md-line { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); padding: 6px 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateX(-8px); }
.md-line span:last-child { font-weight: 600; color: var(--ink); }
.step.in .md-line { animation: lineIn .6s var(--ease-out) forwards; }
.step.in .md-line:nth-child(2) { animation-delay: .3s; } .step.in .md-line:nth-child(3) { animation-delay: .45s; } .step.in .md-line:nth-child(4) { animation-delay: .6s; }
@keyframes lineIn { to { opacity: 1; transform: none; } }
.md-btn { margin-top: 6px; padding: 10px; border-radius: 999px; text-align: center; font: 600 13px var(--font); background: var(--accent); color: var(--accent-ink); }
.step.in .md-btn { animation: press 2.6s ease-in-out 1.2s infinite; }
@keyframes press { 0%, 70%, 100% { transform: scale(1); } 76% { transform: scale(.95); } 84% { transform: scale(1.02); } }

/* ── Numbers ── */
.numbers {
  max-width: var(--wrap); margin: clamp(72px, 10vw, 120px) auto 0; padding: 0 clamp(16px, 4vw, 40px);
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.num { text-align: center; padding: 26px 12px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.num b { display: block; font: 800 clamp(38px, 5vw, 56px)/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.num span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }

/* ── Picks ── */
.picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; perspective: 1000px; }
.pick {
  display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line); text-decoration: none;
  transition: transform .25s var(--ease-out), box-shadow .3s, opacity .8s var(--ease-out);
  transform-style: preserve-3d;
}
.pick:hover { box-shadow: 0 24px 50px -20px rgba(43, 33, 24, .3); }
.pick-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.pick h3 { font: 700 22px/1.15 var(--display); letter-spacing: -.02em; }
.pick-score { flex: none; font: 800 15px var(--display); padding: 6px 10px; border-radius: 10px; background: var(--surface-2); }
.pick-meta { font-size: 14px; color: var(--muted); }
.pick p { margin: 0; color: var(--ink-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pick-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.pick-tags span { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.pick-go { font-size: 14px; font-weight: 600; color: var(--accent); display: inline-flex; gap: 6px; align-items: center; }
.pick-go svg { transition: transform .25s var(--ease-out); }
.pick:hover .pick-go svg { transform: translateX(4px); }

/* ── Suggest band ── */
.suggest-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  padding: clamp(24px, 4vw, 36px); border-radius: 24px;
  border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}
.suggest-band h2 { font: 700 clamp(22px, 2.6vw, 28px)/1.15 var(--display); letter-spacing: -.02em; }
.suggest-band p { margin: 8px 0 0; color: var(--ink-2); max-width: 560px; }

/* ── Final CTA ── */
.final { max-width: var(--wrap); margin: clamp(80px, 10vw, 128px) auto 0; padding: 0 clamp(16px, 4vw, 40px); }
.final-inner {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(56px, 8vw, 96px) 24px; border-radius: 32px;
  background: radial-gradient(120% 140% at 50% 0%, #7a5538 0%, #4a3122 55%, #2b1d14 100%);
  color: #fbf3ea;
}
.final-inner::before {
  content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 22px 22px;
}
.final h2 { font: 800 clamp(32px, 5vw, 58px)/1.02 var(--display); letter-spacing: -.04em; position: relative; text-wrap: balance; }
.final p { margin: 14px 0 28px; color: #e8d6c5; font-size: 18px; position: relative; }
.final .btn { position: relative; }
.final-star { margin: 22px 0 0 !important; font-size: 15px !important; }
.final-star a { color: #e8d6c5; text-decoration: none; border-bottom: 1px solid rgba(232, 214, 197, .35); transition: color .2s, border-color .2s; }
.final-star a:hover { color: #fff; border-color: #fff; }
.cup { font-size: 52px; position: relative; display: inline-block; animation: wobble 4s ease-in-out infinite; }
@keyframes wobble { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.steam { position: relative; height: 34px; display: flex; justify-content: center; gap: 10px; margin-bottom: -6px; }
.steam i { width: 6px; height: 30px; border-radius: 6px; background: linear-gradient(to top, rgba(255, 255, 255, .5), transparent); filter: blur(2px); animation: steam 2.8s ease-in-out infinite; opacity: 0; }
.steam i:nth-child(2) { animation-delay: .6s; } .steam i:nth-child(3) { animation-delay: 1.2s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(10px) scaleY(.6); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px) scaleY(1.2) translateX(4px); } }

/* ── Footer ── */
.footer {
  max-width: var(--wrap); margin: 72px auto 0; padding: 28px clamp(16px, 4vw, 40px) 40px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; font-size: 14px; color: var(--muted);
}
.footer nav { display: flex; gap: 20px; }
.footer nav a { text-decoration: none; color: var(--ink-2); }
.footer nav a:hover { color: var(--ink); }
.footer p { margin: 0 0 0 auto; }

/* ── Responsive ── */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav .gh-star { margin-left: auto; }
  .hero { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; width: 100%; margin: 0 auto; }
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .numbers { gap: 10px; }
  .num { padding: 20px 8px; }
  .picks { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; }
  .step:nth-child(even) .step-art { order: 0; }
}
@media (max-width: 640px) {
  .nav { gap: 10px; }
  .pain-grid, .feature-grid { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .numbers .num:first-child { grid-column: 1 / -1; }
  .hero-cta .btn { flex: 1; padding: 0 16px; }
  .hero-cta .btn-github { flex-basis: 100%; }
  .footer p { margin: 0; }
  .float-chip { font-size: 12px; padding: 6px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .js .reveal, .hero-in { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
