/* domyślnie ciemny motyw; jasny po przełączeniu (data-theme="light") */
:root {
  --bg: #11100e;
  --bg-2: #24211c;
  --fg: #f4f1ea;
  --fg-2: #c9c3b6;
  --soft: #8f897c;
  --rule: rgba(244, 241, 234, .12);
  --card: #1a1815;
  --edge: #f4f1ea;
  --shadow: #45403a;
  --btn: #f4f1ea;
  --btn-fg: #16140f;
  --warn-bg: #1d1b17;
  --warn-edge: rgba(244, 241, 234, .14);
  --sc: #ff5500;
  --sc-2: #ff8a3d;
  --accent: #ff4fd8;
  --font: "Inter", system-ui, "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", "Inter", sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f4f1ea;
  --bg-2: #ebe6dc;
  --fg: #16140f;
  --fg-2: #3a362e;
  --soft: #7a7468;
  --rule: rgba(22, 20, 15, .12);
  --card: #fff;
  --edge: #16140f;
  --shadow: #16140f;
  --btn: #16140f;
  --btn-fg: #fff;
  --warn-bg: #16140f;
  --warn-edge: transparent;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 var(--font);
  transition: background-color .3s, color .3s;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* delikatne ziarno papieru */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--sc); color: #fff; }
:focus-visible { outline: 2px solid var(--sc); outline-offset: 3px; border-radius: 6px; }
code { font: .86em var(--mono); background: var(--bg-2); padding: .12em .4em; border-radius: 5px; }
kbd {
  font: 500 .8em var(--mono); display: inline-block; min-width: 1.9em; padding: .15em .5em; text-align: center;
  background: var(--card); border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 6px; color: var(--fg);
}
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.link { color: var(--sc); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }

/* ---------- przyciski */
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px;
  font: 600 16px var(--font); color: var(--btn-fg); background: var(--btn); border-radius: 14px;
  box-shadow: 4px 4px 0 var(--sc);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--sc); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--sc); }
.btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; border-radius: 11px; box-shadow: 3px 3px 0 var(--sc); }

/* ---------- nawigacja */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; border-bottom: 1px solid var(--rule); }
.brand { display: flex; align-items: center; gap: 10px; font: 800 19px var(--display); letter-spacing: -.02em; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.theme {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; cursor: pointer;
  color: var(--fg); background: transparent; border: 1.5px solid var(--rule); transition: border-color .2s, transform .2s var(--ease);
}
.theme:hover { border-color: var(--fg); }
.theme:active { transform: scale(.92); }
.theme svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lang { width: auto; min-width: 40px; padding: 0 10px; font: 600 13px var(--mono); letter-spacing: .04em; }
.theme .sun { display: none; }
:root[data-theme="light"] .theme .sun { display: block; }
:root[data-theme="light"] .theme .moon { display: none; }

/* ---------- hero */
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding: 64px 0 40px; }
h1 { font: 800 clamp(56px, 10.5vw, 144px)/.88 var(--display); letter-spacing: -.055em; margin: 0; }
.mark { position: relative; color: var(--sc); white-space: nowrap; }
.mark::after {
  content: ""; position: absolute; left: 2%; right: 4%; bottom: .06em; height: .09em; border-radius: 99px;
  background: var(--fg); transform-origin: left; animation: draw 1s var(--ease) .4s both;
}
@keyframes draw { from { transform: scaleX(0); } }
.hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: 22px; padding-bottom: 10px; }
.badge { font: 500 13px var(--mono); padding: 6px 12px; border: 1.5px solid var(--edge); border-radius: 99px; transform: rotate(-3deg); background: var(--card); }
.cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- ekran z widgetem */
.screen {
  position: relative; height: 460px; border-radius: 28px; overflow: clip; isolation: isolate;
  border: 2px solid var(--edge); box-shadow: 10px 10px 0 var(--shadow);
}
.wall {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 80% at 85% 10%, #ff7a2e 0, transparent 60%),
    radial-gradient(50% 70% at 10% 100%, #6b3cff 0, transparent 65%),
    radial-gradient(40% 60% at 55% 60%, #ff4fb3 0, transparent 70%),
    linear-gradient(135deg, #2b1a4a, #120c1f);
}
.wall::after { /* „fale” na tapecie */
  content: ""; position: absolute; inset: 0; opacity: .18;
  background: repeating-radial-gradient(circle at 20% 120%, transparent 0 22px, rgba(255, 255, 255, .6) 23px 24px);
}
.app-win {
  position: absolute; left: 6%; top: 12%; width: 46%; height: 64%; border-radius: 14px;
  background: rgba(250, 248, 244, .92); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
}
.app-bar { height: 34px; display: flex; gap: 7px; align-items: center; padding-left: 14px; border-bottom: 1px solid var(--rule); }
.app-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d8d2c6; }
.app-lines { padding: 22px; display: grid; gap: 12px; }
.app-lines b { height: 10px; border-radius: 6px; background: #e4ded2; }
.app-lines b:nth-child(1) { width: 55%; height: 16px; background: #d6cfc1; }
.app-lines b:nth-child(3) { width: 80%; } .app-lines b:nth-child(5) { width: 40%; }
.fit { position: absolute; right: 4%; top: 7%; width: calc(460px * var(--fit, 1)); height: calc(132px * var(--fit, 1)); animation: drop .9s var(--ease) .3s both; }
@keyframes drop { from { opacity: 0; transform: translateY(-24px); } }
.taskbar {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); height: 46px; padding: 0 16px;
  display: flex; align-items: center; gap: 10px; border-radius: 14px;
  background: rgba(20, 16, 30, .6); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, .1);
}
.taskbar i { width: 26px; height: 26px; border-radius: 7px; background: rgba(255, 255, 255, .18); }
.taskbar i:first-child { background: linear-gradient(135deg, #4cc2ff, #0078d4); }
.clock { margin-left: 10px; font: 500 12px var(--font); color: rgba(255, 255, 255, .85); }
.try {
  position: absolute; left: 6%; bottom: 76px; margin: 0; max-width: 40%; padding: 8px 14px; border-radius: 12px;
  font-size: 14px; color: var(--fg); background: var(--card); box-shadow: 3px 3px 0 var(--shadow); border: 1.5px solid var(--edge);
}
.try b { color: var(--sc); }

/* ---------- krótki opis */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 72px; border-top: 2px solid var(--fg); }
.fact { padding: 28px 28px 8px 0; }
.fact + .fact { padding-left: 28px; border-left: 1px solid var(--rule); }
.fact b { display: block; font: 800 34px/1.1 var(--display); letter-spacing: -.03em; margin-bottom: 8px; }
.fact p { margin: 0; color: var(--fg-2); font-size: 15.5px; }

/* ---------- instalacja + obsługa */
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 88px; }
.panel { background: var(--card); border: 2px solid var(--edge); border-radius: 24px; padding: 32px; }
h2 { font: 800 clamp(28px, 3.4vw, 38px)/1.1 var(--display); letter-spacing: -.035em; margin: 0 0 24px; display: flex; align-items: center; gap: 14px; }
.num { font: 500 13px var(--mono); color: #fff; background: var(--sc); padding: 5px 9px; border-radius: 8px; letter-spacing: 0; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 16px; }
.steps li { counter-increment: s; position: relative; padding-left: 46px; color: var(--fg-2); }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font: 700 14px var(--display); color: var(--fg); border: 2px solid var(--fg);
}
.steps b { color: var(--fg); }
.note { margin: 24px 0 0; padding-top: 18px; border-top: 1px dashed var(--rule); font-size: 14px; color: var(--soft); }
.keys { margin: 0; display: grid; }
.keys div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.keys div:last-child { border-bottom: 0; }
.keys dt { color: var(--fg-2); }
.keys dd { margin: 0; text-align: right; font-size: 14.5px; }

/* ---------- antywirus */
.warn { margin-top: 88px; background: var(--warn-bg); border: 1px solid var(--warn-edge); color: #f4f1ea; border-radius: 28px; padding: 44px; position: relative; overflow: clip; }
.warn::before { content: "!"; position: absolute; right: -10px; top: -60px; font: 800 320px/1 var(--display); color: var(--sc); opacity: .9; transform: rotate(8deg); }
.warn h2 { position: relative; max-width: 14em; }
.reasons { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.reasons div { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; padding: 22px; }
.reasons h3 { font: 700 19px var(--display); margin: 0 0 8px; color: #fff; }
.reasons p { margin: 0; font-size: 14.5px; color: #c9c3b6; }
.fix { position: relative; margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.fix p { margin: 0; color: #e8e3d8; }
.fix em { color: #fff; font-style: normal; font-weight: 600; }
.fix code { background: rgba(255, 255, 255, .1); color: #fff; }
.hash { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.hash span { font: 500 11px var(--mono); color: #8f897c; }
.hash code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: none; color: #c9c3b6; font-size: 12px; }
.sha-help { font-size: 13.5px; color: #a9a397 !important; max-width: 62em; }
.sha-help b { color: #e8e3d8; }
.copy { font: 600 12px var(--font); padding: 7px 12px; border-radius: 8px; border: 0; background: var(--sc); color: #fff; cursor: pointer; }

.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 40px 0; margin-top: 64px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--soft); }
.foot span:first-child { font: 800 15px var(--display); color: var(--fg); }
.foot .author { font: 500 12px var(--mono); color: var(--soft); opacity: .8; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; padding: 10px 16px; border-radius: 12px; background: var(--btn); color: var(--btn-fg); font-size: 14px; transition: opacity .3s, transform .3s var(--ease); pointer-events: none; z-index: 100; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero { flex-direction: column; align-items: flex-start; padding-top: 40px; }
  .hero-side { align-items: flex-start; }
  .cta { justify-content: flex-start; }
  .cols, .reasons { grid-template-columns: minmax(0, 1fr); }
  .app-win { width: 70%; }
  .try { max-width: none; right: 6%; }
}
@media (max-width: 640px) {
  .screen { height: 340px; border-radius: 20px; box-shadow: 6px 6px 0 var(--shadow); }
  .fit { right: 50%; transform: translateX(50%); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .fact, .fact + .fact { padding: 22px 0 6px; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--rule); }
  .panel, .warn { padding: 24px; }
  .try { bottom: 70px; font-size: 13px; }
  .keys div { flex-direction: column; align-items: flex-start; gap: 4px; }
  .keys dd { text-align: left; }
  .foot { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- widget (odwzorowanie 1:1 układu 460×132 z aplikacji) */
.w {
  --lvl: 0;
  --zoom: 1;
  position: absolute; left: 0; top: 0;
  width: 460px; height: 132px;
  transform-origin: 0 0;
  transform: scale(calc(var(--fit, 1)));
  border-radius: 10px;
  overflow: clip;
  isolation: isolate;
  box-shadow: 0 0 0 1px rgba(90, 90, 100, .55), 0 30px 70px -20px rgba(0, 0, 0, .9), 0 10px 30px -10px rgba(255, 79, 216, .25);
  user-select: none;
  font-family: "Segoe UI Variable Display", "Segoe UI", var(--font);
}
.art {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 70% 28%, #ffd1f4 0 6%, transparent 7%),
    radial-gradient(circle at 30% 75%, rgba(0, 229, 255, .9), transparent 42%),
    radial-gradient(circle at 78% 70%, rgba(255, 79, 216, .95), transparent 48%),
    linear-gradient(160deg, #2a0a4a 0%, #120424 60%, #05010c 100%);
}
.art::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 18%; height: 34%;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .0) 0 7px, rgba(255, 255, 255, .22) 7px 8px),
              linear-gradient(0deg, rgba(0, 229, 255, .35), transparent);
  transform: perspective(60px) rotateX(38deg);
  transform-origin: bottom;
}
.art::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: 44%; height: 2px;
  background: linear-gradient(90deg, transparent, #fff, transparent); box-shadow: 0 0 12px #ff9cf0;
}
.w-bg { position: absolute; inset: -60px; z-index: -3; }
.w-bg { background: radial-gradient(circle at 30% 60%, rgba(0, 229, 255, .7), transparent 40%), radial-gradient(circle at 60% 50%, rgba(255, 79, 216, .8), transparent 50%), #1a0630; filter: blur(26px) brightness(.62) saturate(1.5); }
.w-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(8, 8, 10, .24), rgba(8, 8, 10, .66)); }
.w-glow {
  position: absolute; left: 18px; top: 18px; width: 96px; height: 96px; border-radius: 16px; z-index: -1;
  box-shadow: 0 0 calc(4px + 8px * var(--lvl)) calc(1px + 3px * var(--lvl)) rgba(255, 190, 240, calc(.9 * var(--lvl))), 0 0 calc(20px + 42px * var(--lvl)) calc(3px + 18px * var(--lvl)) rgba(255, 79, 216, calc(.3 + .65 * var(--lvl)));
}
.w-cover {
  position: absolute; left: 18px; top: 18px; width: 96px; height: 96px; border-radius: 16px; overflow: clip;
  transform: scale(calc(1 + .045 * var(--lvl)));
}
.w.pop .w-cover { animation: pop .6s cubic-bezier(.34, 1.8, .64, 1); }
@keyframes pop { from { transform: scale(.55); } }
.w-label {
  position: absolute; left: 134px; top: 17px; height: 14px; display: flex; align-items: center; gap: 8px;
  font: 700 12.5px/1 var(--font); letter-spacing: 1.9px; color: var(--accent);
}
.eq { display: flex; gap: 2px; align-items: flex-end; height: 10px; }
.eq i { width: 2.4px; height: 20%; border-radius: 2px; background: var(--accent); }
.w-title { position: absolute; left: 134px; top: 36px; width: 206px; height: 26px; overflow: clip;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); }
.w-title.scrolling { -webkit-mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent); }
.track { display: flex; gap: 48px; white-space: nowrap; font-size: 17px; font-weight: 600; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .55); will-change: transform; }
.w-artist { position: absolute; left: 134px; top: 62px; font-size: 13px; color: #cdcdd6; text-shadow: 0 1px 4px rgba(0, 0, 0, .55); }
.w-btn { position: absolute; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; border-radius: 50%; color: #fff; transition: transform .25s cubic-bezier(.34, 1.8, .64, 1), background .2s; }
.w-btn svg { width: 20px; height: 20px; overflow: visible; }
.w-btn path { fill: none; stroke: rgba(255, 255, 255, .86); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
.w-prev, .w-next { width: 26px; height: 26px; top: 33px; }
.w-prev { left: 347px; } .w-next { left: 423px; }
.w-prev:hover, .w-next:hover { background: rgba(255, 255, 255, .16); transform: scale(1.12); }
.w-prev:hover path, .w-next:hover path { stroke: #fff; }
.w-play { width: 40px; height: 40px; left: 378px; top: 26px; background: var(--sc); }
.w-play:hover { background: #ff7033; transform: scale(1.12); }
.w-btn:active { transform: scale(.82); }
.w-play svg { width: 24px; height: 24px; position: relative; }
.w-play polygon { fill: #fff; }
.ring { position: absolute; inset: calc(-2px - 4px * var(--lvl)); border-radius: 50%; border: 2px solid color-mix(in srgb, var(--accent) calc(25% + 60% * var(--lvl)), transparent); opacity: 0; transition: opacity .3s; pointer-events: none; }
.w.playing .ring { opacity: 1; }
.ripple { position: absolute; border-radius: 50%; border: 2.5px solid var(--sc); pointer-events: none; animation: ripple .5s var(--ease) forwards; }
@keyframes ripple { to { transform: scale(1.9); opacity: 0; border-width: .5px; } }
.w-time { position: absolute; right: 18px; top: 68px; font: 11px/14px "Segoe UI", var(--font); color: #b4b4bc; font-variant-numeric: tabular-nums; }
.w-wave { position: absolute; left: 131px; top: 79px; width: 316px; height: 44px; cursor: pointer; }
.w-tip { position: absolute; top: 76px; transform: translateX(-50%); padding: 0 7px; height: 15px; line-height: 15px; font: 700 11px "Segoe UI", var(--font); color: #fff; background: var(--sc); border-radius: 8px; pointer-events: none; }
.w-x, .w-grip { position: absolute; opacity: 0; transition: opacity .25s; pointer-events: none; }
.w:hover .w-x, .w:hover .w-grip { opacity: 1; }
.w-x { right: 6px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #fff; font: 12px/16px var(--font); text-align: center; }
.w-grip { right: 5px; bottom: 5px; width: 12px; height: 12px; background: linear-gradient(135deg, transparent 0 42%, rgba(255,255,255,.45) 42% 50%, transparent 50% 62%, rgba(255,255,255,.45) 62% 70%, transparent 70% 82%, rgba(255,255,255,.45) 82% 90%, transparent 90%); }

