/* =========================================================
   VIRAROSI — PUBLIC SITE BASE
   ========================================================= */

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

.site-body {
	margin: 0;
	color: var(--s-text);
	font-family: var(--s-font);
	font-size: var(--s-fs-body);
	line-height: var(--s-lh-body);
	-webkit-font-smoothing: antialiased;
	background: var(--s-bg-layers);
	background-attachment: fixed;
	background-color: var(--s-bg);
	position: relative;
}

/* Faint dot-grid texture, masked to fade out toward the edges — adds
   tactile depth to the flat background without ever competing with content. */
.site-body::before {
	content: '';
	position: fixed;
	inset: 0;
	background-image: radial-gradient(rgba(11, 20, 38, .05) 1px, transparent 1.4px);
	background-size: 24px 24px;
	-webkit-mask-image: radial-gradient(circle at 50% 0%, rgba(0,0,0,.85), transparent 72%);
	mask-image: radial-gradient(circle at 50% 0%, rgba(0,0,0,.85), transparent 72%);
	pointer-events: none;
	z-index: 0;
}

.site-header, .site-main, .site-footer { position: relative; z-index: 1; }

/* Ultra-fine film-grain texture over the whole canvas — the single detail
   that most separates a "flat CSS gradient" background from a considered,
   premium one. Generated inline (no image request), extremely low opacity,
   fixed so it never scrolls/tiles awkwardly with content. */
.site-body::after {
	content: '';
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	opacity: .5;
	mix-blend-mode: multiply;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.02 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-main { display: block; }

.site-body a { color: inherit; text-decoration: none; }
.site-body :focus-visible {
	outline: 2px solid var(--s-accent-1);
	outline-offset: 2px;
	border-radius: 4px;
}

/* ── Text brand (no logo image yet — Virarosi Exchange rebrand pending) ── */
.site-header__brandText,
.site-footer__brandText {
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -.01em;
	color: var(--s-text);
	white-space: nowrap;
}
.site-header__brandText em,
.site-footer__brandText em {
	font-style: normal;
	font-weight: 500;
	color: var(--s-text-muted);
}
.site-footer__brandText {
	color: var(--s-text);
	font-size: 18px;
	display: inline-block;
	margin-bottom: var(--s-space-3);
}
.site-footer__brandText em { color: var(--s-text-faint); }

/* ── Buttons ── */
.site-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--s-space-2);
	padding: 12px 22px;
	height: 44px;
	border-radius: var(--s-radius-md);
	font-weight: 600;
	font-size: 15px;
	border: 1px solid transparent;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	transition: transform var(--s-duration-fast) var(--s-easing), box-shadow var(--s-duration-fast) var(--s-easing), background var(--s-duration-fast), border-color var(--s-duration-fast);
	white-space: nowrap;
}
.site-btn--lg { padding: 14px 28px; height: 48px; font-size: 16px; }
.site-btn--primary {
	background: var(--s-accent-gradient);
	color: var(--s-accent-contrast);
	box-shadow: 0 2px 8px rgba(11, 20, 38, .06);
}
.site-btn--primary:hover { transform: translateY(-1px); box-shadow: var(--s-shadow-md); }
.site-btn--primary:active { transform: translateY(0); }
.site-btn--ghost {
	background: var(--s-surface);
	color: var(--s-text);
	border-color: var(--s-border-strong);
}
.site-btn--ghost:hover { background: var(--s-bg-muted); border-color: var(--s-text-faint); transform: translateY(-1px); }

.site-link-arrow {
	position: relative;
	font-weight: 600;
	color: var(--s-text);
	padding-bottom: 3px;
	background-image: linear-gradient(90deg, var(--s-accent-1), var(--s-accent-1));
	background-size: 0% 1px;
	background-repeat: no-repeat;
	background-position: 0 100%;
	transition: background-size var(--s-duration-base) var(--s-easing), color var(--s-duration-fast);
}
.site-link-arrow:hover { color: var(--s-accent-hover); background-size: 100% 1px; }
.site-link-arrow--light { color: var(--s-text); }

/* ── Header — full-width liquid-glass bar (frosted, matte, no side gaps) ── */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	width: 100%;
	background: var(--s-glass-bg);
	backdrop-filter: blur(28px) saturate(180%);
	-webkit-backdrop-filter: blur(28px) saturate(180%);
	border-bottom: 1px solid var(--s-glass-border);
	box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 10px 28px rgba(11, 20, 38, .05);
	transition: background var(--s-duration-base), box-shadow var(--s-duration-base), border-color var(--s-duration-base), backdrop-filter var(--s-duration-base);
}
.site-header.is-scrolled {
	background: var(--s-glass-bg-strong);
	backdrop-filter: blur(32px) saturate(180%);
	-webkit-backdrop-filter: blur(32px) saturate(180%);
	box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 14px 34px rgba(11, 20, 38, .09);
}
.site-header__inner {
	max-width: var(--s-container);
	margin: 0 auto;
	width: 100%;
	height: 72px;
	padding: 0 32px;
	display: flex;
	align-items: center;
	gap: var(--s-space-5);
}
.site-header__brand { display: flex; align-items: center; flex-shrink: 0; }
.site-header__brand img { display: block; height: 26px; width: auto; }
.site-header__nav {
	display: flex;
	align-items: center;
	justify-content: space-evenly;
	gap: 2px;
	flex: 1;
	min-width: 0;
	padding: 0 var(--s-space-4);
}
.site-header__link {
	position: relative;
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: -.01em;
	color: var(--s-text-muted);
	padding: 8px 11px;
	border-radius: var(--s-radius-pill);
	transition: color var(--s-duration-fast), background var(--s-duration-fast);
	white-space: nowrap;
}
.site-header__link:hover { color: var(--s-text); background: rgba(11, 20, 38, .05); }
.site-header__link.is-active { color: var(--s-text); background: rgba(11, 20, 38, .06); }
.site-header__actions { display: flex; align-items: center; gap: var(--s-space-2); flex-shrink: 0; }
.site-header__login { display: none; }
@media (min-width: 900px) { .site-header__login { display: inline-flex; } }
.site-header__cta { padding: 0 18px; height: 40px; font-size: 14px; }
.site-header__burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 34px;
	height: 34px;
	background: none;
	border: 1px solid var(--s-border);
	border-radius: var(--s-radius-sm);
	cursor: pointer;
}
.site-header__burger span { display: block; height: 2px; background: var(--s-text); margin: 0 7px; border-radius: 2px; transition: transform var(--s-duration-fast), opacity var(--s-duration-fast); }

/* Hide the two least-critical links on laptop widths so the bar never overflows */
@media (max-width: 1180px) and (min-width: 900px) {
	.site-header__link:nth-of-type(3),
	.site-header__link:nth-of-type(5) { display: none; }
}

@media (max-width: 899px) {
	.site-header__inner { padding: 0 16px; }
	.site-header__nav {
		position: fixed;
		inset: 72px 0 auto 0;
		background: var(--s-glass-bg-strong);
		backdrop-filter: blur(28px) saturate(180%);
		-webkit-backdrop-filter: blur(28px) saturate(180%);
		border-bottom: 1px solid var(--s-glass-border);
		box-shadow: var(--s-shadow-md);
		flex-direction: column;
		align-items: flex-start;
		padding: var(--s-space-4) var(--s-space-5);
		gap: 2px;
		transform: translateY(-8px);
		opacity: 0;
		pointer-events: none;
		transition: opacity var(--s-duration-base), transform var(--s-duration-base);
	}
	.site-header__nav .site-header__link { width: 100%; padding: 12px 10px; }
	.site-header__nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
	.site-header__burger { display: flex; }
	.site-header__burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
	.site-header__burger.is-open span:nth-child(2) { opacity: 0; }
	.site-header__burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
	.site-header__cta { padding: 0 14px; height: 38px; font-size: 13.5px; }
}

/* ── Language switcher (compact, reused from client zone visual language) ── */
.lang-compact { position: relative; }
.lang-compact__btn {
	display: flex; align-items: center; gap: 6px;
	background: transparent; border: 1px solid var(--s-border);
	border-radius: var(--s-radius-pill);
	padding: 7px 12px; font-size: 13px; font-weight: 600;
	color: var(--s-text-muted); cursor: pointer;
}
.lang-compact__drop {
	position: absolute; top: calc(100% + 8px); right: 0;
	background: var(--s-surface); border: 1px solid var(--s-border);
	border-radius: var(--s-radius-md); box-shadow: var(--s-shadow-md);
	min-width: 140px; padding: 6px; display: none; z-index: 10;
}
.lang-compact.is-open .lang-compact__drop { display: block; }
.lang-compact__opt { display: block; padding: 8px 10px; border-radius: var(--s-radius-sm); font-size: 14px; }
.lang-compact__opt:hover, .lang-compact__opt.active { background: var(--s-bg-muted); }

/* ── Footer (light — no dark islands) ── */
.site-footer {
	background: var(--s-bg-muted);
	color: var(--s-text-muted);
	padding: var(--s-space-8) 0 var(--s-space-6);
	border-top: 1px solid var(--s-border);
}
.site-footer__inner { max-width: var(--s-container); margin: 0 auto; padding: 0 32px; }
.site-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr repeat(4, 1fr);
	gap: var(--s-space-6);
	padding-bottom: var(--s-space-7);
	border-bottom: 1px solid var(--s-border);
}
.site-footer__col a { display: block; color: var(--s-text-muted); padding: 5px 0; font-size: 14px; }
.site-footer__col a:hover { color: var(--s-text); }
.site-footer__col h4 { color: var(--s-text); font-size: 13px; font-weight: 600; letter-spacing: .02em; margin: 0 0 var(--s-space-3); }
.site-footer__col--brand { max-width: 240px; }
.site-footer__tagline { font-size: 14px; max-width: 220px; }
.site-footer__bottom { padding-top: var(--s-space-5); font-size: 13px; }
.site-footer__bottom p { margin: 0 0 var(--s-space-2); }
.site-footer__risk { color: var(--s-warning); }

@media (max-width: 900px) {
	.site-footer__grid { grid-template-columns: repeat(2, 1fr); }
}







