/* ============================================================================
   3-MODE APPEARANCE SYSTEM + COOKIE CONSENT (Main Web)
   1. light (Default) : Crisp classic white/porcelain editorial design
   2. glass           : Full iOS & macOS Liquid Glassmorphism over studio mesh
   3. dark            : Obsidian Midnight Mode (Mode Malam)
   ============================================================================ */

:root {
	--glass-surface-strong: linear-gradient(155deg, rgba(255, 255, 255, 0.94) 0%, rgba(244, 245, 250, 0.88) 100%);
	--glass-border: rgba(255, 255, 255, 0.82);
	--glass-ring: rgba(22, 22, 26, 0.08);
	--glass-specular: rgba(255, 255, 255, 0.96);
	--glass-foot-bg: rgba(242, 243, 248, 0.72);
}

body {
	transition: color 0.2s var(--ease);
}

/* Modal Info Peran (Netflix dark showcase stays high-contrast across all modes) */
.ios-modal.nf-modal-card {
	background: linear-gradient(160deg, rgba(22, 22, 28, 0.96) 0%, rgba(12, 12, 16, 0.98) 100%) !important;
	color: #F5F5F8 !important;
	border: 1px solid rgba(255, 255, 255, 0.16) !important;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.14) inset,
		0 28px 64px rgba(0, 0, 0, 0.68) !important;
}

/* ============================================================================
   3-WAY LIQUID CAPSULE THEME SWITCHER (PUTIH · GLASS · MALAM)
   ============================================================================ */
.alf-mode-dock {
	position: relative;
	width: 102px;
	height: 34px;
	padding: 3px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(16px) saturate(180%);
	-webkit-backdrop-filter: blur(16px) saturate(180%);
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.14);
	display: inline-grid;
	grid-template-columns: repeat(3, 1fr);
	align-items: center;
	flex-shrink: 0;
	transition: background 0.28s var(--ease), border-color 0.28s var(--ease);
}

.site-nav.is-scrolled .alf-mode-dock {
	background: rgba(118, 118, 128, 0.14);
	border-color: rgba(0, 0, 0, 0.10);
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

html[data-theme="dark"] .alf-mode-dock {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.24);
}

html[data-theme="glass"] .alf-mode-dock {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.30);
}

html[data-theme="glass"] .site-nav.is-scrolled .alf-mode-dock {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.26);
}

.alf-mode-glow {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 30px;
	height: 26px;
	border-radius: 999px;
	background: linear-gradient(145deg, #FFFFFF 0%, #F1F2F7 100%);
	box-shadow:
		0 2px 6px rgba(0, 0, 0, 0.24),
		0 0 12px rgba(245, 158, 11, 0.42),
		inset 0 1px 0 #FFFFFF;
	transition: transform 0.36s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.28s var(--ease), box-shadow 0.28s var(--ease);
	z-index: 1;
	pointer-events: none;
}

.alf-mode-dock[data-active-mode="glass"] .alf-mode-glow {
	transform: translateX(32px);
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(236, 238, 244, 0.88));
	box-shadow:
		0 2px 8px rgba(15, 23, 42, 0.22),
		0 0 14px rgba(255, 255, 255, 0.72),
		inset 0 1px 0 #FFFFFF;
}

.alf-mode-dock[data-active-mode="dark"] .alf-mode-glow {
	transform: translateX(64px);
	background: linear-gradient(145deg, #272B3B 0%, #14161F 100%);
	box-shadow:
		0 2px 8px rgba(0, 0, 0, 0.56),
		0 0 14px rgba(229, 9, 20, 0.42),
		inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.alf-mode-btn {
	position: relative;
	z-index: 2;
	height: 26px;
	border: none;
	background: transparent;
	padding: 0;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: rgba(255, 255, 255, 0.72);
	transition: color 0.22s var(--ease), transform 0.2s var(--spring);
}

.alf-mode-btn:hover {
	color: #FFFFFF;
}

.site-nav.is-scrolled .alf-mode-btn {
	color: var(--muted);
}

.alf-mode-btn.active[data-theme-opt="light"] {
	color: #D97706;
}

.alf-mode-btn.active[data-theme-opt="glass"] {
	color: #141418;
}

.alf-mode-btn.active[data-theme-opt="dark"] {
	color: #FDE68A;
}

html[data-theme="glass"] .site-nav.is-scrolled .alf-mode-btn:not(.active),
html[data-theme="dark"] .site-nav.is-scrolled .alf-mode-btn:not(.active) {
	color: rgba(255, 255, 255, 0.72);
}

.alf-mode-btn svg {
	width: 14px;
	height: 14px;
	display: block;
}

.mobile-theme-row {
	margin-top: 6px;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.92);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-size: 13px;
	font-weight: 600;
}

.mobile-theme-pills {
	display: inline-flex;
	gap: 4px;
	background: rgba(0, 0, 0, 0.26);
	padding: 3px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.mob-mode-btn {
	border: none;
	background: transparent;
	color: rgba(255, 255, 255, 0.72);
	font-size: 11.5px;
	font-weight: 600;
	padding: 5px 10px;
	border-radius: 999px;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.2s ease, color 0.2s ease;
}

.mob-mode-btn.active {
	background: var(--maroon);
	color: #FFFFFF;
}

html[data-theme="glass"] .site-nav:not(.is-scrolled) .nav-links a.active,
html[data-theme="dark"] .site-nav:not(.is-scrolled) .nav-links a.active {
	color: #18161D;
	background: transparent !important;
}

/* ============================================================================
   MODE 2: visionOS CLEAR TRANSPARENT GLASS ("KACA BENING")
   ============================================================================ */
html[data-theme="glass"] {
	--ink: #FFFFFF;
	--ink-secondary: rgba(255, 255, 255, 0.88);
	--muted: rgba(255, 255, 255, 0.72);
	--tertiary: rgba(255, 255, 255, 0.56);
	--canvas: transparent;
	--paper: transparent;
	--surface-subtle: rgba(255, 255, 255, 0.08);
	--hairline: rgba(255, 255, 255, 0.16);
	--hairline-strong: rgba(255, 255, 255, 0.28);
	--maroon-soft: rgba(255, 255, 255, 0.14);

	--glass-surface: linear-gradient(142deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 56%, rgba(255, 255, 255, 0.09) 100%);
	--glass-surface-strong: linear-gradient(150deg, rgba(42, 40, 38, 0.56) 0%, rgba(24, 24, 24, 0.66) 100%);
	--glass-border: rgba(255, 255, 255, 0.24);
	--glass-ring: rgba(0, 0, 0, 0.22);
	--glass-specular: rgba(255, 255, 255, 0.36);
	--glass-foot-bg: rgba(0, 0, 0, 0.18);
	--glass-hover-card: linear-gradient(145deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.10) 100%);
}

html[data-theme="glass"],
html[data-theme="glass"] body {
	background-color: #141413 !important;
	color: #FFFFFF;
}

/* Moody Architectural Interior Depth Fixed Behind Clear Glass (visionOS feel) */
html[data-theme="glass"] body::before {
	content: '';
	position: fixed;
	inset: -16px;
	z-index: 0;
	pointer-events: none;
	transform: translate3d(0, 0, 0);
	background:
		radial-gradient(900px 560px at 24% 18%, rgba(255, 248, 236, 0.14), transparent 62%),
		radial-gradient(760px 520px at 80% 72%, rgba(220, 214, 204, 0.08), transparent 65%),
		linear-gradient(180deg, rgba(16, 15, 14, 0.44) 0%, rgba(20, 19, 18, 0.56) 100%),
		url('../images/webp/pengunjung.jpg') center / cover no-repeat;
	filter: grayscale(0.68) contrast(1.06) brightness(0.62) blur(2px);
}

html[data-theme="glass"] body > section,
html[data-theme="glass"] body > footer {
	position: relative;
	z-index: 1;
}

html[data-theme="glass"] .about,
html[data-theme="glass"] .services,
html[data-theme="glass"] .services-matrix-band,
html[data-theme="glass"] .team,
html[data-theme="glass"] .news,
html[data-theme="glass"] .yt-section {
	background: transparent !important;
	border-bottom-color: rgba(255, 255, 255, 0.10) !important;
}

html[data-theme="glass"] .surface-3d,
html[data-theme="glass"] .apple-panel,
html[data-theme="glass"] .nf-billboard,
html[data-theme="glass"] .news-search-deck,
html[data-theme="glass"] .news-launcher-bar,
html[data-theme="glass"] .yt-billboard,
html[data-theme="glass"] .yt-card,
html[data-theme="glass"] .ios-modal:not(.nf-modal-card) {
	background: var(--glass-surface) !important;
	backdrop-filter: blur(8px) saturate(118%) !important;
	-webkit-backdrop-filter: blur(8px) saturate(118%) !important;
	border: 1px solid var(--glass-border) !important;
	box-shadow:
		0 1px 0 var(--glass-specular) inset,
		1px 0 0 rgba(255, 255, 255, 0.14) inset,
		0 -1px 0 rgba(0, 0, 0, 0.16) inset,
		0 18px 38px -12px rgba(0, 0, 0, 0.46) !important;
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease) !important;
}

html[data-theme="glass"] .surface-3d:hover {
	border-color: rgba(255, 255, 255, 0.44) !important;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.52) inset,
		1px 0 0 rgba(255, 255, 255, 0.24) inset,
		0 26px 54px -12px rgba(0, 0, 0, 0.62) !important;
}

html[data-theme="glass"] .service-card:hover,
html[data-theme="glass"] .matrix-card:hover,
html[data-theme="glass"] .team-card:hover,
html[data-theme="glass"] .news-card:hover {
	background: var(--glass-hover-card) !important;
	border-color: rgba(255, 255, 255, 0.46) !important;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.52) inset,
		0 26px 54px -12px rgba(0, 0, 0, 0.60) !important;
}

html[data-theme="glass"] .service-card-foot,
html[data-theme="glass"] .matrix-card-meta,
html[data-theme="glass"] .news-link,
html[data-theme="glass"] .team-meta-line,
html[data-theme="glass"] .apple-toolbar,
html[data-theme="glass"] .apple-statusbar,
html[data-theme="glass"] .ios-table thead th,
html[data-theme="glass"] .ios-modal-bar {
	background-color: var(--glass-foot-bg) !important;
	background: var(--glass-foot-bg) !important;
	border-color: rgba(255, 255, 255, 0.14) !important;
}

html[data-theme="glass"] .sim-spec-pill,
html[data-theme="glass"] .nf-billboard .nf-info-btn,
html[data-theme="glass"] .services-directory-section .ios-cell-main .ios-glyph,
html[data-theme="glass"] .matrix-card-top .ios-glyph,
html[data-theme="glass"] .matrix-cat-badge {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.22);
	color: rgba(255, 255, 255, 0.92);
}

html[data-theme="glass"] .nf-billboard .nf-info-btn:hover {
	background: rgba(255, 255, 255, 0.22);
	border-color: rgba(255, 255, 255, 0.42);
	color: #FFFFFF;
}

html[data-theme="glass"] .sim-kicker,
html[data-theme="glass"] .services-dir-eyebrow,
html[data-theme="glass"] .services-status-cta {
	color: rgba(255, 255, 255, 0.92);
}

html[data-theme="glass"] .services-dir-dot {
	background: #FFFFFF;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

html[data-theme="glass"] .service-card:hover .service-card-foot,
html[data-theme="glass"] .matrix-card:hover .matrix-card-meta,
html[data-theme="glass"] .news-card:hover .news-link,
html[data-theme="glass"] .team-card:hover .team-meta-line {
	background-color: rgba(255, 255, 255, 0.14) !important;
	border-color: rgba(255, 255, 255, 0.24) !important;
	color: #FFFFFF !important;
}

html[data-theme="glass"] .service-card:hover .ios-row-action,
html[data-theme="glass"] .matrix-card:hover .ios-row-action {
	background-color: #FFFFFF !important;
	color: #141416 !important;
}

html[data-theme="glass"] .partners-shell,
html[data-theme="glass"] .partners-grid {
	background: transparent !important;
}

html[data-theme="glass"] .partners-dropdown-bar:hover,
html[data-theme="glass"] .partner-item:hover {
	background: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="glass"] .site-nav.is-scrolled {
	background: rgba(34, 33, 31, 0.62) !important;
	backdrop-filter: blur(12px) saturate(125%) !important;
	-webkit-backdrop-filter: blur(12px) saturate(125%) !important;
	border-color: rgba(255, 255, 255, 0.26) !important;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.30) !important;
}

html[data-theme="glass"] .site-nav.is-scrolled .nav-links {
	background: rgba(255, 255, 255, 0.09) !important;
	border-color: rgba(255, 255, 255, 0.16) !important;
}

html[data-theme="glass"] .site-nav.is-scrolled .nav-links a {
	color: rgba(255, 255, 255, 0.80) !important;
}

html[data-theme="glass"] .site-nav.is-scrolled .nav-links a:hover {
	background: rgba(255, 255, 255, 0.10) !important;
	color: #FFFFFF !important;
}

html[data-theme="glass"] .site-nav.is-scrolled .nav-links a.active {
	background: transparent !important;
	color: #161618 !important;
	box-shadow: none !important;
}

html[data-theme="glass"] .site-nav.is-scrolled .btn-outline,
html[data-theme="glass"] .site-nav.is-scrolled .nav-toggle {
	color: #FFFFFF !important;
	border-color: rgba(255, 255, 255, 0.28) !important;
	background: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="glass"] .ios-segmented {
	background: rgba(0, 0, 0, 0.22) !important;
	border: 1px solid rgba(255, 255, 255, 0.16) !important;
}

html[data-theme="glass"] .ios-seg-btn.active {
	background: rgba(255, 255, 255, 0.22) !important;
	color: #FFFFFF !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 4px 12px rgba(0, 0, 0, 0.24) !important;
}

html[data-theme="glass"] .ios-table tbody tr {
	border-bottom-color: rgba(255, 255, 255, 0.10) !important;
}

html[data-theme="glass"] .ios-table tbody tr:hover td {
	background-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="glass"] .ios-row-action,
html[data-theme="glass"] .partners-toggle-btn,
html[data-theme="glass"] .yt-btn-ext,
html[data-theme="glass"] .yt-pill,
html[data-theme="glass"] .yt-rail-arrow,
html[data-theme="glass"] .news-cat-btn,
html[data-theme="glass"] .news-search-box,
html[data-theme="glass"] .news-select,
html[data-theme="glass"] .news-chip-btn,
html[data-theme="glass"] .news-kbd,
html[data-theme="glass"] .slider-btn,
html[data-theme="glass"] .ios-modal-close {
	background: rgba(255, 255, 255, 0.14) !important;
	border-color: rgba(255, 255, 255, 0.22) !important;
	color: #FFFFFF !important;
}

html[data-theme="glass"] .news-select option,
html[data-theme="glass"] .consult-select option {
	background: #232220;
	color: #FFFFFF;
}

html[data-theme="glass"] .news-cat-btn.active,
html[data-theme="glass"] .yt-pill.active {
	background: rgba(255, 255, 255, 0.26) !important;
	border-color: rgba(255, 255, 255, 0.42) !important;
	color: #FFFFFF !important;
}

html[data-theme="glass"] .yt-thumb-box,
html[data-theme="glass"] .news-thumb,
html[data-theme="glass"] .team-photo {
	background-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="glass"] .consult-field label {
	color: var(--ink-secondary);
}

html[data-theme="glass"] .consult-input,
html[data-theme="glass"] .consult-select,
html[data-theme="glass"] .consult-textarea {
	background: rgba(255, 255, 255, 0.10) !important;
	border-color: rgba(255, 255, 255, 0.24) !important;
	color: #FFFFFF !important;
}

html[data-theme="glass"] .consult-input::placeholder,
html[data-theme="glass"] .consult-textarea::placeholder,
html[data-theme="glass"] .news-search-input::placeholder {
	color: rgba(255, 255, 255, 0.56);
}

html[data-theme="glass"] .to-top {
	background: rgba(42, 40, 38, 0.48) !important;
	backdrop-filter: blur(20px) saturate(140%) !important;
	color: #FFFFFF !important;
	border-color: rgba(255, 255, 255, 0.30) !important;
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.34) !important;
}

html[data-theme="glass"] .sec-num,
html[data-theme="glass"] .service-link,
html[data-theme="glass"] .news-hub-cta,
html[data-theme="glass"] .news-tag,
html[data-theme="glass"] .news-link,
html[data-theme="glass"] .ios-glyph,
html[data-theme="glass"] .service-icon,
html[data-theme="glass"] .about-card-num,
html[data-theme="glass"] .about-stat-val,
html[data-theme="glass"] .team-role-label,
html[data-theme="glass"] .partners-badge {
	color: rgba(255, 255, 255, 0.92);
}

html[data-theme="glass"] .site-footer,
html[data-theme="dark"] .site-footer {
	background:
		radial-gradient(640px 280px at 82% 18%, rgba(143, 0, 8, 0.38), transparent 72%),
		linear-gradient(96deg, #160305 0%, #340609 48%, #1C0406 100%) !important;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	color: #FFFFFF;
}

html[data-theme="glass"] .site-footer .footer-top,
html[data-theme="dark"] .site-footer .footer-top,
html[data-theme="glass"] .site-footer .footer-meta-item,
html[data-theme="dark"] .site-footer .footer-meta-item {
	border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="glass"] .site-footer .footer-brand,
html[data-theme="dark"] .site-footer .footer-brand,
html[data-theme="glass"] .site-footer .footer-heading,
html[data-theme="dark"] .site-footer .footer-heading,
html[data-theme="glass"] .site-footer .footer-meta-v,
html[data-theme="dark"] .site-footer .footer-meta-v {
	color: #FFFFFF;
}

html[data-theme="glass"] .site-footer .footer-desc,
html[data-theme="dark"] .site-footer .footer-desc,
html[data-theme="glass"] .site-footer .footer-brand-tag,
html[data-theme="dark"] .site-footer .footer-brand-tag,
html[data-theme="glass"] .site-footer .footer-links a,
html[data-theme="dark"] .site-footer .footer-links a,
html[data-theme="glass"] .site-footer .footer-nl-label,
html[data-theme="dark"] .site-footer .footer-nl-label,
html[data-theme="glass"] .site-footer .footer-bottom,
html[data-theme="dark"] .site-footer .footer-bottom,
html[data-theme="glass"] .site-footer .footer-bottom-links a,
html[data-theme="dark"] .site-footer .footer-bottom-links a,
html[data-theme="glass"] .site-footer .footer-contact-item,
html[data-theme="dark"] .site-footer .footer-contact-item,
html[data-theme="glass"] .site-footer .footer-meta-k,
html[data-theme="dark"] .site-footer .footer-meta-k {
	color: rgba(255, 255, 255, 0.72);
}

html[data-theme="glass"] .site-footer .footer-links a:hover,
html[data-theme="dark"] .site-footer .footer-links a:hover,
html[data-theme="glass"] .site-footer .footer-contact-item:hover,
html[data-theme="dark"] .site-footer .footer-contact-item:hover,
html[data-theme="glass"] .site-footer .footer-bottom-links a:hover,
html[data-theme="dark"] .site-footer .footer-bottom-links a:hover {
	color: #FFFFFF;
}

html[data-theme="glass"] .site-footer .footer-nl-input,
html[data-theme="dark"] .site-footer .footer-nl-input {
	background: rgba(255, 255, 255, 0.09);
	border-color: rgba(255, 255, 255, 0.22);
	color: #FFFFFF;
}

html[data-theme="glass"] .site-footer .footer-nl-btn,
html[data-theme="dark"] .site-footer .footer-nl-btn {
	background: #FFFFFF;
	color: #111827;
}

html[data-theme="glass"] .site-footer .social-dot,
html[data-theme="dark"] .site-footer .social-dot {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.22);
	color: #FFFFFF;
}

html[data-theme="glass"] .site-footer .social-dot:hover,
html[data-theme="dark"] .site-footer .social-dot:hover {
	background: rgba(255, 255, 255, 0.24);
	border-color: rgba(255, 255, 255, 0.44);
}

/* ============================================================================
   MODE 3: NIGHT / DARK MODE (html[data-theme="dark"])
   ============================================================================ */
html[data-theme="dark"] {
	--ink: #F5F5F8;
	--ink-secondary: #D4D6DF;
	--muted: #A1A5B2;
	--tertiary: #7D8291;
	--canvas: #0B0C11;
	--paper: #11131A;
	--surface-subtle: #171A24;
	--hairline: rgba(255, 255, 255, 0.10);
	--hairline-strong: rgba(255, 255, 255, 0.20);
	--maroon-soft: rgba(217, 56, 67, 0.18);

	--glass-surface: linear-gradient(150deg, rgba(28, 31, 42, 0.82) 0%, rgba(17, 19, 27, 0.74) 100%);
	--glass-surface-strong: linear-gradient(155deg, rgba(30, 33, 46, 0.94) 0%, rgba(18, 20, 29, 0.90) 100%);
	--glass-border: rgba(255, 255, 255, 0.14);
	--glass-ring: rgba(0, 0, 0, 0.42);
	--glass-specular: rgba(255, 255, 255, 0.14);
	--glass-foot-bg: rgba(255, 255, 255, 0.035);
	--glass-hover-card: linear-gradient(145deg, rgba(160, 12, 22, 0.95) 0%, rgba(108, 0, 7, 0.94) 100%);
}

html[data-theme="dark"],
html[data-theme="dark"] body {
	background-color: #0B0C11;
	color: #F5F5F8;
}

html[data-theme="dark"] .about,
html[data-theme="dark"] .services-matrix-band,
html[data-theme="dark"] .team {
	background:
		radial-gradient(660px 360px at 14% 16%, rgba(143, 0, 8, 0.12), transparent 72%),
		var(--canvas) !important;
}

html[data-theme="dark"] .services,
html[data-theme="dark"] .yt-section {
	background:
		radial-gradient(640px 360px at 84% 16%, rgba(143, 0, 8, 0.10), transparent 72%),
		var(--paper) !important;
}

html[data-theme="dark"] .news {
	background:
		radial-gradient(640px 360px at 84% 16%, rgba(148, 163, 184, 0.06), transparent 72%),
		var(--paper) !important;
}

html[data-theme="dark"] .surface-3d,
html[data-theme="dark"] .apple-panel,
html[data-theme="dark"] .nf-billboard,
html[data-theme="dark"] .news-search-deck,
html[data-theme="dark"] .news-launcher-bar,
html[data-theme="dark"] .yt-billboard,
html[data-theme="dark"] .yt-card,
html[data-theme="dark"] .ios-modal:not(.nf-modal-card) {
	background: var(--glass-surface) !important;
	border: 1px solid var(--glass-border) !important;
	box-shadow:
		0 1px 0 var(--glass-specular) inset,
		0 0 0 1px var(--glass-ring),
		0 14px 32px -10px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] .service-card:hover,
html[data-theme="dark"] .matrix-card:hover,
html[data-theme="dark"] .team-card:hover,
html[data-theme="dark"] .news-card:hover {
	background: var(--glass-hover-card) !important;
	border-color: rgba(255, 255, 255, 0.20) !important;
}

html[data-theme="dark"] .service-card-foot,
html[data-theme="dark"] .matrix-card-meta,
html[data-theme="dark"] .news-link,
html[data-theme="dark"] .team-meta-line,
html[data-theme="dark"] .apple-toolbar,
html[data-theme="dark"] .ios-table thead th,
html[data-theme="dark"] .ios-modal-bar {
	background-color: var(--glass-foot-bg) !important;
	border-color: rgba(255, 255, 255, 0.10) !important;
}

html[data-theme="dark"] .service-card:hover .service-card-foot,
html[data-theme="dark"] .matrix-card:hover .matrix-card-meta,
html[data-theme="dark"] .news-card:hover .news-link,
html[data-theme="dark"] .team-card:hover .team-meta-line {
	background-color: rgba(255, 255, 255, 0.12) !important;
	color: #FFFFFF !important;
}

html[data-theme="dark"] .apple-statusbar,
html[data-theme="dark"] .partners-shell,
html[data-theme="dark"] .partners-grid {
	background: transparent !important;
}

html[data-theme="dark"] .sim-kicker,
html[data-theme="dark"] .services-dir-eyebrow,
html[data-theme="dark"] .services-status-cta {
	color: #F87171;
}

html[data-theme="dark"] .services-dir-dot {
	background: #F87171;
	box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.22);
}

html[data-theme="dark"] .services-directory-section .ios-cell-main .ios-glyph,
html[data-theme="dark"] .matrix-card-top .ios-glyph {
	background: rgba(248, 113, 113, 0.14);
}

html[data-theme="dark"] .sim-spec-pill,
html[data-theme="dark"] .nf-billboard .nf-info-btn,
html[data-theme="dark"] .matrix-cat-badge {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.14);
	color: var(--ink-secondary);
}

html[data-theme="dark"] .nf-billboard .nf-info-btn:hover {
	background: rgba(255, 255, 255, 0.15);
	border-color: rgba(255, 255, 255, 0.28);
	color: #FFFFFF;
}

html[data-theme="dark"] .site-nav.is-scrolled {
	background: rgba(18, 20, 28, 0.86) !important;
	border-color: rgba(255, 255, 255, 0.16) !important;
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] .site-nav.is-scrolled .nav-links {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.10);
}

html[data-theme="dark"] .site-nav.is-scrolled .nav-links a {
	color: var(--ink-secondary);
}

html[data-theme="dark"] .site-nav.is-scrolled .nav-links a:hover {
	color: #FFFFFF;
	background: rgba(255, 255, 255, 0.10) !important;
}

html[data-theme="dark"] .site-nav.is-scrolled .nav-links a.active {
	background: transparent !important;
	color: #161618 !important;
}

html[data-theme="dark"] .site-nav.is-scrolled .btn-outline,
html[data-theme="dark"] .site-nav.is-scrolled .nav-toggle {
	color: #FFFFFF;
	border-color: rgba(255, 255, 255, 0.28);
	background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .site-nav.is-scrolled .btn-outline:hover {
	background: var(--maroon);
	border-color: var(--maroon);
}

html[data-theme="dark"] .ios-seg-btn.active {
	background: rgba(255, 255, 255, 0.16);
	color: #FFFFFF;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 2px 6px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] .ios-seg-btn.active:hover {
	background: rgba(255, 255, 255, 0.22);
	color: #FFFFFF;
}

html[data-theme="dark"] .ios-table tbody tr {
	border-bottom-color: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .ios-table tbody tr:hover td {
	background-color: rgba(255, 255, 255, 0.045);
}

html[data-theme="dark"] .ios-row-action {
	background-color: rgba(255, 255, 255, 0.09);
	color: var(--ink);
	border: 1px solid rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .partners-dropdown-bar:hover,
html[data-theme="dark"] .partner-item:hover {
	background: rgba(255, 255, 255, 0.05) !important;
}

html[data-theme="dark"] .partners-toggle-btn,
html[data-theme="dark"] .yt-btn-ext,
html[data-theme="dark"] .yt-pill,
html[data-theme="dark"] .yt-rail-arrow,
html[data-theme="dark"] .news-cat-btn:hover,
html[data-theme="dark"] .news-search-box,
html[data-theme="dark"] .news-select,
html[data-theme="dark"] .news-chip-btn,
html[data-theme="dark"] .news-kbd,
html[data-theme="dark"] .slider-btn {
	background: rgba(255, 255, 255, 0.07) !important;
	border-color: rgba(255, 255, 255, 0.14) !important;
	color: var(--ink) !important;
}

html[data-theme="dark"] .news-cat-btn.active,
html[data-theme="dark"] .yt-pill.active {
	background: var(--maroon) !important;
	border-color: var(--maroon) !important;
	color: #FFFFFF !important;
}

html[data-theme="dark"] .yt-thumb-box,
html[data-theme="dark"] .news-thumb,
html[data-theme="dark"] .team-photo {
	background-color: #1B1E28;
}

html[data-theme="dark"] .consult-field label {
	color: var(--ink-secondary);
}

html[data-theme="dark"] .consult-input,
html[data-theme="dark"] .consult-select,
html[data-theme="dark"] .consult-textarea {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.16);
	color: #F5F5F8;
}

html[data-theme="dark"] .consult-select option {
	background: #14161E;
	color: #F5F5F8;
}

html[data-theme="dark"] .to-top {
	background: rgba(28, 31, 42, 0.92);
	backdrop-filter: blur(8px);
	color: #FFFFFF;
	border-color: rgba(255, 255, 255, 0.18);
}

html[data-theme="dark"] .sec-num,
html[data-theme="dark"] .service-link,
html[data-theme="dark"] .news-hub-cta,
html[data-theme="dark"] .news-tag,
html[data-theme="dark"] .news-link,
html[data-theme="dark"] .ios-glyph,
html[data-theme="dark"] .service-icon,
html[data-theme="dark"] .about-card-num,
html[data-theme="dark"] .about-stat-val,
html[data-theme="dark"] .team-role-label {
	color: #F87171;
}

/* News Archive Bento Card iOS Glass Specular Rim */
.news-archive-tile {
	background: linear-gradient(148deg, rgba(132, 8, 16, 0.94) 0%, rgba(56, 4, 8, 0.96) 55%, rgba(28, 2, 5, 0.98) 100%) !important;
	border: 1px solid rgba(255, 255, 255, 0.22) !important;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.28) inset,
		0 0 0 1px rgba(143, 0, 8, 0.24),
		0 14px 32px -12px rgba(72, 3, 8, 0.38) !important;
	transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease), border-color 0.2s var(--ease) !important;
}

.news-archive-tile:hover {
	transform: translate3d(0, -3px, 0);
	border-color: rgba(255, 255, 255, 0.36) !important;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.36) inset,
		0 22px 44px -12px rgba(110, 4, 10, 0.54) !important;
}

/* ============================================================================
   MODERN PROFESSIONAL COOKIE CONSENT BAR & GRANULAR PREFERENCES MODAL
   ============================================================================ */
.alf-cookie-banner {
	position: fixed;
	left: 22px;
	bottom: 22px;
	width: min(440px, calc(100vw - 44px));
	z-index: 1150;
	padding: 18px 20px;
	border-radius: 20px;
	background: var(--glass-surface-strong);
	backdrop-filter: blur(10px) saturate(125%);
	-webkit-backdrop-filter: blur(10px) saturate(125%);
	border: 1px solid var(--glass-border);
	box-shadow:
		0 1px 0 var(--glass-specular) inset,
		0 0 0 1px var(--glass-ring),
		0 24px 48px -12px rgba(10, 12, 18, 0.28);
	color: var(--ink);
	transition: opacity 0.25s var(--ease), transform 0.3s var(--spring);
}

.alf-cookie-banner.is-hidden {
	display: none !important;
}

.alf-ck-head {
	display: flex;
	align-items: center;
	gap: 11px;
	margin-bottom: 8px;
}

.alf-ck-icon {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: var(--maroon-soft);
	color: var(--maroon);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

html[data-theme="dark"] .alf-ck-icon,
html[data-theme="dark"] .alf-ck-kicker {
	color: #F87171;
}

html[data-theme="glass"] .alf-ck-icon,
html[data-theme="glass"] .alf-ck-kicker {
	color: #FFFFFF;
}

.alf-ck-kicker {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--maroon);
}

.alf-ck-title {
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--ink);
}

.alf-ck-desc {
	font-size: 12.5px;
	line-height: 1.55;
	color: var(--muted);
	margin-bottom: 14px;
}

.alf-ck-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.alf-ck-actions .btn {
	padding: 8px 14px;
	font-size: 12px;
	font-weight: 600;
}

.alf-ck-btn-ghost {
	background: rgba(118, 118, 128, 0.14);
	color: var(--ink);
	border: 1px solid var(--hairline);
}

.alf-ck-btn-ghost:hover {
	background: rgba(118, 118, 128, 0.24);
}

.alf-ck-btn-link {
	background: transparent;
	border: none;
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
	padding: 6px 8px;
	cursor: pointer;
	text-decoration: underline;
	margin-left: auto;
}

.alf-ck-btn-link:hover {
	color: var(--ink);
}

.alf-ck-legal {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid var(--hairline);
}

.alf-ck-legal-pill {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(118, 118, 128, 0.12);
	border: 1px solid var(--hairline);
	color: var(--ink-secondary);
	font-size: 11.5px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.alf-ck-legal-pill:hover {
	background: var(--maroon-soft);
	border-color: rgba(143, 0, 8, 0.28);
	color: var(--maroon);
}

html[data-theme="dark"] .alf-ck-legal-pill,
html[data-theme="glass"] .alf-ck-legal-pill {
	background: rgba(255, 255, 255, 0.10);
	border-color: rgba(255, 255, 255, 0.18);
	color: rgba(255, 255, 255, 0.90);
}

html[data-theme="dark"] .alf-ck-legal-pill:hover,
html[data-theme="glass"] .alf-ck-legal-pill:hover {
	background: rgba(255, 255, 255, 0.22);
	border-color: rgba(255, 255, 255, 0.36);
	color: #FFFFFF;
}

.alf-ck-pref-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 13px 14px;
	border-radius: 13px;
	background: var(--glass-foot-bg);
	border: 1px solid var(--hairline);
	margin-bottom: 10px;
}

.alf-ck-pref-title {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--ink);
}

.alf-ck-pref-desc {
	font-size: 12px;
	color: var(--muted);
	margin-top: 2px;
	line-height: 1.45;
}

.alf-ck-badge-req {
	font-size: 11px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(30, 126, 52, 0.16);
	color: #1E7E34;
	white-space: nowrap;
}

html[data-theme="dark"] .alf-ck-badge-req,
html[data-theme="glass"] .alf-ck-badge-req {
	color: #4ADE80;
}

.ios-switch {
	appearance: none;
	-webkit-appearance: none;
	width: 44px;
	height: 26px;
	border-radius: 999px;
	background: rgba(120, 120, 128, 0.34);
	position: relative;
	cursor: pointer;
	flex-shrink: 0;
	transition: background 0.22s var(--ease);
}

.ios-switch::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #FFFFFF;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.22);
	transition: transform 0.22s var(--spring);
}

.ios-switch:checked {
	background: var(--maroon);
}

.ios-switch:checked::after {
	transform: translateX(18px);
}

@media (max-width: 600px) {
	.alf-mode-dock {
		width: 90px;
		height: 32px;
	}
	.alf-mode-glow {
		width: 26px;
		height: 24px;
	}
	.alf-mode-dock[data-active-mode="glass"] .alf-mode-glow {
		transform: translateX(28px);
	}
	.alf-mode-dock[data-active-mode="dark"] .alf-mode-glow {
		transform: translateX(56px);
	}
	.alf-cookie-banner {
		left: 14px;
		right: 14px;
		bottom: 14px;
		width: auto;
	}
	.alf-ck-btn-link {
		margin-left: 0;
	}
}

/* ============================================================================
   4 GB RAM / LOW-SPEC LAPTOP LITE COMPOSITOR MODE
   Preserves iOS Glassmorphism look while cutting GPU blur cost ~4x
   ============================================================================ */
html.perf-lite .alf-cookie-banner,
html.perf-lite .ios-modal-backdrop,
html.perf-lite[data-theme="glass"] .surface-3d,
html.perf-lite[data-theme="glass"] .nf-billboard,
html.perf-lite[data-theme="glass"] .service-card,
html.perf-lite[data-theme="glass"] .about-card,
html.perf-lite[data-theme="glass"] .news-card,
html.perf-lite[data-theme="glass"] .team-card,
html.perf-lite[data-theme="glass"] .apple-window,
html.perf-lite[data-theme="glass"] .ios-card,
html.perf-lite[data-theme="glass"] .ios-modal,
html.perf-lite[data-theme="glass"] .legal-hero,
html.perf-lite[data-theme="glass"] .legal-toc,
html.perf-lite[data-theme="glass"] .legal-section,
html.perf-lite[data-theme="dark"] .surface-3d,
html.perf-lite[data-theme="dark"] .apple-window,
html.perf-lite[data-theme="dark"] .ios-modal {
	backdrop-filter: blur(10px) saturate(118%) !important;
	-webkit-backdrop-filter: blur(10px) saturate(118%) !important;
}

html.perf-lite[data-theme="glass"] body::before {
	filter: none !important;
	transform: none !important;
}
