/*
Theme Name: SektorAI
Theme URI: https://sektorai.cloud
Author: sektorai.cloud
Description: Cyber-minimalistyczny motyw dark mode z glassmorphismem, neonowymi gradientami, animacjami GSAP (kompatybilny z Motion.page) i mikroanimacjami Lottie.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: sektorai
*/

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

/* ---------- Tokeny ---------- */
:root {
	--bg: #04050d;
	--bg-2: #080c24;
	--navy: #0b1033;
	--violet: #8b5cf6;
	--violet-2: #a78bfa;
	--cyan: #22d3ee;
	--pink: #f472b6;
	--text: #e2e8f0;
	--text-strong: #ffffff;
	--muted: #94a3b8;
	--faint: #64748b;
	--glass: rgba(255, 255, 255, .035);
	--glass-2: rgba(255, 255, 255, .06);
	--line: rgba(255, 255, 255, .08);
	--line-2: rgba(255, 255, 255, .14);
	--grad: linear-gradient(120deg, var(--violet) 0%, #6366f1 45%, var(--cyan) 100%);
	--grad-text: linear-gradient(100deg, #c4b5fd 0%, #818cf8 40%, #67e8f9 100%);
	--radius: 22px;
	--radius-sm: 14px;
	--shadow-glow: 0 0 0 1px rgba(139, 92, 246, .14), 0 30px 80px -30px rgba(139, 92, 246, .5), 0 20px 60px -30px rgba(34, 211, 238, .35);
	--font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-display: "Space Grotesk", var(--font);
	--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--container: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 72px;
	color-scheme: dark;
}

/* ---------- Reset / baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	min-height: 100vh;
	background: var(--bg);
	color: var(--text);
	font: 400 17px/1.7 var(--font);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; transition: color .2s; }
a:hover { color: #67e8f9; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text-strong); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
p { margin: 0 0 1.2em; }
::selection { background: rgba(139, 92, 246, .45); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 10px 16px; background: var(--violet); color: #fff; border-radius: 10px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 780px; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--cyan); opacity: .6; }
.muted { color: var(--muted); }

/* ---------- Tło: siatka, gradienty, cząsteczki ---------- */
.sai-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sai-bg__grid {
	position: absolute; inset: -2px;
	background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}
.sai-bg__orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; will-change: transform; }
.sai-bg__orb--violet { width: 520px; height: 520px; background: radial-gradient(circle, rgba(139, 92, 246, .75), transparent 65%); top: -160px; left: -120px; }
.sai-bg__orb--cyan { width: 460px; height: 460px; background: radial-gradient(circle, rgba(34, 211, 238, .5), transparent 65%); top: 20%; right: -160px; }
.sai-bg__orb--navy { width: 700px; height: 700px; background: radial-gradient(circle, rgba(49, 46, 129, .8), transparent 65%); bottom: -300px; left: 30%; }
.sai-bg__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .7; }
.sai-cursor-glow { position: fixed; left: 0; top: 0; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%; background: radial-gradient(circle, rgba(139, 92, 246, .16), transparent 60%); pointer-events: none; z-index: 0; opacity: 0; transition: opacity .4s; will-change: transform; }
body.has-cursor .sai-cursor-glow { opacity: 1; }

/* ---------- Szkło ---------- */
.glass {
	background: linear-gradient(145deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
	border: 1px solid var(--line);
	border-radius: var(--radius);
	backdrop-filter: blur(18px) saturate(140%);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

/* ---------- Nagłówek ---------- */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgba(4, 5, 13, .7); border-bottom-color: var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.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; font: 600 1.15rem/1 var(--font-display); color: var(--text-strong); letter-spacing: -.01em; }
.brand:hover { color: #fff; }
.brand__mark { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 8px 30px -8px rgba(139, 92, 246, .8); }
.brand__mark svg { width: 18px; height: 18px; }
.brand__tld { color: var(--muted); font-weight: 400; }
.brand .custom-logo { height: 36px; width: auto; }

.nav-primary ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav-primary a { display: block; padding: 8px 14px; border-radius: 10px; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s, background .2s; }
.nav-primary a:hover, .nav-primary .current-menu-item > a, .nav-primary .current_page_item > a, .nav-primary .current-menu-parent > a, .nav-primary .current_page_parent > a { color: #fff; background: var(--glass-2); }
.header-cta { display: inline-flex; }
.nav-toggle { display: none; background: var(--glass-2); border: 1px solid var(--line); color: #fff; width: 42px; height: 42px; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .3s, opacity .3s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; }
	.site-header .header-cta { display: none; }
	.nav-primary { position: fixed; inset: var(--header-h) 0 auto 0; padding: 16px var(--gutter) 28px; background: rgba(4, 5, 13, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(20px); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .3s ease; }
	.nav-open .nav-primary { transform: none; opacity: 1; visibility: visible; }
	.nav-primary ul { flex-direction: column; }
	.nav-primary a { padding: 14px 12px; font-size: 17px; }
}

/* ---------- Przyciski ---------- */
.btn, .wp-block-button__link, .wp-element-button {
	--bx: 0px; --by: 0px;
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 14px 24px; border-radius: 14px; border: 1px solid transparent;
	font: 600 15px/1 var(--font); color: #fff; cursor: pointer; text-decoration: none;
	transition: box-shadow .3s, background .3s, border-color .3s, color .2s;
	will-change: transform;
}
.btn--primary, .wp-block-button__link, .wp-element-button { background: var(--grad); box-shadow: 0 10px 40px -12px rgba(139, 92, 246, .8); }
.btn--primary:hover, .wp-block-button__link:hover, .wp-element-button:hover { color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 18px 50px -12px rgba(139, 92, 246, .9), 0 10px 40px -10px rgba(34, 211, 238, .6); }
.btn--ghost, .is-style-outline .wp-block-button__link { background: var(--glass); border-color: var(--line-2); box-shadow: none; }
.btn--ghost:hover, .is-style-outline .wp-block-button__link:hover { color: #fff; border-color: rgba(34, 211, 238, .6); background: rgba(34, 211, 238, .08); }
.btn--sm { padding: 10px 16px; font-size: 14px; border-radius: 12px; }
.btn svg { width: 18px; height: 18px; transition: transform .3s; }
.btn:hover svg { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 8vw, 110px); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; font-size: 13px; color: var(--text); margin-bottom: 28px; }
.hero__badge .lottie { width: 26px; height: 26px; }
.hero__badge b { color: #fff; font-weight: 600; }
.hero__title { margin-bottom: 24px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .word { display: inline-block; will-change: transform; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 560px; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 48px; font: 500 13px/1.4 var(--font-mono); color: var(--faint); }
.hero__meta strong { display: block; font: 600 1.6rem/1.1 var(--font-display); color: #fff; }

.core-card { position: relative; aspect-ratio: 1 / 1.05; padding: 26px; transform-style: preserve-3d; perspective: 1000px; will-change: transform; }
.core-card__head { display: flex; justify-content: space-between; align-items: center; font: 500 12px/1 var(--font-mono); color: var(--muted); }
.core-card__dots { display: flex; gap: 6px; }
.core-card__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.core-card__dots i:first-child { background: #f87171; } .core-card__dots i:nth-child(2) { background: #fbbf24; } .core-card__dots i:nth-child(3) { background: #34d399; }
.core-card__viz { position: absolute; inset: 56px 20px 110px; display: grid; place-items: center; transform: translateZ(60px); }
.core-card__viz .lottie { width: min(100%, 320px); aspect-ratio: 1; filter: drop-shadow(0 0 30px rgba(139, 92, 246, .55)); }
.core-card__foot { position: absolute; left: 20px; right: 20px; bottom: 20px; transform: translateZ(40px); padding: 14px 16px; border-radius: 16px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); font: 500 12.5px/1.6 var(--font-mono); color: var(--muted); }
.core-card__foot .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.core-card__foot .lottie { width: 28px; height: 28px; }
.core-card__foot code { color: var(--violet-2); }
.core-card__bar { height: 4px; margin-top: 10px; border-radius: 4px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.core-card__bar span { display: block; height: 100%; width: 72%; background: var(--grad); border-radius: inherit; animation: sai-load 3.6s ease-in-out infinite; }
@keyframes sai-load { 0% { width: 8%; } 60% { width: 92%; } 100% { width: 8%; } }
.float-chip { position: absolute; padding: 8px 12px; border-radius: 12px; font: 500 12px/1 var(--font-mono); color: #fff; white-space: nowrap; transform: translateZ(90px); }
.float-chip--a { top: 22%; left: -28px; }
.float-chip--b { top: 58%; right: -24px; }
.float-chip i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); margin-right: 7px; box-shadow: 0 0 10px var(--cyan); }
.float-chip--b i { background: var(--violet-2); box-shadow: 0 0 10px var(--violet-2); }

@media (max-width: 900px) {
	.hero__grid { grid-template-columns: 1fr; }
	.core-card { max-width: 440px; margin-inline: auto; width: 100%; }
	.float-chip--a { left: -6px; } .float-chip--b { right: -6px; }
}

/* ---------- Marquee ---------- */
.marquee { position: relative; border-block: 1px solid var(--line); padding: 18px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: sai-marquee 38s linear infinite; }
.marquee__track span { font: 500 15px/1 var(--font-mono); color: var(--faint); letter-spacing: .06em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 48px; }
.marquee__track span::after { content: "✦"; color: var(--violet); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes sai-marquee { to { transform: translateX(-50%); } }

/* ---------- Sekcje ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section__head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow::after { content: ""; width: 22px; height: 1px; background: var(--cyan); opacity: .6; }
.section__head p { color: var(--muted); font-size: 1.1rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card { position: relative; padding: 28px; overflow: hidden; transition: border-color .3s; transform-style: preserve-3d; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(139, 92, 246, .16), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover { border-color: rgba(139, 92, 246, .35); }
.card:hover::before { opacity: 1; }
.card__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px; background: linear-gradient(135deg, rgba(139, 92, 246, .25), rgba(34, 211, 238, .12)); border: 1px solid var(--line-2); color: #fff; }
.card__icon svg { width: 24px; height: 24px; }
.card__icon .lottie { width: 40px; height: 40px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }
.card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 600; font-size: 14px; color: var(--cyan); }
.card__link::after { content: "→"; transition: transform .25s; }
.card:hover .card__link::after { transform: translateX(4px); }
a.card { color: inherit; display: block; }

/* Framework showcase (pinned scroll) */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.letters { display: grid; gap: 12px; }
.letter-row { display: flex; align-items: center; gap: 18px; padding: 14px 18px; border-radius: 16px; border: 1px solid transparent; transition: background .4s, border-color .4s; }
.letter-row b { width: 46px; height: 46px; border-radius: 13px; flex: none; display: grid; place-items: center; font: 700 20px/1 var(--font-display); color: var(--faint); background: var(--glass); border: 1px solid var(--line); transition: all .4s; }
.letter-row span { color: var(--faint); transition: color .4s; }
.letter-row span strong { display: block; color: var(--muted); font-family: var(--font-display); font-size: 1.1rem; transition: color .4s; }
.letter-row.is-active { background: var(--glass); border-color: var(--line); }
.letter-row.is-active b { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 10px 30px -10px rgba(139, 92, 246, .9); }
.letter-row.is-active span { color: var(--muted); }
.letter-row.is-active span strong { color: #fff; }
.code-preview { padding: 22px; font: 400 13.5px/1.75 var(--font-mono); color: #cbd5e1; white-space: pre-wrap; overflow: hidden; }
.code-preview .t { color: #7dd3fc; } .code-preview .n { color: #c4b5fd; font-weight: 600; } .code-preview .c { color: var(--faint); }
@media (max-width: 900px) { .showcase { grid-template-columns: 1fr; } }

/* Statystyki */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.stat { padding: 28px; text-align: left; }
.stat__num { font: 600 clamp(2.2rem, 4vw, 3.2rem)/1 var(--font-display); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { margin-top: 10px; color: var(--muted); font-size: 14.5px; }

/* CTA */
.cta-band { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 72px); text-align: center; }
.cta-band::after { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 120%; background: radial-gradient(ellipse at center, rgba(139, 92, 246, .35), transparent 60%); pointer-events: none; }
.cta-band h2 { max-width: 760px; margin-inline: auto; }
.cta-band p { color: var(--muted); max-width: 600px; margin: 0 auto 32px; }
.cta-band .hero__actions { justify-content: center; position: relative; z-index: 1; }

/* ---------- Posty / Baza wiedzy ---------- */
.page-hero { padding: clamp(56px, 8vw, 110px) 0 clamp(32px, 4vw, 56px); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.page-hero p { color: var(--muted); font-size: 1.15rem; max-width: 680px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 500; transition: all .2s; }
.chip:hover, .chip.is-active { color: #fff; border-color: rgba(139, 92, 246, .6); background: rgba(139, 92, 246, .15); }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; color: inherit; height: 100%; }
.post-card:hover { color: inherit; border-color: rgba(34, 211, 238, .35); }
.post-card__thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, rgba(139, 92, 246, .35), rgba(34, 211, 238, .18)), var(--navy); position: relative; overflow: hidden; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.post-card:hover .post-card__thumb img { transform: scale(1.05); }
.post-card__thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; font: 700 3.4rem/1 var(--font-display); color: rgba(255, 255, 255, .12); letter-spacing: -.04em; }
.post-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__cat { font: 600 11.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--cyan); }
.post-card h3 { font-size: 1.28rem; margin: 0; }
.post-card p { color: var(--muted); font-size: 15px; margin: 0; }
.post-card__meta { margin-top: auto; padding-top: 8px; font: 500 12.5px/1 var(--font-mono); color: var(--faint); display: flex; gap: 14px; }
.pagination { margin-top: 48px; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); color: var(--muted); }
.pagination .page-numbers.current, .pagination .page-numbers:hover { color: #fff; border-color: var(--violet); }
.empty-state { padding: 48px; text-align: center; color: var(--muted); }

/* Pojedynczy wpis */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
.entry-header { padding: clamp(48px, 7vw, 96px) 0 32px; }
.entry-header h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.entry-meta { display: flex; flex-wrap: wrap; gap: 18px; font: 500 13px/1 var(--font-mono); color: var(--faint); margin-top: 18px; }
.entry-meta a { color: var(--cyan); }
.entry-thumb { margin: 0 0 40px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }

.entry-content { font-size: 18px; line-height: 1.8; }
.entry-content > * { margin-block: 0 1.3em; }
.entry-content h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 2em; }
.entry-content h3 { font-size: 1.35rem; margin-top: 1.7em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .45em; }
.entry-content li::marker { color: var(--violet-2); }
.entry-content strong { color: #fff; }
.entry-content a { text-decoration: underline; text-decoration-color: rgba(34, 211, 238, .4); text-underline-offset: 3px; }
.entry-content blockquote, .wp-block-quote { margin-inline: 0; padding: 20px 24px; border-left: 3px solid var(--violet); background: var(--glass); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text); }
.entry-content blockquote p:last-child { margin: 0; }
.entry-content code { font: 500 .88em/1.4 var(--font-mono); color: #c4b5fd; background: rgba(139, 92, 246, .12); padding: .15em .4em; border-radius: 6px; }
.entry-content pre, .wp-block-code { font: 400 14px/1.7 var(--font-mono); background: rgba(0, 0, 0, .45); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 22px; overflow-x: auto; color: #cbd5e1; }
.entry-content pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.entry-content th, .entry-content td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content th { color: #fff; font-family: var(--font-display); background: var(--glass); }
.entry-content .wp-block-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.entry-content hr { border: 0; height: 1px; background: var(--line); margin: 3em 0; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content .alignwide { max-width: 1100px; margin-inline: auto; }
.entry-content .alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.entry-content .wp-block-group.is-style-glass, .entry-content .glass-box { padding: 28px; background: linear-gradient(145deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)); border: 1px solid var(--line); border-radius: var(--radius); }
.entry-content .wp-block-columns { gap: 22px; }
.entry-content .has-text-align-center { text-align: center; }
.page-wide .entry-content { max-width: none; }
.tool-wrap { margin-block: 24px 64px; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 64px 0 0; }
.post-nav a { display: block; padding: 20px 22px; color: inherit; }
.post-nav small { display: block; font: 500 12px/1 var(--font-mono); color: var(--faint); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .1em; }
.post-nav strong { font-family: var(--font-display); color: #fff; }
.post-nav .next { text-align: right; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }

/* ---------- Stopka ---------- */
.site-footer { margin-top: clamp(64px, 8vw, 120px); border-top: 1px solid var(--line); padding: 56px 0 32px; background: linear-gradient(180deg, transparent, rgba(11, 16, 51, .45)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font: 600 12px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--muted); font-size: 15px; }
.footer-grid a:hover { color: #fff; }
.footer-grid p { color: var(--muted); font-size: 15px; max-width: 360px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font: 500 12.5px/1.5 var(--font-mono); color: var(--faint); }
.footer-status { display: inline-flex; align-items: center; gap: 6px; }
.footer-status .lottie { width: 22px; height: 22px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } .post-nav { grid-template-columns: 1fr; } }

/* ---------- Stany animacji ---------- */
/* Elementy [data-reveal] ukrywamy tylko, gdy JS i animacje są aktywne (bez JS treść jest widoczna). */
.js-motion [data-reveal]:not(.is-revealed) { opacity: 0; }
.js-motion .hero [data-hero]:not(.is-revealed) { opacity: 0; }
.js-motion [data-reveal-group] > * { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
	.js-motion [data-reveal], .js-motion .hero [data-hero], .js-motion [data-reveal-group] > * { opacity: 1 !important; }
	.sai-bg__canvas, .sai-cursor-glow { display: none; }
}

/* ---------- Treść: przyciski, partner, promo ---------- */
.entry-content .wp-block-button__link { text-decoration: none; color: #fff; }
.entry-content .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.entry-content h4 { font-size: 1.15rem; margin: 0 0 .5em; }
.entry-content .wp-block-columns { margin-bottom: 22px; }
.entry-content .is-style-glass > :last-child { margin-bottom: 0; }
.entry-content .is-style-glass p a { text-decoration: none; font-weight: 600; }
.entry-content .sai-promo { position: relative; overflow: hidden; border-color: rgba(139, 92, 246, .35); background: linear-gradient(135deg, rgba(139, 92, 246, .16), rgba(34, 211, 238, .06) 60%, rgba(255, 255, 255, .02)); }
.entry-content .sai-promo::before { content: ""; position: absolute; top: -80px; right: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 211, 238, .25), transparent 65%); pointer-events: none; }

/* Pasek partnera (strona główna, stopka) */
.partner-band { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(28px, 5vw, 56px); }
.partner-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.partner-band p { color: var(--muted); }
.partner-band ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.partner-band li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); font-size: 15px; color: var(--text); }
.partner-band li b { color: #fff; display: block; font-family: var(--font-display); }
.partner-band li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
@media (max-width: 900px) { .partner-band { grid-template-columns: 1fr; } }
.footer-partner { margin-top: 18px; font-size: 14px; color: var(--muted); }
.footer-partner a { color: var(--cyan); font-weight: 600; }
