/*
Theme Name: Haxa Agent Home
Theme URI: https://haxalabs.com/
Author: HaxaLabs
Description: Original block theme for the autonomous homepage laboratory.
Version: 0.1.0
Requires at least: 6.9
Requires PHP: 7.4
Text Domain: haxa-agent-home
*/

:root {
	--hx-ink: #18181b;
	--hx-muted: #71717a;
	--hx-line: #e4e4e7;
	--hx-paper: #fafafa;
	--hx-white: #ffffff;
	--hx-accent: #4f46e5;
	--hx-accent-dark: #3730a3;
	--hx-soft: #eef2ff;
	--hx-radius: 1.25rem;
	--hx-shadow: 0 24px 70px rgba(24, 24, 27, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--hx-paper);
	color: var(--hx-ink);
	font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wp-site-blocks { padding: 0; }
.hx-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.hx-home { overflow: hidden; }
.hx-skip {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 100;
	padding: 10px 14px;
	border-radius: 8px;
	background: var(--hx-ink);
	color: white;
	transform: translateY(-150%);
}
.hx-skip:focus { transform: translateY(0); }

.hx-header {
	position: sticky;
	top: 0;
	z-index: 30;
	border-bottom: 1px solid rgba(228, 228, 231, 0.85);
	background: rgba(250, 250, 250, 0.9);
	backdrop-filter: blur(16px);
}
.hx-nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.hx-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 780; letter-spacing: -0.03em; }
.hx-brand-mark { width: 30px; height: 30px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; padding: 5px; border-radius: 9px; background: var(--hx-ink); }
.hx-brand-mark i { display: block; border-radius: 2px; background: white; }
.hx-brand-mark i:nth-child(2), .hx-brand-mark i:nth-child(3) { background: #818cf8; }
.hx-nav-links { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.hx-nav-links a { color: #52525b; font-size: 0.875rem; font-weight: 600; text-decoration: none; }
.hx-nav-links a:hover { color: var(--hx-ink); }

.hx-button {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 0 18px;
	border: 1px solid var(--hx-ink);
	border-radius: 10px;
	background: var(--hx-ink);
	color: white;
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 1px 1px rgba(0,0,0,.08);
	transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.hx-button:hover { transform: translateY(-1px); background: #27272a; }
.hx-button--light { border-color: var(--hx-line); background: white; color: var(--hx-ink); }
.hx-button--light:hover { background: #f4f4f5; }
.hx-button--accent { border-color: var(--hx-accent); background: var(--hx-accent); }
.hx-button--accent:hover { border-color: var(--hx-accent-dark); background: var(--hx-accent-dark); }
.hx-button:focus-visible, .hx-nav a:focus-visible, .hx-footer a:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 3px; }

.hx-hero { position: relative; padding: 92px 0 88px; border-bottom: 1px solid var(--hx-line); }
.hx-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: linear-gradient(#e4e4e755 1px, transparent 1px), linear-gradient(90deg, #e4e4e755 1px, transparent 1px);
	background-size: 44px 44px;
	mask-image: linear-gradient(to bottom, black, transparent 78%);
}
.hx-hero-grid { position: relative; display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 72px; }
.hx-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 24px; color: var(--hx-accent-dark); font-size: .76rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.hx-eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--hx-accent); }
.hx-hero h1 { max-width: 680px; margin: 0; font-size: clamp(3.25rem, 6.2vw, 6.4rem); line-height: .93; letter-spacing: -.068em; font-weight: 760; }
.hx-hero h1 em { color: var(--hx-accent); font-style: normal; }
.hx-lead { max-width: 590px; margin: 30px 0 0; color: #52525b; font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.65; }
.hx-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hx-note { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--hx-muted); font-size: .82rem; font-weight: 560; }
.hx-note i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 5px #dcfce7; }

.hx-product {
	position: relative;
	min-width: 0;
	border: 1px solid #27272a;
	border-radius: 22px;
	background: #18181b;
	box-shadow: var(--hx-shadow);
	color: white;
	transform: rotate(1.2deg);
}
.hx-product::after { content: ""; position: absolute; inset: 18px -22px -22px 18px; z-index: -1; border: 1px solid #c7d2fe; border-radius: 22px; background: var(--hx-soft); }
.hx-window-bar { height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid #3f3f46; }
.hx-dots { display: flex; gap: 6px; }
.hx-dots i { width: 8px; height: 8px; border-radius: 50%; background: #52525b; }
.hx-dots i:first-child { background: #818cf8; }
.hx-window-label { color: #a1a1aa; font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.hx-product-body { display: grid; grid-template-columns: 72px 1fr; min-height: 420px; }
.hx-rail { padding: 18px 15px; border-right: 1px solid #3f3f46; }
.hx-rail-logo { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 28px; border-radius: 11px; background: var(--hx-accent); font-weight: 850; }
.hx-rail i { display: block; width: 28px; height: 28px; margin: 12px auto; border: 1px solid #3f3f46; border-radius: 8px; }
.hx-rail i:nth-of-type(2) { background: #27272a; border-color: #52525b; }
.hx-dashboard { min-width: 0; padding: 26px; }
.hx-dashboard-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.hx-dashboard small { color: #a1a1aa; font-size: .66rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.hx-dashboard h2 { margin: 5px 0 0; font-size: 1.35rem; letter-spacing: -.035em; }
.hx-status { padding: 7px 9px; border: 1px solid #3f3f46; border-radius: 8px; color: #a7f3d0; font-size: .68rem; font-weight: 700; }
.hx-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.hx-metric { min-width: 0; padding: 14px; border: 1px solid #3f3f46; border-radius: 12px; background: #202023; }
.hx-metric strong { display: block; margin-top: 9px; font-size: 1.25rem; letter-spacing: -.04em; }
.hx-metric span { display: block; margin-top: 4px; color: #86efac; font-size: .65rem; }
.hx-chart-card { margin-top: 10px; padding: 16px; border: 1px solid #3f3f46; border-radius: 14px; background: #202023; }
.hx-chart-head { display: flex; align-items: center; justify-content: space-between; }
.hx-chart-head b { font-size: .78rem; }
.hx-chart { height: 122px; display: flex; align-items: flex-end; gap: 9px; margin-top: 22px; border-bottom: 1px solid #3f3f46; }
.hx-chart i { flex: 1; border-radius: 4px 4px 0 0; background: #3f3f46; }
.hx-chart i:nth-child(1) { height: 32%; }
.hx-chart i:nth-child(2) { height: 47%; }
.hx-chart i:nth-child(3) { height: 41%; }
.hx-chart i:nth-child(4) { height: 68%; background: #6366f1; }
.hx-chart i:nth-child(5) { height: 61%; }
.hx-chart i:nth-child(6) { height: 83%; background: #818cf8; }
.hx-chart i:nth-child(7) { height: 76%; }
.hx-chart i:nth-child(8) { height: 92%; background: #a5b4fc; }

.hx-trust { padding: 34px 0; border-bottom: 1px solid var(--hx-line); background: white; }
.hx-trust-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.hx-trust p { margin: 0; color: var(--hx-muted); font-size: .72rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.hx-logos { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 34px; color: #52525b; }
.hx-logos b { font-size: .91rem; letter-spacing: -.02em; }

.hx-section { padding: 112px 0; }
.hx-section--white { background: white; }
.hx-section-head { display: grid; grid-template-columns: 0.75fr 1.25fr; align-items: end; gap: 70px; margin-bottom: 48px; }
.hx-kicker { margin: 0; color: var(--hx-accent); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hx-section h2 { margin: 12px 0 0; font-size: clamp(2.25rem, 4vw, 4.15rem); line-height: 1; letter-spacing: -.055em; }
.hx-section-intro { max-width: 570px; margin: 0; color: var(--hx-muted); font-size: 1.05rem; line-height: 1.72; }

.hx-bento { display: grid; grid-template-columns: 1.15fr .85fr; grid-template-rows: repeat(2, minmax(280px, auto)); gap: 16px; }
.hx-card { position: relative; overflow: hidden; padding: 34px; border: 1px solid var(--hx-line); border-radius: var(--hx-radius); background: white; }
.hx-card h3 { max-width: 420px; margin: 0; font-size: 1.35rem; letter-spacing: -.035em; }
.hx-card > p { max-width: 470px; margin: 12px 0 0; color: var(--hx-muted); font-size: .92rem; line-height: 1.65; }
.hx-card--dark { background: var(--hx-ink); color: white; border-color: var(--hx-ink); }
.hx-card--dark > p { color: #a1a1aa; }
.hx-card--tall { grid-row: span 2; }
.hx-mini-stack { position: absolute; right: -26px; bottom: -22px; width: 64%; }
.hx-mini-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 14px; border: 1px solid #3f3f46; border-radius: 12px; background: #27272a; box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.hx-mini-row:nth-child(2) { transform: translateX(-20px); }
.hx-mini-row:nth-child(3) { transform: translateX(-40px); }
.hx-mini-avatar { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 9px; background: #4f46e5; }
.hx-mini-row:nth-child(2) .hx-mini-avatar { background: #0d9488; }
.hx-mini-row:nth-child(3) .hx-mini-avatar { background: #ea580c; }
.hx-mini-line { height: 6px; border-radius: 4px; background: #52525b; }
.hx-mini-line:first-child { width: 90px; margin-bottom: 7px; background: #a1a1aa; }
.hx-orbit { position: absolute; right: 30px; bottom: -60px; width: 240px; aspect-ratio: 1; border: 1px solid #c7d2fe; border-radius: 50%; }
.hx-orbit::before, .hx-orbit::after { content: ""; position: absolute; inset: 28px; border: 1px solid #c7d2fe; border-radius: 50%; }
.hx-orbit::after { inset: 70px; background: var(--hx-accent); border: 0; box-shadow: 0 0 0 14px #e0e7ff; }
.hx-flow { display: grid; gap: 12px; margin-top: 34px; }
.hx-flow-row { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--hx-line); font-size: .8rem; font-weight: 680; }
.hx-flow-row i { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; background: var(--hx-soft); color: var(--hx-accent); font-size: .65rem; font-style: normal; }
.hx-flow-row span { color: var(--hx-muted); font-size: .7rem; font-weight: 600; }

.hx-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--hx-line); border-bottom: 1px solid var(--hx-line); }
.hx-stat { padding: 34px 26px; border-right: 1px solid var(--hx-line); }
.hx-stat:last-child { border-right: 0; }
.hx-stat strong { display: block; font-size: clamp(2rem, 3vw, 3.2rem); letter-spacing: -.055em; }
.hx-stat span { display: block; margin-top: 9px; color: var(--hx-muted); font-size: .78rem; font-weight: 650; }

.hx-process { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
.hx-process-copy { position: sticky; top: 120px; align-self: start; }
.hx-steps { counter-reset: steps; }
.hx-step { counter-increment: steps; display: grid; grid-template-columns: 56px 1fr; gap: 22px; padding: 30px 0; border-top: 1px solid var(--hx-line); }
.hx-step::before { content: "0" counter(steps); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--hx-ink); color: white; font-size: .72rem; font-weight: 800; }
.hx-step h3 { margin: 1px 0 0; font-size: 1.2rem; letter-spacing: -.025em; }
.hx-step p { margin: 9px 0 0; color: var(--hx-muted); line-height: 1.65; }

.hx-quote { display: grid; grid-template-columns: 1.2fr .8fr; min-height: 430px; border-radius: calc(var(--hx-radius) + 4px); overflow: hidden; background: #312e81; color: white; }
.hx-quote-copy { display: flex; flex-direction: column; justify-content: space-between; padding: 54px; }
.hx-quote blockquote { margin: 0; font-size: clamp(1.9rem, 3.2vw, 3.15rem); line-height: 1.1; letter-spacing: -.045em; font-weight: 650; }
.hx-quote cite { margin-top: 44px; color: #c7d2fe; font-size: .85rem; font-style: normal; }
.hx-quote-art { position: relative; overflow: hidden; background: #c7d2fe; }
.hx-quote-art::before { content: ""; position: absolute; width: 420px; height: 420px; top: -80px; left: -60px; border-radius: 45% 55% 62% 38%; background: #4f46e5; transform: rotate(22deg); }
.hx-quote-art::after { content: "HX"; position: absolute; right: 28px; bottom: 12px; color: #312e81; font-size: 8rem; font-weight: 900; letter-spacing: -.12em; }

.hx-cta { padding: 90px 0; background: var(--hx-ink); color: white; }
.hx-cta-grid { display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: 50px; }
.hx-cta h2 { max-width: 800px; margin: 0; font-size: clamp(2.8rem, 5vw, 5rem); line-height: .98; letter-spacing: -.06em; }
.hx-cta p { margin: 22px 0 0; color: #a1a1aa; line-height: 1.65; }
.hx-cta .hx-actions { justify-content: flex-end; margin: 0; }

.hx-footer { padding: 44px 0; border-top: 1px solid #27272a; background: var(--hx-ink); color: white; }
.hx-footer-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.hx-footer p { margin: 0; color: #71717a; font-size: .78rem; }
.hx-footer-links { display: flex; gap: 22px; }
.hx-footer-links a { color: #a1a1aa; font-size: .78rem; text-decoration: none; }

@media (max-width: 960px) {
	.hx-nav-links { display: none; }
	.hx-hero { padding-top: 72px; }
	.hx-hero-grid, .hx-section-head, .hx-process, .hx-quote, .hx-cta-grid { grid-template-columns: 1fr; }
	.hx-product { max-width: 700px; margin-top: 20px; transform: none; }
	.hx-bento { grid-template-columns: 1fr; grid-template-rows: auto; }
	.hx-card--tall { grid-row: auto; min-height: 410px; }
	.hx-section-head { gap: 22px; }
	.hx-process { gap: 48px; }
	.hx-process-copy { position: static; }
	.hx-quote-art { min-height: 300px; }
	.hx-cta .hx-actions { justify-content: flex-start; }
}

@media (max-width: 700px) {
	.hx-shell { width: min(100% - 28px, 1180px); }
	.hx-nav { min-height: 66px; }
	.hx-nav > .hx-button { min-height: 38px; padding-inline: 13px; font-size: .78rem; }
	.hx-hero { padding: 58px 0 64px; }
	.hx-hero h1 { font-size: clamp(3.1rem, 16vw, 4.6rem); }
	.hx-actions { align-items: stretch; flex-direction: column; }
	.hx-actions .hx-button { width: 100%; }
	.hx-product::after { display: none; }
	.hx-product-body { grid-template-columns: 48px 1fr; min-height: 360px; }
	.hx-rail { padding: 15px 8px; }
	.hx-rail-logo { width: 32px; height: 32px; }
	.hx-rail i { width: 24px; height: 24px; }
	.hx-dashboard { padding: 18px 14px; }
	.hx-dashboard-head { align-items: flex-start; flex-direction: column; }
	.hx-metrics { grid-template-columns: 1fr 1fr; }
	.hx-metric:last-child { display: none; }
	.hx-trust-row { align-items: flex-start; flex-direction: column; }
	.hx-logos { justify-content: flex-start; gap: 18px 24px; }
	.hx-section { padding: 76px 0; }
	.hx-card { padding: 26px; }
	.hx-mini-stack { width: 80%; }
	.hx-stats { grid-template-columns: 1fr 1fr; }
	.hx-stat:nth-child(2) { border-right: 0; }
	.hx-stat:nth-child(-n+2) { border-bottom: 1px solid var(--hx-line); }
	.hx-step { grid-template-columns: 46px 1fr; gap: 14px; }
	.hx-quote-copy { padding: 34px 26px; }
	.hx-footer-row { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.hx-button { transition: none; }
}
