/* ==========================================================================
   dziudek.pl
   0. Fonty
   1. Tokeny i reset
   2. Tło
   3. Elementy wspólne (przyciski, badge, karty, sekcje)
   4. Belka, nagłówek
   5. Hero
   6. Sekcje treści
   7. Stopka
   8. Intro (symulowany czat) i przejście "renderowania"
   9. Animacje wejścia i reveal przy scrollu
   10. Podstrona tekstowa (polityka prywatności)
   11. Popup z wykresem zajętości
   12. Strona 404
   13. Responsywność i prefers-reduced-motion
   ========================================================================== */

/* 0. Fonty
   Lokalne kopie w assets/fonts (pobrane z fonts.bunny.net), bez zewnętrznych CDN.
   Bricolage Grotesque, Inter, JetBrains Mono: licencja SIL Open Font License 1.1.
   Każda odmiana to dwa pliki: latin i latin-ext (polskie znaki); przeglądarka
   dobiera je po unicode-range. Są tu tylko grubości faktycznie użyte w tym pliku,
   więc nowa grubość w CSS wymaga dogrania jej plików i reguł @font-face.
   ========================================================================== */

@font-face {
	font-family: "Bricolage Grotesque";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/bricolage-grotesque-latin-ext-600-normal.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;
}

@font-face {
	font-family: "Bricolage Grotesque";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/bricolage-grotesque-latin-600-normal.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: "Bricolage Grotesque";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("../fonts/bricolage-grotesque-latin-ext-800-normal.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;
}

@font-face {
	font-family: "Bricolage Grotesque";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("../fonts/bricolage-grotesque-latin-800-normal.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: 400;
	font-display: swap;
	src: url("../fonts/inter-latin-ext-400-normal.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;
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/inter-latin-400-normal.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: 600;
	font-display: swap;
	src: url("../fonts/inter-latin-ext-600-normal.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;
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/inter-latin-600-normal.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: "JetBrains Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/jetbrains-mono-latin-ext-400-normal.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;
}

@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/jetbrains-mono-latin-400-normal.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: "JetBrains Mono";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/jetbrains-mono-latin-ext-500-normal.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;
}

@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/jetbrains-mono-latin-500-normal.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;
}

/* 1. Tokeny i reset
   ========================================================================== */

@property --angle {
	syntax: "<angle>";
	inherits: false;
	initial-value: 0deg;
}

:root {
	--bg: #07070c;
	--bg-raised: #0c0d15;
	--text: #ecebf3;
	--muted: #9a9bb0;
	--line: rgba(255, 255, 255, 0.09);
	--accent: #ff8a3d;
	--accent-soft: #ffb37a;
	--accent-2: #7c8cff;
	--ok: #5be3a0;
	--bad: #ff6b6b;

	--font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);

	--container: 1200px;
	--gutter: clamp(20px, 4vw, 48px);
	--radius: 28px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	background: var(--bg);
	color-scheme: dark;
	scroll-behavior: smooth;
	scroll-padding-top: 88px;
	scrollbar-gutter: stable;
	-webkit-text-size-adjust: 100%;
}

html.intro {
	overflow: hidden;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
ul,
ol {
	margin: 0;
}

ul,
ol {
	padding: 0;
	list-style: none;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
}

::selection {
	background: var(--accent);
	color: #160a02;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 4px;
	border-radius: 6px;
}

.mono {
	font-family: var(--font-mono);
	font-size: 0.8125rem;
	letter-spacing: 0.02em;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 200;
	padding: 10px 16px;
	border-radius: 10px;
	background: var(--accent);
	color: #160a02;
	font-weight: 600;
	text-decoration: none;
	transform: translateY(-200%);
}

.skip-link:focus {
	transform: none;
}

.container {
	width: min(100% - 2 * var(--gutter), var(--container));
	margin-inline: auto;
}

.site {
	position: relative;
	overflow-x: clip;
}

/* 2. Tło
   ========================================================================== */

.bg {
	position: fixed;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
}

.bg__blob {
	position: absolute;
	width: 70vmax;
	aspect-ratio: 1;
	border-radius: 50%;
	will-change: transform;
}

.bg__blob--a {
	top: -30vmax;
	right: -22vmax;
	background: radial-gradient(circle, rgba(255, 138, 61, 0.26), transparent 62%);
	animation: drift-a 26s ease-in-out infinite alternate;
}

.bg__blob--b {
	bottom: -36vmax;
	left: -26vmax;
	background: radial-gradient(circle, rgba(124, 140, 255, 0.24), transparent 62%);
	animation: drift-b 32s ease-in-out infinite alternate;
}

.bg__blob--c {
	top: 30%;
	left: 35%;
	width: 46vmax;
	background: radial-gradient(circle, rgba(196, 92, 255, 0.1), transparent 60%);
	animation: drift-c 38s ease-in-out infinite alternate;
}

.bg__grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 10%, transparent 75%);
	mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 10%, transparent 75%);
}

.bg__noise {
	position: absolute;
	inset: 0;
	opacity: 0.07;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Poświata podążająca za kursorem (zmienne ustawia script.js). */
.bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(520px circle at var(--px, 50%) var(--py, 30%), rgba(124, 140, 255, 0.09), transparent 60%);
}

@keyframes drift-a {
	to {
		transform: translate3d(-14vmax, 12vmax, 0) scale(1.15);
	}
}

@keyframes drift-b {
	to {
		transform: translate3d(16vmax, -10vmax, 0) scale(1.1);
	}
}

@keyframes drift-c {
	to {
		transform: translate3d(-10vmax, -8vmax, 0) scale(1.3);
	}
}

/* 3. Elementy wspólne
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 24px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background-color 0.25s, border-color 0.25s;
}

.btn span {
	display: inline-block;
	transition: transform 0.35s var(--ease-out);
}

.btn:hover {
	transform: translateY(-2px);
}

.btn:hover span {
	transform: translateX(4px);
}

.btn--primary {
	background: linear-gradient(180deg, var(--accent-soft), var(--accent));
	color: #1a0c02;
}

.btn--primary:hover {
	box-shadow: 0 12px 40px -8px rgba(255, 138, 61, 0.6);
}

.btn--ghost {
	border-color: var(--line);
	background: rgba(255, 255, 255, 0.03);
}

.btn--ghost:hover {
	border-color: rgba(255, 255, 255, 0.28);
	background: rgba(255, 255, 255, 0.07);
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 7px 13px 7px 11px;
	border: 1px solid rgba(255, 107, 107, 0.4);
	border-radius: 999px;
	background: rgba(40, 12, 14, 0.75);
	color: #ffd0d0;
	font-family: var(--font-mono);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
}

button.badge {
	margin: 0;
	cursor: pointer;
	transition: border-color 0.25s, background-color 0.25s, color 0.25s;
}

button.badge:hover,
button.badge[aria-expanded="true"] {
	border-color: rgba(255, 107, 107, 0.85);
	background: rgba(64, 16, 20, 0.9);
	color: #fff;
}

.badge__dot {
	position: relative;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--bad);
}

.badge__dot::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--bad);
	animation: ping 1.8s var(--ease-out) infinite;
}

.badge--inline {
	padding: 4px 9px 4px 8px;
	font-size: 0.65rem;
	vertical-align: 0.1em;
}

@keyframes ping {
	0% {
		transform: scale(1);
		opacity: 0.8;
	}

	80%,
	100% {
		transform: scale(3.2);
		opacity: 0;
	}
}

.section {
	padding-block: clamp(84px, 13vw, 170px);
}

.section__head {
	margin-bottom: clamp(36px, 5vw, 64px);
}

.section__label {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 22px;
	color: var(--muted);
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.section__label span {
	color: var(--accent);
}

.section__label::after {
	content: "";
	flex: 0 1 120px;
	height: 1px;
	background: linear-gradient(90deg, var(--line), transparent);
}

.section__title {
	max-width: 20ch;
	font-family: var(--font-display);
	font-size: clamp(2rem, 5.2vw, 4.25rem);
	font-weight: 600;
	line-height: 1.04;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

.section__title em,
.contact__title em {
	font-style: normal;
	background: linear-gradient(100deg, var(--accent-soft), var(--accent) 55%, #ff5f6d);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Karta z poświatą na krawędzi podążającą za kursorem (--mx/--my ustawia script.js). */
.card {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-height: 300px;
	padding: clamp(24px, 3vw, 38px);
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
}

.card::before,
.card::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.45s ease;
}

.card::before {
	z-index: 2;
	padding: 1px;
	background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 160, 96, 0.9), transparent 45%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	mask-composite: exclude;
}

.card::after {
	z-index: -1;
	background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 138, 61, 0.1), transparent 45%);
}

.glow-group:hover .card::before,
.glow-group:hover .card::after {
	opacity: 1;
}

.card__num {
	color: var(--muted);
}

.card__title {
	font-family: var(--font-display);
	font-size: clamp(1.45rem, 2.4vw, 1.9rem);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

.card__text {
	max-width: 46ch;
	color: var(--muted);
}

/* Tooltip nad słowem w tekście. Hover i focus działają w samym CSS;
   script.js dokłada obsługę dotyku (klik) i zamykanie klawiszem Esc.
   Wyzwalacz jest zwykłym elementem inline, żeby interpunkcja tuż za nim
   nie mogła przeskoczyć do następnego wiersza. */
.tip {
	position: relative;
}

.tip__trigger {
	color: var(--text);
	text-decoration: underline dotted var(--accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
	cursor: help;
}

.tip__bubble {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 12px);
	z-index: 5;
	width: max-content;
	max-width: min(240px, 70vw);
	padding: 8px 12px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 12px;
	background: var(--bg-raised);
	box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.9);
	color: var(--text);
	font-size: 0.8rem;
	font-weight: 400;
	line-height: 1.4;
	text-align: center;
	white-space: normal;
	visibility: hidden;
	opacity: 0;
	transform: translate(-50%, 6px);
	transition: opacity 0.2s ease, transform 0.3s var(--ease-out), visibility 0s 0.2s;
}

/* Niewidoczny mostek nad przerwą między słowem a dymkiem: kursor może wjechać na dymek. */
.tip__bubble::before {
	content: "";
	position: absolute;
	inset: 100% 0 auto;
	height: 14px;
}

.tip__bubble::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -5px;
	width: 8px;
	height: 8px;
	border: solid rgba(255, 255, 255, 0.16);
	border-width: 0 1px 1px 0;
	background: var(--bg-raised);
	transform: translateX(-50%) rotate(45deg);
}

.tip:focus-within .tip__bubble,
.tip.is-open .tip__bubble {
	visibility: visible;
	opacity: 1;
	transform: translate(-50%, 0);
	transition-delay: 0s;
}

/* Tylko urządzenia z prawdziwym hoverem: na dotyku hover "przykleja się" po tapnięciu. */
@media (hover: hover) {
	.tip:hover .tip__bubble {
		visibility: visible;
		opacity: 1;
		transform: translate(-50%, 0);
		transition-delay: 0s;
	}
}

/* Po Esc dymek znika mimo hovera i focusu (musi stać po regułach pokazujących). */
.tip.is-dismissed .tip__bubble {
	visibility: hidden;
	opacity: 0;
}

/* 4. Belka, nagłówek
   ========================================================================== */

.topbar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 10px var(--gutter);
	border-bottom: 1px solid var(--line);
	background: linear-gradient(90deg, rgba(255, 138, 61, 0.14), rgba(124, 140, 255, 0.14));
	font-family: var(--font-mono);
	font-size: 0.78rem;
	line-height: 1.5;
	text-align: center;
	text-wrap: balance;
}

.topbar__icon {
	display: inline-block;
	font-size: 1rem;
	animation: wobble 4s ease-in-out infinite;
}

@keyframes wobble {
	0%,
	80%,
	100% {
		transform: rotate(0);
	}

	85% {
		transform: rotate(-14deg);
	}

	92% {
		transform: rotate(12deg);
	}
}

.header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid var(--line);
	background: rgba(7, 7, 12, 0.62);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	backdrop-filter: blur(16px) saturate(140%);
}

.header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: 64px;
}

.header__progress {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	background: linear-gradient(90deg, var(--accent-2), var(--accent));
	transform: scaleX(var(--progress, 0));
	transform-origin: left;
}

.logo {
	font-family: var(--font-display);
	font-size: 1.3rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	text-decoration: none;
}

.logo span {
	color: var(--accent);
}

.nav {
	display: flex;
	gap: clamp(18px, 2.6vw, 34px);
}

.nav a {
	position: relative;
	padding-block: 6px;
	color: var(--muted);
	font-size: 0.92rem;
	text-decoration: none;
	transition: color 0.25s;
}

.nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.4s var(--ease-out);
}

.nav a:hover {
	color: var(--text);
}

.nav a:hover::after {
	transform: scaleX(1);
	transform-origin: left;
}

/* 5. Hero
   ========================================================================== */

.hero {
	position: relative;
	display: grid;
	align-items: center;
	min-height: calc(100svh - 108px);
	padding-block: clamp(48px, 7vw, 88px) clamp(96px, 10vw, 130px);
}

.hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	align-items: center;
	gap: clamp(32px, 5vw, 72px);
}

.hero__eyebrow {
	margin-bottom: 18px;
	color: var(--muted);
}

.hero__title {
	font-family: var(--font-display);
	font-size: clamp(3.6rem, 11.5vw, 10rem);
	font-weight: 800;
	line-height: 0.9;
	letter-spacing: -0.045em;
}

.hero__line {
	display: block;
	overflow: hidden;
	margin-block: -0.1em;
	padding-block: 0.1em;
	white-space: nowrap;
}

.ch {
	display: inline-block;
	will-change: transform;
}

.hero__line--accent .ch {
	background: linear-gradient(180deg, var(--accent-soft) 20%, var(--accent) 60%, #ff5f3d);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero__lead {
	max-width: 50ch;
	margin-top: clamp(22px, 3vw, 34px);
	color: var(--muted);
	font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

.hero__lead strong {
	color: var(--text);
	font-weight: 600;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: clamp(26px, 3vw, 38px);
}

.hero__visual {
	justify-self: center;
	width: min(100%, 420px);
}

.hero__footnote {
	margin-top: 26px;
	color: var(--muted);
	font-size: 0.72rem;
	text-align: center;
}

.portrait {
	position: relative;
	aspect-ratio: 683 / 775;
	border-radius: 36px;
	transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
	transform-style: preserve-3d;
}

.portrait__ring {
	position: absolute;
	inset: -3px;
	border-radius: 39px;
	background: conic-gradient(from var(--angle), var(--accent), var(--accent-2), transparent 38%, transparent 62%, var(--accent));
	animation: ring-spin 7s linear infinite;
}

.portrait__ring::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: inherit;
	filter: blur(38px);
	opacity: 0.6;
}

@keyframes ring-spin {
	to {
		--angle: 360deg;
	}
}

.portrait__img {
	position: relative;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
}

.portrait__shine {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: radial-gradient(340px circle at var(--sx, 30%) var(--sy, 20%), rgba(255, 255, 255, 0.22), transparent 60%);
	mix-blend-mode: soft-light;
	pointer-events: none;
}

.portrait__badge {
	position: absolute;
	left: -18px;
	bottom: 34px;
	transform: translateZ(50px);
	box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.8);
}

.scroll-cue {
	position: absolute;
	inset-inline: 0;
	bottom: 26px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	width: fit-content;
	margin-inline: auto;
	color: var(--muted);
	font-size: 0.68rem;
	letter-spacing: 0.3em;
	text-decoration: none;
	text-transform: uppercase;
}

.scroll-cue__line {
	position: relative;
	width: 1px;
	height: 44px;
	overflow: hidden;
	background: var(--line);
}

.scroll-cue__line::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--accent);
	animation: cue 2.2s var(--ease-in-out) infinite;
}

@keyframes cue {
	0% {
		transform: translateY(-100%);
	}

	60%,
	100% {
		transform: translateY(100%);
	}
}

/* 6. Sekcje treści
   ========================================================================== */

.bento {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 20px;
}

.card--a,
.card--d {
	grid-column: span 5;
}

.card--b,
.card--c {
	grid-column: span 7;
}

.meter {
	margin-top: auto;
	padding-top: 18px;
}

.meter__head {
	display: flex;
	justify-content: space-between;
	margin-bottom: 10px;
	color: var(--muted);
}

.meter__value {
	color: var(--text);
}

.meter__track {
	height: 8px;
	overflow: hidden;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.08);
}

.meter__fill {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--accent-2), var(--accent));
	transform: scaleX(var(--v, 0));
	transform-origin: left;
}

.meter__note {
	margin-top: 10px;
	color: var(--muted);
	font-size: 0.72rem;
}

.stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin-top: clamp(40px, 6vw, 72px);
}

.stat {
	display: grid;
	align-content: start;
	gap: 10px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

.stat__value {
	font-family: var(--font-display);
	font-size: clamp(2rem, 4.2vw, 3.4rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.03em;
}

.stat:last-child .stat__value {
	color: var(--accent);
}

.stat__label {
	max-width: 32ch;
	color: var(--muted);
	font-size: 0.95rem;
}

.picks {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.pick {
	min-height: 0;
	color: inherit;
	text-decoration: none;
	background:
		radial-gradient(620px circle at 100% 0%, rgba(255, 138, 61, 0.16), transparent 60%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
}

.pick--alt {
	background:
		radial-gradient(620px circle at 100% 0%, rgba(124, 140, 255, 0.2), transparent 60%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
}

.pick__tag {
	color: var(--muted);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.pick__name {
	margin-block: 4px 2px;
	font-family: var(--font-display);
	font-size: clamp(3.2rem, 7.5vw, 6rem);
	font-weight: 800;
	line-height: 0.95;
	letter-spacing: -0.04em;
	transition: transform 0.6s var(--ease-out);
}

.pick__link {
	display: inline-flex;
	gap: 8px;
	padding-top: 10px;
	color: var(--accent-soft);
	font-size: 0.9rem;
}

.pick--alt .pick__link {
	color: #aab4ff;
}

.pick__link span {
	display: inline-block;
	transition: transform 0.45s var(--ease-out);
}

/* Zrzut ekranu wystaje poza dół karty: ujemny margines chowa przezroczysty
   cień z pliku PNG, a overflow karty przycina ramkę przeglądarki. */
.pick__shot {
	width: 100%;
	margin-top: auto;
	margin-bottom: calc(-1 * clamp(24px, 3vw, 38px) - 20%);
	padding-top: 12px;
	transition: transform 0.8s var(--ease-out);
}

.pick:hover .pick__shot {
	transform: translateY(-14px) scale(1.02);
}

.pick:hover .pick__name {
	transform: translateX(8px);
}

.pick:hover .pick__link span {
	transform: translate(4px, -4px);
}

.blog {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: center;
	gap: clamp(32px, 6vw, 80px);
}

.blog__copy {
	display: grid;
	justify-items: start;
	gap: 20px;
	font-size: clamp(1.1rem, 1.6vw, 1.3rem);
	line-height: 1.55;
}

.blog__copy p:nth-of-type(2) {
	color: var(--muted);
}

.terminal {
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: rgba(9, 10, 16, 0.85);
	box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}

.terminal__bar {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--line);
}

.terminal__bar span {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
}

.terminal__bar em {
	margin-left: 8px;
	color: var(--muted);
	font-style: normal;
	font-size: 0.72rem;
}

.terminal__body {
	display: grid;
	gap: 8px;
	padding: 20px;
	line-height: 1.6;
}

.terminal__prompt {
	color: var(--accent);
}

.terminal__dim {
	color: var(--muted);
}

.terminal__ok {
	color: var(--ok);
}

.terminal__err {
	color: var(--bad);
}

.terminal__progress {
	height: 6px;
	overflow: hidden;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.08);
}

.terminal__fill {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--accent-2), var(--ok));
	transform-origin: left;
}

.js .terminal__fill {
	transform: scaleX(0);
	transition: transform 1.8s var(--ease-in-out) 0.5s;
}

.js .terminal.is-in .terminal__fill {
	transform: scaleX(1);
}

.terminal__caret,
.chat__caret {
	display: inline-block;
	width: 2px;
	height: 1.1em;
	margin-left: 3px;
	background: var(--accent);
	vertical-align: text-bottom;
	animation: blink 1s steps(1) infinite;
}

.terminal__caret {
	width: 8px;
}

@keyframes blink {
	50% {
		opacity: 0;
	}
}

.section--contact {
	position: relative;
}

.section--contact::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(ellipse 60% 60% at 50% 60%, rgba(255, 138, 61, 0.13), transparent 70%);
}

.contact {
	display: grid;
	justify-items: center;
	text-align: center;
}

.contact .section__label::before {
	content: "";
	flex: 0 1 120px;
	width: 60px;
	height: 1px;
	background: linear-gradient(270deg, var(--line), transparent);
}

.contact .section__label::after {
	width: 60px;
}

.contact__title {
	max-width: 16ch;
	font-family: var(--font-display);
	font-size: clamp(2.4rem, 7.4vw, 6rem);
	font-weight: 800;
	line-height: 0.98;
	letter-spacing: -0.04em;
	text-wrap: balance;
}

.contact__mail {
	margin-top: clamp(30px, 4vw, 52px);
}

.mail {
	padding-bottom: 6px;
	background: linear-gradient(90deg, var(--accent), var(--accent-2)) no-repeat 0 100% / 100% 2px;
	font-family: var(--font-display);
	font-size: clamp(1.35rem, 4.6vw, 3.2rem);
	font-weight: 600;
	letter-spacing: -0.02em;
	text-decoration: none;
	overflow-wrap: anywhere;
	transition: background-size 0.5s var(--ease-out), color 0.3s;
}

.mail:hover {
	background-size: 100% 100%;
	color: #12080a;
}

.contact__note {
	max-width: 52ch;
	margin-top: 28px;
	color: var(--muted);
}

/* 7. Stopka
   ========================================================================== */

.footer {
	border-top: 1px solid var(--line);
	padding-block: 36px 44px;
}

.footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px 40px;
}

.footer__copy {
	color: var(--muted);
	line-height: 1.7;
}

.footer__copy code {
	padding: 3px 8px;
	border-radius: 6px;
	background: rgba(255, 138, 61, 0.12);
	color: var(--accent-soft);
	font: inherit;
	white-space: nowrap;
}

.footer__arrow {
	color: var(--accent);
}

.footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	color: var(--muted);
	font-size: 0.9rem;
}

.footer__links a,
.link-btn {
	color: var(--muted);
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, 0.2);
	text-underline-offset: 4px;
	transition: color 0.25s, text-decoration-color 0.25s;
}

.footer__links a:hover,
.link-btn:hover {
	color: var(--text);
	text-decoration-color: var(--accent);
}

.link-btn {
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	cursor: pointer;
}

/* Przycisk powtórki ma sens tylko wtedy, gdy JS działa. */
html:not(.js) .link-btn {
	display: none;
}

/* 8. Intro (symulowany czat) i przejście "renderowania"
   ========================================================================== */

.genesis {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: none;
	background:
		radial-gradient(ellipse 70% 50% at 50% 0%, rgba(124, 140, 255, 0.1), transparent 70%),
		var(--bg);
}

.intro .genesis {
	display: block;
}

.chat {
	display: flex;
	flex-direction: column;
	width: min(100% - 32px, 760px);
	height: 100%;
	margin-inline: auto;
	padding-block: 14px 16px;
}

.chat__bar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-block: 8px 12px;
}

.chat__logo {
	width: 22px;
	height: 22px;
	border-radius: 7px;
	background: conic-gradient(from 210deg, var(--accent), var(--accent-2), #c45cff, var(--accent));
}

.chat__name {
	font-family: var(--font-display);
	font-size: 1.05rem;
	font-weight: 600;
}

.chat__model {
	padding: 4px 10px;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--muted);
	font-family: var(--font-mono);
	font-size: 0.68rem;
}

.chat__log {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-height: 0;
	padding: 28px 2px 24px;
	overflow-y: auto;
	scrollbar-width: none;
	-webkit-mask-image: linear-gradient(transparent, #000 36px);
	mask-image: linear-gradient(transparent, #000 36px);
}

.chat__log::-webkit-scrollbar {
	display: none;
}

.msg {
	animation: msg-in 0.55s var(--ease-out) both;
}

.msg--user {
	align-self: flex-end;
	max-width: min(88%, 560px);
	padding: 14px 18px;
	border-radius: 22px 22px 6px 22px;
	background: rgba(255, 255, 255, 0.08);
}

.msg--ai {
	display: grid;
	gap: 16px;
	align-self: stretch;
}

@keyframes msg-in {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
}

.think {
	padding-left: 14px;
	border-left: 2px solid var(--line);
	color: var(--muted);
	font-size: 0.92rem;
	font-style: italic;
}

.think__label {
	display: block;
	margin-bottom: 4px;
	font-family: var(--font-mono);
	font-size: 0.72rem;
	font-style: normal;
	letter-spacing: 0.06em;
}

.think.is-active .think__label {
	background: linear-gradient(90deg, var(--muted) 30%, #fff 50%, var(--muted) 70%) 0 0 / 200% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: shimmer 1.4s linear infinite;
}

@keyframes shimmer {
	to {
		background-position: -200% 0;
	}
}

.tasks {
	display: grid;
	gap: 9px;
	font-family: var(--font-mono);
	font-size: 0.82rem;
}

.task {
	display: flex;
	align-items: center;
	gap: 11px;
	animation: msg-in 0.4s var(--ease-out) both;
}

.task__icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.18);
	border-top-color: var(--accent);
	border-radius: 50%;
	animation: spin 0.7s linear infinite;
}

.task.is-done .task__icon {
	border-color: var(--ok);
	background: var(--ok);
	animation: pop 0.4s var(--ease-out);
}

.task.is-done .task__icon::after {
	content: "";
	width: 7px;
	height: 4px;
	border: solid #062314;
	border-width: 0 0 2px 2px;
	transform: translateY(-1px) rotate(-45deg);
}

.task__note {
	color: var(--muted);
}

.task__bar {
	flex: 1;
	max-width: 220px;
	height: 4px;
	overflow: hidden;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.1);
}

.task__bar span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--accent-2), var(--accent));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 1.1s var(--ease-in-out);
}

.task.is-running .task__bar span {
	transform: scaleX(1);
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes pop {
	0% {
		transform: scale(0.6);
	}

	60% {
		transform: scale(1.2);
	}
}

.chat__composer {
	display: flex;
	align-items: flex-end;
	gap: 12px;
	min-height: 60px;
	padding: 12px 12px 12px 20px;
	border: 1px solid var(--line);
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.045);
	box-shadow: 0 20px 60px -30px rgba(0, 0, 0, 0.9);
	transition: border-color 0.3s;
}

.chat__composer.has-text {
	border-color: rgba(255, 255, 255, 0.22);
}

.chat__input {
	flex: 1;
	position: relative;
	min-height: 1.55em;
	padding-block: 5px;
	line-height: 1.55;
}

.chat__placeholder {
	position: absolute;
	color: var(--muted);
}

.chat__composer.has-text .chat__placeholder {
	display: none;
}

.chat__send {
	flex: none;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: var(--bg);
	font-weight: 600;
	transition: transform 0.2s var(--ease-out), background-color 0.25s;
}

.chat__send::before {
	content: "↑";
}

.chat__composer.has-text .chat__send {
	background: var(--text);
}

/* Model pracuje: przycisk wysyłania zmienia się w "stop", kursor w polu znika. */
.chat__composer.is-busy .chat__send {
	background: var(--text);
}

.chat__composer.is-busy .chat__send::before {
	content: "";
	width: 11px;
	height: 11px;
	border-radius: 2px;
	background: var(--bg);
}

.chat__composer.is-busy .chat__caret {
	display: none;
}

.is-streaming::after {
	content: "";
	display: inline-block;
	width: 7px;
	height: 1em;
	margin-left: 4px;
	background: var(--accent);
	vertical-align: text-bottom;
	animation: blink 0.8s steps(1) infinite;
}

.chat__send.is-pressed {
	background: var(--accent);
	transform: scale(0.82);
}

.chat__fine {
	margin-top: 10px;
	color: var(--muted);
	font-size: 0.72rem;
	text-align: center;
}

.genesis__skip {
	position: absolute;
	top: 14px;
	right: 16px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(12, 13, 21, 0.8);
	color: var(--muted);
	font: 500 0.75rem var(--font-mono);
	cursor: pointer;
	transition: color 0.25s, border-color 0.25s;
}

.genesis__skip:hover {
	border-color: rgba(255, 255, 255, 0.3);
	color: var(--text);
}

.genesis__skip kbd {
	padding: 2px 6px;
	border-radius: 5px;
	background: rgba(255, 255, 255, 0.1);
	font: inherit;
	font-size: 0.66rem;
}

/* Przejście: czat gaśnie, a zasłona zjeżdża w dół razem z linią skanującą –
   strona "renderuje się" od góry. Obie animacje muszą mieć identyczny czas,
   opóźnienie i krzywą, żeby linia trzymała się krawędzi zasłony. */
.scanline {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 101;
	height: 3px;
	opacity: 0;
	pointer-events: none;
	background: linear-gradient(90deg, transparent, var(--accent) 18%, #fff 50%, var(--accent) 82%, transparent);
	box-shadow: 0 0 28px 5px rgba(255, 138, 61, 0.6), 0 0 110px 26px rgba(255, 138, 61, 0.28);
}

.is-rendering .genesis {
	pointer-events: none;
	animation: wipe 1.2s var(--ease-in-out) 0.3s both;
}

.is-rendering .chat,
.is-rendering .genesis__skip {
	animation: chat-out 0.4s ease both;
}

.is-rendering .scanline {
	opacity: 1;
	animation: scan 1.2s var(--ease-in-out) 0.3s both;
}

@keyframes wipe {
	from {
		clip-path: inset(0 0 0 0);
	}

	to {
		clip-path: inset(100% 0 0 0);
	}
}

@keyframes scan {
	from {
		transform: translateY(0);
	}

	to {
		transform: translateY(calc(100vh + 160px));
	}
}

@keyframes chat-out {
	to {
		opacity: 0;
		transform: scale(0.97);
		filter: blur(6px);
	}
}

/* 9. Animacje wejścia i reveal przy scrollu
   ========================================================================== */

/* Po intro wejście hero czeka, aż linia skanująca minie górę strony. */
.from-intro {
	--base: 650ms;
}

.js .topbar,
.js .header,
.js .hero [data-in] {
	opacity: 0;
}

.js .ch {
	transform: translateY(118%) rotate(7deg);
}

.live .topbar,
.live .header {
	animation: fade-down 0.8s var(--ease-out) var(--base, 0ms) both;
}

.live .header {
	animation-delay: calc(var(--base, 0ms) + 100ms);
}

.live .ch {
	animation: ch-up 1.1s var(--ease-out) both;
	animation-delay: calc(var(--base, 0ms) + 150ms + var(--c, 0) * 45ms);
}

.live .hero [data-in] {
	animation: rise 1s var(--ease-out) both;
	animation-delay: calc(var(--base, 0ms) + 250ms + var(--i, 0) * 85ms);
}

@keyframes fade-down {
	from {
		opacity: 0;
		transform: translateY(-14px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes ch-up {
	from {
		transform: translateY(118%) rotate(7deg);
	}

	to {
		transform: none;
	}
}

@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(28px);
		filter: blur(10px);
	}

	to {
		opacity: 1;
		transform: none;
		filter: none;
	}
}

.js [data-reveal] {
	opacity: 0;
	transform: translateY(34px);
	filter: blur(8px);
	transition:
		opacity 0.9s var(--ease-out) var(--d, 0ms),
		transform 1s var(--ease-out) var(--d, 0ms),
		filter 0.9s var(--ease-out) var(--d, 0ms);
}

.js [data-reveal].is-in {
	opacity: 1;
	transform: none;
	filter: none;
}

/* 10. Podstrona tekstowa (polityka prywatności)
   ========================================================================== */

.page {
	width: min(100% - 2 * var(--gutter), 760px);
	margin-inline: auto;
	padding-block: clamp(48px, 8vw, 96px) clamp(64px, 10vw, 120px);
}

.page__back {
	display: inline-flex;
	gap: 8px;
	margin-bottom: 36px;
	color: var(--muted);
	font-family: var(--font-mono);
	font-size: 0.82rem;
	text-decoration: none;
	transition: color 0.25s;
}

.page__back:hover {
	color: var(--accent-soft);
}

.page h1 {
	margin-bottom: 14px;
	font-family: var(--font-display);
	font-size: clamp(2.4rem, 6vw, 4rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.035em;
}

.page__lead {
	margin-bottom: 12px;
	color: var(--muted);
	font-size: 1.15rem;
}

.page__meta {
	color: var(--muted);
}

.prose {
	margin-top: 48px;
}

.prose h2 {
	margin: 52px 0 16px;
	padding-top: 28px;
	border-top: 1px solid var(--line);
	font-family: var(--font-display);
	font-size: 1.6rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.015em;
}

.prose p,
.prose ul {
	margin-bottom: 16px;
	color: #c9c9d6;
}

.prose ul {
	display: grid;
	gap: 8px;
	padding-left: 22px;
	list-style: disc;
}

.prose li::marker {
	color: var(--accent);
}

.prose strong {
	color: var(--text);
	font-weight: 600;
}

.prose a {
	color: var(--accent-soft);
	text-underline-offset: 4px;
}

.prose code {
	font-family: var(--font-mono);
	font-size: 0.9em;
}

.prose address {
	margin-bottom: 16px;
	padding: 20px 24px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.03);
	font-style: normal;
}

/* 11. Popup z wykresem zajętości
   ========================================================================== */

.busy {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 60;
	width: min(440px, calc(100vw - 24px));
	padding: 18px 20px 20px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 22px;
	background: rgba(12, 13, 21, 0.94);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.4);
	visibility: hidden;
	opacity: 0;
	transform: translateY(8px) scale(0.98);
	transition: opacity 0.25s ease, transform 0.35s var(--ease-out), visibility 0s 0.25s;
}

.busy.is-open {
	visibility: visible;
	opacity: 1;
	transform: none;
	transition-delay: 0s;
}

.busy__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}

.busy__title {
	color: var(--muted);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.busy__close {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: none;
	color: var(--muted);
	font: 400 1.1rem/1 var(--font-body);
	cursor: pointer;
	transition: color 0.25s, border-color 0.25s;
}

.busy__close:hover {
	border-color: rgba(255, 255, 255, 0.3);
	color: var(--text);
}

.busy__chart svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.busy-axis,
.busy-tick {
	fill: none;
	stroke: rgba(255, 255, 255, 0.45);
	stroke-width: 1;
}

.busy-grid {
	stroke: rgba(255, 255, 255, 0.08);
	stroke-width: 1;
}

.busy-month,
.busy-today {
	fill: var(--muted);
	font-family: var(--font-mono);
	font-size: 9px;
}

.busy-month.is-now,
.busy-today {
	fill: var(--text);
}

.busy-emoji {
	font-size: 13px;
}

.busy-expected {
	fill: none;
	stroke: var(--accent-2);
	stroke-width: 2;
}

.busy-real {
	fill: none;
	stroke: var(--accent);
	stroke-width: 2.5;
}

.busy-dot {
	fill: #fff;
	stroke: var(--accent);
	stroke-width: 2.5;
}

.busy-ping {
	fill: var(--accent);
	opacity: 0;
	transform-box: fill-box;
	transform-origin: center;
}

.busy__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	margin-top: 12px;
}

.busy__legend li {
	display: flex;
	align-items: center;
	gap: 9px;
}

.busy__swatch {
	width: 26px;
	height: 0;
	border-top: 2px dashed var(--accent);
}

.busy__swatch--expected {
	border-top: 2px dashed var(--accent-2);
}

.busy__levels {
	display: grid;
	gap: 3px;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.8rem;
}

.busy__levels .is-current {
	color: var(--text);
}

.busy__current {
	margin-left: 6px;
	color: var(--accent);
	white-space: nowrap;
}

/* Kolejność rysowania (osie, podziałki, krzywe, legenda, opis) wynika z --at
   na poszczególnych elementach; animacje ruszają od nowa przy każdym otwarciu. */
.busy .draw {
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
}

.busy .fade {
	opacity: 0;
}

.busy-expected,
.busy-real {
	stroke-dashoffset: var(--len, 0);
}

.busy.is-open .draw {
	animation: draw var(--dur, 0.5s) var(--ease-in-out) var(--at, 0s) both;
}

.busy.is-open .fade {
	animation: fade-in 0.45s ease var(--at, 0s) both;
}

.busy.is-open .busy-expected {
	animation: draw-dashed 0.95s var(--ease-in-out) 1s both;
}

.busy.is-open .busy-real {
	animation: draw-dashed 0.75s var(--ease-in-out) 1.75s both;
}

.busy.is-open .busy-ping {
	animation: ping-svg 1.8s var(--ease-out) 2.5s infinite;
}

@keyframes draw {
	from {
		stroke-dashoffset: 1;
	}

	to {
		stroke-dashoffset: 0;
	}
}

@keyframes draw-dashed {
	from {
		stroke-dashoffset: var(--len, 0);
	}

	to {
		stroke-dashoffset: 0;
	}
}

@keyframes fade-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes ping-svg {
	0% {
		transform: scale(1);
		opacity: 0.7;
	}

	80%,
	100% {
		transform: scale(3.4);
		opacity: 0;
	}
}

/* 12. Strona 404
   ========================================================================== */

.error {
	display: grid;
	align-content: center;
	justify-items: center;
	min-height: calc(100svh - 190px);
	padding-block: clamp(48px, 8vw, 96px);
	text-align: center;
}

.error__code {
	font-family: var(--font-display);
	font-size: clamp(7rem, 30vw, 19rem);
	font-weight: 800;
	line-height: 0.82;
	letter-spacing: -0.06em;
	background: linear-gradient(180deg, var(--accent-soft) 15%, var(--accent) 50%, rgba(255, 95, 61, 0.05) 96%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: rise 1.1s var(--ease-out) both;
}

.error__title {
	max-width: 18ch;
	margin-top: 8px;
	font-family: var(--font-display);
	font-size: clamp(1.7rem, 4.4vw, 3rem);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.025em;
	text-wrap: balance;
	animation: rise 1s var(--ease-out) 0.15s both;
}

.error__text {
	max-width: 52ch;
	margin-top: 18px;
	color: var(--muted);
	animation: rise 1s var(--ease-out) 0.25s both;
}

.error__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	margin-top: 30px;
	animation: rise 1s var(--ease-out) 0.45s both;
}

/* 13. Responsywność i prefers-reduced-motion
   ========================================================================== */

@media (max-width: 900px) {
	.nav {
		display: none;
	}

	.hero {
		min-height: 0;
	}

	.hero__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.hero__visual {
		order: -1;
		width: min(72%, 300px);
	}

	.hero__footnote {
		margin-top: 22px;
	}

	.scroll-cue {
		display: none;
	}

	.hero {
		padding-bottom: 40px;
	}

	.card--a,
	.card--b,
	.card--c,
	.card--d {
		grid-column: 1 / -1;
	}

	.card {
		min-height: 0;
	}

	.stats,
	.picks,
	.blog {
		grid-template-columns: minmax(0, 1fr);
	}

}

@media (max-width: 560px) {
	.topbar {
		font-size: 0.7rem;
	}

	.topbar__icon {
		display: none;
	}

	.chat__model {
		display: none;
	}

	.genesis__skip kbd {
		display: none;
	}

	.btn {
		width: 100%;
		justify-content: center;
	}

	.footer__inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-delay: 0ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		transition-delay: 0ms !important;
	}

	.js [data-reveal] {
		opacity: 1;
		transform: none;
		filter: none;
	}
}
