/* =====================================================================
   South Tahoma Roleplay — site styles
   UCP "Midnight Blue" palette: deep navy base, royal-blue accents,
   midnight-glass surfaces, Bebas Neue display + Instrument Sans body.
   ===================================================================== */

:root {
	--bg:            #070f1f;
	--ink:           #e6edf7;
	--muted:         #9db4e6;
	--muted-dim:     #8499c0;
	--eyebrow:       #d4af37;
	--blue:          #3b82f6;
	--blue-deep:     #1d4ed8;
	--blue-soft:     #6aa6ff;
	--hairline:      rgba(120, 150, 205, 0.14);
	--hairline-2:    rgba(120, 150, 205, 0.22);
	--surface:       linear-gradient(180deg, rgba(20, 34, 60, 0.85), rgba(10, 18, 36, 0.80));
	--maxw:          1320px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
	background-color: var(--bg);
	background-image:
		radial-gradient(1100px 560px at 50% -10%, rgba(37, 99, 235, 0.22), transparent 60%),
		radial-gradient(900px 520px at 88% 2%, rgba(29, 78, 216, 0.18), transparent 55%),
		radial-gradient(130% 130% at 50% 0%, transparent 52%, rgba(2, 4, 10, 0.82) 100%);
	background-attachment: fixed;
	background-repeat: no-repeat;
	color: var(--ink);
	font-family: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1c2f4f; border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #2a4570; }

/* ---------- shared bits ---------- */
.eyebrow {
	font-size: 0.72rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--eyebrow);
	font-weight: 600;
	margin-bottom: 0.9rem;
}

h1, h2, h3 {
	font-family: 'Bebas Neue', 'Instrument Sans', sans-serif;
	font-weight: 400;
	letter-spacing: 0.015em;
	line-height: 1.02;
	color: #f3f7ff;
}
h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h3 { font-size: 1.5rem; }

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-weight: 600;
	font-family: 'Instrument Sans', sans-serif;
	border-radius: 9px;
	padding: 0.72rem 1.4rem;
	border: 1px solid transparent;
	cursor: pointer;
	transition: filter 0.15s ease, transform 0.05s ease, border-color 0.2s ease, background 0.2s ease;
	white-space: nowrap;
}
.btn--sm { padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn--lg { padding: 0.85rem 1.75rem; font-size: 1.02rem; }
.btn--primary {
	background: linear-gradient(180deg, var(--blue), var(--blue-deep));
	color: #eff6ff;
	border-color: rgba(59, 130, 246, 0.55);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 26px -12px rgba(29, 78, 216, 0.8);
}
.btn--primary:hover { filter: brightness(1.09); }
.btn--primary:active { transform: translateY(1px); }
.btn--ghost {
	background: rgba(20, 34, 60, 0.5);
	color: #dbe6ff;
	border-color: var(--hairline-2);
	backdrop-filter: blur(4px);
}
.btn--ghost:hover { border-color: rgba(59, 130, 246, 0.55); color: #fff; }

.section {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 5.5rem 1.5rem;
}
.section__head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section__sub { color: var(--muted); font-size: 1.08rem; margin-top: 0.8rem; }

/* Gradient hairline between sections. */
.divider {
	max-width: var(--maxw);
	margin: 0 auto;
	height: 1px;
	border: 0;
	background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.28), transparent);
}

/* ============================ NAV ============================ */
.nav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(7, 13, 27, 0.72);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--hairline);
}
.nav__inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0.7rem 1.5rem;
	display: flex;
	align-items: center;
	gap: 1.5rem;
}
.nav__logo { height: 50px; width: auto; }
.nav__links {
	display: flex;
	gap: 1.9rem;
	margin-left: auto;
}
.nav__links a {
	color: #d7e4ff;
	font-weight: 600;
	font-size: 0.96rem;
	position: relative;
	padding: 0.3rem 0;
	transition: color 0.18s ease;
}
.nav__links a::after {
	content: "";
	position: absolute; left: 0; bottom: -2px;
	width: 0; height: 2px;
	background: linear-gradient(90deg, var(--blue), var(--blue-soft));
	transition: width 0.22s ease;
	border-radius: 2px;
}
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { width: 100%; }
.nav__cta { margin-left: 0.4rem; }

.nav__burger {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: 0;
	cursor: pointer;
	margin-left: auto;
	padding: 6px;
}
.nav__burger span {
	width: 26px; height: 2.5px;
	background: #cfe0ff; border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav__mobile {
	display: none;
	flex-direction: column;
	gap: 0.3rem;
	padding: 0.5rem 1.5rem 1.2rem;
	border-top: 1px solid var(--hairline);
}
.nav__mobile a { color: #d7e4ff; font-weight: 600; padding: 0.7rem 0; }
.nav__mobile .btn { margin-top: 0.4rem; }
.nav.open .nav__mobile { display: flex; }

/* ============================ HERO ============================ */
.hero {
	position: relative;
	text-align: center;
	padding: 3rem 1.5rem;
	overflow: hidden;
}
.hero__glow {
	position: absolute;
	top: -180px; left: 50%;
	transform: translateX(-50%);
	width: 900px; height: 700px;
	background: radial-gradient(circle at center, rgba(59, 130, 246, 0.28), transparent 62%);
	filter: blur(20px);
	pointer-events: none;
	z-index: 0;
}
.hero__inner { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; }
.hero__banner {
	width: min(950px, 94%);
	margin: 0.5rem auto 1.6rem;
	filter: drop-shadow(0 24px 50px rgba(8, 18, 44, 0.65));
}
.hero__lead {
	color: var(--muted);
	font-size: 1.18rem;
	max-width: 620px;
	margin: 0 auto 2rem;
}
.hero__actions {
	display: flex;
	gap: 0.9rem;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 3rem; /* add this */
}

/* ============================ CARDS GRID ============================ */
.grid { display: grid; gap: 1.2rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
	background: var(--surface);
	border: 1px solid var(--hairline);
	border-radius: 16px;
	padding: 1.8rem;
	position: relative;
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.card::before {
	content: "";
	position: absolute; left: 0; right: 0; top: 0; height: 1px;
	background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.55), transparent);
}
.card:hover {
	border-color: rgba(59, 130, 246, 0.45);
	transform: translateY(-4px);
	box-shadow: 0 22px 48px -26px rgba(37, 99, 235, 0.55);
}
.card__icon {
	width: 46px; height: 46px;
	display: grid; place-items: center;
	border-radius: 11px;
	background: rgba(59, 130, 246, 0.14);
	border: 1px solid rgba(59, 130, 246, 0.32);
	color: var(--blue-soft);
	font-size: 1.3rem;
	margin-bottom: 1.1rem;
}
.card h3 { margin-bottom: 0.5rem; letter-spacing: 0.03em; }
.card p { color: var(--muted); font-size: 0.98rem; }

/* ============================ LORE ============================ */
.lore__body {
	max-width: 1040px;
	margin: 0 auto;
}
.lore__body p {
	color: var(--muted);
	font-size: 1.06rem;
	margin-bottom: 1.25rem;
}
.lore__body p:first-of-type::first-letter {
	font-family: 'Bebas Neue', sans-serif;
	font-size: 3.4rem;
	float: left;
	line-height: 0.8;
	padding: 0.3rem 0.7rem 0 0;
	color: var(--blue-soft);
}
.lore__chapter {
	max-width: 1040px;
	margin: 2.6rem auto 0;
	background: var(--surface);
	border: 1px solid var(--hairline);
	border-left: 3px solid rgba(59, 130, 246, 0.55);
	border-radius: 16px;
	padding: 2rem 2.2rem;
	position: relative;
}
.lore__chapter .eyebrow { margin-bottom: 0.5rem; }
.lore__chapter h3 {
	font-size: 2rem;
	margin-bottom: 1.1rem;
	letter-spacing: 0.04em;
}
.lore__chapter p {
	color: var(--muted);
	font-size: 1.02rem;
	margin-bottom: 1.1rem;
}
.lore__chapter p:last-child { margin-bottom: 0; }

/* ============================ ACTION CARDS (UCP / Forum / Chat) ============================ */
.actions {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.2rem;
}
.action {
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--hairline);
	border-radius: 16px;
	padding: 1.8rem;
	position: relative;
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.action::before {
	content: "";
	position: absolute; left: 0; right: 0; top: 0; height: 1px;
	background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.55), transparent);
}
.action:hover {
	border-color: rgba(59, 130, 246, 0.5);
	transform: translateY(-4px);
	box-shadow: 0 22px 48px -26px rgba(37, 99, 235, 0.6);
}
.action__title {
	font-family: 'Bebas Neue', sans-serif;
	font-size: 1.9rem;
	letter-spacing: 0.05em;
	color: #f3f7ff;
	margin-bottom: 0.4rem;
}
.action__desc { color: var(--muted); font-size: 0.96rem; flex: 1; }
.action__go {
	margin-top: 1.2rem;
	font-weight: 600;
	color: var(--blue-soft);
	transition: gap 0.18s ease;
}
.action:hover .action__go { color: #cfe0ff; }

/* slim call-to-action strip */
.cta-bar {
	margin-top: 2.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
	background:
		radial-gradient(700px 240px at 18% -40%, rgba(59, 130, 246, 0.28), transparent 70%),
		var(--surface);
	border: 1px solid rgba(59, 130, 246, 0.28);
	border-radius: 18px;
	padding: 1.8rem 2.2rem;
	position: relative;
}
.cta-bar::before {
	content: "";
	position: absolute; left: 0; right: 0; top: 0; height: 1px;
	background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.6), transparent);
}
.cta-bar__text h3 { font-size: 1.9rem; letter-spacing: 0.03em; }
.cta-bar__text p { color: var(--muted); margin-top: 0.25rem; }
.cta-bar__actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ============================ REGIONS SLIDER ============================ */
.slider { margin-top: 0.5rem; }

.slider__tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin-bottom: 1.8rem;
}
.slider__tab {
	font-family: 'Instrument Sans', sans-serif;
	font-weight: 600;
	font-size: 0.92rem;
	color: #c0d2f3;
	background: rgba(20, 34, 60, 0.55);
	border: 1px solid var(--hairline-2);
	border-radius: 9999px;
	padding: 0.5rem 1.15rem;
	cursor: pointer;
	transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.slider__tab:hover { color: #fff; border-color: rgba(59, 130, 246, 0.5); }
.slider__tab.is-active {
	color: #eff6ff;
	background: linear-gradient(180deg, rgba(59, 130, 246, 0.35), rgba(29, 78, 216, 0.25));
	border-color: rgba(59, 130, 246, 0.7);
}

.slider__viewport {
	background:
		radial-gradient(900px 360px at 50% -10%, rgba(59, 130, 246, 0.16), transparent 70%),
		var(--surface);
	border: 1px solid var(--hairline);
	border-radius: 20px;
	padding: 2.4rem;
	position: relative;
	overflow: hidden;
}
.slider__viewport::before {
	content: "";
	position: absolute; left: 0; right: 0; top: 0; height: 1px;
	background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.6), transparent);
}

.slide[hidden] { display: none; }
.slide.is-active { animation: slideFade 0.4s ease; }
@keyframes slideFade {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

.slide__head {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 2.2rem;
	align-items: center;
	margin-bottom: 2rem;
}
.slide__crest {
	width: 100%;
	max-width: 220px;
	margin: 0 auto;
	filter: drop-shadow(0 16px 32px rgba(4, 10, 26, 0.7));
}
.slide__intro h3 {
	font-size: 2.6rem;
	letter-spacing: 0.04em;
	margin: 0.2rem 0 0.8rem;
}
.slide__intro p { color: var(--muted); margin-bottom: 0.9rem; }
.slide__intro p:last-child { margin-bottom: 0; }

.subregions {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
	border-top: 1px solid var(--hairline);
	padding-top: 1.8rem;
}
.subregion {
	background: rgba(8, 16, 33, 0.5);
	border: 1px solid var(--hairline);
	border-left: 3px solid rgba(59, 130, 246, 0.5);
	border-radius: 12px;
	padding: 1.2rem 1.3rem;
}
.subregion h4 {
	font-family: 'Bebas Neue', sans-serif;
	font-weight: 400;
	font-size: 1.4rem;
	letter-spacing: 0.05em;
	color: #eaf1ff;
	margin-bottom: 0.5rem;
	display: flex;
	align-items: center;
	gap: 0.6rem;
}
.subregion__tag {
	font-family: 'Instrument Sans', sans-serif;
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--blue-soft);
	background: rgba(59, 130, 246, 0.14);
	border: 1px solid rgba(59, 130, 246, 0.32);
	border-radius: 9999px;
	padding: 0.12rem 0.55rem;
}
.subregion p { color: var(--muted); font-size: 0.95rem; }
.subregion p:not(:last-child) { margin-bottom: 0.75rem; }

.slider__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.4rem;
	margin-top: 1.8rem;
}
.slider__arrow {
	width: 46px; height: 46px;
	display: grid; place-items: center;
	font-size: 1.6rem;
	color: #dbe6ff;
	background: rgba(20, 34, 60, 0.6);
	border: 1px solid var(--hairline-2);
	border-radius: 50%;
	cursor: pointer;
	transition: border-color 0.18s ease, background 0.18s ease, transform 0.05s ease;
	line-height: 1;
}
.slider__arrow:hover { border-color: rgba(59, 130, 246, 0.6); background: rgba(29, 78, 216, 0.3); }
.slider__arrow:active { transform: translateY(1px); }
.slider__dots { display: flex; gap: 0.55rem; }
.slider__dots .dot {
	width: 10px; height: 10px;
	border-radius: 50%;
	background: rgba(120, 150, 205, 0.3);
	cursor: pointer;
	transition: background 0.18s ease, transform 0.18s ease;
}
.slider__dots .dot:hover { background: rgba(120, 150, 205, 0.55); }
.slider__dots .dot.is-active {
	background: var(--blue-soft);
	transform: scale(1.25);
	box-shadow: 0 0 12px rgba(59, 130, 246, 0.7);
}

/* ============================ DISCORD ============================ */
.discord__panel {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 2.5rem;
	align-items: center;
	background:
		radial-gradient(700px 320px at 12% -30%, rgba(88, 101, 242, 0.30), transparent 70%),
		var(--surface);
	border: 1px solid rgba(88, 101, 242, 0.32);
	border-radius: 20px;
	padding: 2.8rem;
	position: relative;
}
.discord__panel::before {
	content: "";
	position: absolute; left: 0; right: 0; top: 0; height: 1px;
	background: linear-gradient(90deg, transparent, rgba(88, 101, 242, 0.7), transparent);
}
.discord__info h2 { margin: 0.2rem 0 0.8rem; }
.discord__info > p { color: var(--muted); font-size: 1.05rem; max-width: 460px; }
.discord__stats { margin: 1.5rem 0; }
.discord__pill {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	background: rgba(88, 101, 242, 0.14);
	border: 1px solid rgba(88, 101, 242, 0.4);
	color: #dfe3ff;
	border-radius: 9999px;
	padding: 0.45rem 1.05rem;
	font-size: 0.95rem;
}
.discord__pill b { color: #fff; font-weight: 700; }
.discord__dot {
	width: 10px; height: 10px;
	border-radius: 50%;
	background: #3ba55d;
	box-shadow: 0 0 0 0 rgba(59, 165, 93, 0.7);
	animation: dcpulse 2s infinite;
}
@keyframes dcpulse {
	0%   { box-shadow: 0 0 0 0 rgba(59, 165, 93, 0.6); }
	70%  { box-shadow: 0 0 0 8px rgba(59, 165, 93, 0); }
	100% { box-shadow: 0 0 0 0 rgba(59, 165, 93, 0); }
}

.discord__members {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	align-content: center;
	justify-content: center;
}
.discord__members img {
	width: 46px; height: 46px;
	border-radius: 50%;
	border: 2px solid rgba(120, 150, 205, 0.3);
	background: #0a1426;
}
.discord__more {
	width: 46px; height: 46px;
	display: grid; place-items: center;
	border-radius: 50%;
	background: rgba(88, 101, 242, 0.18);
	border: 1px solid rgba(88, 101, 242, 0.4);
	color: #cfd4ff;
	font-size: 0.82rem;
	font-weight: 600;
}

/* ============================ FOOTER ============================ */
.footer {
	border-top: 1px solid var(--hairline);
	background: rgba(6, 12, 24, 0.6);
	position: relative;
}
.footer::before {
	content: "";
	position: absolute; left: 0; right: 0; top: 0; height: 1px;
	background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.55), transparent);
}
.footer__inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 2.5rem 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.1rem;
	text-align: center;
}
.footer__logo { height: 40px; opacity: 0.95; }
.footer__links { display: flex; gap: 1.6rem; }
.footer__links a { color: #c4d4f3; font-weight: 600; transition: color 0.18s ease; }
.footer__links a:hover { color: #fff; }
.footer__copy { color: var(--muted-dim); font-size: 0.84rem; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 900px) {
	.grid--3 { grid-template-columns: repeat(2, 1fr); }
	.actions { grid-template-columns: 1fr; }
	.cta-bar { flex-direction: column; align-items: flex-start; text-align: left; }
	.discord__panel { grid-template-columns: 1fr; gap: 1.8rem; padding: 2rem; }
	.discord__members { justify-content: flex-start; }
	.lore__chapter { padding: 1.6rem 1.4rem; }
	.slide__head { grid-template-columns: 1fr; gap: 1.2rem; text-align: center; }
	.slide__crest { max-width: 180px; }
	.slide__intro h3 { margin-top: 0; }
	.subregions { grid-template-columns: 1fr; }
	.slider__viewport { padding: 1.6rem; }
}
@media (max-width: 720px) {
	.nav__links, .nav__cta { display: none; }
	.nav__burger { display: flex; }
	.hero__lead { font-size: 1.05rem; }
	.section { padding: 4rem 1.3rem; }
}
@media (max-width: 480px) {
	.grid--3 { grid-template-columns: 1fr; }
	.slide__intro h3 { font-size: 2.1rem; }
}
