/*
Theme Name: Uhlix
Theme URI: https://uhlix.net
Author: Uhlix
Author URI: https://uhlix.net
Description: A custom dark-tech theme for Uhlix — Windows desktop and Android software with a Firebase-backed cloud core.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: uhlix
*/

/* =========================================================
   1. Variables
   ========================================================= */
:root {
	--bg: #0a0e17;
	--bg-alt: #0d1220;
	--surface: rgba(255, 255, 255, 0.045);
	--surface-strong: rgba(255, 255, 255, 0.07);
	--surface-border: rgba(255, 255, 255, 0.09);
	--text: #e7edf6;
	--text-muted: #93a1b8;
	--accent: #00d9ff;
	--accent-2: #7c5cff;
	--accent-gradient: linear-gradient(135deg, #00d9ff 0%, #7c5cff 100%);
	--success: #22d3a5;
	--danger: #ff6b81;
	--radius-sm: 8px;
	--radius: 14px;
	--radius-lg: 22px;
	--shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
	--font-heading: 'Space Grotesk', 'Segoe UI', sans-serif;
	--font-body: 'Inter', 'Segoe UI', sans-serif;
	--font-mono: 'JetBrains Mono', 'Consolas', monospace;
	--container-w: 1180px;
}

/* =========================================================
   2. Reset
   ========================================================= */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

h1, h2, h3, h4 {
	font-family: var(--font-heading);
	line-height: 1.15;
	margin: 0 0 0.5em;
	letter-spacing: -0.01em;
}

p {
	margin: 0 0 1em;
	color: var(--text-muted);
}

svg {
	width: 1em;
	height: 1em;
}

.screen-reader-text,
.skip-link {
	position: absolute;
	left: -9999px;
	top: auto;
}

.skip-link:focus {
	left: 1rem;
	top: 1rem;
	z-index: 1000;
	background: var(--bg-alt);
	color: var(--text);
	padding: 0.75rem 1rem;
	border-radius: var(--radius-sm);
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* Background: subtle radial glow, IT/tech feel */
body {
	background-image:
		radial-gradient(700px 400px at 85% -5%, rgba(124, 92, 255, 0.18), transparent 60%),
		radial-gradient(600px 400px at 5% 10%, rgba(0, 217, 255, 0.12), transparent 60%);
	background-attachment: fixed;
}

.container {
	width: 100%;
	max-width: var(--container-w);
	margin: 0 auto;
	padding: 0 24px;
}

.section {
	padding: 96px 0;
}

.section.alt-bg {
	background: var(--bg-alt);
	border-top: 1px solid var(--surface-border);
	border-bottom: 1px solid var(--surface-border);
}

.section-title {
	font-size: clamp(1.6rem, 2.4vw, 2.1rem);
	margin-bottom: 2.2rem;
}

.section-heading-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 2.2rem;
}

.section-heading-row .section-title {
	margin-bottom: 0;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	font-family: var(--font-mono);
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--accent);
	margin-bottom: 1rem;
}

.eyebrow svg {
	width: 0.9em;
	height: 0.9em;
}

/* =========================================================
   3. Buttons & links
   ========================================================= */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.85em 1.6em;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.95rem;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn svg {
	width: 1em;
	height: 1em;
}

.btn-primary {
	background: var(--accent-gradient);
	color: #06101d;
	box-shadow: 0 10px 30px -10px rgba(0, 217, 255, 0.5);
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 34px -10px rgba(124, 92, 255, 0.55);
}

.btn-ghost {
	background: transparent;
	color: var(--text);
	border-color: var(--surface-border);
}

.btn-ghost:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.btn-sm {
	padding: 0.55em 1.2em;
	font-size: 0.85rem;
}

.link-arrow,
.link-back {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	color: var(--accent);
	font-weight: 600;
	font-size: 0.92rem;
}

.link-arrow svg,
.link-back svg {
	width: 0.9em;
	height: 0.9em;
}

.link-back {
	margin-bottom: 2rem;
}

/* =========================================================
   4. Header
   ========================================================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(10, 14, 23, 0.65);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled {
	border-bottom-color: var(--surface-border);
	background: rgba(10, 14, 23, 0.85);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 16px 24px;
}

.site-logo {
	display: flex;
	align-items: center;
}

.logo-mark {
	font-family: var(--font-mono);
	font-weight: 500;
	font-size: 1.15rem;
	background: var(--accent-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.nav-menu {
	display: flex;
	align-items: center;
	gap: 1.8rem;
}

.nav-menu a {
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--text-muted);
	transition: color 0.15s ease;
}

.nav-menu a:hover,
.nav-menu li.current-menu-item a {
	color: var(--text);
}

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	background: transparent;
	border: 1px solid var(--surface-border);
	border-radius: var(--radius-sm);
	cursor: pointer;
}

.nav-toggle span {
	display: block;
	height: 2px;
	width: 18px;
	margin: 0 auto;
	background: var(--text);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   5. Hero
   ========================================================= */
.hero {
	padding: 100px 0 60px;
}

.hero-inner {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 56px;
	align-items: center;
}

.hero h1 {
	font-size: clamp(2.2rem, 4.4vw, 3.4rem);
	margin-bottom: 0.6em;
}

.hero-lede {
	font-size: 1.1rem;
	max-width: 46ch;
}

.hero-actions {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	margin-top: 2rem;
}

.terminal-window {
	background: linear-gradient(180deg, #10182a, #0b1120);
	border: 1px solid var(--surface-border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	overflow: hidden;
}

.terminal-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 14px 18px;
	background: rgba(255, 255, 255, 0.03);
	border-bottom: 1px solid var(--surface-border);
}

.dot {
	width: 11px;
	height: 11px;
	border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.terminal-title {
	margin-left: 10px;
	font-family: var(--font-mono);
	font-size: 0.8rem;
	color: var(--text-muted);
}

.terminal-body {
	padding: 22px 24px 26px;
	font-family: var(--font-mono);
	font-size: 0.88rem;
}

.terminal-body p {
	margin: 0 0 0.65em;
	color: var(--text-muted);
}

.terminal-body .prompt {
	color: var(--accent);
	margin-right: 0.5em;
}

.terminal-body .out {
	padding-left: 1.4em;
}

.terminal-body .ok {
	color: var(--success);
}

.terminal-body .success {
	color: var(--success);
	font-weight: 600;
}

.cursor {
	display: inline-block;
	width: 8px;
	background: var(--accent);
	animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
	50% { opacity: 0; }
}

/* =========================================================
   6. Feature grid
   ========================================================= */
.feature-grid,
.values-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.values-grid {
	grid-template-columns: repeat(3, 1fr);
}

.feature-card {
	background: var(--surface);
	border: 1px solid var(--surface-border);
	border-radius: var(--radius);
	padding: 28px 24px;
	transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.feature-card:hover {
	transform: translateY(-4px);
	border-color: rgba(0, 217, 255, 0.35);
	background: var(--surface-strong);
}

.feature-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--radius-sm);
	background: var(--accent-gradient);
	color: #06101d;
	margin-bottom: 1rem;
	font-size: 1.2rem;
}

.feature-card h3 {
	font-size: 1.05rem;
	margin-bottom: 0.4em;
}

.feature-card p {
	font-size: 0.92rem;
	margin: 0;
}

/* =========================================================
   7. Product cards / grid / filters
   ========================================================= */
.product-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.product-card {
	background: var(--surface);
	border: 1px solid var(--surface-border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
	transform: translateY(-4px);
	border-color: rgba(124, 92, 255, 0.4);
}

.product-card.is-hidden {
	display: none;
}

.product-card-link {
	display: block;
}

.product-card-media {
	aspect-ratio: 16 / 10;
	background: linear-gradient(160deg, rgba(0, 217, 255, 0.08), rgba(124, 92, 255, 0.08));
	display: flex;
	align-items: center;
	justify-content: center;
	border-bottom: 1px solid var(--surface-border);
}

.product-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-card-icon {
	width: 56px;
	height: 56px;
	color: var(--accent);
}

.product-card-icon-lg {
	width: 84px;
	height: 84px;
}

.product-card-body {
	padding: 22px 22px 24px;
}

.product-card-badges {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin-bottom: 0.7rem;
}

.chip {
	display: inline-flex;
	align-items: center;
	padding: 0.3em 0.8em;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	background: rgba(0, 217, 255, 0.1);
	color: var(--accent);
	border: 1px solid rgba(0, 217, 255, 0.25);
}

.chip-mono {
	font-family: var(--font-mono);
	background: var(--surface-strong);
	color: var(--text-muted);
	border-color: var(--surface-border);
}

.product-card-title {
	font-size: 1.15rem;
	margin-bottom: 0.4em;
}

.product-card-excerpt {
	font-size: 0.9rem;
	margin-bottom: 1rem;
}

.product-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.product-price {
	font-family: var(--font-mono);
	font-weight: 600;
	color: var(--text);
}

.product-card-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	color: var(--accent);
	font-size: 0.88rem;
	font-weight: 600;
}

.product-card-cta svg {
	width: 0.85em;
	height: 0.85em;
}

.filter-tabs {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 2.5rem;
}

.filter-tab {
	padding: 0.6em 1.3em;
	border-radius: 999px;
	background: transparent;
	border: 1px solid var(--surface-border);
	color: var(--text-muted);
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.88rem;
	cursor: pointer;
	transition: all 0.15s ease;
}

.filter-tab:hover {
	color: var(--text);
	border-color: rgba(255, 255, 255, 0.2);
}

.filter-tab.is-active {
	background: var(--accent-gradient);
	border-color: transparent;
	color: #06101d;
}

.empty-state {
	color: var(--text-muted);
	font-style: italic;
}

/* =========================================================
   8. Single product
   ========================================================= */
.product-single-grid {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 48px;
	align-items: start;
}

.product-single-media {
	background: linear-gradient(160deg, rgba(0, 217, 255, 0.08), rgba(124, 92, 255, 0.08));
	border: 1px solid var(--surface-border);
	border-radius: var(--radius-lg);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	min-height: 280px;
}

.product-meta-list {
	display: flex;
	gap: 2.2rem;
	margin: 1.4rem 0;
}

.product-meta-list dt {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-muted);
	margin-bottom: 0.2em;
}

.product-meta-list dd {
	margin: 0;
	font-family: var(--font-mono);
	font-weight: 600;
}

.tech-chips {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 1.6rem;
}

.tech-chips-lg .chip {
	font-size: 0.85rem;
	padding: 0.5em 1.1em;
}

.product-content {
	margin-bottom: 2rem;
}

.product-content :is(h2, h3) {
	margin-top: 1.4em;
}

/* =========================================================
   9. Products preview / CTA banner
   ========================================================= */
.cta-banner-inner {
	text-align: center;
	max-width: 640px;
	margin: 0 auto;
}

.cta-banner-inner h2 {
	font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.cta-banner-inner .btn {
	margin-top: 1rem;
}

/* =========================================================
   10. About page
   ========================================================= */
.page-hero {
	padding-bottom: 40px;
}

.page-hero-content {
	max-width: 60ch;
	margin-top: 1rem;
}

.about-content {
	max-width: 72ch;
}

.about-content :is(h2, h3) {
	margin-top: 1.6em;
}

/* =========================================================
   11. Contact
   ========================================================= */
.contact-grid {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	gap: 48px;
	align-items: start;
}

.contact-details {
	margin-top: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1.2rem;
}

.contact-details a {
	color: var(--accent);
}

.contact-form-wrap {
	background: var(--surface);
	border: 1px solid var(--surface-border);
	border-radius: var(--radius-lg);
	padding: 32px;
}

.field-honeypot {
	position: absolute;
	left: -9999px;
	opacity: 0;
	pointer-events: none;
}

.form-row {
	margin-bottom: 1.2rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.form-row label {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--text-muted);
}

.form-row input,
.form-row textarea {
	background: var(--bg-alt);
	border: 1px solid var(--surface-border);
	border-radius: var(--radius-sm);
	padding: 0.75em 0.9em;
	color: var(--text);
	font-family: var(--font-body);
	font-size: 0.95rem;
	resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
	border-color: var(--accent);
}

.contact-form .btn {
	width: 100%;
	justify-content: center;
	margin-top: 0.4rem;
}

.notice {
	padding: 0.9em 1.1em;
	border-radius: var(--radius-sm);
	margin-bottom: 1.4rem;
	font-size: 0.92rem;
}

.notice-success {
	background: rgba(34, 211, 165, 0.12);
	border: 1px solid rgba(34, 211, 165, 0.35);
	color: var(--success);
}

.notice-error {
	background: rgba(255, 107, 129, 0.12);
	border: 1px solid rgba(255, 107, 129, 0.35);
	color: var(--danger);
}

/* =========================================================
   12. Blog / post fallback
   ========================================================= */
.post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.post-card {
	background: var(--surface);
	border: 1px solid var(--surface-border);
	border-radius: var(--radius);
	overflow: hidden;
}

.post-card-media img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.post-card-body {
	padding: 20px;
}

.pagination {
	margin-top: 2.5rem;
	display: flex;
	justify-content: center;
	gap: 0.5rem;
}

/* =========================================================
   13. 404
   ========================================================= */
.error-404 {
	text-align: center;
	padding: 140px 0;
}

.error-404 .btn {
	margin-top: 1.4rem;
}

/* =========================================================
   14. Footer
   ========================================================= */
.site-footer {
	background: var(--bg-alt);
	border-top: 1px solid var(--surface-border);
	padding-top: 64px;
}

.footer-inner {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr;
	gap: 32px;
	padding-bottom: 40px;
}

.footer-brand p {
	margin-top: 0.8rem;
	max-width: 32ch;
	font-size: 0.9rem;
}

.footer-widget-title,
.footer-col h4 {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text);
	margin-bottom: 1rem;
}

.footer-menu,
.footer-widget ul {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
}

.footer-menu a,
.footer-col a {
	color: var(--text-muted);
	font-size: 0.92rem;
}

.footer-menu a:hover {
	color: var(--accent);
}

.footer-bottom {
	border-top: 1px solid var(--surface-border);
	padding: 22px 24px;
}

.footer-bottom p {
	margin: 0;
	font-size: 0.85rem;
	color: var(--text-muted);
}

/* =========================================================
   15. Scroll reveal
   ========================================================= */
.reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
	.cursor {
		animation: none;
	}
}

/* =========================================================
   16. Responsive
   ========================================================= */
@media (max-width: 960px) {
	.feature-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.values-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.product-grid,
	.post-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.hero-inner {
		grid-template-columns: 1fr;
	}
	.hero-visual {
		order: -1;
	}
	.product-single-grid,
	.contact-grid {
		grid-template-columns: 1fr;
	}
	.footer-inner {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 700px) {
	.section {
		padding: 64px 0;
	}
	.nav-toggle {
		display: flex;
	}
	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: rgba(10, 14, 23, 0.97);
		backdrop-filter: blur(14px);
		border-bottom: 1px solid var(--surface-border);
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.25s ease;
	}
	.site-nav.is-open {
		max-height: 420px;
	}
	.nav-menu {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		padding: 12px 24px;
	}
	.nav-menu a {
		display: block;
		padding: 0.7em 0;
	}
	.nav-cta {
		margin: 12px 24px 20px;
	}
	.feature-grid,
	.values-grid,
	.product-grid,
	.post-grid {
		grid-template-columns: 1fr;
	}
	.footer-inner {
		grid-template-columns: 1fr;
	}
}
