/* ==========================================================================
   Qumi Soft – style motywu
   ========================================================================== */

:root {
	--c-ink: #0c0c12;
	--c-ink-2: #15151d;
	--c-ink-3: #1f1f2a;
	--c-text: #1f2937;
	--c-muted: #64748b;
	--c-line: #e2e8f0;
	--c-bg: #ffffff;
	--c-bg-muted: #f5f7fb;
	--c-on-dark: #ececf1;
	--c-on-dark-muted: #a3a3b5;
	/* Kolory z logo: fioletowo-koralowy gradient litery „q” i pomarańczowa kropka. */
	--c-violet: #a862c4;
	--c-coral: #dd6d4d;
	--c-accent: #8e48ab; /* fiolet przyciemniony pod czytelny tekst na jasnym tle */
	--c-accent-2: #f97316;
	--c-success: #10b981;
	--c-danger: #ef4444;
	--grad: linear-gradient(135deg, var(--c-violet), var(--c-coral));

	--f-head: "Space Grotesk", system-ui, sans-serif;
	--f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

	--radius: 18px;
	--radius-sm: 10px;
	--shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
	--container: 1180px;
	--header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
	margin: 0;
	font-family: var(--f-body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--c-text);
	background: var(--c-bg);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-head); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; color: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 780px; }

.screen-reader-text, .skip-link:not(:focus) {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 16px; background: #fff; border-radius: 8px; }

:focus-visible { outline: 2px solid var(--c-accent-2); outline-offset: 3px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Przyciski ---------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .85em 1.4em;
	font: 600 16px/1.2 var(--f-body);
	color: #fff; text-decoration: none;
	background: var(--grad);
	border: 0; border-radius: 999px; cursor: pointer;
	box-shadow: 0 8px 24px -10px rgba(168, 98, 196, .7);
	transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(221, 109, 77, .75); }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn--small { padding: .6em 1.1em; font-size: 15px; }
.btn--block { width: 100%; }
.btn--ghost {
	background: transparent; color: inherit; box-shadow: none;
	border: 1px solid currentColor; border-color: rgba(127, 137, 170, .45);
}
.btn--ghost:hover { border-color: var(--c-accent-2); box-shadow: none; }
.btn--store { background: #000; box-shadow: none; padding: .6em 1.1em; font-size: 15px; }
.btn--store:hover { box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .6); }

.link-arrow { display: inline-flex; align-items: center; gap: .35em; font-weight: 600; text-decoration: none; color: inherit; }
.link-arrow .icon { transition: transform .2s ease; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Nagłówek ---------- */

.site-header {
	position: sticky; top: 0; z-index: 50;
	height: var(--header-h);
	background: rgba(11, 16, 32, .82);
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid rgba(255, 255, 255, .06);
	color: var(--c-on-dark);
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand__logo { max-height: 40px; width: auto; }
.brand__mark {
	width: 38px; height: 38px; border-radius: 11px;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
}
.brand__name { font: 700 20px/1 var(--f-head); letter-spacing: -.02em; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__list a { color: var(--c-on-dark-muted); text-decoration: none; font-weight: 500; font-size: 15px; transition: color .2s; }
.nav__list a:hover, .nav__list .current-menu-item > a { color: #fff; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
	.nav-toggle {
		display: flex; flex-direction: column; justify-content: center; gap: 6px;
		width: 44px; height: 44px; padding: 0 10px;
		background: transparent; border: 0; cursor: pointer;
	}
	.nav-toggle__bar { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s ease; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child { transform: translateY(4px) rotate(45deg); }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

	.nav {
		position: fixed; inset: var(--header-h) 0 auto 0;
		flex-direction: column; align-items: stretch; gap: 16px;
		padding: 20px 24px 28px;
		background: var(--c-ink);
		border-bottom: 1px solid rgba(255, 255, 255, .08);
		transform: translateY(-12px); opacity: 0; visibility: hidden;
		transition: opacity .2s ease, transform .2s ease, visibility .2s;
	}
	.nav.is-open { transform: none; opacity: 1; visibility: visible; }
	.nav__list { flex-direction: column; gap: 4px; }
	.nav__list a { display: block; padding: 10px 0; font-size: 18px; }
}

/* ---------- Hero ---------- */

.hero {
	position: relative; overflow: hidden;
	padding: clamp(72px, 12vw, 140px) 0 clamp(56px, 8vw, 96px);
	background: var(--c-ink);
	color: var(--c-on-dark);
}
.hero__glow {
	position: absolute; inset: -30% -10% auto auto;
	width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
	background: radial-gradient(circle at center, rgba(168, 98, 196, .42), rgba(221, 109, 77, .12) 45%, transparent 70%);
	filter: blur(30px);
	pointer-events: none;
}
.hero::before {
	content: ""; position: absolute; inset: 0;
	background:
		radial-gradient(40% 60% at 92% 100%, rgba(33, 71, 107, .55), transparent 70%),
		radial-gradient(35% 55% at 8% 105%, rgba(221, 109, 77, .22), transparent 70%);
	pointer-events: none;
}
.hero::after {
	content: ""; position: absolute; inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: linear-gradient(to bottom, #000 30%, transparent);
	-webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
	pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; }
.hero__title { font-size: clamp(38px, 6.4vw, 72px); max-width: 15ch; color: #fff; }
.hero__title em, .page-hero__title em {
	font-style: normal;
	background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__text { font-size: clamp(17px, 2vw, 20px); max-width: 60ch; color: var(--c-on-dark-muted); margin: 0 0 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.kicker {
	margin: 0 0 14px;
	font: 600 13px/1.3 var(--f-body); letter-spacing: .14em; text-transform: uppercase;
	color: var(--c-accent);
}
.kicker::before {
	content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; vertical-align: 2px;
	border-radius: 50%; background: var(--c-accent-2);
}
.kicker a { color: inherit; text-decoration: none; }
.hero .kicker, .section--dark .kicker, .page-hero .kicker { color: var(--c-accent-2); }

.stats {
	display: flex; flex-wrap: wrap; gap: 24px 72px;
	max-width: 720px; margin: 56px 0 0; padding-top: 32px;
	border-top: 1px solid rgba(255, 255, 255, .1);
}
.stats__item { display: flex; flex-direction: column-reverse; }
.stats dd { margin: 0; font: 700 clamp(28px, 4vw, 40px)/1.1 var(--f-head); color: #fff; }
.stats dt { color: var(--c-on-dark-muted); font-size: 14px; }

@media (max-width: 560px) {
	.stats { flex-direction: column; gap: 16px; }
}

/* ---------- Sekcje ---------- */

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--muted { background: var(--c-bg-muted); }
.section--dark { background: var(--c-ink); color: var(--c-on-dark); }
.section--dark .section__lead { color: var(--c-on-dark-muted); }
.section__head { max-width: 720px; margin-bottom: 48px; }
.section__title { font-size: clamp(30px, 4.4vw, 46px); }
.section__lead { font-size: 18px; color: var(--c-muted); margin: 0; }
.section__more { margin: 40px 0 0; text-align: center; }

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--services { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid--services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--services { grid-template-columns: 1fr; } }
.grid--apps { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
@media (max-width: 400px) {
	.grid--apps { grid-template-columns: 1fr; }
}

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.checklist .icon { color: var(--c-success); margin-top: .2em; width: 1.1em; height: 1.1em; }

/* Usługi */
.service {
	padding: 32px;
	border: 1px solid var(--c-line); border-radius: var(--radius);
	background: #fff;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.service:hover { border-color: rgba(168, 98, 196, .45); box-shadow: var(--shadow); transform: translateY(-3px); }
.service__icon {
	display: grid; place-items: center;
	width: 52px; height: 52px; margin-bottom: 20px;
	border-radius: 14px; color: #fff; background: var(--grad);
}
.service__icon .icon { width: 26px; height: 26px; }
.service__title { font-size: 22px; }
.service p { color: var(--c-muted); font-size: 16px; margin: 0 0 20px; }

/* ---------- Karty aplikacji ---------- */

.app-card {
	position: relative;
	display: flex; flex-direction: column; gap: 16px;
	padding: 28px;
	background: var(--c-ink-2);
	border: 1px solid rgba(255, 255, 255, .07);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform .2s ease, border-color .2s ease;
}
.app-card::before {
	content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
	background: var(--app-accent, var(--c-accent));
}
.app-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--app-accent, var(--c-accent)) 50%, transparent); }
.app-card__head { display: flex; gap: 16px; align-items: center; }
.app-card__title { font-size: 24px; margin: 0; }
.app-card__title a { color: #fff; text-decoration: none; }
.app-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.app-card__tagline { margin: 2px 0 0; color: var(--c-on-dark-muted); font-size: 15px; }
.app-card__excerpt { margin: 0; color: var(--c-on-dark); font-size: 16px; }
.app-card .checklist li { color: var(--c-on-dark-muted); }
.app-card .checklist .icon { color: var(--app-accent, var(--c-success)); }
.app-card__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.app-card__actions {
	position: relative; z-index: 1;
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	margin-top: auto; padding-top: 8px;
}
.app-card .link-arrow { color: #fff; }

.app-icon {
	width: 72px; height: 72px; flex: none;
	border-radius: 22%;
	object-fit: cover;
	box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .5);
}
.app-icon--placeholder {
	display: grid; place-items: center;
	font: 700 32px/1 var(--f-head); color: #fff;
	background: linear-gradient(140deg, var(--app-accent, var(--c-accent)), color-mix(in srgb, var(--app-accent, var(--c-accent)) 45%, #000));
}

.badge {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 4px 10px;
	font-size: 12.5px; font-weight: 600;
	border-radius: 999px;
	color: var(--c-on-dark);
	background: rgba(255, 255, 255, .07);
	border: 1px solid rgba(255, 255, 255, .1);
}
.badge--status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--live, .badge--web { color: #6ee7b7; }
.badge--beta { color: #fcd34d; }
.badge--soon { color: #d8b4fe; }

/* ---------- Proces ---------- */

.steps {
	list-style: none; margin: 0; padding: 0;
	display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	counter-reset: step;
}
.steps__item { padding: 28px 0 0; border-top: 2px solid var(--c-line); position: relative; }
.steps__item::before {
	content: ""; position: absolute; top: -2px; left: 0; width: 56px; height: 2px; background: var(--grad);
}
.steps__num { display: block; font: 700 15px/1 var(--f-head); color: var(--c-accent); margin-bottom: 14px; }
.steps__item h3 { font-size: 21px; }
.steps__item p { margin: 0; color: var(--c-muted); font-size: 16px; }

/* ---------- O mnie ---------- */

.about { display: grid; grid-template-columns: 280px 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__avatar {
	display: grid; place-items: center;
	aspect-ratio: 1; border-radius: 32px;
	color: #fff; background: var(--grad);
	box-shadow: var(--shadow);
}
.about__avatar .icon { width: 40%; height: 40%; stroke-width: 1.4; }
.about p { color: var(--c-muted); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; }
.tags li { padding: 6px 12px; font-size: 14px; font-weight: 500; border-radius: 999px; background: #fff; border: 1px solid var(--c-line); }

@media (max-width: 760px) {
	.about { grid-template-columns: 1fr; }
	.about__avatar { max-width: 160px; border-radius: 26px; }
}

/* ---------- Kontakt ---------- */

.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact__list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.contact__list li { display: flex; align-items: center; gap: 12px; }
.contact__list .icon { color: var(--c-accent-2); }
.contact__list a { color: #fff; text-decoration: none; font-size: 18px; }
.contact__list a:hover { text-decoration: underline; }

@media (max-width: 860px) {
	.contact { grid-template-columns: 1fr; }
}

.form {
	display: grid; gap: 16px;
	padding: clamp(24px, 4vw, 36px);
	background: var(--c-ink-2);
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: var(--radius);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.form__hp { position: absolute; left: -9999px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--c-on-dark-muted); }
.field input, .field select, .field textarea {
	width: 100%; padding: 12px 14px;
	font: 16px/1.4 var(--f-body); color: #fff;
	background: var(--c-ink); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-sm);
	transition: border-color .2s ease;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #a3a3b5 50%), linear-gradient(135deg, #a3a3b5 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-accent-2); }
.form__msg { margin: 0; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 15px; }
.form__msg--success { background: rgba(16, 185, 129, .14); color: #6ee7b7; }
.form__msg--error { background: rgba(239, 68, 68, .14); color: #fca5a5; }

.notice { padding: 20px; border: 1px dashed rgba(127, 137, 170, .5); border-radius: var(--radius-sm); }

/* ---------- Podstrony ---------- */

.page-hero {
	padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 6vw, 64px);
	background: var(--c-ink); color: var(--c-on-dark);
	background-image: radial-gradient(circle at 85% -20%, rgba(168, 98, 196, .35), transparent 55%), radial-gradient(circle at 0% 120%, rgba(221, 109, 77, .18), transparent 45%);
}
.page-hero__title { font-size: clamp(34px, 5.4vw, 58px); color: #fff; }
.page-hero__lead { font-size: 19px; color: var(--c-on-dark-muted); max-width: 60ch; margin: 0 0 24px; }

.page-hero--app { background-image: radial-gradient(circle at 85% -20%, color-mix(in srgb, var(--app-accent) 40%, transparent), transparent 55%); }
.app-single__head { display: flex; gap: clamp(20px, 4vw, 40px); align-items: center; }
.app-single__head .app-icon { width: clamp(96px, 14vw, 148px); height: clamp(96px, 14vw, 148px); font-size: clamp(40px, 6vw, 64px); }
@media (max-width: 560px) { .app-single__head { flex-direction: column; align-items: flex-start; } }

.app-single__body { display: grid; grid-template-columns: 1fr 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .app-single__body { grid-template-columns: 1fr; } }
.app-single__aside { padding: 28px; border: 1px solid var(--c-line); border-radius: var(--radius); position: sticky; top: calc(var(--header-h) + 24px); }
.app-single__subtitle { font-size: 18px; margin-top: 24px; }
.app-single .checklist .icon { color: var(--app-accent); }

.facts { margin: 0; display: grid; gap: 14px; }
.facts div { display: grid; gap: 2px; }
.facts dt { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); }
.facts dd { margin: 0; font-weight: 600; }

.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band p { margin: 0; color: var(--c-muted); }

.prose { font-size: 18px; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 28px; margin-top: 1.6em; }
.prose h3 { font-size: 22px; margin-top: 1.4em; }
.prose img, .prose figure { border-radius: var(--radius-sm); }
.prose figure { margin-left: 0; margin-right: 0; }

.post-list { display: grid; gap: 32px; }
.post-item { padding-bottom: 32px; border-bottom: 1px solid var(--c-line); }
.post-item__date { margin: 0; font-size: 14px; color: var(--c-muted); }
.post-item__title { font-size: 26px; margin: 4px 0 8px; }
.post-item__title a { color: inherit; text-decoration: none; }
.post-item__title a:hover { color: var(--c-accent); }
.post-item p { margin: 0; color: var(--c-muted); }

.pagination .nav-links { display: flex; gap: 8px; margin-top: 40px; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--c-line); border-radius: 8px; text-decoration: none; }
.pagination .current { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }

/* ---------- Stopka ---------- */

.site-footer { background: #08080c; color: var(--c-on-dark-muted); font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; gap: 32px; } }
.site-footer__lead { max-width: 34ch; margin: 16px 0 0; }
.site-footer__title { font: 600 13px/1.3 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--c-on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
	padding-top: 24px; padding-bottom: 32px;
	border-top: 1px solid rgba(255, 255, 255, .07);
	font-size: 14px;
}

/* ---------- Animacja pojawiania ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .reveal { opacity: 1; transform: none; transition: none; }
	.btn, .service, .app-card { transition: none; }
}
