/* The Compound Gym — public landing page. Brand: volt (#DAFF31) and white on near-black. */

:root {
	--bg: #0b0b0c;
	--bg-2: #111113;
	--panel: #141416;
	--line: rgba(255, 255, 255, 0.08);
	--line-2: rgba(255, 255, 255, 0.14);
	--fg: #f5f5f4;
	--muted: #a1a1aa;
	--volt: #daff31;
	--volt-ink: #0b0b0c;
	--volt-dim: rgba(218, 255, 49, 0.14);
	--display: "Unbounded", "Inter", system-ui, sans-serif;
	--text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--radius: 18px;
	--wrap: 1180px;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--text);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); letter-spacing: -0.01em; line-height: 1.05; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); font-weight: 700; text-wrap: balance; }
h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
address { font-style: normal; }

.wrap { width: min(var(--wrap), calc(100% - 2.5rem)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--volt); color: var(--volt-ink); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---- buttons --------------------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	height: 2.75rem; padding: 0 1.15rem; border-radius: 999px;
	font-weight: 600; font-size: .92rem; letter-spacing: .01em; white-space: nowrap;
	border: 1px solid transparent; transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s;
}
.btn.lg { height: 3.25rem; padding: 0 1.5rem; font-size: 1rem; }
.btn.solid { background: var(--volt); color: var(--volt-ink); box-shadow: 0 0 0 0 rgba(218, 255, 49, 0); }
.btn.solid:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(218, 255, 49, .55); }
.btn.ghost { border-color: var(--line-2); color: var(--fg); background: rgba(255, 255, 255, 0.02); }
.btn.ghost:hover { border-color: var(--volt); color: var(--volt); transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; }

/* ---- nav ------------------------------------------------------------------------------- */
.nav {
	position: sticky; top: 0; z-index: 50;
	background: rgba(11, 11, 12, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 4.25rem; }
.brand img { height: 28px; width: auto; }
.nav-links { display: flex; gap: 1.6rem; font-size: .92rem; color: var(--muted); }
.nav-links a { padding: .25rem 0; transition: color .2s; }
.nav-links a:hover { color: var(--fg); }
.nav-cta { display: flex; align-items: center; gap: .6rem; }
.nav-burger { display: none; width: 2.5rem; height: 2.5rem; border: 1px solid var(--line-2); background: transparent; border-radius: 999px; padding: 0; cursor: pointer; }
.nav-burger span { display: block; width: 16px; height: 2px; background: var(--fg); margin: 3px auto; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---- hero ------------------------------------------------------------------------------ */
.hero { position: relative; padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; isolation: isolate; }
.hero-glow {
	position: absolute; inset: -30% -10% auto; height: 80%; z-index: -1; pointer-events: none;
	background: radial-gradient(60% 55% at 70% 30%, rgba(218, 255, 49, .20), transparent 70%);
	filter: blur(10px);
}
.hero-grid {
	position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: .5;
	background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 100%);
	-webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 100%);
}
.hero-row { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.eyebrow {
	display: inline-flex; align-items: center; gap: .55rem;
	font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--volt);
	margin-bottom: 1.1rem;
}
.eyebrow .dot { width: .5rem; height: .5rem; border-radius: 999px; background: var(--volt); box-shadow: 0 0 0 4px var(--volt-dim); }
.hero h1 {
	font-size: clamp(3rem, 8.5vw, 6.5rem); font-weight: 900; line-height: .95; letter-spacing: -0.02em;
	text-transform: uppercase;
}
.hero h1 em { font-style: normal; color: var(--volt); }
.lead { margin: 1.5rem 0 2rem; max-width: 34rem; font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-stats {
	list-style: none; margin: 2.5rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--line);
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.hero-stats b { display: block; font-family: var(--display); font-size: 1.05rem; font-weight: 700; color: var(--fg); }
.hero-stats span { display: block; font-size: .78rem; color: var(--muted); margin-top: .2rem; }

.hero-card {
	position: relative; border-radius: calc(var(--radius) + 6px); padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.5rem) 1.25rem;
	background: linear-gradient(160deg, #161618, #0d0d0e 60%);
	border: 1px solid var(--line-2);
	box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
	overflow: hidden;
}
.hero-card::before {
	content: ""; position: absolute; inset: auto -20% -40% -20%; height: 70%;
	background: radial-gradient(50% 50% at 50% 50%, rgba(218, 255, 49, .22), transparent 70%);
	filter: blur(30px); pointer-events: none;
}
.hero-card img { position: relative; width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(218, 255, 49, .18)); animation: float 7s ease-in-out infinite; }
.hero-card-foot { position: relative; display: flex; justify-content: space-between; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.live { display: inline-flex; align-items: center; gap: .45rem; color: var(--fg); }
.live i { width: .45rem; height: .45rem; border-radius: 999px; background: var(--volt); box-shadow: 0 0 0 0 rgba(218, 255, 49, .6); animation: pulse 2s infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(218, 255, 49, .6); } 70% { box-shadow: 0 0 0 8px rgba(218, 255, 49, 0); } 100% { box-shadow: 0 0 0 0 rgba(218, 255, 49, 0); } }

/* ---- marquee --------------------------------------------------------------------------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding: .9rem 0; }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 32s linear infinite; font-family: var(--display); font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.marquee-track span::after { content: "·"; margin-left: 3rem; color: var(--volt); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- sections -------------------------------------------------------------------------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head .sub, .sub { margin-top: 1rem; color: var(--muted); font-size: 1.05rem; max-width: 40rem; }
.fineprint { margin-top: 1.5rem; font-size: .82rem; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature {
	padding: 1.5rem; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
	transition: transform .3s var(--ease), border-color .3s;
}
.feature:hover { transform: translateY(-3px); border-color: rgba(218, 255, 49, .35); }
.feature svg { width: 28px; height: 28px; fill: none; stroke: var(--volt); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1.1rem; }
.feature p { margin-top: .5rem; color: var(--muted); font-size: .95rem; }

/* plans */
.plans-section { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .02) 50%, transparent); }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.plan {
	display: flex; flex-direction: column; gap: .4rem; padding: 1.6rem 1.4rem 1.4rem; border-radius: var(--radius);
	background: var(--panel); border: 1px solid var(--line); position: relative; overflow: hidden;
	transition: transform .3s var(--ease), border-color .3s;
}
.plan:hover { transform: translateY(-3px); border-color: var(--line-2); }
.plan.featured { border-color: rgba(218, 255, 49, .5); background: linear-gradient(170deg, rgba(218, 255, 49, .10), var(--panel) 55%); padding-top: 2.9rem; }
.plan.featured::after { content: "Most popular"; position: absolute; top: .9rem; left: 1.4rem; font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--volt-ink); background: var(--volt); padding: .28rem .55rem; border-radius: 999px; line-height: 1; }
.plan-name { font-weight: 600; color: var(--muted); font-size: .9rem; }
.plan-price { font-family: var(--display); font-size: clamp(1.9rem, 3vw, 2.4rem); font-weight: 700; color: var(--fg); line-height: 1.1; margin: .2rem 0; }
.plan-price .cur { font-size: .9rem; font-weight: 600; color: var(--muted); margin-right: .35rem; vertical-align: .9em; letter-spacing: .05em; }
.plan-meta { color: var(--muted); font-size: .9rem; flex: 1; }
.plan .btn { margin-top: 1.25rem; }

/* health bar */
.bar-section { background: var(--bg-2); border-block: 1px solid var(--line); }
.bar-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 0; padding: 0; }
.chips li { padding: .45rem .85rem; border-radius: 999px; border: 1px solid var(--line-2); font-size: .88rem; color: var(--fg); background: rgba(255, 255, 255, .02); }
.ticket {
	margin-inline: auto; width: min(100%, 22rem); background: #f7f7f2; color: #111318; border-radius: 10px; padding: 1.4rem 1.3rem 1.6rem;
	font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .8rem; line-height: 1.7;
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .06);
	transform: rotate(-2deg);
	-webkit-mask-image: radial-gradient(circle at 8px 100%, transparent 7px, #000 8px); -webkit-mask-size: 16px 100%; -webkit-mask-repeat: repeat-x; -webkit-mask-position: 0 0;
	mask-image: radial-gradient(circle at 8px 100%, transparent 7px, #000 8px); mask-size: 16px 100%; mask-repeat: repeat-x;
}
.ticket-head, .ticket-foot { display: flex; justify-content: space-between; align-items: center; font-weight: 700; letter-spacing: .08em; }
.ticket-head { border-bottom: 1px dashed #c8c8c0; padding-bottom: .6rem; margin-bottom: .6rem; }
.ticket-line { display: flex; justify-content: space-between; }
.ticket-foot { border-top: 1px dashed #c8c8c0; padding-top: .7rem; margin-top: .6rem; font-weight: 500; }
.ticket-qr { width: 2.4rem; height: 2.4rem; background: repeating-conic-gradient(#111 0 25%, transparent 0 50%) 0 0 / 8px 8px; border: 3px solid #111; }

/* visit */
.visit-row { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
address p { margin-top: 1.25rem; color: var(--muted); }
address strong { color: var(--fg); }
address a { color: var(--fg); font-family: var(--display); font-size: 1.15rem; font-weight: 700; }
.visit-copy .cta-row { margin-top: 1.5rem; }
.visit-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); aspect-ratio: 4 / 3; background: var(--panel); }
.visit-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9) hue-rotate(180deg); }

/* final cta */
.final { padding-top: 0; }
.final-box {
	display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(1.75rem, 4vw, 3rem);
	border-radius: calc(var(--radius) + 6px); border: 1px solid rgba(218, 255, 49, .35);
	background: radial-gradient(80% 120% at 0% 0%, rgba(218, 255, 49, .16), transparent 60%), var(--panel);
}

/* footer */
.footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; background: var(--bg-2); }
.foot-row { display: grid; grid-template-columns: 1fr auto; gap: 1.25rem 2rem; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: .9rem; font-size: .9rem; }
.foot-brand span { color: var(--muted); font-size: .82rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: .88rem; color: var(--muted); }
.foot-links a:hover { color: var(--volt); }
.copy { grid-column: 1 / -1; font-size: .78rem; color: var(--muted); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; transition: none; }
	.hero-card img, .live i, .marquee-track { animation: none; }
}

/* ---- responsive ------------------------------------------------------------------------ */
@media (max-width: 1024px) {
	.features { grid-template-columns: repeat(2, 1fr); }
	.plans { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
	.nav-links { position: absolute; top: 4.25rem; left: 0; right: 0; flex-direction: column; gap: 0; padding: .5rem 1.25rem 1rem; background: rgba(11, 11, 12, .97); border-bottom: 1px solid var(--line); display: none; }
	.nav-links.open { display: flex; }
	.nav-links a { padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; color: var(--fg); }
	.nav-burger { display: inline-block; }
	.nav-cta .ghost { display: none; }
	.hero-row, .bar-row, .visit-row { grid-template-columns: 1fr; }
	.hero-art { order: -1; }
	.hero-card { padding: 1.5rem 1.25rem 1rem; }
	.hero-stats { grid-template-columns: repeat(2, 1fr); }
	.final-box { flex-direction: column; align-items: flex-start; }
	.foot-row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
	.features, .plans { grid-template-columns: 1fr; }
	.btn.lg { width: 100%; }
	.hero h1 { font-size: clamp(2.6rem, 15vw, 4rem); }
}
