/*
Nessa Barrett community panel hub.
Colours, type and components mirror the appeal portal (web/src/app/globals.css)
so the sites read as one product.
*/

@font-face {
	font-family: 'Geist';
	src: url('/fonts/Geist-Variable.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Geist Mono';
	src: url('/fonts/GeistMono-Variable.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--canvas: #0a0b0f;
	--surface: #111218;
	--surface-2: #16181f;
	--surface-3: #1d2029;
	--line: rgb(255 255 255 / 0.07);
	--line-strong: rgb(255 255 255 / 0.13);

	--ink: #ecedf3;
	--ink-muted: #a3a6b6;
	--ink-faint: #6c6f82;

	--accent: #f0527a;
	--accent-ink: #ffd6e1;
	--focus: #a594ff;
	--blurple: #5865f2;
	--blurple-strong: #4752c4;
	--live: #3ddc97;
	--soon: #f5b544;

	--radius-lg: 1rem;
	--shadow-card: 0 1px 0 0 rgb(255 255 255 / 0.04) inset, 0 20px 40px -24px rgb(0 0 0 / 0.8);
	--font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

	color-scheme: dark;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	background-color: var(--canvas);
	background-image:
		radial-gradient(1100px 520px at 50% -220px, rgb(240 82 122 / 0.12), transparent 65%),
		radial-gradient(700px 380px at 100% -80px, rgb(129 90 246 / 0.09), transparent 60%);
	background-repeat: no-repeat;
	color: var(--ink);
	font-family: var(--font-sans);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

main {
	flex: 1;
}

img,
svg {
	display: block;
}

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

::selection {
	background: rgb(240 82 122 / 0.35);
	color: #fff;
}

:focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 3px;
	border-radius: 8px;
}

.container {
	width: 100%;
	max-width: 72rem;
	margin-inline: auto;
	padding-inline: 1rem;
}

@media (min-width: 640px) {
	.container {
		padding-inline: 1.5rem;
	}
}

.icon {
	width: 1.25rem;
	height: 1.25rem;
	flex-shrink: 0;
}

.icon-sm {
	width: 0.875rem;
	height: 0.875rem;
}

/* ---- Skip link ------------------------------------------------------------ */

.skip-link {
	position: absolute;
	left: 1rem;
	top: -3rem;
	z-index: 50;
	padding: 0.5rem 1rem;
	border-radius: 0.5rem;
	background: var(--surface-3);
	font-size: 0.875rem;
	transition: top 150ms ease;
}

.skip-link:focus {
	top: 1rem;
}

/* ---- Header --------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	border-bottom: 1px solid var(--line);
	background: rgb(10 11 15 / 0.75);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	height: 4rem;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	border-radius: 0.5rem;
}

.brand-logo {
	width: 34px;
	height: 34px;
	border-radius: 999px;
	box-shadow: 0 0 0 1px rgb(255 255 255 / 0.15);
	filter: grayscale(1);
	transition: filter 200ms ease;
}

.brand:hover .brand-logo {
	filter: none;
}

.brand-name {
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.brand-pill {
	display: none;
	padding: 0.125rem 0.375rem;
	border: 1px solid var(--line);
	border-radius: 0.375rem;
	background: rgb(255 255 255 / 0.03);
	color: var(--ink-muted);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

@media (min-width: 480px) {
	.brand-pill {
		display: inline;
	}
}

.header-link {
	display: inline-flex;
	align-items: center;
	height: 2.25rem;
	padding-inline: 0.75rem;
	border-radius: 0.5rem;
	color: var(--ink-muted);
	font-size: 0.875rem;
	font-weight: 500;
	transition: background-color 150ms ease, color 150ms ease;
}

.header-link:hover {
	background: rgb(255 255 255 / 0.05);
	color: var(--ink);
}

/* ---- Hero ----------------------------------------------------------------- */

.hero {
	position: relative;
	overflow: hidden;
}

.hero-grid {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgb(255 255 255 / 0.035) 1px, transparent 1px);
	background-size: 44px 44px;
	-webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, black, transparent);
	mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, black, transparent);
}

.hero-inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-block: 4.5rem 4rem;
	text-align: center;
	animation: rise 400ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@media (min-width: 640px) {
	.hero-inner {
		padding-block: 6.5rem 5rem;
	}
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0.25rem 0.75rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgb(17 18 24 / 0.7);
	color: var(--ink-muted);
	font-size: 0.75rem;
	font-weight: 500;
}

.eyebrow-dot {
	width: 0.375rem;
	height: 0.375rem;
	border-radius: 999px;
	background: var(--accent);
}

.hero-title {
	margin: 1.25rem 0 0;
	font-size: clamp(2.5rem, 7vw, 4.25rem);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -0.035em;
	background: linear-gradient(120deg, #fff 20%, var(--accent-ink) 55%, var(--accent) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero-lead {
	max-width: 36rem;
	margin: 1.25rem 0 0;
	color: var(--ink-muted);
	font-size: clamp(1rem, 2.2vw, 1.125rem);
	line-height: 1.65;
}

.hero-actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	margin-top: 2rem;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	height: 3rem;
	padding-inline: 1.5rem;
	border-radius: 0.75rem;
	font-size: 1rem;
	font-weight: 500;
	white-space: nowrap;
	transition: background-color 150ms ease, transform 150ms ease;
}

.button:active {
	transform: translateY(1px);
}

.button-discord {
	background: var(--blurple);
	color: #fff;
	box-shadow: 0 10px 30px -12px rgb(88 101 242 / 0.9);
}

.button-discord:hover {
	background: var(--blurple-strong);
}

.member-stats {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.25rem;
	margin: 0;
	color: var(--ink-muted);
	font-size: 0.875rem;
	font-variant-numeric: tabular-nums;
	animation: fade 300ms ease both;
}

.member-stats[hidden] {
	display: none;
}

.stat {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.stat-dot {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 999px;
	background: var(--ink-faint);
}

.stat-dot-online {
	background: var(--live);
	box-shadow: 0 0 0 4px rgb(61 220 151 / 0.15);
}

/* ---- Services ------------------------------------------------------------- */

.services {
	padding-bottom: 3rem;
}

.section-heading {
	margin: 0;
	color: var(--ink-faint);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.service-grid {
	display: grid;
	gap: 1rem;
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) {
	.service-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.service-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 1.5rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: linear-gradient(180deg, rgb(255 255 255 / 0.025), transparent 40%), var(--surface);
	box-shadow: var(--shadow-card);
	transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

a.service-card:hover {
	border-color: rgb(240 82 122 / 0.35);
	box-shadow: var(--shadow-card), 0 16px 48px -24px rgb(240 82 122 / 0.45);
	transform: translateY(-2px);
}

.service-card-soon {
	opacity: 0.65;
}

.service-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.service-icon {
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid rgb(240 82 122 / 0.2);
	border-radius: 0.75rem;
	background: rgb(240 82 122 / 0.1);
	color: var(--accent);
}

.service-card-soon .service-icon {
	border-color: var(--line-strong);
	background: rgb(255 255 255 / 0.04);
	color: var(--ink-muted);
}

.service-status {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.125rem 0.625rem;
	border: 1px solid;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 500;
}

.service-status-live {
	border-color: rgb(61 220 151 / 0.25);
	background: rgb(61 220 151 / 0.1);
	color: var(--live);
}

.service-status-soon {
	border-color: rgb(245 181 68 / 0.25);
	background: rgb(245 181 68 / 0.1);
	color: var(--soon);
}

.status-dot {
	width: 0.375rem;
	height: 0.375rem;
	border-radius: 999px;
	background: currentColor;
	animation: pulse 2.4s ease-in-out infinite;
}

.service-title {
	margin: 1.25rem 0 0;
	font-size: 1.125rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.service-body {
	flex: 1;
	margin: 0.375rem 0 0;
	color: var(--ink-muted);
	font-size: 0.9375rem;
	line-height: 1.6;
}

.service-link {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	margin-top: 1.25rem;
	color: var(--ink-faint);
	font-family: var(--font-mono);
	font-size: 0.8125rem;
	transition: color 150ms ease;
}

a.service-card:hover .service-link {
	color: var(--accent-ink);
}

/* ---- Notes ---------------------------------------------------------------- */

.notes-section {
	padding-bottom: 5rem;
}

.notes {
	display: grid;
	gap: 1.5rem;
	padding: 1.5rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: linear-gradient(180deg, rgb(255 255 255 / 0.025), transparent 40%), var(--surface);
	box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
	.notes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 2rem;
	}
}

.note {
	display: flex;
	gap: 0.75rem;
}

.note-icon {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 1.75rem;
	height: 1.75rem;
	margin-top: 0.125rem;
	border-radius: 0.5rem;
	background: rgb(255 255 255 / 0.05);
	color: var(--ink-muted);
}

.note-icon .icon {
	width: 1rem;
	height: 1rem;
}

.note-title {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 600;
}

.note-body {
	margin: 0.25rem 0 0;
	color: var(--ink-muted);
	font-size: 0.875rem;
	line-height: 1.6;
}

/* ---- Footer --------------------------------------------------------------- */

.site-footer {
	border-top: 1px solid var(--line);
	color: var(--ink-faint);
	font-size: 0.75rem;
}

.footer-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	padding-block: 1.5rem;
}

.footer-inner p {
	margin: 0;
}

.footer-inner a:hover {
	color: var(--ink);
}

/* ---- Not found page -------------------------------------------------------- */

.not-found {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-block: 6rem;
	text-align: center;
}

.not-found h1 {
	margin: 1rem 0 0;
	font-size: 1.5rem;
	font-weight: 600;
}

.not-found p {
	margin: 0.5rem 0 0;
	color: var(--ink-muted);
}

.not-found a {
	margin-top: 1.5rem;
	color: var(--accent);
	font-weight: 500;
}

.not-found a:hover {
	text-decoration: underline;
}

/* ---- Motion --------------------------------------------------------------- */

@keyframes rise {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.4; }
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
