/* =====================================================================
   RIVAL SPACE — ZAKŁADKA: START (strona główna)
   Wymaga: style.css
   ===================================================================== */

.strona-start main { padding-top: 0; }

/* ---------- HERO ---------- */
.hero {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	align-items: center;
	padding: calc(var(--nav-h) + 40px) 0 100px;
	overflow: hidden;
}
.hero-tresc { position: relative; z-index: 2; }

.hero-znacznik {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 6px 14px;
	margin-bottom: 24px;
	font-family: var(--font-display);
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--cyan-2);
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(1, 194, 219, .07);
}
.hero-znacznik i {
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--green);
	box-shadow: 0 0 10px var(--green);
	animation: puls 2s infinite;
}

.hero-tytul {
	font-size: clamp(2.6rem, 9vw, 6.2rem);
	font-weight: 700;
	text-transform: uppercase;
	line-height: .98;
	margin-bottom: 28px;
	max-width: 1100px;
}
.hero-tytul span { display: block; }
.hero-tytul-male {
	font-size: .38em;
	letter-spacing: .25em;
	color: #b9c8db;
	margin-bottom: .35em;
}
.hero-tytul .gradient-tekst { filter: drop-shadow(0 0 30px rgba(1, 194, 219, .35)); }

.hero-opis {
	max-width: 660px;
	font-size: clamp(1rem, 2vw, 1.15rem);
	color: #d3deec;
	text-shadow: 0 1px 12px rgba(4, 6, 12, .9);
	margin-bottom: 40px;
}
.hero-przyciski { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 479px) { .hero-przyciski .btn { width: 100%; } }

/* ---------- tło hero: planeta z orbity wtopiona w tło strony ----------
   Uwaga: .hero-tlo i <picture> nie mogą tworzyć własnego kontekstu
   (z-index / transform / opacity), inaczej mix-blend-mode nie zadziała. */
.hero-tlo {
	--px: 0;                      /* paralaksa za myszą: -1…1 (ustawia skrypt) */
	--py: 0;
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
}
.hero-tlo picture {
	position: absolute;
	left: -3%; right: -3%;
	bottom: 0;
	height: 74%;
}
.hero-tlo img {
	width: 100%; height: 100%;
	object-fit: cover;
	object-position: 50% 0%;
	mix-blend-mode: lighten;      /* czarne niebo zdjęcia = tło strony */
	-webkit-mask: linear-gradient(180deg, transparent 0%, #000 16%, #000 62%, transparent 100%);
	mask: linear-gradient(180deg, transparent 0%, #000 16%, #000 62%, transparent 100%);
	filter: saturate(1.15) brightness(1.08);
	translate: calc(var(--px) * -12px) calc(var(--py) * -6px);
	transition: translate .8s cubic-bezier(.2, .7, .2, 1);
	animation: wschod 2.2s cubic-bezier(.2, .7, .2, 1) both;
}
.hero-tlo::before {            /* lekkie przyciemnienie pod tekstem */
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgba(4, 6, 12, .55) 0%, rgba(4, 6, 12, .25) 40%, transparent 65%);
	pointer-events: none;
}
@media (max-width: 767px) {
	.hero-tlo picture { height: 48%; left: -30%; right: -30%; }
	.hero-tlo::before { background: linear-gradient(180deg, transparent 40%, rgba(4, 6, 12, .35) 100%); }
}
.hero-kredyt {
	position: absolute;
	z-index: 2;
	right: clamp(16px, 4vw, 72px);
	bottom: 78px;
	margin: 0;
	font-size: .72rem;
	letter-spacing: .08em;
	color: rgba(220, 232, 245, .45);
}
@media (max-width: 767px) { .hero-kredyt { display: none; } }

@keyframes wschod {
	from { opacity: 0; transform: translateY(6%); }
	to   { opacity: 1; transform: none; }
}
.hero-scroll {
	position: absolute;
	z-index: 2;
	left: 50%;
	bottom: 84px;
	width: 26px; height: 42px;
	margin-left: -13px;
	border: 2px solid var(--line);
	border-radius: 14px;
}
.hero-scroll span {
	position: absolute;
	left: 50%; top: 8px;
	width: 4px; height: 8px;
	margin-left: -2px;
	border-radius: 2px;
	background: var(--cyan);
	animation: scroll 1.8s infinite;
}

/* ---------- STATYSTYKI ---------- */
.statystyki { position: relative; z-index: 3; margin-top: -60px; }
.statystyki-siatka {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .statystyki-siatka { grid-template-columns: repeat(4, 1fr); } }
.stat {
	padding: 28px 16px;
	text-align: center;
	border-right: 1px solid var(--line-2);
	border-bottom: 1px solid var(--line-2);
}
.stat:nth-child(2n) { border-right: 0; }
.stat:nth-child(n+3) { border-bottom: 0; }
@media (min-width: 768px) {
	.stat { border-bottom: 0; border-right: 1px solid var(--line-2); }
	.stat:nth-child(2n) { border-right: 1px solid var(--line-2); }
	.stat:last-child { border-right: 0; }
}
.stat strong {
	display: block;
	font-family: var(--font-display);
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 700;
	line-height: 1;
	color: var(--cyan-2);
	text-shadow: var(--glow-cyan);
}
.stat span {
	display: block;
	margin-top: 8px;
	font-size: .8rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--muted);
}

/* ---------- FUNKCJE ---------- */
.funkcje {
	display: grid;
	gap: 20px;
	grid-template-columns: 1fr;
}
@media (min-width: 640px) { .funkcje { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .funkcje { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.funkcja { padding: 32px 28px; overflow: hidden; }
.funkcja:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 50px rgba(0, 0, 0, .5), 0 0 40px rgba(1, 194, 219, .12);
}
.funkcja::after {
	content: "";
	position: absolute;
	top: -60%; right: -40%;
	width: 220px; height: 220px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(1, 194, 219, .18), transparent 70%);
	opacity: 0;
	transition: opacity .4s;
	pointer-events: none;
}
.funkcja:hover::after { opacity: 1; }
.funkcja-ikona {
	display: grid;
	place-items: center;
	width: 58px; height: 58px;
	margin-bottom: 22px;
	color: var(--cyan-2);
	border: 1px solid var(--line);
	border-radius: 12px;
	background: linear-gradient(135deg, rgba(1, 194, 219, .18), rgba(1, 194, 219, .02));
	transition: color .3s, box-shadow .3s;
}
.funkcja-ikona svg { width: 28px; height: 28px; }
.funkcja:hover .funkcja-ikona { color: var(--orange-2); box-shadow: var(--glow-cyan); }
.funkcja h3 { font-size: 1.3rem; text-transform: uppercase; }
.funkcja p { color: var(--muted); margin: 0; }

/* ---------- SUROWCE ---------- */
.sekcja-surowce {
	background: linear-gradient(180deg, transparent, rgba(1, 194, 219, .04) 50%, transparent);
}
.surowce-uklad {
	display: grid;
	gap: 48px;
	align-items: center;
}
@media (min-width: 992px) { .surowce-uklad { grid-template-columns: 1fr 1.1fr; gap: 72px; } }
.surowce-tekst .nadtytul {
	display: inline-block;
	font-family: var(--font-display);
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .3em;
	text-transform: uppercase;
	color: var(--orange);
	margin-bottom: 12px;
}
.surowce-tekst h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); text-transform: uppercase; }
.surowce-tekst p { color: var(--muted); margin-bottom: 28px; }

.surowce-lista {
	list-style: none;
	margin: 0; padding: 0;
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 576px) { .surowce-lista { grid-template-columns: repeat(3, 1fr); } }
.surowiec {
	position: relative;
	padding: 22px 18px;
	background: var(--panel);
	border: 1px solid var(--line-2);
	border-radius: var(--radius);
	overflow: hidden;
	transition: border-color .3s, transform .3s;
}
.surowiec::before {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 3px;
	background: var(--s);
	box-shadow: 0 0 18px var(--s);
}
.surowiec:hover { border-color: var(--s); transform: translateY(-4px); }
.surowiec-kropka {
	display: block;
	width: 34px; height: 34px;
	margin-bottom: 14px;
	clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%);
	background: radial-gradient(circle at 35% 30%, #fff, var(--s) 55%, #000 130%);
	filter: drop-shadow(0 0 10px var(--s));
}
.surowiec b {
	display: block;
	font-family: var(--font-display);
	font-size: 1.05rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--heading);
}
.surowiec small { color: var(--muted); font-size: .85rem; line-height: 1.4; }

/* ---------- KROKI ---------- */
.kroki {
	list-style: none;
	margin: 0; padding: 0;
	display: grid;
	gap: 24px;
	counter-reset: krok;
}
@media (min-width: 768px) { .kroki { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.krok {
	position: relative;
	padding: 32px 28px 28px;
	border-left: 2px solid var(--line);
	background: linear-gradient(90deg, rgba(1, 194, 219, .07), transparent 70%);
}
.krok-nr {
	display: block;
	font-family: var(--font-display);
	font-size: 3.4rem;
	font-weight: 700;
	line-height: 1;
	margin-bottom: 14px;
	color: transparent;
	-webkit-text-stroke: 1px var(--cyan);
	opacity: .8;
}
.krok h3 { font-size: 1.3rem; text-transform: uppercase; }
.krok p { color: var(--muted); margin: 0; }

/* ---------- PODGLĄD GRY ---------- */
.podglad { perspective: 1600px; max-width: 1280px; margin: 0 auto; }
.podglad-ramka {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	background: #000;
	box-shadow: 0 40px 100px rgba(0, 0, 0, .7), 0 0 80px rgba(1, 194, 219, .15);
	transform: rotateX(8deg);
	transition: transform .6s ease;
}
.podglad:hover .podglad-ramka { transform: rotateX(0); }
.podglad-pasek {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 10px 14px;
	background: var(--panel-2);
	border-bottom: 1px solid var(--line-2);
	font-size: .78rem;
	color: var(--muted);
}
.podglad-pasek i { width: 10px; height: 10px; border-radius: 50%; background: #2a3a55; }
.podglad-pasek i:first-child { background: var(--red); }
.podglad-pasek i:nth-child(2) { background: var(--orange); }
.podglad-pasek i:nth-child(3) { background: var(--green); }
.podglad-pasek span { margin-left: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podglad-link { text-align: center; margin-top: 40px; }

/* ---------- CTA ---------- */
.cta-box {
	padding: 56px 24px;
	text-align: center;
	overflow: hidden;
	background:
		radial-gradient(ellipse at top, rgba(1, 194, 219, .18), transparent 60%),
		radial-gradient(ellipse at bottom right, rgba(255, 138, 31, .14), transparent 60%),
		var(--panel);
}
@media (min-width: 768px) { .cta-box { padding: 80px 48px; } }
.cta-box h2 { font-size: clamp(1.8rem, 5vw, 3rem); text-transform: uppercase; }
.cta-box p { color: var(--muted); max-width: 520px; margin: 0 auto 32px; font-size: 1.1rem; }
.cta-box .hero-przyciski { justify-content: center; }

/* ---------- animacje ---------- */
@keyframes puls { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
