/* =========================================================
   Touring IT v2
   - mod "zoom": scenele sunt fixe, scroll-ul le apropie / mareste
   - mod "flat": fallback (mobil, ecrane mici, reduced motion, fara JS)
   ========================================================= */

:root {
	--bg: #070b16;
	--bg-2: #0d1630;
	--red: #f15f74;
	--red-2: #d63c5e;
	--blue: #5b8cff;
	--green: #2ecc8f;
	--text: #eef2fb;
	--text-2: #d6dcec;
	--muted: #98a3c0;
	--line: rgba(255, 255, 255, .10);
	--line-strong: rgba(255, 255, 255, .22);
	--header-h: 76px;
	--ease: cubic-bezier(.2, .75, .2, 1);
}

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

html { background: var(--bg); -webkit-text-size-adjust: 100%; }
html.zoom-on { scroll-snap-type: y proximity; }

body {
	margin: 0;
	min-height: 100vh;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 16px;
	color: var(--text);
	background:
		radial-gradient(ellipse 80% 60% at 50% 45%, #13204a 0%, rgba(19, 32, 74, 0) 70%),
		var(--bg);
	background-attachment: fixed;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: "Sora", "Inter", sans-serif; color: #fff; }
h2 { font-size: clamp(32px, 4.2vw, 58px); line-height: 1.08; margin: 0 0 20px; font-weight: 700; letter-spacing: -.02em; }
h3 { font-size: 22px; font-weight: 500; margin: 0 0 14px; }
h3 strong { font-weight: 700; }
p { line-height: 1.65; color: #c5cde0; margin: 0 0 14px; }
strong { color: #fff; }

.text-center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: clamp(17px, 1.45vw, 21px); color: #dfe5f5; line-height: 1.6; }

.accent {
	background: linear-gradient(100deg, #ff9aa8 0%, var(--red) 35%, #8fb0ff 65%, var(--red) 100%);
	background-size: 250% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: shine 7s linear infinite;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 16px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--red);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }

/* ---------- Fundal: starfield + progres ---------- */
#starfield {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	pointer-events: none;
}

.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.scroll-progress span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--red), var(--blue));
	transform-origin: 0 50%;
	transform: scaleX(var(--p, 0));
}

/* ---------- Header ---------- */
.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 50;
	height: var(--header-h);
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 0 clamp(16px, 4vw, 48px);
	background: linear-gradient(to bottom, rgba(7, 11, 22, .92), rgba(7, 11, 22, 0));
}
.brand { position: relative; z-index: 2; display: block; line-height: 0; transition: transform .4s var(--ease); }
.brand:hover { transform: scale(1.04); }
.brand img { height: 44px; width: auto; background: #fff; border-radius: 12px; padding: 5px 10px; box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .7); }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
	position: relative;
	display: block;
	padding: 10px 14px;
	color: var(--muted);
	font-weight: 500;
	font-size: 15px;
	text-decoration: none;
	transition: color .3s;
}
.main-nav a::after {
	content: "";
	position: absolute;
	left: 14px; right: 14px; bottom: 4px;
	height: 2px;
	border-radius: 2px;
	background: var(--red);
	transform: scaleX(0);
	transition: transform .45s var(--ease);
}
.main-nav a:hover, .main-nav a.is-active { color: #fff; }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }

.header-social {
	position: relative; z-index: 2;
	display: grid; place-items: center;
	width: 38px; height: 38px;
	border-radius: 50%;
	border: 1px solid var(--line-strong);
	color: #fff;
	transition: background .3s, border-color .3s, transform .3s;
}
.header-social:hover { background: #1877f2; border-color: #1877f2; transform: rotate(-8deg); }

.menu-toggle {
	display: none;
	position: relative; z-index: 2;
	width: 44px; height: 44px;
	padding: 0;
	border: 1px solid var(--line-strong);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}
.menu-toggle span {
	position: absolute; left: 13px; right: 13px;
	height: 2px; border-radius: 2px;
	background: #fff;
	transition: transform .35s var(--ease), opacity .2s;
}
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Butoane ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.actions.center { justify-content: center; }
.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 15px 28px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	overflow: hidden;
	transition: transform .35s var(--ease), box-shadow .35s, background .35s;
}
.btn span { position: relative; }
.btn-primary {
	color: #fff;
	background: linear-gradient(135deg, var(--red), var(--red-2));
	box-shadow: 0 14px 34px -14px rgba(241, 95, 116, .85);
}
.btn-primary::before {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .4) 50%, transparent 70%);
	transform: translateX(-110%);
	transition: transform .8s var(--ease);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -14px rgba(241, 95, 116, 1); }
.btn-primary:hover::before { transform: translateX(110%); }
.btn-ghost { color: #fff; border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); transform: translateY(-3px); }

/* =========================================================
   Scene
   ========================================================= */
.zoom-stage { position: relative; z-index: 1; }

.scene {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: calc(var(--header-h) + 34px) clamp(16px, 5vw, 64px) 70px;
	overflow: hidden;
}
html:not(.zoom-on) .scene-clone { display: none; }

html.zoom-on .zoom-stage { position: fixed; inset: 0; overflow: hidden; }
html.zoom-on .scene {
	position: absolute;
	inset: 0;
	min-height: 0;
	padding: calc(var(--header-h) + 10px) clamp(24px, 5vw, 80px) 30px;
	transform-origin: 50% 50%;
	visibility: hidden;
	backface-visibility: hidden;
}
html.zoom-on .scene-inner {
	transform: perspective(1400px) rotateX(calc(var(--ty, 0) * 1deg)) rotateY(calc(var(--tx, 0) * 1deg)) scale(var(--is, 1));
}

.zoom-track { position: relative; z-index: 0; pointer-events: none; }
.zoom-snap { position: absolute; left: 0; width: 1px; height: 1px; scroll-snap-align: start; }

/* lumina colorata din spatele fiecarei scene */
.scene::before {
	content: "";
	position: absolute;
	left: 50%; top: 50%;
	width: 80vmax; height: 80vmax;
	border-radius: 50%;
	background: radial-gradient(circle, var(--glow, transparent) 0%, transparent 62%);
	opacity: .38;
	transform: translate(-50%, -50%);
	animation: glowPulse 9s ease-in-out infinite;
	pointer-events: none;
	z-index: 0;
}
.glow-red { --glow: rgba(241, 95, 116, .55); }
.glow-blue { --glow: rgba(91, 140, 255, .5); }
.glow-green { --glow: rgba(46, 204, 143, .42); }

.scene-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	z-index: 0;
	animation: kenburns 24s ease-in-out infinite alternate;
}
.scene-bg::after {
	content: "";
	position: absolute; inset: 0;
	background:
		radial-gradient(ellipse at 30% 50%, rgba(7, 11, 22, .25), rgba(7, 11, 22, .85) 75%),
		linear-gradient(180deg, rgba(7, 11, 22, .55) 0%, rgba(7, 11, 22, .35) 50%, rgba(7, 11, 22, .95) 100%);
}

.scene-inner { position: relative; z-index: 1; width: 100%; max-width: 1180px; margin: 0 auto; }
.scene-inner.narrow { max-width: 860px; }

.grid-2 { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 28px; align-items: stretch; }

/* ---------- Animatii de intrare (doar cand JS e activ) ---------- */
html.js [data-reveal] {
	--rd: calc(var(--i, 0) * 90ms);
	opacity: 0;
	translate: 0 40px;
	scale: .96;
	transition-property: opacity, translate, scale, transform, background-color, border-color, box-shadow;
	transition-duration: .8s, .95s, .95s, .45s, .4s, .4s, .4s;
	transition-delay: var(--rd), var(--rd), var(--rd), 0s, 0s, 0s, 0s;
	transition-timing-function: var(--ease);
}
html.js [data-reveal="left"] { translate: -70px 0; scale: 1; }
html.js [data-reveal="right"] { translate: 70px 0; scale: 1; }
html.js [data-reveal="zoom"] { translate: 0 0; scale: .7; }
html.js .is-active [data-reveal] { opacity: 1; translate: 0 0; scale: 1; }
html.js .no-anim [data-reveal] { transition: none !important; }

html.js .reveal { opacity: 0; translate: 0 40px; transition: opacity .8s var(--ease), translate .9s var(--ease); }
html.js .reveal.is-visible { opacity: 1; translate: 0 0; }

/* ---------- Hero ---------- */
.hero-title {
	font-size: clamp(38px, 6vw, 84px);
	line-height: 1.04;
	font-weight: 800;
	letter-spacing: -.03em;
	margin: 0 0 22px;
}
.hero-title.mega { font-size: clamp(60px, 13vw, 190px); letter-spacing: -.04em; margin-bottom: 8px; }
.hero-rotator { font-size: clamp(18px, 2vw, 24px); color: var(--muted); margin: 0; }
.rotator {
	display: inline-block;
	color: #fff;
	font-weight: 600;
	border-bottom: 2px solid var(--red);
}
.rotator.out { animation: rotOut .35s var(--ease) forwards; }
.rotator.in { animation: rotIn .5s var(--ease); }

.scroll-hint {
	position: absolute;
	left: 50%; bottom: 24px;
	z-index: 2;
	display: flex; flex-direction: column; align-items: center; gap: 8px;
	transform: translateX(-50%);
	font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
	color: var(--muted);
}
.scroll-hint .mouse { width: 24px; height: 38px; border: 2px solid rgba(255, 255, 255, .45); border-radius: 14px; position: relative; }
.scroll-hint .mouse span {
	position: absolute; left: 50%; top: 7px;
	width: 4px; height: 8px; margin-left: -2px;
	border-radius: 2px; background: var(--red);
	animation: wheel 1.6s ease-in-out infinite;
}

/* ---------- Media ---------- */
.media-frame {
	position: relative;
	border-radius: 24px;
	overflow: hidden;
	border: 1px solid var(--line-strong);
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .04);
	animation: floaty 8s ease-in-out infinite;
}
.media-frame img { display: block; width: 100%; height: 100%; max-height: 58vh; object-fit: cover; transition: transform 1.2s var(--ease); }
.media-frame:hover img { transform: scale(1.06); }
.media-frame::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(130deg, rgba(255, 255, 255, .18), transparent 40%, transparent 70%, rgba(241, 95, 116, .22));
	pointer-events: none;
}
.media-frame.tall { min-height: 300px; }
.media-frame.tall img { position: absolute; inset: 0; max-height: none; }

/* ---------- Carduri / liste ---------- */
.card {
	position: relative;
	padding: 28px;
	border-radius: 22px;
	border: 1px solid var(--line);
	background: linear-gradient(160deg, rgba(28, 38, 70, .92), rgba(13, 20, 42, .9));
	overflow: hidden;
	transition: transform .45s var(--ease), border-color .4s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(241, 95, 116, .55); }
.card-icon {
	display: grid; place-items: center;
	width: 54px; height: 54px;
	margin-bottom: 18px;
	border-radius: 16px;
	color: var(--red);
	background: rgba(241, 95, 116, .14);
}
.card-icon svg { width: 28px; height: 28px; }
.grid-3 .card:first-child .card-icon svg { animation: spin 14s linear infinite; }

.list-check { list-style: none; margin: 0; padding: 0; }
.list-check li {
	position: relative;
	padding: 7px 0 7px 32px;
	line-height: 1.55;
	color: var(--text-2);
}
.list-check li::before {
	content: "";
	position: absolute; left: 0; top: 9px;
	width: 20px; height: 20px;
	border-radius: 50%;
	background: rgba(241, 95, 116, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23f15f74' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
	padding: 9px 16px;
	border-radius: 999px;
	border: 1px solid var(--line-strong);
	background: rgba(255, 255, 255, .04);
	font-size: 14px;
	font-weight: 500;
	cursor: default;
	animation: chipFloat 4s ease-in-out infinite;
	animation-delay: calc(var(--c, 0) * -.5s);
	transition: background .3s, border-color .3s;
}
.chips li:hover { background: var(--red); border-color: var(--red); }

.stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.stat {
	flex: 1 1 120px;
	padding: 16px 18px;
	border-radius: 16px;
	border: 1px solid var(--line);
	background: rgba(16, 24, 48, .85);
}
.stat strong { display: block; font-family: "Sora", sans-serif; font-size: 30px; line-height: 1.2; }
.stat span { font-size: 13px; color: var(--muted); }

/* ---------- Acronim EUROSITE ---------- */
.acronym { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.acronym li {
	display: flex; align-items: center; gap: 18px;
	padding: 7px 14px;
	border-radius: 14px;
	transition-property: opacity, translate, scale, transform, background-color;
}
.acronym li:hover { background-color: rgba(255, 255, 255, .05); transform: translateX(8px); }
.acronym b {
	flex: 0 0 1.2em;
	font-family: "Sora", sans-serif;
	font-size: clamp(26px, 2.6vw, 38px);
	font-weight: 800;
	line-height: 1.1;
	text-align: center;
	background: linear-gradient(160deg, #ff9aa8, var(--red) 55%, #8fb0ff);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.acronym span { color: var(--text-2); font-size: clamp(15px, 1.3vw, 18px); }

/* ---------- Module ---------- */
.modules { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; max-width: 960px; margin: 30px auto 0; }
.module {
	flex: 0 1 220px;
	display: flex; flex-direction: column; align-items: center; gap: 14px;
	padding: 26px 18px;
	border-radius: 22px;
	border: 1px solid var(--line);
	background-color: rgba(16, 24, 48, .85);
	color: #fff;
	text-decoration: none;
}
.module:hover { transform: translateY(-8px) scale(1.03); border-color: rgba(241, 95, 116, .6); background-color: rgba(58, 30, 58, .92); }
.module:hover .module-icon { animation: pop .6s var(--ease); }
.module-title { font-weight: 600; font-size: 15px; line-height: 1.35; }
.module-icon {
	display: grid; place-items: center;
	width: 78px; height: 78px;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, rgba(241, 95, 116, .6), rgba(241, 95, 116, .12));
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 14px 30px -12px rgba(241, 95, 116, .7);
}
.module-icon img { width: 46%; height: auto; }
.module-icon.big { width: 92px; height: 92px; }

.module-head { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.module-index { font-family: "Sora", sans-serif; font-size: 46px; font-weight: 800; color: rgba(255, 255, 255, .16); }
.module-index small { font-size: 18px; }
.scene .narrow .list-check li, .scene .grid-2 > div > .list-check li { font-size: 17px; }

/* capturi de ecran in evantai */
.shots { position: relative; aspect-ratio: 16 / 12; }
.shot {
	position: absolute;
	top: calc(var(--s) * 8%);
	left: calc(var(--s) * 7%);
	width: 78%;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid var(--line-strong);
	background: #0d1630;
	box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .9);
	transform: rotate(calc((var(--s) - 1.5) * 2.5deg));
	transition: transform .5s var(--ease), box-shadow .5s;
	cursor: zoom-in;
}
.shot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.shot:hover { z-index: 10; transform: translateY(-12px) rotate(0) scale(1.05); box-shadow: 0 40px 80px -20px rgba(241, 95, 116, .55); }
.shots-1 { aspect-ratio: auto; }
.shots-1 .shot { position: relative; top: 0; left: 0; width: 100%; transform: none; }
.shots-1 .shot img { aspect-ratio: auto; max-height: 56vh; object-fit: contain; }
.shots-2 .shot { width: 85%; }

/* orbita de module (pagina Eurosite) */
.orbit-wrap {
	--size: min(700px, 86vw, 78vh);
	position: absolute;
	left: 50%; top: 50%;
	width: var(--size); height: var(--size);
	margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
	pointer-events: none;
	z-index: -1;
}
.orbit { position: relative; width: 100%; height: 100%; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .16); animation: spin 70s linear infinite; }
.orbit-item {
	position: absolute;
	left: 50%; top: 50%;
	width: 64px; height: 64px;
	margin: -32px 0 0 -32px;
	display: grid; place-items: center;
	border-radius: 50%;
	pointer-events: auto;
	background: radial-gradient(circle at 30% 30%, rgba(241, 95, 116, .7), rgba(241, 95, 116, .15));
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 10px 30px -10px rgba(241, 95, 116, .8);
	transform: rotate(calc(360deg / var(--n) * var(--k))) translate(calc(var(--size) / 2)) rotate(calc(-360deg / var(--n) * var(--k)));
}
.orbit-item img { width: 48%; animation: spin 70s linear infinite reverse; transition: scale .3s; }
.orbit-item:hover img { scale: 1.3; }

/* ---------- Tarife ---------- */
.steps { list-style: none; margin: 22px 0; padding: 0; display: grid; gap: 12px; }
.steps li {
	display: flex; align-items: center; gap: 16px;
	padding: 16px 18px;
	border-radius: 16px;
	border: 1px solid var(--line);
	background-color: rgba(16, 24, 48, .85);
	color: #e6ebf7;
}
.steps li:hover { border-color: rgba(46, 204, 143, .6); transform: translateX(6px); }
.steps span { font-family: "Sora", sans-serif; font-weight: 700; font-size: 20px; color: var(--green); }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 980px; margin: 34px auto 34px; }
.contact-card {
	display: flex; flex-direction: column; align-items: center; gap: 8px;
	padding: 30px 20px;
	border-radius: 22px;
	border: 1px solid var(--line);
	background-color: rgba(16, 24, 48, .85);
	color: #fff;
	text-decoration: none;
}
.contact-card:hover { transform: translateY(-8px); border-color: rgba(241, 95, 116, .6); background-color: rgba(58, 30, 58, .92); }
.contact-card svg { width: 36px; height: 36px; margin-bottom: 6px; color: var(--red); transition: transform .5s var(--ease); }
.contact-card:hover svg { transform: rotate(-10deg) scale(1.18); }
.contact-card .label { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.contact-card .value { font-family: "Sora", sans-serif; font-size: 18px; font-weight: 500; }

.footer-links nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-bottom: 12px; }
.footer-links a { color: var(--muted); font-size: 14px; text-decoration: none; transition: color .3s; }
.footer-links a:hover { color: #fff; }
.copyright { margin: 0; font-size: 13px; color: #7c88a6; }
.copyright strong { color: #aeb8d3; }

.loop-hint { margin: 22px 0 0; font-size: 13px; color: var(--muted); animation: bob 2.2s ease-in-out infinite; }
html:not(.zoom-on) .loop-hint { display: none; }

/* ---------- Navigare puncte (dreapta) ---------- */
.zoom-dots {
	position: fixed;
	right: 22px; top: 50%;
	z-index: 40;
	display: flex; flex-direction: column; gap: 12px;
	transform: translateY(-50%);
}
html:not(.zoom-on) .zoom-dots { display: none; }
.zoom-dots button {
	position: relative;
	width: 12px; height: 12px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .45);
	background: transparent;
	cursor: pointer;
	transition: transform .35s var(--ease), background .35s, border-color .35s;
}
.zoom-dots button:hover { border-color: #fff; }
.zoom-dots button.is-active { background: var(--red); border-color: var(--red); transform: scale(1.35); }
.zoom-dots button::after {
	content: attr(data-label);
	position: absolute;
	right: 22px; top: 50%;
	padding: 4px 10px;
	border-radius: 6px;
	background: rgba(10, 16, 32, .92);
	color: #fff;
	font-size: 12px;
	white-space: nowrap;
	opacity: 0;
	transform: translate(6px, -50%);
	transition: opacity .25s, transform .25s;
	pointer-events: none;
}
.zoom-dots button:hover::after { opacity: 1; transform: translate(0, -50%); }

/* ---------- Lightbox ---------- */
.lightbox {
	position: fixed; inset: 0;
	z-index: 100;
	display: flex; align-items: center; justify-content: center;
	background: rgba(4, 7, 15, .93);
	opacity: 0; visibility: hidden;
	transition: opacity .35s, visibility .35s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
	max-width: 92vw; max-height: 84vh;
	border-radius: 12px;
	box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .9);
	scale: .9;
	transition: scale .45s var(--ease), opacity .25s;
}
.lightbox.open img { scale: 1; }
.lightbox img.swap { opacity: 0; }
.lightbox button {
	position: absolute;
	display: grid; place-items: center;
	width: 48px; height: 48px;
	border-radius: 50%;
	border: 1px solid var(--line-strong);
	background: rgba(255, 255, 255, .06);
	color: #fff;
	font-size: 22px;
	cursor: pointer;
	transition: background .3s;
}
.lightbox button:hover { background: var(--red); border-color: var(--red); }
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 20px; top: 50%; margin-top: -24px; }
.lightbox .lb-next { right: 20px; top: 50%; margin-top: -24px; }
.lightbox .lb-count { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: 13px; }
.lightbox.single .lb-prev, .lightbox.single .lb-next, .lightbox.single .lb-count { display: none; }

/* ---------- Pagini text (legal) ---------- */
.doc-page { position: relative; z-index: 1; padding: calc(var(--header-h) + 40px) clamp(16px, 4vw, 40px) 30px; }
.doc {
	max-width: 920px;
	margin: 0 auto;
	padding: clamp(24px, 5vw, 60px);
	border-radius: 28px;
	border: 1px solid var(--line);
	background: rgba(12, 19, 38, .86);
	box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .9);
}
.doc h1 { font-size: clamp(30px, 4vw, 50px); line-height: 1.1; margin: 0 0 10px; letter-spacing: -.02em; }
.doc h2 { font-size: clamp(21px, 2.3vw, 28px); margin: 0 0 12px; }
.doc h3 { font-size: 18px; margin: 18px 0 8px; }
.doc h5 { font-size: 17px; font-weight: 500; color: #e6ebf7; line-height: 1.55; margin: 0 0 12px; }
.doc section { padding: 26px 0 12px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 20px); }
.doc a { color: #ff9aa8; }
.doc-head { padding-bottom: 24px; }
.doc-toc { padding: 0 0 22px; }
.doc-toc ol { columns: 2; column-gap: 40px; margin: 0; padding-left: 22px; }
.doc-toc li { padding: 4px 0; color: var(--muted); break-inside: avoid; }
.doc-toc a { color: var(--text-2); text-decoration: none; transition: color .3s; }
.doc-toc a:hover { color: var(--red); }
.doc-list { padding-left: 22px; }
.doc-list li { margin-bottom: 12px; line-height: 1.6; color: #c5cde0; }
.site-footer { position: relative; text-align: center; padding: 40px 0 10px; }

/* ---------- Keyframes ---------- */
@keyframes shine { to { background-position: -250% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes glowPulse {
	0%, 100% { transform: translate(-50%, -50%) scale(1); }
	50% { transform: translate(-50%, -50%) scale(1.15); }
}
@keyframes kenburns {
	from { transform: scale(1) translate(0, 0); }
	to { transform: scale(1.12) translate(-1.5%, -1%); }
}
@keyframes floaty {
	0%, 100% { transform: translateY(0) rotate(-.6deg); }
	50% { transform: translateY(-12px) rotate(.6deg); }
}
@keyframes chipFloat {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-5px); }
}
@keyframes wheel {
	0% { opacity: 0; transform: translateY(0); }
	30% { opacity: 1; }
	100% { opacity: 0; transform: translateY(12px); }
}
@keyframes bob {
	0%, 100% { transform: translateY(0); opacity: .7; }
	50% { transform: translateY(6px); opacity: 1; }
}
@keyframes pop {
	0% { transform: scale(1); }
	40% { transform: scale(1.18) rotate(-6deg); }
	100% { transform: scale(1) rotate(0); }
}
@keyframes rotOut { to { opacity: 0; transform: translateY(-14px); filter: blur(4px); } }
@keyframes rotIn { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.main-nav a { padding: 10px 10px; font-size: 14px; }
	.main-nav a::after { left: 10px; right: 10px; }
}

@media (max-width: 900px) {
	.menu-toggle { display: block; margin-left: auto; }
	.header-social { display: none; }
	.main-nav {
		position: fixed; inset: 0;
		z-index: 1;
		display: flex; align-items: center; justify-content: center;
		background: rgba(7, 11, 22, .97);
		opacity: 0; visibility: hidden;
		transition: opacity .4s, visibility .4s;
	}
	body.menu-open .main-nav { opacity: 1; visibility: visible; }
	.main-nav ul { flex-direction: column; align-items: center; gap: 6px; }
	.main-nav li { opacity: 0; transform: translateY(24px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
	body.menu-open .main-nav li { opacity: 1; transform: none; }
	.main-nav li:nth-child(2) { transition-delay: .05s; }
	.main-nav li:nth-child(3) { transition-delay: .1s; }
	.main-nav li:nth-child(4) { transition-delay: .15s; }
	.main-nav li:nth-child(5) { transition-delay: .2s; }
	.main-nav li:nth-child(6) { transition-delay: .25s; }
	.main-nav a { font-family: "Sora", sans-serif; font-size: 28px; padding: 10px 18px; }
	.main-nav a::after { left: 18px; right: 18px; }

	.grid-2, .grid-3 { grid-template-columns: 1fr; }
	.media-frame img { max-height: 46vh; }
	.media-frame.tall { min-height: 240px; }
	.contact-cards { grid-template-columns: 1fr; max-width: 420px; }
	.doc-toc ol { columns: 1; }
	.orbit-wrap { opacity: .45; }
}

@media (max-width: 560px) {
	.brand img { height: 38px; }
	.module { flex-basis: calc(50% - 9px); padding: 20px 10px; }
	.module-icon { width: 64px; height: 64px; }
	.module-index { font-size: 36px; }
	.module-icon.big { width: 72px; height: 72px; }
	.stat strong { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
