/* Strona Shrimp: rodzina „Prezentacja” z DESIGN.md (Inter, czerń i biel, jedna kolumna, ruch „rise”).
   Bez gradientów, cieni i tekstu w ramkach: jedyny kształt z tekstem to przycisk pobierania. */

@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #fff; --fg: #000; --dim: #5b5f66; --faint: #9a9da3; --line: rgb(0 0 0 / 10%);
  --btn-bg: #000; --btn-fg: #fff;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font: "Inter", "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #000; --fg: #fff; --dim: #a3a7ad; --faint: #6b6e73; --line: rgb(255 255 255 / 12%); --btn-bg: #fff; --btn-fg: #000; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 17px/1.55 var(--font); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:where(a, button):focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--fg); color: var(--bg); }

.logo { fill: currentColor; color: var(--fg); overflow: visible; }

/* pasek górny: samo logo i przełącznik języka, linia pojawia się po przewinięciu */
.top {
  position: fixed; inset: 0 0 auto; z-index: 10; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(16px, 4vw); background: var(--bg);
  border-bottom: 1px solid transparent; transition: border-color 0.4s ease;
}
.top.scrolled { border-bottom-color: var(--line); }
.top .home { display: block; padding: 6px; margin: -6px; }
.top .logo { width: 30px; height: auto; aspect-ratio: 184.6 / 178.5; }
.top nav { display: flex; gap: 22px; align-items: center; font-size: 14px; }
.link { color: var(--dim); text-decoration: none; transition: color 0.2s ease; }
.link:hover, .link[aria-current="true"] { color: var(--fg); }
.langs { display: flex; gap: 10px; }
.langs button { all: unset; cursor: pointer; color: var(--faint); transition: color 0.2s ease; }
.langs button[aria-pressed="true"], .langs button:hover { color: var(--fg); }
.langs button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }

/* bohater */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 112px 16px 72px;
}
.hero-in { display: flex; flex-direction: column; align-items: center; width: 100%; }
.hero .logo { width: clamp(84px, 11vw, 136px); height: auto; aspect-ratio: 184.6 / 178.5; transform: translateX(-4%); }
.h1 {
  margin: clamp(22px, 3vw, 34px) 0 0; font-size: clamp(44px, 8vw, 104px); line-height: 1; font-weight: 600;
  letter-spacing: -0.045em; text-wrap: balance;
}
.lead { margin: 18px 0 0; max-width: 30ch; font-size: clamp(18px, 2vw, 22px); line-height: 1.45; color: var(--dim); text-wrap: balance; letter-spacing: -0.01em; }

/* przycisk pobierania: duża pigułka, odwrócone kolory */
.get { margin-top: clamp(36px, 5vw, 52px); display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; }
.dl {
  --h: 84px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: var(--h); padding: 0 52px 0 44px; min-width: min(100%, 400px);
  border-radius: 999px; background: var(--btn-bg); color: var(--btn-fg);
  font-size: 22px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none;
  overflow: hidden; isolation: isolate;
  transition: transform 0.5s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.dl:hover { transform: scale(1.03); }
.dl:active { transform: scale(0.98); transition-duration: 0.12s; }
.dl:focus-visible { outline-offset: 5px; border-radius: 999px; }
.dl .ico { width: 24px; height: 24px; flex: none; overflow: visible; }
.dl .ico path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dl .arrow { transition: transform 0.5s var(--ease); }
.dl:hover .arrow { transform: translateY(2px); }
.dl .label { position: relative; }
.dl .label span { display: block; transition: transform 0.5s var(--ease), opacity 0.3s ease; }
.dl .label .then { position: absolute; inset: 0; transform: translateY(110%); opacity: 0; }
.dl.going .label .now { transform: translateY(-110%); opacity: 0; }
.dl.going .label .then { transform: none; opacity: 1; }
.dl.going .arrow { animation: drop 0.9s var(--ease) 2; }
@keyframes drop { 0% { transform: none; } 45% { transform: translateY(14px); opacity: 0; } 46% { transform: translateY(-14px); opacity: 0; } 100% { transform: none; opacity: 1; } }
/* fala po kliknięciu: jednolity okrąg, bez gradientu */
.dl .wave { position: absolute; z-index: -1; width: 12px; height: 12px; border-radius: 50%; background: currentColor; opacity: 0.16; transform: translate(-50%, -50%) scale(0); pointer-events: none; animation: wave 0.9s var(--ease) forwards; }
@keyframes wave { to { transform: translate(-50%, -50%) scale(60); opacity: 0; } }

.meta { margin: 0; font-size: 14px; color: var(--dim); }
.meta .sep { color: var(--faint); padding: 0 6px; }

.more {
  margin-top: clamp(48px, 7vw, 72px); display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 13px; color: var(--faint); text-decoration: none; transition: color 0.2s ease;
}
.more:hover { color: var(--fg); }
.more i { display: block; width: 1px; height: 36px; background: currentColor; transform-origin: top; animation: hint 2.6s var(--ease) infinite; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 50.1% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* sekcje */
section { padding: clamp(88px, 13vw, 168px) max(16px, 6vw); }
.wrap { max-width: 1080px; margin: 0 auto; }
.kicker { margin: 0 0 18px; font-size: 14px; color: var(--dim); }
.h2 { margin: 0; font-size: clamp(32px, 5vw, 60px); line-height: 1.05; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; max-width: 16ch; }

.steps { list-style: none; margin: clamp(48px, 7vw, 88px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 5vw, 64px); }
.steps li { border-top: 1px solid var(--line); padding-top: 28px; position: relative; }
.steps li::before { content: ""; position: absolute; top: -1px; left: 0; width: 100%; height: 1px; background: var(--fg); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) calc(var(--i, 0) * 120ms + 200ms); }
.steps li.in::before { transform: scaleX(1); }
.num { display: block; font-size: clamp(56px, 7vw, 88px); line-height: 1; font-weight: 200; letter-spacing: -0.05em; color: var(--faint); font-variant-numeric: tabular-nums; }
.steps h3 { margin: 28px 0 8px; font-size: 21px; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; }
.steps p { margin: 0; color: var(--dim); max-width: 32ch; }

/* LinU(x) */
.linux { text-align: center; }
.linux .wrap { display: flex; flex-direction: column; align-items: center; }
.mark { margin: 0; font-size: clamp(64px, 13vw, 176px); line-height: 0.95; font-weight: 600; letter-spacing: -0.06em; white-space: nowrap; }
.mark .x { display: inline-block; color: var(--faint); transition: color 1.4s ease 0.5s, letter-spacing 1.4s var(--ease) 0.3s; letter-spacing: 0.08em; }
.mark.in .x { color: var(--fg); letter-spacing: -0.06em; }
.mark-sub { margin: 22px 0 0; font-size: clamp(20px, 2.4vw, 28px); color: var(--dim); letter-spacing: -0.015em; }
.facts { list-style: none; margin: clamp(56px, 8vw, 96px) 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; font-size: clamp(19px, 2.2vw, 26px); line-height: 1.35; letter-spacing: -0.015em; }
.facts li { color: var(--dim); }
.facts b { color: var(--fg); font-weight: 600; }

/* aplikacje: nazwa i jedno zdanie, bez kafelków */
.apps-list { margin: clamp(48px, 7vw, 88px) 0 0; padding: 0; }
.app { display: grid; grid-template-columns: minmax(160px, 1fr) 2fr; gap: 8px 32px; align-items: baseline; padding: 30px 0; border-top: 1px solid var(--line); }
.app:last-child { border-bottom: 1px solid var(--line); }
.app dt { font-size: clamp(24px, 3vw, 36px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.app dd { margin: 0; font-size: clamp(17px, 1.8vw, 20px); color: var(--dim); }

/* zakończenie */
.end { text-align: center; padding-bottom: clamp(96px, 12vw, 160px); }
.end .wrap { display: flex; flex-direction: column; align-items: center; }
.end .h2 { margin: 0 auto; }

footer {
  display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between;
  padding: 28px max(16px, 4vw) 36px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint);
}
footer .logo { width: 20px; height: auto; aspect-ratio: 184.6 / 178.5; color: var(--faint); }
footer .l { display: flex; align-items: center; gap: 12px; }
footer nav { display: flex; gap: 22px; }

/* strony pomocnicze (pobieranie, pomoc, 404): sam środek */
.solo { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 96px 16px; }
.solo .logo { width: 72px; height: auto; aspect-ratio: 184.6 / 178.5; transform: translateX(-4%); }
.solo .h2 { margin-top: 28px; max-width: 18ch; font-size: clamp(30px, 5vw, 48px); }
.solo .lead { max-width: 40ch; font-size: 18px; }
.solo .back { margin-top: 36px; font-size: 15px; }

/* ruch: wejście „rise” (DESIGN.md §8) i odsłanianie przy przewijaniu */
.rise { animation: rise 0.9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
.hero .logo.rise { animation-name: rise-logo; }
@keyframes rise-logo { from { opacity: 0; transform: translateX(-4%) translateY(14px) scale(0.94); } to { opacity: 1; transform: translateX(-4%); } }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* bohater lekko odpływa przy przewijaniu (tylko tam, gdzie przeglądarka to umie) */
@supports (animation-timeline: scroll()) {
  .hero-in { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
  @keyframes drift { to { opacity: 0.15; transform: translateY(-6vh) scale(0.96); } }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .steps { grid-template-columns: 1fr; gap: 44px; }
  .app { grid-template-columns: 1fr; padding: 24px 0; }
  .dl { --h: 68px; font-size: 18px; width: 100%; max-width: 380px; padding: 0 28px; }
  .top nav { gap: 16px; }
  .top .help { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .mark .x { color: var(--fg); letter-spacing: -0.06em; }
  .steps li::before { transform: scaleX(1); }
}
