/* ---------------------------------------------------------------------
   Shared stylesheet for the whole site (hub home page + every bot's
   own pages). Dark, minimal, Discord-adjacent color palette. Edit the
   CSS variables below to reskin the whole site from one place.
   --------------------------------------------------------------------- */

:root {
	--bg: #1e1f22;
	--bg-elevated: #2b2d31;
	--bg-card: #313338;
	--border: #3f4147;
	--text: #f2f3f5;
	--text-muted: #b5bac1;
	--text-faint: #80848e;
	--accent: #5865f2;
	--accent-hover: #4752c4;
	--success: #57f287;
	--radius: 12px;
	--max-width: 860px;
	--wide-max-width: 1080px;

	/* Small accent palette used for nav dots / stack chips, purely decorative */
	--dot-1: #ff6b8b;
	--dot-2: #a78bfa;
	--dot-3: #23d18b;
	--dot-4: #5865f2;
	--dot-5: #f6b93b;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: 'gg sans', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.6;
}

a {
	color: var(--accent);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

.container {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 24px;
}

/* ---- Scroll-reveal animation ------------------------------------------- */
/* Add class="reveal" to any element; it fades/slides in the first time it
   scrolls into view. See the small IntersectionObserver script at the
   bottom of each page. Respects reduced-motion preferences. */

.reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.bot-grid.reveal .bot-card {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.bot-grid.reveal.is-visible .bot-card {
	opacity: 1;
	transform: translateY(0);
}

.bot-grid.reveal.is-visible .bot-card:nth-child(1) { transition-delay: 0.05s; }
.bot-grid.reveal.is-visible .bot-card:nth-child(2) { transition-delay: 0.12s; }
.bot-grid.reveal.is-visible .bot-card:nth-child(3) { transition-delay: 0.19s; }
.bot-grid.reveal.is-visible .bot-card:nth-child(4) { transition-delay: 0.26s; }

@media (prefers-reduced-motion: reduce) {
	.reveal,
	.bot-grid.reveal .bot-card {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ---- Top nav ---------------------------------------------------------- */

.site-header {
	border-bottom: 1px solid var(--border);
	background: var(--bg-elevated);
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	font-size: 18px;
	color: var(--text);
}

.brand:hover {
	text-decoration: none;
	color: var(--text);
}

.brand-avatar {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	border: 2px solid var(--border);
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.brand:hover .brand-avatar {
	border-color: var(--accent);
	transform: scale(1.06);
}

.nav-links {
	display: flex;
	gap: 24px;
	font-size: 14px;
}

.nav-links a {
	color: var(--text-muted);
}

.nav-links a:hover {
	color: var(--text);
}

/* Small colored bullet before a nav link - purely decorative, inspired by
   sites that tag each nav item with its own accent dot. */
.nav-dot {
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	margin-right: 7px;
	vertical-align: middle;
}

.nav-links a:nth-of-type(5n + 1) .nav-dot { background: var(--dot-1); }
.nav-links a:nth-of-type(5n + 2) .nav-dot { background: var(--dot-2); }
.nav-links a:nth-of-type(5n + 3) .nav-dot { background: var(--dot-3); }
.nav-links a:nth-of-type(5n + 4) .nav-dot { background: var(--dot-4); }
.nav-links a:nth-of-type(5n + 5) .nav-dot { background: var(--dot-5); }

/* ---- Hero -------------------------------------------------------------- */

.hero {
	position: relative;
	padding: 80px 0 56px;
	text-align: center;
}

.hero::before {
	content: '';
	position: absolute;
	top: -140px;
	left: 50%;
	transform: translateX(-50%);
	width: 560px;
	height: 560px;
	background: radial-gradient(circle, rgba(88, 101, 242, 0.22) 0%, rgba(88, 101, 242, 0) 70%);
	pointer-events: none;
	z-index: 0;
}

.hero .container {
	position: relative;
	z-index: 1;
}

.hero h1 {
	font-size: 40px;
	margin: 0 0 16px;
	letter-spacing: -0.02em;
}

.hero p.tagline {
	color: var(--text-muted);
	font-size: 18px;
	max-width: 560px;
	margin: 0 auto 32px;
}

.gradient-text {
	background: linear-gradient(90deg, var(--accent) 0%, #8fa0ff 60%, #b9c3ff 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.button-row {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 15px;
	transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.btn svg {
	flex-shrink: 0;
}

.btn:hover {
	text-decoration: none;
	transform: translateY(-1px);
}

.btn-primary {
	background: var(--accent);
	color: white;
	box-shadow: 0 8px 24px -10px rgba(88, 101, 242, 0.7);
}

.btn-primary:hover {
	background: var(--accent-hover);
	color: white;
	box-shadow: 0 10px 28px -8px rgba(88, 101, 242, 0.85);
}

.btn-secondary {
	background: var(--bg-card);
	color: var(--text);
	border: 1px solid var(--border);
}

.btn-secondary:hover {
	background: var(--bg-elevated);
	color: var(--text);
}

/* ---- Checklist under hero CTAs ------------------------------------------ */

.check-list {
	list-style: none;
	margin: 28px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, auto);
	gap: 10px 32px;
}

.check-list li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--text-muted);
}

.check-list svg {
	flex-shrink: 0;
	color: var(--success);
}

@media (max-width: 900px) {
	.check-list {
		grid-template-columns: 1fr;
		justify-items: center;
	}
}

/* ---- Split hero (copy + visual panel), used on bot pages ---------------- */

.hero-split {
	position: relative;
	overflow: hidden;
	padding: 0;
	text-align: left;
}

.hero-split::before {
	content: '';
	position: absolute;
	top: -160px;
	left: 50%;
	transform: translateX(-50%);
	width: 680px;
	height: 680px;
	background: radial-gradient(circle, rgba(88, 101, 242, 0.25) 0%, rgba(88, 101, 242, 0) 70%);
	pointer-events: none;
}

.hero-split .container {
	max-width: var(--wide-max-width);
}

.hero-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: 48px;
	align-items: center;
	padding: 88px 0 72px;
}

.hero-copy h1 {
	text-align: left;
}

.hero-copy .tagline {
	text-align: left;
	margin: 0 0 28px;
	max-width: 480px;
}

.hero-copy .button-row {
	justify-content: flex-start;
}

.hero-visual {
	position: relative;
}

.hero-visual-panel {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--border);
	background: var(--bg-card);
	aspect-ratio: 16 / 11;
	box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(88, 101, 242, 0.06);
}

.hero-visual-image {
	position: absolute;
	inset: 0;
	background-image: var(--hero-img, none);
	background-size: cover;
	background-position: center;
	background-color: var(--bg-elevated);
}

.hero-visual-badge {
	position: absolute;
	top: -14px;
	right: 18px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 8px 14px;
	font-size: 12px;
	font-weight: 600;
	color: var(--text);
	box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.6);
	animation: float 3.5s ease-in-out infinite;
}

@keyframes float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-6px); }
}

@media (max-width: 900px) {
	.hero-grid {
		grid-template-columns: 1fr;
		padding-top: 56px;
		text-align: center;
	}
	.hero-copy h1,
	.hero-copy .tagline {
		text-align: center;
		margin-left: auto;
		margin-right: auto;
	}
	.hero-copy .button-row {
		justify-content: center;
	}
	.hero-visual {
		order: -1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero-visual-badge {
		animation: none;
	}
}

/* ---- Feature grid -------------------------------------------------------- */

.features {
	padding: 40px 0 88px;
}

.feature-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-top: 32px;
}

@media (max-width: 720px) {
	.feature-grid,
	.bot-grid {
		grid-template-columns: 1fr;
	}
}

.feature-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 24px;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
	border-color: var(--accent);
	transform: translateY(-2px);
}

.feature-card-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.feature-card h3 {
	margin: 12px 0 8px;
	font-size: 16px;
}

.feature-card p {
	margin: 0;
	color: var(--text-muted);
	font-size: 14px;
}

.feature-icon {
	width: 36px;
	height: 36px;
	border-radius: 9px;
	background: var(--bg-elevated);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	flex-shrink: 0;
}

/* ---- Badge pills - used on feature cards and bot cards ------------------ */

.badge {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.badge-essential {
	background: rgba(237, 66, 69, 0.15);
	color: #ff7a7d;
}

.badge-recommended {
	background: rgba(246, 185, 59, 0.15);
	color: #f6b93b;
}

.badge-info {
	background: rgba(88, 101, 242, 0.15);
	color: #96a4ff;
}

/* ---- "Built with" stack strip -------------------------------------------- */

.stack-strip {
	padding: 8px 0 72px;
	text-align: center;
}

.stack-label {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 12px;
	color: var(--text-faint);
	margin: 0 0 18px;
}

.stack-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.stack-chip {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 8px 16px;
	font-size: 13px;
	color: var(--text-muted);
	transition: border-color 0.2s ease, color 0.2s ease;
}

.stack-chip:hover {
	border-color: var(--accent);
	color: var(--text);
}

.stack-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	flex-shrink: 0;
}

.stack-chip:nth-child(5n + 1) .stack-dot { background: var(--dot-1); }
.stack-chip:nth-child(5n + 2) .stack-dot { background: var(--dot-2); }
.stack-chip:nth-child(5n + 3) .stack-dot { background: var(--dot-3); }
.stack-chip:nth-child(5n + 4) .stack-dot { background: var(--dot-4); }
.stack-chip:nth-child(5n + 5) .stack-dot { background: var(--dot-5); }

/* ---- Bot list (hub home page) --------------------------------------------- */

.bots {
	padding: 8px 0 96px;
}

.bot-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	margin-top: 8px;
}

.bot-card {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border);
	color: var(--text);
	isolation: isolate;
	box-shadow: 0 0 0 0 rgba(88, 101, 242, 0);
	transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
		border-color 0.35s ease,
		box-shadow 0.35s ease;
}

.bot-card:hover,
.bot-card:focus-visible {
	text-decoration: none;
	color: var(--text);
	border-color: var(--accent);
	transform: translateY(-4px);
	box-shadow: 0 12px 32px -12px rgba(88, 101, 242, 0.45);
}

/* Bot profile picture, set per-card with an inline
   style="--bot-img: url('...')" attribute. */
.bot-card-image {
	position: absolute;
	inset: 0;
	background-image: var(--bot-img, none);
	background-color: var(--bg-elevated);
	background-size: cover;
	background-position: center;
	filter: saturate(0.9) brightness(0.82);
	transform: scale(1);
	transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.35s ease;
}

.bot-card:hover .bot-card-image,
.bot-card:focus-visible .bot-card-image {
	transform: scale(1.08);
	filter: saturate(1.05) brightness(0.7);
}

.bot-card-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 20px;
	background: linear-gradient(
		180deg,
		rgba(30, 31, 34, 0) 0%,
		rgba(30, 31, 34, 0.05) 35%,
		rgba(30, 31, 34, 0.92) 100%
	);
}

.bot-card-overlay h3 {
	margin: 0 0 4px;
	font-size: 19px;
	color: #ffffff;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.bot-card-overlay p {
	margin: 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: 13px;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.bot-card-overlay .badge {
	margin-bottom: 8px;
	align-self: flex-start;
}

.bot-status {
	position: absolute;
	top: 14px;
	right: 14px;
	display: flex;
	align-items: center;
	gap: 6px;
	background: rgba(20, 21, 24, 0.7);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border-radius: 999px;
	padding: 5px 10px 5px 8px;
	font-size: 11px;
	font-weight: 600;
	color: #ffffff;
}

.bot-status .dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--success);
	box-shadow: 0 0 0 0 rgba(87, 242, 135, 0.6);
	animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(87, 242, 135, 0.55);
	}
	70% {
		box-shadow: 0 0 0 8px rgba(87, 242, 135, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(87, 242, 135, 0);
	}
}

.bot-card.coming-soon {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg-card);
	border-style: dashed;
	opacity: 0.55;
	pointer-events: none;
}

.bot-card.coming-soon .bot-card-overlay {
	position: static;
	background: none;
	align-items: center;
	text-align: center;
}

.bot-card.coming-soon .bot-card-overlay h3,
.bot-card.coming-soon .bot-card-overlay p {
	color: var(--text-muted);
	text-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
	.bot-card,
	.bot-card-image {
		transition: none;
	}
	.bot-status .dot {
		animation: none;
	}
}

/* ---- Legal / doc pages ---------------------------------------------------- */

.doc {
	padding: 56px 0 96px;
}

.doc h1 {
	font-size: 30px;
	margin-bottom: 4px;
}

.doc .updated {
	color: var(--text-faint);
	font-size: 13px;
	margin-bottom: 32px;
}

.doc h2 {
	font-size: 19px;
	margin-top: 40px;
	margin-bottom: 12px;
	border-top: 1px solid var(--border);
	padding-top: 32px;
}

.doc h2:first-of-type {
	border-top: none;
	padding-top: 0;
}

.doc p,
.doc li {
	color: var(--text-muted);
	font-size: 15px;
}

.doc ul {
	padding-left: 20px;
}

.notice {
	background: rgba(88, 101, 242, 0.1);
	border: 1px solid rgba(88, 101, 242, 0.35);
	border-radius: var(--radius);
	padding: 16px 20px;
	font-size: 14px;
	color: var(--text-muted);
	margin-bottom: 32px;
}

.notice strong {
	color: var(--text);
}

/* ---- Footer -------------------------------------------------------------- */

.site-footer {
	border-top: 1px solid var(--border);
	padding: 28px 0;
}

.site-footer .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 13px;
	color: var(--text-faint);
}

.site-footer a {
	color: var(--text-faint);
}

.site-footer a:hover {
	color: var(--text-muted);
}

.footer-links {
	display: flex;
	gap: 18px;
}