:root {
	--nx-bg-primary: #050505;
	--nx-bg-secondary: #0a0a0a;
	--nx-surface-elevated: #111111;
	--nx-surface-card: #0D1117;
	--nx-orange: #FF7A00;
	--nx-orange-hover: #FF9A3D;
	--nx-green: #00D26A;
	--nx-green-hover: #22F38A;
	--nx-text-primary: #FFFFFF;
	--nx-text-secondary: #B0B0B0;
	--nx-border: rgba(255, 255, 255, 0.1);
	--nx-glow-orange: rgba(255, 122, 0, 0.55);
	--nx-glow-green: rgba(0, 255, 102, 0.4);
	--nx-radius-card: 24px;
	--nx-radius-button: 18px;
	--nx-radius-input: 16px;
	--nx-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	--nx-shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
	--nx-header-height: 80px;
	--nx-content-max: 720px;
	--nx-wide-max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--nx-header-height) + 1rem);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: #050505;
	color: var(--nx-text-primary);
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	font-size: 18px;
	line-height: 1.7;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

img, picture, video, svg {
	max-width: 100%;
	height: auto;
	display: block;
}

.nexus-header__logo svg,
.nexus-footer__brand svg,
.nexus-mobile-nav__head svg {
	max-width: none;
	flex-shrink: 0;
}

a { color: var(--nx-orange); text-decoration: none; transition: var(--nx-transition); }
a:hover { color: var(--nx-orange-hover); }

:focus-visible {
	outline: 2px solid var(--nx-green);
	outline-offset: 3px;
}

.skip-link {
	position: absolute;
	top: -100%;
	left: 1rem;
	z-index: 9999;
	padding: 0.75rem 1.25rem;
	background: var(--nx-orange);
	color: #fff;
	border-radius: var(--nx-radius-button);
}
.skip-link:focus { top: 1rem; }

/* Logo + hero colors — load early to beat theme.json overrides */
.nexus-header__logo-tech { color: #FF7A00 !important; }
.nexus-hero__word-orange { color: #FF7A00 !important; -webkit-text-fill-color: #FF7A00 !important; }
.nexus-hero__word-green {
	background: linear-gradient(135deg, #00D26A, #22F38A) !important;
	-webkit-background-clip: text !important;
	background-clip: text !important;
	color: transparent !important;
	-webkit-text-fill-color: transparent !important;
}
.nexus-hero__badge { color: #FF7A00 !important; }
.nexus-card__readmore { color: #FF7A00 !important; display: inline-flex !important; }

.nexus-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.nexus-popup__title {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0 0 0.5rem;
	color: var(--nx-text-primary);
}

.nexus-reading-progress {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	transform: scaleX(0);
	transform-origin: left center;
	background: linear-gradient(90deg, var(--nx-orange), var(--nx-green));
	z-index: 9999;
	box-shadow: 0 0 12px var(--nx-glow-orange);
	will-change: transform;
}
