/* PC Controller product site — the app's graphite-and-mint identity.
 * Tokens mirror pc-controller/src/index.css so page and product read as one. */

.pcs {
	--bg0: #0a0d0e;
	--bg1: #101416;
	--bg2: #171d1f;
	--bg3: #212a2c;
	--accent: #4dd0bd;
	--accent-hi: #7ce4d4;
	--accent-dim: #2f8f81;
	--on-accent: #04211c;
	--ink: #eef4f2;
	--mute: #96a5a2;
	--faint: #62706d;
	--hairline: rgba(255, 255, 255, 0.08);
	--line: rgba(255, 255, 255, 0.1);
	--glow: radial-gradient(140% 48% at 50% -12%, rgba(77, 208, 189, 0.09), transparent 60%);

	background: var(--glow), var(--bg0);
	color: var(--ink);
	font-family: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
	line-height: 1.55;
}

.pcs a {
	color: var(--accent-hi);
	text-decoration: none;
}

.pcs a:hover {
	text-decoration: underline;
}

.pcs ::selection {
	background: rgba(77, 208, 189, 0.32);
}

/* ——— Chrome ——— */

.pcs-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--accent);
	color: var(--on-accent);
	padding: 10px 16px;
	border-radius: 0 0 12px 0;
	z-index: 50;
}

.pcs-skip:focus {
	left: 0;
}

.pcs-nav {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 22px;
	background: rgba(10, 13, 14, 0.82);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--hairline);
}

.pcs-mark {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--ink);
	font-weight: 800;
	font-size: 1.02rem;
	letter-spacing: -0.02em;
	text-decoration: none;
}

.pcs-mark:hover {
	text-decoration: none;
}

.pcs-mark img {
	width: 34px;
	height: 34px;
	border-radius: 9px;
	box-shadow: 0 0 0 1px var(--line), 0 2px 10px rgba(77, 208, 189, 0.22);
}

.pcs-mark b {
	color: var(--ink);
}

.pcs-mark span {
	color: var(--mute);
	font-weight: 500;
}

.pcs-nav nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
}

.pcs-nav nav a {
	color: var(--mute);
	font-size: 0.88rem;
	font-weight: 570;
	text-decoration: none;
}

.pcs-nav nav a:hover {
	color: var(--accent-hi);
	text-decoration: none;
}

/* ——— Shared shells ——— */

.pcs-wrap {
	max-width: 980px;
	margin: 0 auto;
	padding: 0 22px;
}

.pcs-section {
	padding: 58px 0 26px;
}

.pcs-kicker {
	margin: 0 0 10px;
	color: var(--accent);
	font-family: 'IBM Plex Mono', monospace;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.pcs-section h2 {
	margin: 0 0 12px;
	font-size: clamp(1.5rem, 3.4vw, 2rem);
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.1;
}

.pcs-intro,
.pcs-lede {
	color: var(--mute);
	font-size: 1.02rem;
	max-width: 62ch;
}

.pcs-lede {
	font-size: 1.08rem;
	margin: 14px 0 0;
}

.pcs-hero h1 {
	margin: 6px 0 0;
	font-size: clamp(2.5rem, 7vw, 4rem);
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.02;
}

.pcs-hero h1 span {
	color: var(--accent);
}

/* ——— Hero ——— */

.pcs-hero {
	padding: 64px 0 46px;
	background:
		radial-gradient(120% 70% at 78% -10%, rgba(77, 208, 189, 0.14), transparent 55%),
		transparent;
	border-bottom: 1px solid var(--hairline);
}

.pcs-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
	gap: 40px;
	align-items: center;
}

.pcs-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 22px;
}

.pcs-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 20px;
	border-radius: 12px;
	font-weight: 700;
	font-size: 0.92rem;
	text-decoration: none;
	transition: transform 120ms ease, background 140ms ease, border-color 140ms ease;
}

.pcs-btn:hover {
	text-decoration: none;
}

.pcs-btn:active {
	transform: translateY(1px);
}

.pcs-btn--primary {
	background: var(--accent);
	color: var(--on-accent);
	box-shadow: 0 4px 18px rgba(77, 208, 189, 0.28);
}

.pcs-btn--primary:hover {
	background: var(--accent-hi);
}

.pcs-btn--ghost {
	background: var(--bg3);
	color: var(--ink);
	border: 1px solid var(--hairline);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.pcs-btn--ghost:hover {
	border-color: rgba(77, 208, 189, 0.45);
	color: var(--accent-hi);
}

.pcs-meta {
	color: var(--faint);
	font-size: 0.82rem;
	margin: 12px 0 0;
}

/* Phone mock in the hero — the app's Touch screen, stylized */
.pcs-phone {
	display: grid;
	place-items: center;
}

.pcs-bezel {
	width: min(100%, 250px);
	aspect-ratio: 9 / 18.4;
	border-radius: 34px;
	background: var(--bg2);
	border: 1px solid var(--line);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.07),
		0 24px 60px rgba(0, 0, 0, 0.55),
		0 0 0 8px #060809,
		0 0 60px rgba(77, 208, 189, 0.12);
	position: relative;
	overflow: hidden;
}

.pcs-bezel__notch {
	position: absolute;
	top: 10px;
	left: 50%;
	transform: translateX(-50%);
	width: 84px;
	height: 22px;
	border-radius: 18px;
	background: #050607;
	z-index: 2;
}

.pcs-screen {
	position: absolute;
	inset: 10px;
	border-radius: 26px;
	background:
		radial-gradient(130% 46% at 50% -12%, rgba(77, 208, 189, 0.16), transparent 60%),
		linear-gradient(180deg, #101416, #0a0d0e 130%);
	display: grid;
	grid-template-rows: auto 1fr auto;
	gap: 10px;
	padding: 30px 12px 12px;
}

.pcs-screen__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.6rem;
	color: #96a5a2;
	letter-spacing: 0.04em;
}

.pcs-screen__bar b {
	color: #eef4f2;
}

.pcs-screen__bar .dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #4dd0bd;
	box-shadow: 0 0 8px rgba(77, 208, 189, 0.6);
	display: inline-block;
	margin-right: 5px;
}

.pcs-pad {
	border-radius: 16px;
	background:
		radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.5px) 0 0 / 18px 18px,
		linear-gradient(180deg, #171d1f, #101416);
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
	position: relative;
}

.pcs-pad::after {
	content: 'DRAG';
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: #62706d;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 0.58rem;
	letter-spacing: 0.2em;
}

.pcs-keys {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 5px;
}

.pcs-keys i {
	font-style: normal;
	height: 26px;
	border-radius: 8px;
	background: #171d1f;
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 5px rgba(0, 0, 0, 0.35);
	display: grid;
	place-items: center;
	color: #7ce4d4;
	font-size: 0.56rem;
}

.pcs-keys i:nth-child(1) { color: #a855f7; }
.pcs-keys i:nth-child(2) { color: #22c55e; }
.pcs-keys i:nth-child(3) { color: #0ea5e9; }
.pcs-keys i:nth-child(4) { color: #f97316; }
.pcs-keys i:nth-child(5) { color: #ef4444; }
.pcs-keys i:nth-child(6) { color: #3b82f6; }

/* ——— Cards / kit / modes ——— */

.pcs-kit,
.pcs-modes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 14px;
	margin-top: 18px;
}

.pcs-kit article,
.pcs-modes > div,
.pcs-prose .callout {
	background: var(--bg1);
	border: 1px solid var(--hairline);
	border-radius: 16px;
	padding: 20px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.3);
}

.pcs-kit .n {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 0.66rem;
	letter-spacing: 0.2em;
	color: var(--accent);
	margin-bottom: 8px;
}

.pcs-kit h3,
.pcs-modes h3 {
	margin: 0 0 8px;
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.pcs-kit p,
.pcs-modes p {
	margin: 0;
	color: var(--mute);
	font-size: 0.9rem;
}

.pcs-kit .pcs-cta {
	margin: 14px 0 0;
}

.pcs-kit strong {
	color: var(--ink);
}

.pcs-warn {
	margin: 18px 0 0;
	padding: 14px 16px;
	border-radius: 14px;
	border: 1px solid rgba(239, 68, 68, 0.3);
	background: rgba(239, 68, 68, 0.07);
	color: var(--mute);
	font-size: 0.88rem;
}

.pcs-warn strong {
	color: #f0917f;
}

/* ——— Steps ——— */

.pcs-steps {
	list-style: none;
	margin: 18px 0 0;
	padding: 0;
	display: grid;
	gap: 12px;
}

.pcs-steps li {
	display: grid;
	grid-template-columns: 52px 1fr;
	gap: 14px;
	align-items: start;
	background: var(--bg1);
	border: 1px solid var(--hairline);
	border-radius: 16px;
	padding: 16px 18px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.pcs-steps li > span {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--accent);
	padding-top: 2px;
}

.pcs-steps strong {
	display: block;
	margin-bottom: 4px;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.pcs-steps p {
	margin: 0;
	color: var(--mute);
	font-size: 0.9rem;
}

/* ——— Tabs / feature list ——— */

.pcs-tabs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 14px;
	margin: 18px 0 0;
}

.pcs-tabs dt {
	font-weight: 800;
	letter-spacing: -0.01em;
	margin-bottom: 4px;
}

.pcs-tabs dt::before {
	content: '';
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 3px;
	background: var(--accent);
	margin-right: 8px;
	box-shadow: 0 0 8px rgba(77, 208, 189, 0.45);
}

.pcs-tabs dd {
	margin: 0;
	color: var(--mute);
	font-size: 0.9rem;
	background: var(--bg1);
	border: 1px solid var(--hairline);
	border-radius: 14px;
	padding: 14px 16px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.pcs-tabs strong {
	color: var(--ink);
}

/* ——— Pair / QR callout ——— */

.pcs-pair {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 26px;
	align-items: center;
	margin-top: 18px;
	padding: 24px;
	border-radius: 20px;
	background: var(--bg1);
	border: 1px solid var(--hairline);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 30px rgba(0, 0, 0, 0.3);
}

.pcs-pair ol {
	margin: 10px 0 0;
	padding-left: 20px;
	color: var(--mute);
	font-size: 0.92rem;
}

.pcs-pair ol li {
	margin: 6px 0;
}

.pcs-pair code {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 0.84rem;
	color: var(--accent-hi);
	background: var(--bg3);
	border: 1px solid var(--hairline);
	border-radius: 8px;
	padding: 2px 8px;
}

.pcs-pair__qr {
	width: 148px;
	aspect-ratio: 1;
	border-radius: 16px;
	background: #fff;
	display: grid;
	place-items: center;
	color: #0a0d0e;
	font-size: 2.6rem;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* ——— FAQ ——— */

.pcs-faq details {
	background: var(--bg1);
	border: 1px solid var(--hairline);
	border-radius: 14px;
	padding: 14px 18px;
	margin: 10px 0;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.pcs-faq summary {
	cursor: pointer;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.pcs-faq details[open] summary {
	color: var(--accent-hi);
}

.pcs-faq details p {
	color: var(--mute);
	font-size: 0.9rem;
	margin: 10px 0 0;
}

/* ——— Prose pages (guide / privacy / terms) ——— */

.pcs-prose {
	max-width: 74ch;
}

.pcs-prose h1 {
	font-size: clamp(1.8rem, 4.5vw, 2.4rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	margin: 8px 0 14px;
}

.pcs-prose h2 {
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -0.015em;
	margin: 30px 0 10px;
}

.pcs-prose p,
.pcs-prose li {
	color: var(--mute);
	font-size: 0.95rem;
}

.pcs-prose strong {
	color: var(--ink);
}

.pcs-prose .callout {
	margin: 16px 0;
}

/* ——— Footer ——— */

.pcs-foot {
	border-top: 1px solid var(--hairline);
	margin-top: 40px;
	padding: 26px 0 34px;
	color: var(--faint);
	font-size: 0.85rem;
}

.pcs-foot__row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
	align-items: center;
	justify-content: space-between;
}

.pcs-foot p {
	margin: 0;
}

/* ——— Small screens ——— */

@media (max-width: 760px) {
	.pcs-hero__grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.pcs-phone {
		order: -1;
	}

	.pcs-pair {
		grid-template-columns: 1fr;
		justify-items: start;
	}

	.pcs-nav {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pcs * {
		transition: none !important;
		animation: none !important;
	}
}

/* ——— FX layer: particle field, holo phone, reveals, tilt ——— */

#bg-fx {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.pcs main,
.pcs .pcs-nav,
.pcs .pcs-foot {
	position: relative;
	z-index: 1;
}

.pcs-hero h1 span {
	background: linear-gradient(92deg, #7ce4d4 0%, #4dd0bd 55%, #2f8f81 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Holographic phone canvas replaces the CSS bezel when JS runs */
.pcs-phone.holo-on {
	position: relative;
	width: min(100%, 330px);
	margin: 0 auto;
	aspect-ratio: 330 / 512;
}

.pcs-phone.holo-on .pcs-bezel {
	display: none;
}

.pcs-phone .holo {
	display: block;
	width: 100%;
	height: 100%;
	filter: drop-shadow(0 0 22px rgba(77, 208, 189, 0.18));
}

.holo-chip {
	position: absolute;
	z-index: 2;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 0.6rem;
	letter-spacing: 0.14em;
	color: #7ce4d4;
	background: rgba(23, 29, 31, 0.85);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 999px;
	padding: 5px 11px;
	pointer-events: none;
	box-shadow: 0 0 18px rgba(77, 208, 189, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.06);
	animation: holo-float 5.2s ease-in-out infinite;
}

.holo-chip--tl { top: 6%; left: -4%; animation-delay: 0s; }
.holo-chip--tr { top: 14%; right: -5%; animation-delay: 1.3s; }
.holo-chip--bl { bottom: 22%; left: -6%; animation-delay: 2.1s; }
.holo-chip--br { bottom: 8%; right: -3%; animation-delay: 3s; }

@keyframes holo-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-7px); }
}

/* Scroll reveals */
.reveal {
	opacity: 0;
	transform: translateY(18px);
	transition:
		opacity 620ms cubic-bezier(0.22, 1, 0.36, 1),
		transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
	will-change: opacity, transform;
}

.reveal.in {
	opacity: 1;
	transform: translateY(0);
}

/* 3D tilt on cards */
.tilt {
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
	transform-style: preserve-3d;
}

.tilt:hover {
	border-color: rgba(77, 208, 189, 0.4);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.06),
		0 14px 40px rgba(0, 0, 0, 0.45),
		0 0 26px rgba(77, 208, 189, 0.12);
}

@media (prefers-reduced-motion: reduce) {
	.holo-chip {
		animation: none;
	}

	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
