/* mindbots.pl — strona główna: spis bezpłatnych programów. Tryb jasny i ciemny wg ustawień systemu.
   Tokeny kolorów jak w aplikacjach (chinski / angielski), akcent własny: głęboki turkus. */
:root {
  --bg: #f5f6f4; --bg2: #eceeea; --card: #ffffff; --card2: #f8f9f7; --ink: #17191e; --muted: #6b7079; --faint: #a3a7ae;
  --accent: #0f766e; --accent-strong: #0b5c56; --accent-soft: #dff1ee; --grid: #e2e5e1; --line: #e9ebe7;
  --zh: #c2321c; --zh-strong: #a5290f; --zh-soft: #fbe9e5;
  --en: #1f5fa8; --en-strong: #174a85; --en-soft: #e4eefb;
  --lab: #6d4fc2; --lab-soft: #eee9fb;
  --game: #3f9a3a; --game-strong: #2f7a2c; --game-soft: #e4f4de;
  --shadow: 0 1px 2px rgba(20, 20, 30, .05), 0 4px 10px -4px rgba(20, 20, 30, .10), 0 18px 36px -18px rgba(20, 20, 30, .20);
  --shadow-up: 0 2px 4px rgba(20, 20, 30, .06), 0 10px 20px -8px rgba(20, 20, 30, .16), 0 28px 48px -20px rgba(20, 20, 30, .24);
  --radius: 20px; --font: "Inter", -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --font-zh: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131417; --bg2: #1a1b20; --card: #1e2026; --card2: #24262d; --ink: #ecedf0; --muted: #a2a6b0; --faint: #6b6f78;
    --accent: #3fbfae; --accent-strong: #63d4c5; --accent-soft: #12302c; --grid: #30333b; --line: #2a2d34;
    --zh: #f0654e; --zh-strong: #ff7a63; --zh-soft: #3a1f1a;
    --en: #7cb0f5; --en-strong: #9cc4ff; --en-soft: #1a2b45;
    --lab: #a58cf0; --lab-soft: #26203d;
    --game: #6fce6a; --game-strong: #8fe08a; --game-soft: #1d3a1c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 14px -6px rgba(0, 0, 0, .5), 0 20px 40px -18px rgba(0, 0, 0, .7);
    --shadow-up: 0 2px 4px rgba(0, 0, 0, .5), 0 12px 24px -8px rgba(0, 0, 0, .6), 0 30px 50px -20px rgba(0, 0, 0, .8);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; }
body { background-image: radial-gradient(1100px 480px at 50% -220px, var(--accent-soft), transparent 70%); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px 60px; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; letter-spacing: -.015em; line-height: 1.2; }
p { margin: 0; }
[hidden] { display: none !important; }

/* nagłówek */
header { position: sticky; top: 0; z-index: 10; margin: 0 -16px 8px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand .mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; box-shadow: 0 2px 0 var(--accent-strong); }
.brand .mark svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.brand small { font-weight: 500; color: var(--muted); font-size: 13px; margin-left: 2px; }
nav { display: flex; gap: 4px; align-items: center; }
nav a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 600; padding: 7px 10px; border-radius: 999px; }
nav a:hover { color: var(--ink); background: var(--card2); }
@media (max-width: 640px) { nav a { display: none; } }
.lang { border: 1px solid var(--grid); background: var(--card); color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 999px; cursor: pointer; box-shadow: 0 2px 0 var(--grid); }
.lang:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--grid); }

/* hero */
.hero { padding: 44px 0 22px; max-width: 760px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.kicker i { width: 18px; height: 2px; background: var(--accent); border-radius: 2px; }
.hero h1 { font-size: clamp(30px, 5.2vw, 46px); font-weight: 700; line-height: 1.08; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { margin-top: 16px; font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); max-width: 640px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 600; box-shadow: 0 1px 0 var(--grid); }
.chip svg { width: 15px; height: 15px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* sekcje */
section { padding: 30px 0 6px; }
.shead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.shead h2 { font-size: 24px; font-weight: 700; }
.shead p { color: var(--muted); font-size: 15px; }
@media (max-width: 640px) { .shead { flex-direction: column; gap: 4px; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .18s; }
@media (hover: hover) { a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); } }

/* programy */
.programs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 680px) { .programs { grid-template-columns: minmax(0, 1fr); } }
.prog { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--ink); --c: var(--accent); --cs: var(--accent-strong); --csoft: var(--accent-soft); }
.prog.zh { --c: var(--zh); --cs: var(--zh-strong); --csoft: var(--zh-soft); }
.prog.en { --c: var(--en); --cs: var(--en-strong); --csoft: var(--en-soft); }
.prog.game { --c: var(--game); --cs: var(--game-strong); --csoft: var(--game-soft); }
.prog.game .tile { background-image: none; background: linear-gradient(#dff0fb, #b9dcf1); }
.prog.game .tile .scene { width: 100%; height: 100%; display: block; }
.prog.game .tile .badge { color: #2a6b2f; }
.prog .tile { position: relative; height: 150px; background: var(--csoft); background-image: radial-gradient(420px 220px at 15% 110%, color-mix(in srgb, var(--c) 28%, transparent), transparent 70%); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.prog .tile .glyph { font-size: 78px; font-weight: 600; line-height: 1; color: var(--c); letter-spacing: -.03em; }
.prog.zh .tile .glyph { font-family: var(--font-zh); }
.prog.en .tile .glyph { font-family: var(--font-serif); font-weight: 600; }
.prog .tile .badge { position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--card) 80%, transparent); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c); }
.prog .tile .dots { position: absolute; right: 16px; bottom: 14px; display: flex; gap: 6px; }
.prog .tile .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); opacity: .35; }
.prog .tile .dots i:first-child { opacity: 1; }
.prog .body { padding: 18px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prog h3 { font-size: 20px; font-weight: 700; }
.prog .sub { color: var(--c); font-weight: 600; font-size: 14px; margin-top: -4px; }
.prog p.desc { color: var(--muted); font-size: 15px; flex: 1; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.facts span { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line); color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--c); background: var(--c); color: #fff; font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer;
  box-shadow: 0 3px 0 var(--cs), 0 10px 20px -10px var(--c); transition: transform .08s, box-shadow .08s; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--cs); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--grid); box-shadow: 0 2px 0 var(--grid); --cs: var(--grid); }
.btn.ghost:active { box-shadow: 0 1px 0 var(--grid); }
.prog .url { font-size: 12px; color: var(--faint); text-align: center; margin-top: 6px; }

/* jak zacząć: 3 kroki */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 680px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step { padding: 18px; }
.step .n { width: 34px; height: 34px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); font-weight: 800; display: grid; place-items: center; font-size: 15px; margin-bottom: 12px; box-shadow: 0 2px 0 color-mix(in srgb, var(--accent) 35%, transparent); }
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* zasady */
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 680px) { .rules { grid-template-columns: minmax(0, 1fr); } }
.rule { padding: 18px; display: flex; gap: 14px; align-items: flex-start; }
.rule .ic { flex: none; width: 42px; height: 42px; border-radius: 13px; background: var(--accent-soft); display: grid; place-items: center; }
.rule .ic svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.rule h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.rule p { color: var(--muted); font-size: 14.5px; }

/* pracownia */
.lab { padding: 20px 20px 18px; border-left: 4px solid var(--lab); }
.lab .tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--lab); background: var(--lab-soft); padding: 4px 9px; border-radius: 999px; margin-bottom: 10px; }
.lab p { color: var(--muted); font-size: 15px; }
.lab ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.lab li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.lab li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--lab); }
.lab li b { font-weight: 600; }
.lab li small { display: block; color: var(--muted); font-size: 13.5px; }

/* podaj dalej + kto to robi */
.two { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
@media (max-width: 760px) { .two { grid-template-columns: minmax(0, 1fr); } }
.share, .who { padding: 22px; }
.share h2, .who h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.share p, .who p { color: var(--muted); font-size: 15px; }
.share p + p, .who p + p { margin-top: 10px; }
.share .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.share .btn { margin-top: 0; }
.share code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; background: var(--card2); border: 1px solid var(--line); padding: 6px 10px; border-radius: 10px; color: var(--ink); }
.who b { color: var(--ink); font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-up); transition: opacity .2s, transform .2s; pointer-events: none; z-index: 30; }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* stopka */
footer { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; color: var(--muted); font-size: 13.5px; }
footer a { color: var(--muted); }

/* animacje */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hero, section { animation: rise .42s cubic-bezier(.2, .8, .2, 1) both; }
section:nth-of-type(2) { animation-delay: .05s; } section:nth-of-type(3) { animation-delay: .1s; } section:nth-of-type(4) { animation-delay: .15s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
