/* ───────────────────────────────────────────────────────────────────────────
   home-polish.css — additive, restrained polish over home.css.
   Loaded AFTER /home.css from home.html. Tightens typography, adds a
   monochrome section rail, numbers the pillars, glows bento cards on
   pointer-move, refines focus rings, and adds a copy button.
   ─────────────────────────────────────────────────────────────────────────── */

/* ── Typographic polish ─────────────────────────────────────────────────── */

.home-page {
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-feature-settings:
		'ss01' on,
		'cv11' on,
		'kern' on,
		'liga' on;
}

.home-page h1,
.home-page h2,
.home-page h3,
.home-page .h-title,
.home-page .h-act-title,
.home-page .h-section-title {
	font-feature-settings:
		'ss01' on,
		'cv11' on,
		'kern' on,
		'liga' on,
		'ss02' on;
}

.home-page p,
.home-page li {
	text-wrap: pretty;
}

/* ── Right-side chapter rail (monochrome, restrained) ───────────────────── */

.h-chapter-rail {
	position: fixed;
	top: 50%;
	right: clamp(0.9rem, 1.4vw, 1.4rem);
	z-index: 180;
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	padding: 0.6rem 0.45rem;
	pointer-events: auto;
	opacity: 0;
	transform: translateY(-50%) translateX(8px);
	transition:
		opacity 0.4s ease,
		transform 0.4s ease;
}

.h-chapter-rail.is-visible {
	opacity: 1;
	transform: translateY(-50%) translateX(0);
}

.h-chapter-dot {
	position: relative;
	display: block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	cursor: pointer;
	transition:
		background 0.25s ease,
		width 0.25s ease,
		height 0.25s ease,
		box-shadow 0.25s ease;
}

.h-chapter-dot:hover {
	background: rgba(255, 255, 255, 0.55);
}

.h-chapter-dot.is-active {
	background: rgba(255, 255, 255, 0.95);
	width: 6px;
	height: 18px;
	border-radius: 3px;
}

.h-chapter-dot .h-chapter-label {
	position: absolute;
	right: calc(100% + 0.75rem);
	top: 50%;
	transform: translateY(-50%) translateX(4px);
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-size: 0.66rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transition:
		opacity 0.18s ease,
		transform 0.18s ease;
}

.h-chapter-dot:hover .h-chapter-label,
.h-chapter-dot:focus-visible .h-chapter-label {
	opacity: 1;
	transform: translateY(-50%) translateX(0);
}

.h-chapter-dot:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

@media (max-width: 980px) {
	.h-chapter-rail {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.h-chapter-rail,
	.h-chapter-dot,
	.h-chapter-dot .h-chapter-label {
		transition: none;
	}
}

/* ── Pillar number labels + card polish ─────────────────────────────────── */

.h-pillar {
	position: relative;
	padding: clamp(1.4rem, 2vw, 1.85rem);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.012);
	overflow: hidden;
	transition:
		border-color 0.35s cubic-bezier(0.2, 0.9, 0.3, 1),
		transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1),
		background 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.h-pillar::before {
	content: '';
	position: absolute;
	top: 0;
	left: 1.4rem;
	right: 1.4rem;
	height: 1px;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(255, 215, 106, 0.4) 50%,
		transparent 100%
	);
}

.h-pillar:hover {
	border-color: rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.025);
	transform: translateY(-2px);
}

.h-pillar-num {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 215, 106, 0.7);
	margin-bottom: 0.95rem;
}

.h-pillar-num::before {
	content: '';
	display: inline-block;
	width: 16px;
	height: 1px;
	background: rgba(255, 215, 106, 0.4);
}

/* ── Bento card hover glow (cursor-tracked, very subtle) ─────────────────── */

.h-bento-card {
	position: relative;
}

.h-bento-card::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.4s ease;
	background: radial-gradient(
		360px circle at var(--bx, 50%) var(--by, 0%),
		rgba(255, 175, 60, 0.05) 0%,
		transparent 55%
	);
}

.h-bento-card:hover::after {
	opacity: 1;
}

/* ── Bento "verifiable identity" cleanup (replaces inline styles) ────────── */

.h-bento-id .h-id-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}

.h-bento-id .h-id-dot--mint {
	background: #6ee7b7;
	box-shadow: 0 0 8px rgba(110, 231, 183, 0.85);
}

.h-bento-id .h-id-addr {
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.72rem;
	color: rgba(255, 255, 255, 0.6);
	letter-spacing: 0.02em;
}

/* ── Bento "six emotions" cleanup (replaces ✦ ? ♥ ! glyphs) ──────────────── */

.h-bento-emotions {
	list-style: none;
	padding: 0;
	margin: 0.5rem 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.h-bento-emotions li {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-size: 0.7rem;
	font-weight: 500;
	color: rgba(167, 139, 250, 0.78);
	border: 1px solid rgba(167, 139, 250, 0.22);
	border-radius: 999px;
	padding: 0.25rem 0.65rem 0.25rem 0.55rem;
	background: rgba(167, 139, 250, 0.04);
}

.h-bento-emotions .h-em-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: rgba(167, 139, 250, 0.85);
	box-shadow: 0 0 6px rgba(167, 139, 250, 0.55);
	flex-shrink: 0;
}

/* ── Dev code: copy button ──────────────────────────────────────────────── */

.h-dev-code {
	position: relative;
}

.h-dev-copy {
	position: absolute;
	top: 0.55rem;
	right: 0.7rem;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.35rem 0.65rem;
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-size: 0.66rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 6px;
	cursor: pointer;
	transition:
		color 0.2s ease,
		background 0.2s ease,
		border-color 0.2s ease,
		transform 0.2s ease;
}

.h-dev-copy:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.18);
}

.h-dev-copy:active {
	transform: scale(0.97);
}

.h-dev-copy.is-copied {
	color: #6ee7b7;
	background: rgba(110, 231, 183, 0.08);
	border-color: rgba(110, 231, 183, 0.4);
}

.h-dev-copy svg {
	width: 12px;
	height: 12px;
	display: block;
}

/* ── Focus ring polish ──────────────────────────────────────────────────── */

.home-page a:focus-visible,
.home-page button:focus-visible,
.home-page input:focus-visible,
.home-page select:focus-visible,
.home-page textarea:focus-visible {
	outline: none;
	box-shadow:
		0 0 0 2px rgba(10, 8, 6, 0.9),
		0 0 0 4px rgba(255, 175, 60, 0.55);
	border-radius: 6px;
}

.home-page .h-btn-primary:focus-visible {
	box-shadow:
		0 0 0 2px rgba(10, 8, 6, 0.9),
		0 0 0 4px rgba(255, 175, 60, 0.7),
		0 6px 24px -8px rgba(255, 143, 77, 0.55);
}

/* ── Scroll-margin so chapter-rail jumps don't hide under sticky header ──── */

#pick-animate,
#deploy-act,
.h-bento-section,
.h-dev-section,
.h-cta-section {
	scroll-margin-top: 88px;
}
