/*
 * Zakladka AI (BellBox)
 *
 * Zrodlo: POV/bellbox-astro/src/components/BellBoxPage.astro (blok <style>).
 *
 * Wszystkie reguly sa zawezone do wrappera .bb-page. To jest istotne: w POC
 * cztery pierwsze reguly byly globalne (html, body, *, a) i nadpisalyby fonty
 * motywu, razem z naglowkiem i stopka, ktore tu pochodza juz z motywu virtue.
 *
 * Reguly naglowka, topbaru i stopki z POC zostaly pominiete celowo - te elementy
 * renderuje motyw (virtue/base.php -> get_header() / get_footer()).
 *
 * Arkusz jest wczytywany wylacznie na stronach z szablonem page-ai.php
 * (lib/ai-page.php, priorytet 110, czyli za style.css motywu potomnego).
 */

/* ------------------------------------------------------------------------
 * SZEROKOSC SEKCJI: pelna szerokosc okna (jak w proof of concepcie).
 *
 * Reszta serwisu jest boxed - #wrapper.container ma 1000px (style.css:136) -
 * ale ciemne sekcje zakladki AI celowo z tego wychodza, bo w wersji zamknietej
 * w 1000px hero traci caly efekt.
 *
 * Skladnik --bb-sb to szerokosc pionowego paska przewijania, ustawiana przez
 * skrypt w page-ai.php. Jednostka vw liczy sie razem z paskiem, wiec bez tej
 * korekty sekcje wystawalyby poza okno o polowe jego szerokosci i strona
 * dostawalaby kilkupikselowy poziomy pasek przewijania.
 *
 * Zeby wrocic do wersji zamknietej w 1000px: zakomentuj blok ponizej.
 * ------------------------------------------------------------------------ */
.bb-page .bb-hero,
.bb-page .bb-stats,
.bb-page .bb-process,
.bb-page .bb-contact {
	margin-left: calc(50% - 50vw + var(--bb-sb, 0px) / 2);
	margin-right: calc(50% - 50vw + var(--bb-sb, 0px) / 2);
}

/* ---------------------------------------------------------------- Podstawy */

.bb-page {
	--accent: #35a8c4;
	font-family: 'Open Sans', system-ui, sans-serif;
	background: #ffffff;
	color: #16202b;
}

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

.bb-page a {
	color: #1b7f96;
	text-decoration: none;
}

.bb-page a:hover {
	color: #1b7f96;
}

.bb-page ::selection {
	background: rgba(53, 168, 196, .22);
}

@keyframes bb-rise {
	from { opacity: 0; transform: translateY(22px); }
	to   { opacity: 1; transform: none; }
}

@keyframes bb-flow {
	0%   { transform: translateY(-6px); opacity: .15; }
	50%  { opacity: 1; }
	100% { transform: translateY(6px); opacity: .15; }
}

@keyframes bb-scan {
	0%   { transform: translateY(0); opacity: 0; }
	15%  { opacity: .9; }
	85%  { opacity: .9; }
	100% { transform: translateY(96px); opacity: 0; }
}

@keyframes bb-blink {
	0%, 100% { opacity: 1; }
	50%      { opacity: .25; }
}

/*
 * Tresc chowamy TYLKO wtedy, gdy skrypt odslaniajacy faktycznie wystartowal -
 * to on dokleja klase .bb-js do wrappera. Gdyby inline JS nie doszedl do
 * przegladarki (np. wtyczka laczaca skrypty), strona po prostu pokaze sie
 * bez animacji, zamiast zostac pusta pod sekcja hero.
 */
.bb-page.bb-js [data-reveal] { opacity: 0; }
.bb-page [data-reveal].bb-revealed { animation: bb-rise .65s cubic-bezier(.22, .7, .3, 1) both; }

/* Gdy uzytkownik prosi o ograniczenie animacji, pokazujemy tresc od razu. */
@media (prefers-reduced-motion: reduce) {
	.bb-page.bb-js [data-reveal] { opacity: 1; }
	.bb-page [data-reveal].bb-revealed { animation: none; }
	.bb-page .bb-arrow,
	.bb-page .bb-box-scan,
	.bb-page .bb-dot-blink { animation: none; }
}

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

.bb-page .bb-hero {
	position: relative;
	overflow: hidden;
	background: #2b3a42;
	color: #fff;
	padding: 96px 32px 88px;
	background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
	background-size: 56px 56px;
}

.bb-page .bb-hero-glow {
	position: absolute;
	top: -180px;
	right: -120px;
	width: 620px;
	height: 620px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(53, 168, 196, .30), rgba(53, 168, 196, 0) 68%);
	pointer-events: none;
}

.bb-page .bb-hero-inner {
	position: relative;
	max-width: 1180px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.12fr .88fr;
	gap: 68px;
	align-items: start;
}

.bb-page .bb-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #9fdcea;
	border: 1px solid rgba(159, 220, 234, .32);
	padding: 7px 13px;
	margin-bottom: 26px;
}

.bb-page .bb-dot-blink {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #e6007e;
	animation: bb-blink 1.8s ease-in-out infinite;
}

.bb-page .bb-h1 {
	font-size: 58px;
	line-height: 1.07;
	letter-spacing: -.025em;
	font-weight: 800;
	margin: 0 0 24px;
	text-transform: uppercase;
	text-wrap: balance;
	color: #fff;
}

.bb-page .bb-h1 span { color: #9fdcea; }

.bb-page .bb-hero-lead {
	font-size: 18.5px;
	line-height: 1.65;
	color: #b9c6d2;
	margin: 0 0 22px;
	max-width: 630px;
	text-wrap: pretty;
}

.bb-page .bb-hero-sub {
	font-size: 16px;
	line-height: 1.65;
	color: #93a3b3;
	margin: 0 0 34px;
	max-width: 630px;
	text-wrap: pretty;
}

.bb-page .bb-cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.bb-page .bb-btn-primary {
	display: inline-block;
	padding: 16px 30px;
	background: var(--accent);
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	border-radius: 2px;
	transition: transform .18s ease, filter .18s ease;
}

.bb-page .bb-btn-primary:hover {
	filter: brightness(1.1);
	transform: translateY(-2px);
	color: #fff;
}

.bb-page .bb-btn-outline {
	display: inline-block;
	padding: 16px 30px;
	border: 1px solid rgba(255, 255, 255, .28);
	color: #fff;
	font-weight: 600;
	font-size: 16px;
	border-radius: 2px;
	transition: background .18s ease;
}

.bb-page .bb-btn-outline:hover {
	background: rgba(255, 255, 255, .08);
	color: #fff;
}

/* ----------------------------------------------------------------- Diagram */

.bb-page .bb-diagram {
	border: 1px solid rgba(255, 255, 255, .14);
	background: rgba(255, 255, 255, .035);
	padding: 24px;
}

.bb-page .bb-diagram-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #7e909f;
	margin-bottom: 18px;
}

.bb-page .bb-diagram-head .bb-online { color: #5fd0a3; }

.bb-page .bb-diagram-grid {
	display: grid;
	gap: 8px;
}

.bb-page .bb-node {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 15px;
	border: 1px solid rgba(255, 255, 255, .12);
	background: rgba(0, 0, 0, .22);
	transition: border-color .2s ease;
}

.bb-page .bb-node:hover { border-color: rgba(159, 220, 234, .6); }

.bb-page .bb-node-dot {
	width: 7px;
	height: 7px;
	background: #9fdcea;
	flex: none;
}

.bb-page .bb-node-label {
	font-size: 15px;
	color: #dfe6ed;
}

.bb-page .bb-arrow {
	text-align: center;
	color: var(--accent);
	font-size: 13px;
	animation: bb-flow 2.2s ease-in-out infinite;
}

.bb-page .bb-arrow.bb-arrow-delay { animation-delay: .4s; }

.bb-page .bb-box {
	position: relative;
	overflow: hidden;
	padding: 18px 16px;
	border: 1px solid var(--accent);
	background: rgba(53, 168, 196, .14);
}

.bb-page .bb-box-scan {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, #9fdcea, transparent);
	animation: bb-scan 3.4s linear infinite;
}

.bb-page .bb-box-title {
	font-size: 19px;
	font-weight: 700;
	margin-bottom: 5px;
}

.bb-page .bb-box-desc {
	font-size: 14px;
	color: #a9c6dd;
	line-height: 1.5;
}

.bb-page .bb-sources {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.bb-page .bb-source {
	padding: 12px 13px;
	border: 1px solid rgba(255, 255, 255, .12);
	background: rgba(0, 0, 0, .22);
	font-size: 13.5px;
	color: #dfe6ed;
	transition: border-color .2s ease;
}

.bb-page .bb-source:hover { border-color: rgba(159, 220, 234, .6); }

.bb-page .bb-source-dashed {
	padding: 12px 13px;
	border: 1px dashed rgba(255, 255, 255, .2);
	background: rgba(0, 0, 0, .22);
	font-size: 13.5px;
	color: #8fa0b0;
}

.bb-page .bb-diagram-foot {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, .12);
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	color: #7e909f;
}

/* ------------------------------------------------------------- Statystyki */

.bb-page .bb-stats {
	background: #f5f7f9;
	border-bottom: 1px solid #e6eaee;
}

.bb-page .bb-stats-inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 32px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}

.bb-page .bb-stat {
	padding: 38px 26px;
	border-right: 1px solid #e0e5ea;
}

.bb-page .bb-stat:first-child { padding-left: 0; }

.bb-page .bb-stat:last-child {
	padding-right: 0;
	border-right: none;
}

.bb-page .bb-stat-num {
	font-size: 42px;
	font-weight: 800;
	letter-spacing: -.03em;
	line-height: 1;
	color: var(--accent);
}

.bb-page .bb-stat-num small {
	font-size: 19px;
	font-weight: 600;
	color: #5a6875;
}

.bb-page .bb-stat-label {
	margin-top: 10px;
	font-size: 14.5px;
	color: #5a6875;
	line-height: 1.45;
}

/* ------------------------------------------------------------- On-premise */

.bb-page .bb-section {
	background: #fff;
	padding: 88px 32px 20px;
}

.bb-page .bb-eyebrow-inline {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 18px;
}

.bb-page .bb-h2 {
	font-size: 38px;
	line-height: 1.12;
	letter-spacing: -.025em;
	font-weight: 800;
	margin: 0 0 24px;
	text-transform: uppercase;
	text-wrap: balance;
	color: #16202b;
}

.bb-page .bb-op-grid {
	max-width: 1180px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: 64px;
	align-items: start;
}

.bb-page .bb-op-text p {
	font-size: 17px;
	line-height: 1.68;
	color: #46525f;
	margin: 0 0 18px;
	text-wrap: pretty;
}

.bb-page .bb-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.bb-page .bb-tag {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12.5px;
	padding: 8px 13px;
	background: #f0f4f7;
	border: 1px solid #e2e6ea;
	color: #46525f;
}

.bb-page .bb-who {
	border: 1px solid #e2e6ea;
	background: #f5f7f9;
	padding: 32px;
}

.bb-page .bb-who h3 {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 20px;
	text-transform: uppercase;
	letter-spacing: -.01em;
	color: #16202b;
}

.bb-page .bb-who-list {
	display: grid;
	gap: 14px;
}

.bb-page .bb-who-item {
	display: grid;
	grid-template-columns: 20px 1fr;
	gap: 12px;
	font-size: 15.5px;
	line-height: 1.55;
	color: #46525f;
}

.bb-page .bb-who-item .bb-arrow-static {
	color: var(--accent);
	font-weight: 700;
}

.bb-page .bb-who-item strong { color: #16202b; }

/* ---------------------------------------------------------------- Wartosci */

.bb-page .bb-values-section {
	background: #fff;
	padding: 72px 32px 92px;
}

.bb-page .bb-values-head {
	max-width: 1180px;
	margin: 0 auto 56px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: end;
}

.bb-page .bb-values-head h2 {
	font-size: 42px;
	line-height: 1.1;
	letter-spacing: -.025em;
	font-weight: 800;
	margin: 0;
	text-transform: uppercase;
	text-wrap: balance;
	color: #16202b;
}

.bb-page .bb-values-head p {
	font-size: 17px;
	line-height: 1.65;
	color: #5a6875;
	margin: 0;
	text-wrap: pretty;
}

.bb-page .bb-values-list {
	max-width: 1180px;
	margin: 0 auto;
	display: grid;
	gap: 18px;
}

.bb-page .bb-value-card {
	background: #fff;
	border: 1px solid #e2e6ea;
	border-left: 3px solid #e2e6ea;
	padding: 34px 38px;
	display: grid;
	grid-template-columns: 66px 1fr;
	gap: 28px;
	transition: border-left-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.bb-page .bb-value-card:hover {
	border-left-color: #1b7f96;
	box-shadow: 0 14px 34px -22px rgba(43, 58, 66, .45);
	transform: translateY(-2px);
}

.bb-page .bb-value-no {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 30px;
	font-weight: 500;
	color: #e6007e;
	letter-spacing: -.02em;
	line-height: 1;
}

.bb-page .bb-value-card h3 {
	font-size: 25px;
	line-height: 1.26;
	letter-spacing: -.015em;
	font-weight: 700;
	margin: 0 0 22px;
	max-width: 820px;
	text-wrap: balance;
	color: #16202b;
}

.bb-page .bb-value-cols {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.bb-page .bb-value-col {
	border-top: 2px solid #dfe4e9;
	padding-top: 15px;
}

.bb-page .bb-value-col.bb-effect { border-top-color: var(--accent); }

.bb-page .bb-value-col-label {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #7b8794;
	margin-bottom: 9px;
}

.bb-page .bb-value-col.bb-effect .bb-value-col-label { color: #1b7f96; }

.bb-page .bb-value-col p {
	margin: 0;
	font-size: 15.5px;
	line-height: 1.62;
	color: #46525f;
	text-wrap: pretty;
}

.bb-page .bb-value-col.bb-effect p {
	color: #16202b;
	font-weight: 600;
}

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

.bb-page .bb-process {
	background: #2b3a42;
	color: #fff;
	padding: 92px 32px;
}

.bb-page .bb-process-inner {
	max-width: 1180px;
	margin: 0 auto;
}

.bb-page .bb-process-eyebrow {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #9fdcea;
	margin-bottom: 18px;
}

.bb-page .bb-process h2 {
	font-size: 40px;
	line-height: 1.1;
	letter-spacing: -.025em;
	font-weight: 800;
	margin: 0 0 52px;
	text-transform: uppercase;
	max-width: 760px;
	text-wrap: balance;
	color: #fff;
}

.bb-page .bb-process-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: rgba(255, 255, 255, .12);
}

.bb-page .bb-process-card {
	background: #2b3a42;
	padding: 30px 26px 32px;
	transition: background .22s ease;
}

.bb-page .bb-process-card:hover { background: #33454f; }

.bb-page .bb-process-num {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	color: #9fdcea;
	margin-bottom: 16px;
}

.bb-page .bb-process-card h3 {
	font-size: 19px;
	font-weight: 700;
	margin: 0 0 11px;
	color: #fff;
}

.bb-page .bb-process-card p {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.6;
	color: #a4b3c1;
}

/* --------------------------------------------------------------------- FAQ */

.bb-page .bb-faq {
	background: #fff;
	padding: 92px 32px;
}

.bb-page .bb-faq-inner {
	max-width: 1180px;
	margin: 0 auto;
}

.bb-page .bb-faq-head { margin-bottom: 48px; }

.bb-page .bb-faq-head h2 {
	font-size: 40px;
	line-height: 1.1;
	letter-spacing: -.025em;
	font-weight: 800;
	margin: 0;
	text-transform: uppercase;
	max-width: 780px;
	text-wrap: balance;
	color: #16202b;
}

.bb-page .bb-faq-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.bb-page .bb-faq-card {
	border: 1px solid #e2e6ea;
	border-top: 3px solid #e2e6ea;
	padding: 26px 28px;
	transition: border-top-color .22s ease, box-shadow .22s ease;
}

.bb-page .bb-faq-card:hover {
	border-top-color: #1b7f96;
	box-shadow: 0 14px 34px -24px rgba(43, 58, 66, .45);
}

.bb-page .bb-faq-card h3 {
	font-size: 19px;
	font-weight: 700;
	line-height: 1.32;
	margin: 0 0 12px;
	text-wrap: balance;
	color: #16202b;
}

.bb-page .bb-faq-card p {
	margin: 0;
	font-size: 15.5px;
	line-height: 1.65;
	color: #46525f;
	text-wrap: pretty;
}

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

.bb-page .bb-contact {
	background: #f5f7f9;
	padding: 88px 32px;
}

.bb-page .bb-contact-inner {
	max-width: 1180px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 64px;
	align-items: center;
}

.bb-page .bb-contact h2 {
	font-size: 40px;
	line-height: 1.1;
	letter-spacing: -.025em;
	font-weight: 800;
	margin: 0 0 20px;
	text-transform: uppercase;
	text-wrap: balance;
	color: #16202b;
}

.bb-page .bb-contact-lead {
	font-size: 17.5px;
	line-height: 1.62;
	color: #5a6875;
	margin: 0 0 34px;
	max-width: 560px;
	text-wrap: pretty;
}

.bb-page .bb-contact-row {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	align-items: center;
}

.bb-page .bb-email-link {
	font-size: 16.5px;
	color: #16202b;
	font-weight: 600;
	border-bottom: 2px solid #cfd7de;
	padding-bottom: 3px;
	transition: border-color .18s ease;
}

.bb-page .bb-email-link:hover { border-bottom-color: #1b7f96; }

.bb-page .bb-contact-card {
	background: #fff;
	border: 1px solid #e2e6ea;
	padding: 30px;
}

.bb-page .bb-contact-card-label {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #7b8794;
	margin-bottom: 18px;
}

.bb-page .bb-contact-name {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 5px;
}

.bb-page .bb-contact-org {
	font-size: 15px;
	color: #5a6875;
	margin-bottom: 24px;
}

.bb-page .bb-contact-addr {
	font-size: 15px;
	line-height: 1.75;
	color: #5a6875;
}

/* --------------------------------------------------------------- Mobilnie */

@media (max-width: 900px) {
	.bb-page .bb-hero-inner,
	.bb-page .bb-op-grid,
	.bb-page .bb-values-head,
	.bb-page .bb-contact-inner { grid-template-columns: 1fr; }

	.bb-page .bb-stats-inner,
	.bb-page .bb-process-grid { grid-template-columns: repeat(2, 1fr); }

	.bb-page .bb-faq-grid { grid-template-columns: 1fr; }

	.bb-page .bb-value-cols { grid-template-columns: 1fr; }

	.bb-page .bb-h1 { font-size: 42px; }

	.bb-page .bb-stat:first-child { padding-left: 26px; }
	.bb-page .bb-stat:last-child { padding-right: 26px; }
}

@media (max-width: 600px) {
	.bb-page .bb-hero { padding: 56px 20px 52px; }
	.bb-page .bb-section { padding: 56px 20px 20px; }
	.bb-page .bb-values-section { padding: 48px 20px 56px; }
	.bb-page .bb-process { padding: 56px 20px; }
	.bb-page .bb-faq { padding: 56px 20px; }
	.bb-page .bb-contact { padding: 56px 20px; }
	.bb-page .bb-stats-inner { grid-template-columns: 1fr; padding: 0 20px; }
	.bb-page .bb-process-grid { grid-template-columns: 1fr; }
	.bb-page .bb-h1 { font-size: 32px; }
	.bb-page .bb-h2,
	.bb-page .bb-values-head h2,
	.bb-page .bb-process h2,
	.bb-page .bb-faq-head h2,
	.bb-page .bb-contact h2 { font-size: 28px; }
	.bb-page .bb-value-card { grid-template-columns: 1fr; gap: 14px; padding: 26px 22px; }
	.bb-page .bb-sources { grid-template-columns: 1fr; }
}
