/* F.L.O.W. landing page — Deep Glassmorphism + Asymmetric Bento-Box */

:root {
	--flow-font: Georgia, "Times New Roman", serif;
	--flow-font-sans: "Inter", system-ui, -apple-system, sans-serif;
	--flow-chrome-h: 68px;
	--flow-section-label-font-size: 11px;
	--flow-section-label-tracking: 0.14em;
	--flow-wrap: min(1440px, calc(100% - 48px));
	--flow-section-pad: clamp(4rem, 10vw, 7rem);
	--flow-r: 14px;
	--flow-r-lg: 18px;
	--flow-r-pill: 999px;

	/* Puzzle grid SVG (Holon puzzle shell pattern; aligned with F.L.O.W. design language) */
	--flow-puzzle-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cpath d='M 70 0 L 98 0 C 98 14, 112 14, 112 0 L 140 0' fill='none' stroke='rgba(123, 47, 216, 0.04)' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M 0 70 L 28 70 C 28 84, 42 84, 42 70 L 70 70 L 98 70 C 98 56, 112 56, 112 70 L 140 70' fill='none' stroke='rgba(123, 47, 216, 0.04)' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M 0 140 L 28 140 C 28 126, 42 126, 42 140 L 70 140' fill='none' stroke='rgba(123, 47, 216, 0.04)' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M 0 0 L 0 28 C 14 28, 14 42, 0 42 L 0 70' fill='none' stroke='rgba(123, 47, 216, 0.04)' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M 70 0 L 70 28 C 56 28, 56 42, 70 42 L 70 70 L 70 98 C 84 98, 84 112, 70 112 L 70 140' fill='none' stroke='rgba(123, 47, 216, 0.04)' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M 140 70 L 140 98 C 126 98, 126 112, 140 112 L 140 140' fill='none' stroke='rgba(123, 47, 216, 0.04)' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

	/* Deep glass card recipe */
	--bento-bg: linear-gradient(135deg, rgba(123, 47, 216, 0.07) 0%, rgba(5, 2, 10, 0.22) 100%);
	--bento-border: 1px solid rgba(255, 255, 255, 0.04);
	--bento-border-top: 1px solid rgba(123, 47, 216, 0.28);
	--bento-border-left: 1px solid rgba(123, 47, 216, 0.14);
	--bento-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
	--flow-depth-shadow:
		0 28px 56px -14px rgba(0, 0, 0, 0.72),
		0 14px 28px -10px rgba(0, 0, 0, 0.5),
		0 4px 12px rgba(0, 0, 0, 0.35);
	--flow-reveal-distance: 48px;
	--flow-reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body.flow-landing,
body.flow-landing button,
body.flow-landing input,
body.flow-landing textarea,
body.flow-landing select {
	font-family: var(--flow-font);
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

body.flow-landing,
body.flow-legal {
	background-color: #05020a;
	background-image: var(--flow-puzzle-grid);
	background-size: 140px 140px;
	background-repeat: repeat;
}

body.flow-landing {
	color: var(--flow-text);
	font-family: var(--flow-font);
	line-height: 1.65;
	min-height: 100vh;
}

/* ───────────── Film Grain Noise Overlay ───────────── */
.noise-overlay {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 50;
	opacity: 0.035;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
	background-size: 200px 200px;
	background-repeat: repeat;
}

#flow-page-shell {
	position: relative;
	z-index: 1;
	isolation: isolate;
	min-height: 100vh;
}

#flow-page-wrap.flow-page-stack {
	position: relative;
	z-index: 1;
	isolation: isolate;
}

.flow-wrap {
	width: var(--flow-wrap);
	margin-inline: auto;
}

.flow-section {
	position: relative;
	padding-block: var(--flow-section-pad);
	scroll-margin-top: calc(var(--flow-chrome-h) + 16px);
}

.flow-section__title {
	font-family: var(--flow-font);
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	font-weight: normal;
	letter-spacing: 0.04em;
	margin-bottom: 1.75rem;
	text-align: center;
	/* Default gradient — purple → yellow */
	background: linear-gradient(90deg, #a855f7 0%, #c084fc 45%, #f2ea1d 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	color: transparent;
}

/* Per-section gradient variations */
.flow-philosophy .flow-section__title {
	background-image: linear-gradient(90deg, #a855f7 0%, #e2d8f0 55%, #f2ea1d 100%);
}

.flow-tools .flow-section__title {
	background-image: linear-gradient(90deg, #f2ea1d 0%, #a855f7 100%);
}

.flow-forge .flow-section__title {
	background-image: linear-gradient(135deg, #c084fc 0%, #ffffff 50%, #f2ea1d 100%);
}

/* ───────────── Chrome (układ jak Element Guru: inner 1280px) ───────────── */
.flow-chrome {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	pointer-events: none;
}

.flow-chrome::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to bottom, rgba(5, 2, 10, 0.95) 0%, rgba(5, 2, 10, 0.55) 70%, transparent 100%);
	opacity: 0;
	transition: opacity 0.85s ease;
}

.flow-chrome.is-ready::before {
	opacity: 1;
}

.flow-chrome__logo,
.flow-chrome__right {
	opacity: 0;
	transition:
		opacity 0.65s var(--flow-reveal-ease),
		transform 0.65s var(--flow-reveal-ease);
}

.flow-chrome__logo {
	transform: translateX(-32px);
	transition-delay: 0.12s;
}

.flow-chrome__right {
	transform: translateX(32px);
	transition-delay: 0.22s;
}

.flow-chrome.is-ready .flow-chrome__logo,
.flow-chrome.is-ready .flow-chrome__right {
	opacity: 1;
	transform: none;
}

.flow-chrome__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 32px;
	min-height: var(--flow-chrome-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	pointer-events: auto;
}

.flow-chrome__logo {
	text-decoration: none;
	color: inherit;
	flex-shrink: 0;
	font-family: var(--flow-font);
	font-size: 1.4rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	white-space: nowrap;
}

.flow-chrome__right {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.flow-chrome__nav {
	display: flex;
	align-items: center;
	gap: 16px;
}

.flow-chrome__nav a {
	font-family: var(--flow-font);
	font-size: 13px;
	color: #d8cfe8;
	text-decoration: none;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.flow-chrome__nav a:hover,
.flow-chrome__nav a:focus-visible {
	color: var(--flow-accent-light, #c084fc);
}

.flow-chrome__right .flow-lang-dd {
	overflow: visible;
}

/* ───────────── Logo F.L.O.W. ───────────── */
.flow-logo-brand {
	display: inline-block;
	vertical-align: middle;
}

.flow-logo-brand__inject {
	position: relative;
	display: inline-block;
	vertical-align: baseline;
	width: max-content;
	max-width: 100%;
}

.flow-logo-brand__inject--holonic {
	display: inline-flex;
	align-items: flex-start;
	height: 3.35rem;
	box-sizing: border-box;
	overflow: visible;
}

.flow-logo-brand__holon-shell {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 20;
	pointer-events: none;
	display: block;
	width: max-content;
	max-width: 100%;
	overflow: visible;
}

.flow-logo-brand__holon-mirror {
	display: inline-flex;
	flex-direction: column;
	align-items: stretch;
	width: max-content;
	max-width: 100%;
	row-gap: 0;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	letter-spacing: inherit;
	line-height: 1.2;
}

.flow-logo-brand__holon-line-wrap {
	width: 100%;
	align-self: stretch;
	margin-top: -0.26em;
	padding-top: 0;
	line-height: 0;
	overflow: visible;
}

.flow-logo-brand__holon-mirror-row {
	display: inline-flex;
	flex-wrap: nowrap;
	align-items: baseline;
	justify-content: flex-start;
	white-space: nowrap;
}

.flow-logo-brand__holon-mirror-letter,
.flow-logo-brand__holon-mirror-dot {
	visibility: hidden;
}

.flow-logo-brand__holon-mirror-dot {
	font-size: 1.55em;
}

.flow-logo-brand__holon-line {
	display: block;
	box-sizing: border-box;
	width: 100%;
	font-family: var(--flow-font-sans);
	font-size: var(--flow-section-label-font-size);
	font-weight: 600;
	font-style: normal;
	line-height: 1;
	letter-spacing: var(--flow-section-label-tracking);
	text-align: right;
	text-transform: none;
	color: #a855f7;
	white-space: nowrap;
}

.flow-chrome__logo:hover .flow-logo-brand__holon-line {
	color: #c084fc;
}

.flow-logo-brand__inject--holonic .flow-logo-brand__stage {
	position: relative;
	z-index: 1;
}

.flow-logo-brand__stage {
	position: relative;
	display: inline-block;
}

.flow-chrome__logo .flow-logo-brand__text {
	font-size: 1.4rem;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.flow-logo-brand__text {
	display: inline-flex;
	align-items: baseline;
	position: relative;
	z-index: 1;
	font-family: var(--flow-font);
	font-size: clamp(1rem, 2.5vw, 1.25rem);
	font-weight: normal;
	letter-spacing: 0.06em;
	white-space: nowrap;
}

.flow-logo-brand__letter {
	color: var(--flow-accent-light);
}

.flow-logo-brand__dot-slot {
	display: inline-flex;
	align-items: baseline;
	justify-content: center;
	width: 0.55em;
	min-width: 10px;
	position: relative;
	z-index: 2;
	vertical-align: baseline;
}

.flow-chrome__logo .flow-logo-brand__orb {
	width: 9px;
	height: 9px;
}

.flow-logo-brand__orb {
	display: block;
	position: relative;
	z-index: 2;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--flow-accent-dark);
	box-shadow: 0 0 8px rgba(123, 47, 216, 0.75);
	flex-shrink: 0;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.flow-logo-brand__dot-slot.is-active .flow-logo-brand__orb {
	box-shadow:
		0 0 10px rgba(123, 47, 216, 0.95),
		0 0 18px rgba(123, 47, 216, 0.45);
	transform: scale(1.12);
}

.flow-logo-brand__orb.is-flying {
	box-shadow:
		0 0 12px rgba(123, 47, 216, 1),
		0 0 22px rgba(180, 120, 255, 0.55);
	transform: translate(-50%, -50%) scale(1.15);
}

.flow-logo-brand__trail {
	position: absolute;
	top: 0;
	left: 0;
	pointer-events: none;
	z-index: 0;
}

.flow-logo-brand--footer {
	display: flex;
	justify-content: center;
	width: 100%;
}

.flow-logo-brand--footer .flow-logo-brand__text {
	font-size: clamp(1.75rem, 5vw, 2.5rem);
}

.flow-logo-brand--footer .flow-logo-brand__orb {
	width: 9px;
	height: 9px;
}

.flow-logo-brand--static .flow-logo-brand__trail {
	display: none;
}

.flow-logo-brand--static .flow-logo-brand__dot-slot.is-active .flow-logo-brand__orb,
.flow-logo-brand--static .flow-logo-brand__orb {
	box-shadow: 0 0 8px rgba(123, 47, 216, 0.75);
	transform: none;
}

/* ───────────── Lang dropdown ───────────── */
.flow-lang-dd {
	position: relative;
}

.flow-lang-dd__btn {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	min-width: 40px;
	min-height: 40px;
	padding: 0;
	border: 1px solid color-mix(in srgb, var(--flow-accent-light) 35%, transparent);
	border-radius: 10px;
	color: var(--flow-accent-light);
	background: rgba(5, 2, 10, 0.65);
	transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

.flow-lang-dd__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.flow-lang-dd__glyph {
	display: block;
	flex-shrink: 0;
}

.flow-lang-dd__btn::-webkit-details-marker {
	display: none;
}

.flow-lang-dd[open] .flow-lang-dd__btn,
.flow-lang-dd__btn:hover {
	border-color: var(--flow-accent-light);
	box-shadow: 0 0 14px color-mix(in srgb, var(--flow-accent-light) 35%, transparent);
}

.flow-lang-dd__panel {
	position: absolute;
	left: 50%;
	right: auto;
	top: calc(100% + 8px);
	transform: translateX(-50%);
	min-width: 72px;
	padding: 6px;
	border: 1px solid color-mix(in srgb, var(--flow-accent-dark) 45%, transparent);
	border-radius: var(--flow-r-lg);
	background: rgba(5, 2, 10, 0.97);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.flow-lang-dd__opt {
	display: block;
	padding: 0.35rem 0.65rem;
	font-family: var(--flow-font);
	font-size: 12px;
	letter-spacing: 0.12em;
	color: var(--flow-text-secondary);
	text-decoration: none;
	border-radius: var(--flow-r);
}

.flow-lang-dd__opt:hover,
.flow-lang-dd__opt.is-current {
	color: var(--flow-accent-light);
	background: color-mix(in srgb, var(--flow-accent-dark) 18%, transparent);
}

/* ───────────── Buttons ───────────── */
.flow-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.85rem 1.5rem;
	font-family: var(--flow-font);
	font-size: 15px;
	font-weight: normal;
	letter-spacing: 0.06em;
	text-decoration: none;
	border-radius: var(--flow-r-pill);
	border: 1px solid color-mix(in srgb, var(--flow-accent-light) 55%, var(--flow-accent-dark) 45%);
	cursor: pointer;
	transition: box-shadow 0.25s, transform 0.2s, background 0.25s, color 0.25s;
}

.flow-btn--primary {
	color: #000;
	background: linear-gradient(135deg, var(--flow-accent-light) 0%, color-mix(in srgb, var(--flow-accent-light) 80%, #fff) 100%);
}

.flow-btn--glow:hover {
	box-shadow:
		0 0 20px color-mix(in srgb, var(--flow-accent-light) 45%, transparent),
		0 0 40px color-mix(in srgb, var(--flow-accent-dark) 25%, transparent);
	transform: translateY(-1px);
}

/* Neonowy przycisk CTA */
.flow-btn--pazur {
	background: transparent;
	color: #f2ea1d;
	border: 2px solid #f2ea1d;
	border-radius: 999px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-family: var(--flow-font-sans);
	font-weight: 600;
	font-size: 13px;
	box-shadow:
		0 0 12px rgba(242, 234, 29, 0.25),
		inset 0 0 12px rgba(242, 234, 29, 0.06);
}

.flow-btn--pazur:hover {
	background: #f2ea1d;
	color: #000;
	box-shadow: 0 0 25px rgba(242, 234, 29, 0.4);
	transform: translateY(-1px);
}

/* ───────────── Deep Glassmorphism — shared card recipe ───────────── */
.flow-glass-card {
	background: var(--bento-bg);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border-radius: 24px;
	border: var(--bento-border);
	border-top: var(--bento-border-top);
	border-left: var(--bento-border-left);
	box-shadow: var(--bento-shadow);
	box-sizing: border-box;
	overflow: hidden;
	padding: clamp(1.5rem, 5vw, 3rem);
}

/* ───────────── Hero ───────────── */
.flow-hero {
	min-height: calc(100vh - var(--flow-chrome-h));
	display: flex;
	align-items: center;
	padding-top: calc(var(--flow-chrome-h) + 2rem);
	overflow: hidden;
	background-image:
		linear-gradient(to bottom, #05020a 0%, transparent 16%, transparent 84%, #05020a 100%),
		radial-gradient(circle, rgba(5, 2, 10, 0.72) 0%, rgba(5, 2, 10, 0.96) 100%),
		var(--flow-hero-bg, none);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.flow-hero__inner {
	position: relative;
	z-index: 3;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(1.1rem, 2.8vw, 1.85rem);
}

.flow-hero__inner > * {
	margin-top: 0;
	margin-bottom: 0;
}

.flow-hero__cta-wrap {
	margin-top: 0.25rem;
	display: flex;
	justify-content: center;
	width: 100%;
}

/* Pill badge nad h1 */
.hero-pill {
	display: inline-flex;
	align-items: center;
	padding: 6px 16px;
	border-radius: 999px;
	background: rgba(123, 47, 216, 0.1);
	border: 1px solid rgba(123, 47, 216, 0.3);
	color: #a095b5;
	font-family: var(--flow-font-sans);
	font-size: 0.82rem;
	font-style: normal;
	letter-spacing: 0.04em;
	margin-bottom: 24px;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	/* Shimmer setup — no visual change at rest */
	position: relative;
	overflow: hidden;
}

/* Diagonal shimmer beam — passes through every ~5s */
.hero-pill::after {
	content: '';
	position: absolute;
	top: -60%;
	left: -80%;
	width: 45%;
	height: 220%;
	background: linear-gradient(
		105deg,
		transparent 15%,
		rgba(255, 255, 255, 0.28) 45%,
		rgba(255, 255, 255, 0.38) 50%,
		rgba(255, 255, 255, 0.28) 55%,
		transparent 85%
	);
	transform: skewX(-15deg);
	animation: hero-pill-shimmer 9s ease-in-out infinite;
	pointer-events: none;
}

@keyframes hero-pill-shimmer {
	0%   { left: -80%; }
	30%  { left: 120%; }
	100% { left: 120%; }
}

@media (prefers-reduced-motion: reduce) {
	.hero-pill::after {
		display: none;
	}
}

.flow-hero__title {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: clamp(1.75rem, 5vw, 3.25rem);
	font-weight: 700;
	line-height: 1.14;
	letter-spacing: 0.01em;
	background: linear-gradient(90deg, #f2ea1d 0%, #a855f7 60%, #7b2fd8 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	color: transparent;
	margin-bottom: 1rem;
	max-width: 12em;
	margin-inline: auto;
}

.flow-hero__headline {
	font-family: var(--flow-font);
	font-size: clamp(1.05rem, 2.4vw, 1.45rem);
	font-weight: normal;
	line-height: 1.35;
	max-width: 28em;
	/* White → light purple gradient */
	background: linear-gradient(90deg, #ffffff 0%, #e2d8f0 40%, #c084fc 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	color: transparent;
}

.flow-line,
.flow-hero__line {
	display: block;
}

.flow-line + .flow-line {
	margin-top: 0.2em;
}

/* .flow-hero__subtitle removed from hero — kept as fallback if reused elsewhere */
.flow-hero__subtitle {
	max-width: 36em;
	font-size: 1.1rem;
	color: #e2d8f0;
	line-height: 1.6;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Marker-underline na wyróżnionym słowie w nagłówku */
.flow-hero__mark {
	position: relative;
	display: inline;
	padding-bottom: 0.05em;
}

/* Mark inside gradient-text headline — solid yellow, no gradient */
.flow-hero__headline .flow-hero__mark {
	background: none;
	-webkit-text-fill-color: #f2ea1d;
	color: #f2ea1d;
}

/* ───────────── Depth (warstwa przed tłem) ───────────── */
.flow-depth,
.hero-pill {
	box-shadow:
		var(--flow-depth-shadow),
		var(--bento-shadow),
		inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ───────────── Reveal — wlatuje z dołu przy scrollu ───────────── */
.flow-reveal {
	opacity: 0;
	transform: translateY(var(--flow-reveal-distance));
	transition:
		opacity 0.78s var(--flow-reveal-ease),
		transform 0.78s var(--flow-reveal-ease);
	will-change: opacity, transform;
}

.flow-reveal.is-visible {
	opacity: 1;
	transform: none;
}

.flow-hero .hero-pill.flow-reveal              { transition-delay: 0.04s; }
.flow-hero__title.flow-reveal                  { transition-delay: 0.1s; }
.flow-hero__headline.flow-reveal               { transition-delay: 0.22s; }
.flow-hero__cta-wrap.flow-reveal               { transition-delay: 0.34s; }

.flow-philosophy__list .flow-philosophy__item.flow-reveal:nth-child(1) { transition-delay: 0.06s; }
.flow-philosophy__list .flow-philosophy__item.flow-reveal:nth-child(2) { transition-delay: 0.16s; }
.flow-philosophy__list .flow-philosophy__item.flow-reveal:nth-child(3) { transition-delay: 0.26s; }

.flow-tools .flow-bento-grid .flow-bento-card.flow-reveal:nth-child(1) { transition-delay: 0.04s; }
.flow-tools .flow-bento-grid .flow-bento-card.flow-reveal:nth-child(2) { transition-delay: 0.12s; }
.flow-tools .flow-bento-grid .flow-bento-card.flow-reveal:nth-child(3) { transition-delay: 0.2s; }
.flow-tools .flow-bento-grid .flow-bento-card.flow-reveal:nth-child(4) { transition-delay: 0.28s; }

.flow-forge__title.flow-reveal                 { transition-delay: 0.05s; }
.flow-forge__desc.flow-reveal                  { transition-delay: 0.14s; }
.flow-forge__form-wrap.flow-reveal               { transition-delay: 0.24s; }

/* ───────────── Ticker ───────────── */
@keyframes flow-ticker-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-33.333%); }
}

/* Ticker — bez reveal, zawsze widoczny */
.flow-ticker {
	overflow: hidden;
	white-space: nowrap;
	background: #000000;
	opacity: 1;
	transform: none;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	padding: 20px 0;
	margin: 0 0 60px;
	box-shadow:
		0 0 18px 6px rgba(0, 0, 0, 0.95),
		0 0 36px 14px rgba(0, 0, 0, 0.75),
		0 -10px 28px 8px rgba(0, 0, 0, 0.85),
		0 10px 28px 8px rgba(0, 0, 0, 0.85);
	-webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
	mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.flow-ticker__track {
	display: inline-flex;
	animation: flow-ticker-scroll 28s linear infinite;
}

.flow-ticker__content {
	display: inline-block;
	font-family: var(--flow-font-sans);
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: rgba(226, 216, 240, 0.7);
	padding-right: 0.5em;
}

@media (prefers-reduced-motion: reduce) {
	.flow-ticker__track {
		animation: none;
	}
}

/* ───────────── Philosophy — 3-column glassmorphism cards ───────────── */
.flow-philosophy__inner {
	max-width: 100%;
}

.flow-philosophy__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

/* Item: layout only — glass visuals come from .flow-glass-card */
.flow-philosophy__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	text-align: center;
	/* Override flow-glass-card padding for this context */
	padding: 1.75rem 1.75rem 2rem;
	position: relative;
}

/* Big background number via ::after */
.flow-philosophy__item::after {
	position: absolute;
	bottom: -10px;
	right: 12px;
	font-size: 8rem;
	font-weight: 800;
	font-family: var(--flow-font-sans);
	color: rgba(123, 47, 216, 0.1);
	z-index: 0;
	pointer-events: none;
	line-height: 1;
	user-select: none;
}

.flow-philosophy__item:nth-child(1)::after { content: '01'; }
.flow-philosophy__item:nth-child(2)::after { content: '02'; }
.flow-philosophy__item:nth-child(3)::after { content: '03'; }

/* Neonowy diamond — glowing symbol nad tytułem */
.flow-philosophy__bullet {
	display: block;
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	background: linear-gradient(135deg, #a855f7 0%, #7b2fd8 100%);
	box-shadow:
		0 0 12px rgba(168, 85, 247, 0.9),
		0 0 28px rgba(123, 47, 216, 0.5),
		0 0 48px rgba(123, 47, 216, 0.2);
	transform: rotate(45deg);
	position: relative;
	z-index: 1;
}

/* Keep text above background number */
.flow-philosophy__bullet,
.flow-philosophy__item-title,
.flow-philosophy__item-text {
	position: relative;
	z-index: 1;
}

.flow-philosophy__item-title {
	width: 100%;
	font-size: 1.2rem;
	font-weight: 600;
	margin: 0 0 8px;
	line-height: 1.3;
	text-align: center;
	/* Light → violet gradient */
	background: linear-gradient(90deg, #ffffff 0%, #e2d8f0 40%, #c084fc 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	color: transparent;
}

.flow-philosophy__item-text {
	width: 100%;
	color: #a095b5;
	font-size: 0.95rem;
	line-height: 1.5;
	margin: 0;
	text-align: center;
}

/* Subtitle below philosophy list, above divider */
.flow-philosophy__desc {
	max-width: 44em;
	margin: 2rem auto 0;
	font-size: 0.97rem;
	line-height: 1.65;
	text-align: center;
	color: #c084fc;
	text-shadow:
		0 0 18px rgba(168, 85, 247, 0.4),
		0 0 40px rgba(123, 47, 216, 0.18);
}

.flow-philosophy__desc .flow-line {
	display: block;
}

/* ───────────── Tools — Two-column layout + Orbit ───────────── */
.flow-tools__intro {
	margin-bottom: clamp(1rem, 3vw, 2rem);
}

.flow-tools__title {
	margin-bottom: 0;
	text-align: center;
}

.flow-tools__outro {
	margin-top: clamp(1.5rem, 4vw, 2.5rem);
	text-align: center;
	font-family: var(--flow-font);
	font-size: clamp(1.15rem, 2.5vw, 1.45rem);
	font-style: italic;
	color: var(--flow-accent-light);
	letter-spacing: 0.04em;
}

/* Tools bento — manifesto column slightly narrow; tool slots absorb the extra width */
.flow-tools__bento-wrap {
	width: min(1660px, calc(100% - 36px));
	margin-inline: auto;
	margin-top: clamp(1rem, 3vw, 2rem);
	padding-inline: clamp(10px, 1.5vw, 20px);
}

.flow-tools .flow-bento-grid {
	max-width: none;
	width: 100%;
}

/* Manifesto cell — tall left column spanning two tool rows */
.flow-tools .flow-bento-card--manifesto {
	--manifesto-slash-solid: 5rem;
	--manifesto-slash-fade: 1.65rem;
	--manifesto-diagonal-cut: 14%;
	grid-column: span 4;
	grid-row: span 2;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	min-height: 100%;
}

/* Bg — two halves separated by diagonal slash (no overlap) */
.flow-manifesto-bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
}

.flow-manifesto-bg__half {
	width: 100%;
	flex: 1 1 0;
	min-height: 0;
	overflow: hidden;
	position: relative;
}

.flow-manifesto-bg__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.flow-manifesto-bg__half--top {
	clip-path: polygon(
		0 0,
		100% 0,
		100% calc(100% - var(--manifesto-diagonal-cut)),
		0 100%
	);
}

.flow-manifesto-bg__half--bottom {
	clip-path: polygon(
		0 var(--manifesto-diagonal-cut),
		100% 0,
		100% 100%,
		0 100%
	);
}

/* Diagonal band between halves: fade → black → fade */
.flow-manifesto-slash {
	position: absolute;
	left: -18%;
	width: 136%;
	top: 50%;
	height: calc(var(--manifesto-slash-solid) + 2 * var(--manifesto-slash-fade));
	transform: translateY(-50%) rotate(-14deg);
	transform-origin: center center;
	background: linear-gradient(
		to bottom,
		transparent 0px,
		rgba(0, 0, 0, 0.5) calc(var(--manifesto-slash-fade) * 0.45),
		#000000 calc(var(--manifesto-slash-fade) * 0.9),
		#000000 calc(var(--manifesto-slash-fade) + var(--manifesto-slash-solid)),
		rgba(0, 0, 0, 0.5) calc(var(--manifesto-slash-fade) + var(--manifesto-slash-solid) + var(--manifesto-slash-fade) * 0.55),
		transparent calc(var(--manifesto-slash-fade) + var(--manifesto-slash-solid) + var(--manifesto-slash-fade))
	);
	z-index: 2;
	pointer-events: none;
}

/* Inner glass box — centered manifesto copy */
.flow-manifesto-inner {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1.1rem;
	width: min(calc(100% - 2.75rem), 22.5em);
	margin: clamp(1rem, 2.5vw, 1.75rem);
	padding: clamp(1.25rem, 2.25vw, 1.85rem) clamp(1rem, 1.75vw, 1.5rem);
	text-align: center;
	background:
		linear-gradient(145deg, rgba(0, 0, 0, 0.82) 0%, rgba(5, 2, 10, 0.74) 100%),
		var(--bento-bg);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border-radius: 18px;
	border: var(--bento-border);
	border-top: var(--bento-border-top);
	border-left: var(--bento-border-left);
	box-shadow:
		var(--flow-depth-shadow),
		var(--bento-shadow),
		inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.flow-manifesto-inner .flow-tools__manifesto-para {
	text-align: center;
	font-size: clamp(0.9rem, 1.1vw, 1.02rem);
	line-height: 1.72;
}

/* Tool slots beside manifesto, then full-width banner */
.flow-tools .flow-bento-card--slot-top,
.flow-tools .flow-bento-card--slot-mid {
	grid-column: span 8;
	margin-right: clamp(10px, 1.25vw, 20px);
	width: calc(100% - clamp(10px, 1.25vw, 20px));
}

.flow-tools .flow-bento-card--full {
	grid-column: span 12;
	margin-right: clamp(10px, 1.25vw, 20px);
	width: calc(100% - clamp(10px, 1.25vw, 20px));
}

/* Tool cards — centered copy, natural desc wrapping */
.flow-tools .flow-bento-card__content {
	align-items: center;
	text-align: center;
}

.flow-tools .flow-bento-card__content .bento-badge {
	align-self: center;
}

.flow-tools .flow-bento-card__title {
	flex: none;
	width: auto;
	text-align: center;
	margin-bottom: 0.35rem;
}

.flow-tools .flow-bento-card--slot-top .flow-bento-card__content,
.flow-tools .flow-bento-card--slot-mid .flow-bento-card__content {
	padding-inline: clamp(1.25rem, 2.5vw, 2rem);
}

.flow-tools .flow-bento-card__hook,
.flow-tools .flow-bento-card__hook .flow-line {
	text-align: center;
}

.flow-tools .flow-bento-card__desc {
	max-width: none;
	width: 100%;
	hyphens: none;
	word-break: normal;
	overflow-wrap: normal;
	text-wrap: pretty;
	text-align: center;
}

.flow-tools .flow-bento-card__desc .flow-line {
	display: block;
	text-align: center;
}

.flow-tools .flow-bento-card--full .flow-bento-card__content {
	align-items: center;
	text-align: center;
}

/* Desktop two-column split — 40% manifesto | 60% bento */
.flow-tools__split {
	display: grid;
	grid-template-columns: 2fr 3fr;
	align-items: start;
	width: 100%;
	margin-top: clamp(1rem, 3vw, 2rem);
}

/* Manifesto — plain text only, no card, no border, no background */
.flow-tools__manifesto {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(2rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
}

.flow-tools__manifesto-inner {
	display: flex;
	flex-direction: column;
	gap: 1.35rem;
	text-align: center;
	max-width: 32em;
}

.flow-tools__manifesto-para {
	font-family: var(--flow-font);
	font-size: clamp(0.95rem, 1.4vw, 1.1rem);
	line-height: 1.8;
	color: #c084fc;
	margin: 0;
}

/* Mobile tools list (hidden on desktop) */
.flow-tools__mobile-list {
	display: none;
}

/* ── Bento column (right side of split) ── */
.flow-tools__bento-col {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
	padding: 2rem clamp(1rem, 3vw, 2.5rem);
}

/* Each card — wide, with stagger */
.flow-tools__bento-card {
	display: flex;
	flex-direction: row;
	width: min(560px, 98%);
	min-height: 170px;
	overflow: hidden;
	padding: 0;
	border-radius: 18px;
}

/* Stagger: 1st & 3rd → right edge, 2nd → left edge */
.flow-tools__bento-card:nth-child(odd)  { align-self: flex-end; }
.flow-tools__bento-card:nth-child(even) { align-self: flex-start; }

/* Image area: fills ~44% of card, full card height */
.flow-tools__bento-media {
	position: relative;
	width: 44%;
	flex-shrink: 0;
	overflow: hidden;
	/* Fade toward the content: solid on outer edge, transparent on inner edge */
	-webkit-mask-image: linear-gradient(to right, black 30%, transparent 100%);
	mask-image:         linear-gradient(to right, black 30%, transparent 100%);
}

.flow-tools__bento-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Badge overlaid at bottom of image — smaller */
.flow-tools__bento-media .bento-badge {
	position: absolute;
	bottom: 8px;
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
	font-size: 0.58rem;
	padding: 2px 7px;
	border-radius: 4px;
	margin: 0;
	align-self: unset;
	z-index: 2;
}

/* Content area */
.flow-tools__bento-content {
	flex: 1;
	padding: 1.25rem 1.4rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.4rem;
	align-items: flex-start;
	text-align: left;
}

/* Even cards: image on right — flip order and fade direction */
.flow-tools__bento-card:nth-child(even) .flow-tools__bento-media {
	order: 2;
	-webkit-mask-image: linear-gradient(to left, black 30%, transparent 100%);
	mask-image:         linear-gradient(to left, black 30%, transparent 100%);
}
.flow-tools__bento-card:nth-child(even) .flow-tools__bento-content {
	order: 1;
	align-items: flex-end;
	text-align: right;
}

/* Title always centered */
.flow-tools__bento-content .flow-bento-card__title {
	text-align: center;
	width: 100%;
}

.flow-tools__bento-content .flow-bento-card__hook,
.flow-tools__bento-content .flow-bento-card__desc {
	max-width: 100%;
}

/* ── Orbit right column (kept for potential reuse) ── */
.flow-tools__orbit-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem 0;
	overflow: hidden;
}

.flow-orbit {
	position: relative;
	/* Fill the column without overflowing — 44vw ≈ 88% of one 50vw column */
	width: min(520px, 44vw);
	height: min(520px, 44vw);
	flex-shrink: 0;
}

/* No decorative ring — removed per design */

.flow-orbit__item {
	position: absolute;
	/*
	 * Box size = 35% of orbit → at 520px = 182px.
	 * Center offset = 17.5% of orbit (half box).
	 * Radius = 42% of orbit → at 520px = 218px.
	 * translateY as % of item height: 42% / 35% = 120%.
	 * Gap between adjacent box edges: 2·R·sin30° − box = R − box = 7% ≈ 36px ✓
	 */
	top: calc(50% - 17.5%);
	left: calc(50% - 17.5%);
	width: 35%;
	height: 35%;
	animation: flow-orbit-item 90s linear infinite;
}

@keyframes flow-orbit-item {
	from { transform: rotate(0deg)   translateY(-120%) rotate(0deg); }
	to   { transform: rotate(360deg) translateY(-120%) rotate(-360deg); }
}

.flow-orbit__card {
	width: 100%;
	height: 100%;
	border-radius: 18px;
	overflow: hidden;
	box-sizing: border-box;
}

.flow-orbit__card--img {
	box-shadow:
		0 8px 32px rgba(0, 0, 0, 0.55),
		0 0 0 1px rgba(123, 47, 216, 0.18);
}

.flow-orbit__card--img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.flow-orbit__card--text {
	background: var(--bento-bg);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border: var(--bento-border);
	border-top: var(--bento-border-top);
	border-left: var(--bento-border-left);
	box-shadow: var(--bento-shadow);
	padding: clamp(0.6rem, 4%, 1rem);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.4rem;
}

.flow-orbit__card-title {
	font-family: var(--flow-font);
	font-size: 0.88rem;
	font-weight: 600;
	background: linear-gradient(135deg, #f2ea1d 0%, #c084fc 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	color: transparent;
	margin: 0;
	line-height: 1.2;
}

.flow-orbit__card-hook {
	font-size: 0.7rem;
	color: #a095b5;
	line-height: 1.4;
	margin: 0;
	font-style: italic;
}

.flow-orbit__card-hook .flow-line {
	display: block;
}

/* Mobile tool card internals */
.flow-tools__mobile-item {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 1rem;
	align-items: start;
	padding: 1.25rem;
}

.flow-tools__mobile-media img {
	display: block;
	width: 120px;
	height: 120px;
	object-fit: cover;
	border-radius: 12px;
}

.flow-tools__mobile-content {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

/* ───────────── Section dividers ───────────── */
.flow-divider {
	height: 1px;
	max-width: var(--flow-wrap, min(1440px, calc(100% - 48px)));
	width: 100%;
	margin: 0 auto;
	background: linear-gradient(
		90deg,
		transparent,
		color-mix(in srgb, var(--flow-accent-dark) 50%, transparent) 20%,
		color-mix(in srgb, var(--flow-accent-light) 40%, transparent) 50%,
		color-mix(in srgb, var(--flow-accent-dark) 50%, transparent) 80%,
		transparent
	);
}

.flow-divider--narrow {
	max-width: 55%;
}

/* Bento grid container */
.flow-bento-grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 24px;
	max-width: 1440px;
	margin: 0 auto;
}

/* Bento card — base */
.flow-bento-card {
	background: var(--bento-bg);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border-radius: 24px;
	border: var(--bento-border);
	border-top: var(--bento-border-top);
	border-left: var(--bento-border-left);
	box-shadow:
		var(--flow-depth-shadow),
		var(--bento-shadow),
		inset 0 1px 0 rgba(255, 255, 255, 0.05);
	box-sizing: border-box;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	position: relative;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.flow-bento-card:hover {
	transform: translateY(-4px);
	box-shadow:
		0 40px 80px rgba(0, 0, 0, 0.65),
		0 28px 56px -14px rgba(0, 0, 0, 0.72),
		0 0 30px rgba(123, 47, 216, 0.12),
		inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Asymmetric column spans */
.flow-bento-card--wide   { grid-column: span 7; }
.flow-bento-card--narrow { grid-column: span 5; }
.flow-bento-card--full   { grid-column: span 12; }

/* Full-width card switches to row layout */
.flow-bento-card--full {
	flex-direction: row;
}

.flow-bento-card--full .flow-bento-card__media {
	width: 45%;
	height: auto;
	min-height: 320px;
	flex-shrink: 0;
	-webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);
	mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);
}

.flow-bento-card--full .flow-bento-card__media .flow-bento-card__image {
	border-radius: 24px 0 0 24px;
}

.flow-bento-card--full .flow-bento-card__content {
	flex: 1;
	justify-content: center;
	margin-top: 0;
}

/* ───────────── Bento Badge ───────────── */
.bento-badge {
	display: inline-block;
	width: fit-content;
	align-self: flex-start;
	margin-bottom: 12px;
	margin-top: 0;
	border: 1px solid rgba(242, 234, 29, 0.2);
	color: #f2ea1d;
	background: rgba(242, 234, 29, 0.04);
	padding: 4px 10px;
	border-radius: 6px;
	font-family: var(--flow-font-sans);
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 14px;
}

/* Bento card media wrapper — flush to card edges, carries the fade mask */
.flow-bento-card__media {
	width: 100%;
	height: 320px;
	min-height: 320px;
	flex-shrink: 0;
	overflow: hidden;
	margin: 0;
	padding: 0;
	-webkit-mask-image: linear-gradient(to bottom, black 45%, transparent 100%);
	mask-image: linear-gradient(to bottom, black 45%, transparent 100%);
}

/* Image inside media wrapper */
.flow-bento-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 24px 24px 0 0;
}

/* Bento card content — rides up over the fading image */
.flow-bento-card__content {
	padding: 2rem;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	flex: 1;
	position: relative;
	z-index: 2;
	margin-top: -80px;
}

.flow-bento-card__title-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.85rem;
	margin-bottom: 0.5rem;
	width: 100%;
}

.flow-bento-card__logo {
	position: relative;
	flex-shrink: 0;
	width: 48px;
	height: 48px;
}

.flow-bento-card__logo-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 0 16px rgba(242, 234, 29, 0.35));
	transition: opacity 0.45s ease;
}

.flow-bento-card__logo-img--purple {
	opacity: 0;
}

.flow-bento-card.is-active .flow-bento-card__logo-img--yellow {
	opacity: 0;
}

.flow-bento-card.is-active .flow-bento-card__logo-img--purple {
	opacity: 1;
	filter: drop-shadow(0 0 16px rgba(123, 47, 216, 0.45));
}

@media (hover: hover) {
	.flow-bento-card:hover .flow-bento-card__logo-img--yellow {
		opacity: 0;
	}

	.flow-bento-card:hover .flow-bento-card__logo-img--purple {
		opacity: 1;
		filter: drop-shadow(0 0 16px rgba(123, 47, 216, 0.45));
	}
}

/* Bento card title — yellow-to-purple gradient */
.flow-bento-card__title {
	font-family: var(--flow-font);
	font-size: clamp(1.35rem, 2.2vw, 1.85rem);
	font-weight: 600;
	margin: 0;
	flex: 1;
	min-width: 0;
	overflow-wrap: break-word;
	background: linear-gradient(135deg, #f2ea1d 0%, #c084fc 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.flow-bento-card__hook {
	font-family: var(--flow-font);
	font-size: 1rem;
	font-style: italic;
	letter-spacing: 0.02em;
	color: rgba(160, 149, 181, 0.85);
	margin-bottom: 0.85rem;
	line-height: 1.5;
}

.flow-bento-card__desc {
	color: #a095b5;
	font-size: 0.95rem;
	line-height: 1.6;
	max-width: 38em;
	word-break: break-word;
	hyphens: auto;
}

/* ───────────── Forge + newsletter ───────────── */
.flow-forge {
	background: radial-gradient(ellipse 80% 60% at 50% 100%, color-mix(in srgb, var(--flow-accent-dark) 12%, transparent), transparent 70%);
}

.flow-forge__desc {
	max-width: 42em;
	color: #a095b5;
	margin-bottom: 2rem;
	font-size: 0.98rem;
	line-height: 1.6;
	text-align: center;
	margin-inline: auto;
}

.flow-forge__form-wrap {
	max-width: 42rem;
	width: 100%;
	margin-inline: auto;
	display: flex;
	justify-content: center;
}

.flow-forge__form-wrap .flow-glass-card {
	margin-top: 0.5rem;
}

.flow-newsletter__banner {
	padding: 0.85rem 1rem;
	margin-bottom: 1.25rem;
	border-radius: var(--flow-r);
	font-family: var(--flow-font);
	font-size: 13px;
}

.flow-newsletter__banner--success {
	color: var(--flow-success);
	border: 1px solid color-mix(in srgb, var(--flow-success) 45%, transparent);
	background: color-mix(in srgb, var(--flow-success) 10%, transparent);
}

.flow-newsletter__banner--error {
	color: var(--flow-error);
	border: 1px solid color-mix(in srgb, var(--flow-error) 45%, transparent);
	background: color-mix(in srgb, var(--flow-error) 10%, transparent);
}

.flow-newsletter__hp {
	position: absolute;
	left: -9999px;
	opacity: 0;
	pointer-events: none;
}

.flow-newsletter__email {
	margin-bottom: 1rem;
}

.flow-newsletter__email-hint {
	margin: 0 0 0.65rem;
	color: #a095b5;
	font-size: 0.95rem;
	line-height: 1.45;
}

.flow-newsletter__field {
	display: block;
	margin-bottom: 0;
}

.flow-newsletter__input {
	width: 100%;
	padding: 0.85rem 1rem;
	font-family: var(--flow-font);
	font-size: 14px;
	color: var(--flow-text);
	background: rgba(5, 2, 10, 0.65);
	border: 1px solid #7b2fd8;
	border-radius: var(--flow-r);
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.flow-newsletter__input::placeholder {
	color: var(--flow-text-muted);
}

.flow-newsletter__input:focus {
	border-color: #7b2fd8;
	box-shadow: 0 0 15px rgba(123, 47, 216, 0.5);
}

.flow-newsletter__consents {
	margin: 0 0 1rem;
	padding: 1rem;
	border: 1px solid rgba(123, 47, 216, 0.25);
	border-radius: var(--flow-r);
	background: rgba(5, 2, 10, 0.35);
}

.flow-newsletter__legend {
	font-family: var(--flow-font);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--flow-text-muted);
	padding: 0 0.35rem;
}

.flow-newsletter__check {
	display: flex;
	gap: 0.65rem;
	align-items: flex-start;
	margin-top: 0.65rem;
	cursor: pointer;
	position: relative;
}

.flow-newsletter__check input {
	appearance: none;
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	margin-top: 0.1rem;
	flex-shrink: 0;
	border: 1px solid #7b2fd8;
	border-radius: 4px;
	background: rgba(5, 2, 10, 0.65);
	cursor: pointer;
	position: relative;
	transition: background 0.2s, box-shadow 0.2s;
}

.flow-newsletter__check input:checked {
	background: #7b2fd8;
	border-color: #7b2fd8;
	box-shadow: 0 0 8px rgba(123, 47, 216, 0.45);
}

.flow-newsletter__check input:checked::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 2px;
	width: 5px;
	height: 9px;
	border: solid #f2ea1d;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.flow-newsletter__check-text {
	font-family: var(--flow-font);
	font-size: 12px;
	line-height: 1.45;
	color: #a095b5;
}

.flow-newsletter__legal-link {
	color: var(--flow-accent-light);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.flow-newsletter__submit {
	display: block;
	margin-inline: auto;
}

.flow-newsletter__msg {
	font-family: var(--flow-font);
	font-size: 13px;
	min-height: 1.2em;
	margin-bottom: 0.75rem;
	color: #a095b5;
}

.flow-newsletter__msg--error {
	color: var(--flow-error);
}

.flow-newsletter__msg--ok {
	color: var(--flow-success);
}

.flow-newsletter__done-text {
	font-family: var(--flow-font);
	font-size: 14px;
	line-height: 1.55;
	color: #a095b5;
	white-space: pre-line;
}

/* ───────────── Footer ───────────── */
.flow-footer {
	position: relative;
	z-index: 2;
	margin-top: 2rem;
	padding-bottom: 2rem;
}

.flow-footer__divider {
	height: 1px;
	background: linear-gradient(
		90deg,
		transparent,
		color-mix(in srgb, var(--flow-accent-dark) 50%, transparent) 20%,
		color-mix(in srgb, var(--flow-accent-light) 40%, transparent) 50%,
		color-mix(in srgb, var(--flow-accent-dark) 50%, transparent) 80%,
		transparent
	);
	margin-bottom: 2.5rem;
}

.flow-footer__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	align-items: stretch;
}

.flow-footer__col--logo {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	align-self: stretch;
	width: 100%;
	min-height: 100%;
	gap: 1rem;
}

.flow-footer__col--logo .flow-footer__links {
	text-align: center;
}

.flow-chrome__nav a.hero-pill {
	margin-bottom: 0;
	text-decoration: none;
	color: #a095b5;
}

.flow-chrome__nav a.hero-pill:hover,
.flow-chrome__nav a.hero-pill:focus-visible {
	color: var(--flow-accent-light, #c084fc);
}

.flow-footer__col--legal {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.flow-footer__logo-link {
	display: flex;
	width: 100%;
	justify-content: center;
	align-items: center;
	text-decoration: none;
	color: inherit;
}

.flow-footer__logo-link .flow-logo-brand {
	display: flex;
	justify-content: center;
	width: 100%;
	filter: drop-shadow(0 0 20px color-mix(in srgb, var(--flow-accent-light) 25%, transparent));
}

.flow-footer__heading {
	font-family: var(--flow-font);
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--flow-text-muted);
	margin-bottom: 0.85rem;
}

.flow-footer__links {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.flow-footer__links a {
	font-family: var(--flow-font);
	font-size: 13px;
	color: #a095b5;
	text-decoration: none;
	transition: color 0.2s;
}

.flow-footer__links a:hover {
	color: var(--flow-accent-light);
}

.flow-footer__bottom {
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: none;
	position: relative;
	text-align: center;
}

.flow-footer__bottom::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(
		90deg,
		transparent,
		color-mix(in srgb, var(--flow-accent-dark) 50%, transparent) 20%,
		color-mix(in srgb, var(--flow-accent-light) 40%, transparent) 50%,
		color-mix(in srgb, var(--flow-accent-dark) 50%, transparent) 80%,
		transparent
	);
}

.flow-footer__bottom p {
	font-family: var(--flow-font);
	font-size: 12px;
	letter-spacing: 0.06em;
	color: var(--flow-text-muted);
	margin: 0;
}

.flow-footer__copyright-prefix {
	color: #c084fc;
}

.flow-footer__copyright-holon {
	color: var(--flow-text-muted);
	text-decoration: none;
	transition: color 0.2s ease;
}

.flow-footer__copyright-holon:hover {
	color: var(--flow-accent-light);
}

/* ───────────── Background Orbs (jak EG: pod treścią, nad tłem body) ───────────── */
#flow-bg-orbs {
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	overflow: hidden;
}

#flow-bg-orbs .flow-bg-orb {
	position: absolute;
	top: 0;
	left: 0;
	width: clamp(300px, 32vw, 560px);
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	opacity: 0.42;
	filter: blur(58px) saturate(1.25);
	will-change: transform, background;
}

#flow-bg-orbs .flow-bg-orb--purple {
	width: clamp(300px, 31vw, 540px);
}

/* ───────────── Aurora Glows ───────────── */
.flow-aurora-wrap {
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	overflow: hidden;
}

/* Landing effect canvases — jak EG: tubes za tłem, kursor pod treścią */
.flow-bg-canvas {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	pointer-events: none;
}

.flow-bg-canvas--tubes {
	z-index: -2;
}

.flow-bg-canvas--cursor {
	z-index: 0;
}

.flow-aurora-glow {
	position: absolute;
	width: 700px;
	height: 700px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(123, 47, 216, 0.2) 0%, transparent 60%);
	filter: blur(120px);
	pointer-events: none;
}

.flow-aurora-glow--1 {
	top: 10%;
	left: -10%;
	width: 600px;
	height: 600px;
	background: radial-gradient(circle, rgba(123, 47, 216, 0.18) 0%, transparent 60%);
}

.flow-aurora-glow--2 {
	top: 45%;
	right: -5%;
	width: 650px;
	height: 650px;
	background: radial-gradient(circle, rgba(100, 30, 200, 0.15) 0%, transparent 60%);
}

.flow-aurora-glow--3 {
	bottom: 5%;
	left: 25%;
	width: 550px;
	height: 550px;
	background: radial-gradient(circle, rgba(140, 60, 230, 0.14) 0%, transparent 60%);
}

/* ───────────── Responsive ───────────── */
@media (max-width: 1024px) {
	.flow-chrome__inner {
		padding: 0 16px;
		gap: 8px;
	}

	.flow-chrome__logo {
		flex: 1 1 auto;
		min-width: 0;
		max-width: min(46vw, 220px);
		overflow: visible;
	}

	.flow-chrome__nav a {
		font-size: 12px;
	}

	.flow-logo-brand__inject--holonic {
		height: clamp(2.35rem, 7.2vw, 3.35rem);
		max-width: 100%;
	}

	.flow-chrome__right {
		--flow-nav-chip: 38px;
	}

	.flow-chrome__right .flow-lang-dd__btn {
		width: var(--flow-nav-chip);
		height: var(--flow-nav-chip);
		min-width: var(--flow-nav-chip);
		min-height: var(--flow-nav-chip);
	}
}

@media (max-width: 860px) {
	.flow-philosophy__list {
		grid-template-columns: 1fr;
	}

	.flow-tools__bento-wrap {
		width: min(1440px, calc(100% - 24px));
		padding-inline: 12px;
	}

	.flow-tools .flow-bento-card--manifesto,
	.flow-tools .flow-bento-card--slot-top,
	.flow-tools .flow-bento-card--slot-mid,
	.flow-tools .flow-bento-card--full {
		grid-column: span 12;
		grid-row: span 1;
	}

	/* Manifesto — grow with content; keep diagonal background visible via padding */
	.flow-tools .flow-bento-card--manifesto {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		min-height: auto;
		padding-block: clamp(2.5rem, 8vw, 4rem);
	}

	.flow-manifesto-inner {
		align-self: center;
		width: calc(100% - 1.5rem);
		margin: 0;
	}

	.flow-tools .flow-bento-card--slot-top,
	.flow-tools .flow-bento-card--slot-mid,
	.flow-tools .flow-bento-card--full {
		margin-right: 0;
		width: 100%;
	}

	.flow-bento-card--full {
		flex-direction: column;
	}

	.flow-bento-card--full .flow-bento-card__media {
		width: 100%;
		height: 260px;
		min-height: unset;
		-webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 100%);
		mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 100%);
	}

	.flow-bento-card--full .flow-bento-card__media .flow-bento-card__image {
		border-radius: 24px 24px 0 0;
	}

	.flow-bento-card--full .flow-bento-card__content {
		margin-top: -80px;
	}

	.flow-footer__grid {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.flow-footer__links {
		align-items: center;
	}

	/* Hide desktop orbit layout, show mobile list */
	.flow-tools__split {
		display: none;
	}

	.flow-tools__mobile-list {
		display: grid;
		grid-template-columns: 1fr;
		gap: 1.5rem;
		margin-top: clamp(1rem, 3vw, 2rem);
	}

	.flow-tools__manifesto {
		padding: 1.5rem 1.25rem;
	}

	.flow-tools__manifesto-inner {
		max-width: 100%;
	}

	.flow-tools__manifesto-para {
		font-size: 0.97rem;
	}
}

@media (max-width: 768px) {
	.flow-bento-card--wide,
	.flow-bento-card--narrow,
	.flow-bento-card--full {
		grid-column: span 12;
	}
}

@media (prefers-reduced-motion: reduce) {
	.flow-chrome::before {
		opacity: 1;
		transition: none;
	}

	.flow-chrome__logo,
	.flow-chrome__right,
	.flow-chrome.is-ready .flow-chrome__logo,
	.flow-chrome.is-ready .flow-chrome__right {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.flow-reveal,
	.flow-reveal.is-visible {
		opacity: 1;
		transform: none;
		transition: none;
	}

	/* Stop orbit on reduced-motion — show mobile list instead */
	.flow-tools__split {
		display: none;
	}

	.flow-tools__mobile-list {
		display: grid;
		grid-template-columns: 1fr;
		gap: 1.5rem;
		margin-top: clamp(1rem, 3vw, 2rem);
	}
}

/* ═══════════════════════════════════════════════════
   Legal subpages — glass card overrides
   ═══════════════════════════════════════════════════ */

/* Legal card: allow wide tables to scroll, no clipping */
.flow-legal-card {
	overflow: visible;
}

.flow-legal-card .flow-entry-content {
	overflow-x: auto;
}

/* Chrome visible on legal pages — same as landing */
body.flow-legal .flow-chrome::before {
	opacity: 1;
	background: linear-gradient(to bottom, rgba(5, 2, 10, 0.98) 0%, rgba(5, 2, 10, 0.85) 100%);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
}

body.flow-legal .flow-chrome__logo,
body.flow-legal .flow-chrome__right {
	opacity: 1;
	transform: none;
}

/* Aurora — slightly less intense on legal pages */
body.flow-legal .flow-aurora-glow--1 { opacity: 0.55; }
body.flow-legal .flow-aurora-glow--2 { opacity: 0.3; }
body.flow-legal .flow-aurora-glow--3 { opacity: 0.2; }

/* 404 — black construction stage + normal chrome */
body.flow-landing.flow-error404 {
	background-color: #000000;
	background-image: none;
	color: #fef08a;
}

body.flow-error404 #flow-page-shell {
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	padding-top: var(--flow-chrome-h);
}

body.flow-error404 #flow-page-wrap.flow-page-stack {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

body.flow-error404 .flow-error404 {
	flex: 1 1 auto;
	min-height: 0;
}

body.flow-error404 .flow-footer {
	flex-shrink: 0;
	margin-top: 0;
}

body.flow-error404 .flow-chrome::before {
	opacity: 1;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.55) 70%, transparent 100%);
}

body.flow-error404 .flow-chrome__logo,
body.flow-error404 .flow-chrome__right {
	opacity: 1;
	transform: none;
}
