/* PlayAdopt — visual language matched to reference IA (original brand/assets) */

:root {
	--bg: #050508;
	--bg-elevated: #0b0f1a;
	--bg-card: #111827;
	--bg-nav: rgba(10, 12, 18, 0.82);
	--line: rgba(255, 255, 255, 0.08);
	--text: #ffffff;
	--muted: #9ca3af;
	--pink: #ff2d78;
	--pink-hot: #f3348a;
	--pink-deep: #e11d64;
	--ok: #22c55e;
	--warn: #eab308;
	--bad: #ef4444;
	--radius: 14px;
	--shell: min(1230px, calc(100% - 0.5rem));
	--font: "Noto Sans", system-ui, sans-serif;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	overflow-x: hidden;
	min-height: 100vh;
}

/* Don't force height:auto — navbar logos need object-contain + fixed heights */
img {
	max-width: 100%;
	display: block;
}
a {
	color: inherit;
	text-decoration: none;
}
button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
}

.shell {
	width: var(--shell);
	margin-inline: auto;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -100px;
	z-index: 1000;
	padding: 0.6rem 1rem;
	background: var(--pink);
	color: #fff;
	border-radius: 999px;
}
.skip-link:focus {
	top: 1rem;
}

.txt-pink {
	color: var(--pink);
}

.anchor-spot {
	position: relative;
	top: -80px;
	height: 0;
	width: 0;
	overflow: hidden;
}

/* ========== NAVBAR ========== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: var(--bg-nav);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
	border-bottom-color: var(--line);
	background: rgba(5, 5, 8, 0.92);
}

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

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	flex-shrink: 0;
}

.brand-mark {
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border-radius: 10px;
	background: rgba(255, 45, 120, 0.12);
	color: var(--pink);
	border: 1px solid rgba(255, 45, 120, 0.35);
}

.brand-name {
	font-weight: 800;
	font-size: 0.95rem;
	letter-spacing: 0.04em;
}

.nav-desktop {
	display: none;
	align-items: center;
	gap: 1.15rem;
}

.nav-desktop > a,
.nav-drop-btn {
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	transition: color 0.2s ease;
}

.nav-desktop > a:hover,
.nav-drop-btn:hover,
.nav-desktop > a:focus-visible {
	color: #fff;
}

.nav-external {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
}

.nav-drop {
	position: relative;
}

.nav-drop-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
}

.nav-drop-panel {
	position: absolute;
	top: calc(100% + 0.7rem);
	left: 50%;
	transform: translateX(-50%);
	min-width: 140px;
	padding: 0.45rem;
	border-radius: 12px;
	background: #12141c;
	border: 1px solid var(--line);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
	display: grid;
	gap: 0.15rem;
}

.nav-drop-panel[hidden] {
	display: none;
}

.nav-drop-panel a {
	padding: 0.55rem 0.7rem;
	border-radius: 8px;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0;
	color: var(--muted);
}

.nav-drop-panel a:hover {
	background: rgba(255, 45, 120, 0.1);
	color: #fff;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 0.55rem;
}

.btn-play {
	width: 3rem;
	height: 2.35rem;
	display: grid;
	place-items: center;
	border-radius: 10px;
	background: linear-gradient(180deg, var(--pink-hot), var(--pink-deep));
	color: #fff;
	box-shadow: 0 8px 22px rgba(255, 45, 120, 0.35);
}

.btn-icon {
	width: 2.35rem;
	height: 2.35rem;
	display: grid;
	place-items: center;
	border-radius: 999px;
	border: 1px solid var(--line);
	color: rgba(255, 255, 255, 0.75);
	background: rgba(255, 255, 255, 0.03);
}

.nav-toggle {
	width: 2.35rem;
	height: 2.35rem;
	display: grid;
	place-content: center;
	gap: 5px;
}

.nav-toggle span {
	display: block;
	width: 1.2rem;
	height: 2px;
	background: #fff;
	border-radius: 2px;
	transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
	display: grid;
	gap: 0.2rem;
	padding: 0.4rem 1rem 1.1rem;
	border-top: 1px solid var(--line);
	background: rgba(5, 5, 8, 0.98);
}

.nav-mobile[hidden] {
	display: none;
}

.nav-mobile a {
	padding: 0.8rem 0.45rem;
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
}

/* ========== BUTTONS ========== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.75rem 1.4rem;
	border-radius: 12px;
	font-weight: 700;
	font-size: 0.95rem;
	transition: transform 0.2s var(--ease), box-shadow 0.2s ease,
		background 0.2s ease;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn-primary {
	background: linear-gradient(180deg, var(--pink-hot), var(--pink-deep));
	color: #fff;
	box-shadow: 0 12px 28px rgba(255, 45, 120, 0.35);
}

.btn-ghost {
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(15, 18, 28, 0.55);
	color: #fff;
	backdrop-filter: blur(8px);
}

.btn-join {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 2.85rem;
	margin-top: auto;
	border-radius: 999px;
	background: var(--pink);
	color: #fff;
	font-weight: 800;
	letter-spacing: 0.1em;
	font-size: 0.82rem;
	box-shadow: 0 10px 24px rgba(255, 45, 120, 0.28);
}

.btn-join:hover {
	background: var(--pink-hot);
}

/* ========== HERO ========== */

.hero {
	position: relative;
	min-height: min(92vh, 820px);
	display: grid;
	align-items: center;
	padding: 5.5rem 0 4.5rem;
	overflow: clip;
}

.hero-bg {
	position: absolute;
	inset: 0;
}

.hero-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(
			180deg,
			rgba(5, 5, 8, 0.55) 0%,
			rgba(5, 5, 8, 0.35) 40%,
			rgba(5, 5, 8, 0.92) 100%
		),
		radial-gradient(
			ellipse at 50% 30%,
			rgba(255, 45, 120, 0.12),
			transparent 55%
		);
}

.hero-stack {
	position: relative;
	z-index: 1;
	display: grid;
	justify-items: center;
	text-align: center;
	gap: 1.1rem;
}

.hero-badge {
	margin: 0;
	padding: 0.45rem 0.95rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 45, 120, 0.55);
	background: rgba(255, 45, 120, 0.1);
	color: var(--pink);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.1em;
}

.hero-title {
	margin: 0;
	max-width: 18ch;
	font-size: clamp(2.4rem, 7vw, 4.2rem);
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.08;
}

.hero-title-rest {
	display: block;
	margin-top: 0.15rem;
}

.hero-lede {
	margin: 0;
	max-width: 36rem;
	color: rgba(255, 255, 255, 0.82);
	font-size: clamp(0.98rem, 2vw, 1.12rem);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 0.35rem;
}

.hero-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	width: min(100%, 36rem);
	margin: 1.5rem 0 0;
	padding: 0;
}

.hero-stats dt {
	font-size: clamp(1.4rem, 3vw, 1.85rem);
	font-weight: 800;
	letter-spacing: -0.03em;
}

.hero-stats dd {
	margin: 0.25rem 0 0;
	color: var(--muted);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em;
}

/* ========== SECTIONS ========== */

.section {
	padding: 4.5rem 0;
}

.section-head {
	margin-bottom: 2.5rem;
}

.section-head--left {
	text-align: left;
	max-width: 80rem;
}

.eyebrow {
	margin: 0 0 0.55rem;
	color: var(--pink);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
}

.section-head h2 {
	margin: 0;
	font-size: clamp(1.7rem, 4vw, 3rem);
	font-weight: 800;
	letter-spacing: 0em;
	line-height: 1.15;
}

.section-sub {
	margin: 0.7rem 0 0;
	color: var(--muted);
	max-width: 40rem;
	font-size: 16px;
	display: block;
}

/* ========== SERVER CARDS ========== */

.servers {
	background: #05070f;
}

.server-grid {
	display: grid;
	gap: 1.1rem;
}

.server-card {
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	padding: 1.35rem;
	border-radius: 16px;
	background: #0b0f1a;
	border: 1px solid rgba(255, 255, 255, 0.06);
	min-height: 100%;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.server-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.78rem;
}

.server-players {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: #c5cad3;
	font-weight: 600;
}

.server-players em {
	font-style: normal;
	color: #8b93a2;
	font-weight: 500;
}

.server-ping {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-weight: 700;
	font-size: 0.78rem;
}

.dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	flex-shrink: 0;
}

.dot-online {
	background: #22c55e;
}

.tone-best {
	color: #22c55e;
}
.tone-good {
	color: #22c55e;
}
.tone-mid {
	color: #f8c000;
}
.tone-bad {
	color: #ef4444;
}

.server-title-row {
	display: flex;
	align-items: center;
	gap: 0.8rem;
}

.server-icon {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	display: grid;
	place-items: center;
	border-radius: 12px;
	background: var(--icon);
	color: #fff;
}

.server-icon svg {
	display: block;
}

.server-card h3 {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.25;
	color: #fff;
}

.tag-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tag-row li {
	padding: 0.28rem 0.55rem;
	border-radius: 8px;
	background: #161b26;
	color: #9aa3b2;
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.05em;
}

.server-blurb {
	margin: 0;
	color: #8b93a2;
	font-size: 0.9rem;
	line-height: 1.55;
	flex: 1;
}

/* ========== FAQ (Tailwind structure + chevron states) ========== */

.faq-card summary {
	list-style: none;
}

.faq-card summary::-webkit-details-marker {
	display: none;
}

.faq-arrow {
	transition: transform 0.3s ease;
}

.faq-card[open] .faq-arrow {
	transform: rotate(180deg);
}
.faq-card > div {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 1s ease, padding 1s ease;
}

.faq-card > div > p {
	overflow: hidden;
}

.faq-card[open] > div {
	grid-template-rows: 1fr;
}

/* Footer uses Tailwind classes from adoptme/class — no overrides needed */

/* ========== MOBILE NAV DRAWER ANIMATION ========== */

.nav-drawer-overlay {
	background: rgba(0, 0, 0, 0);
	-webkit-backdrop-filter: blur(0);
	backdrop-filter: blur(0);
	visibility: hidden;
	pointer-events: none;
	transition: background 0.3s var(--ease), backdrop-filter 0.3s var(--ease),
		-webkit-backdrop-filter 0.3s var(--ease), visibility 0.3s var(--ease);
}

.nav-drawer-overlay.is-open {
	background: rgba(0, 0, 0, 0.35);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	visibility: visible;
	pointer-events: auto;
}

.nav-drawer-panel {
	transform: translateX(100%);
	transition: transform 0.35s var(--ease);
	will-change: transform;
}

.nav-drawer-panel.is-open {
	transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
	.nav-drawer-overlay,
	.nav-drawer-panel {
		transition-duration: 0.01ms;
	}
}

/* ========== MOTION ========== */

[data-reveal] {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

[data-reveal].is-visible {
	opacity: 1;
	transform: none;
}

/* ========== BROWSER MODAL ========== */

.browser-modal {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: grid;
	place-items: center;
	padding: 1.25rem;
}

.browser-modal[hidden] {
	display: none;
}

.browser-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.72);
	backdrop-filter: blur(2px);
}

.browser-modal__window {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(1100px, 100%);
	height: min(720px, calc(100vh - 3rem));
	overflow: hidden;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
	transform: translateY(12px) scale(0.98);
	opacity: 0;
	transition: transform 220ms var(--ease), opacity 220ms var(--ease);
}

.browser-modal.is-open .browser-modal__window {
	transform: none;
	opacity: 1;
}

.browser-modal__chrome {
	background: #202124;
	color: #e8eaed;
	user-select: none;
	display: flex;
	flex-direction: column;
}

.browser-modal__chrome {
	background: #202124;

	user-select: none;

	border-bottom: 1px solid #303134;
}

/* ====================== */

.browser-modal__tabs {
	display: flex;

	align-items: flex-end;

	height: 36px;

	padding: 0 8px;

	overflow: hidden;

	background: #202124;
}

/* ====================== */

.browser-modal__tab {
	display: flex;

	align-items: center;

	gap: 8px;

	height: 32px;

	min-width: 170px;

	max-width: 220px;

	padding: 0 12px;

	border-radius: 10px 10px 0 0;

	background: #2d2f33;

	color: #fff;

	font-size: 13px;

	flex-shrink: 0;

	position: relative;
}

/* ====================== */

.browser-modal__tab--active {
	background: #3a3b40;
}

/* ====================== */

.browser-modal__tab-icon img {
	width: 16px;

	height: 16px;

	border-radius: 2px;

	flex-shrink: 0;
}

/* ====================== */

.browser-modal__tab-label {
	flex: 1;

	overflow: hidden;

	white-space: nowrap;

	text-overflow: ellipsis;

	font-weight: 500;
}

/* ====================== */

.browser-modal__tab-close {
	width: 25px;

	height: 25px;

	display: flex;

	align-items: center;

	justify-content: center;

	border: none;

	outline: none;

	background: transparent;

	color: #bdbdbd;

	border-radius: 50%;

	transition: 0.18s;
}

.browser-modal__close {
	display: grid;
	place-items: center;
	width: 1.75rem;
	height: 1.75rem;
	margin-left: auto;
	margin-bottom: 0.2rem;
	border-radius: 6px;
	font-size: 1.35rem;
	line-height: 1;
	color: #f5f5f5;
	transition: background 150ms ease;
}

.browser-modal__close:hover {
	background: rgba(255, 255, 255, 0.12);
}

.browser-modal__address {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.8rem 1rem;
	background: #2b2b2f;
	font-size: 0.78rem;
	color: #cfcfcf;
}

.browser-modal__lock {
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 50%;
	background: #6b7280;
	flex-shrink: 0;
}

.browser-modal__url {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.browser-modal__frame {
	flex: 1;
	width: 100%;
	border: 0;
	background: #fff;
}

/* ======================================= */
/* TOOLBAR */
/* ======================================= */

.browser-modal__toolbar {
	height: 48px;

	display: flex;

	align-items: center;

	gap: 6px;

	padding: 0 12px;

	background: #3a3b40;
}

.browser-modal__nav-btn,
.browser-modal__toolbar-close {
	width: 30px;

	height: 30px;

	border: none;

	border-radius: 50%;

	background: transparent;

	display: flex;

	align-items: center;

	justify-content: center;

	cursor: pointer;

	transition: 0.15s;
}

.browser-modal__nav-btn:hover,
.browser-modal__toolbar-close:hover {
	background: #3b3d40;
}

.browser-modal__nav-btn svg,
.browser-modal__toolbar-close svg {
	width: 18px;

	height: 18px;

	stroke: #d6d6d6;

	stroke-width: 2;

	stroke-linecap: round;

	stroke-linejoin: round;

	fill: none;
}

.browser-modal__address {
	flex: 1;

	height: 33px;

	display: flex;

	align-items: center;

	gap: 10px;

	padding: 0 14px;

	background: #202124;
	border-radius: 20px;

	color: #fff;

	overflow: hidden;
}

.browser-modal__lock {
	width: 15px;

	height: 15px;

	stroke: #9aa0a6;

	stroke-width: 2;

	fill: none;

	flex-shrink: 0;
}

.browser-modal__url {
	flex: 1;

	white-space: nowrap;

	overflow: hidden;

	text-overflow: ellipsis;

	font-size: 15px;

	color: #f1f3f4;
}

@media (max-width: 640px) {
	.browser-modal__tabs {
		height: 34px;

		padding: 0 6px;
	}

	.browser-modal__tab {
		min-width: 130px;

		max-width: 170px;

		height: 30px;

		padding: 0 10px;

		font-size: 12px;
	}

	.browser-modal__tab-icon {
		width: 14px;

		height: 14px;
	}

	.browser-modal__tab-close {
		width: 16px;

		height: 16px;
	}

	.browser-modal__toolbar {
		height: 42px;

		gap: 2px;

		padding: 0 8px;
	}

	.browser-modal__nav-btn {
		display: none;
		width: 26px;

		height: 26px;
	}

	.browser-modal__nav-btn svg {
		width: 16px;

		height: 16px;
	}

	.browser-modal__toolbar-close {
		display: none;
	}

	.browser-modal__address {
		height: 32px;

		padding: 0 10px;

		margin-left: 20px !important;
	}

	.browser-modal__url {
		font-size: 13px;
	}
}

@media (max-width: 640px) {
	.browser-modal {
		padding: 0.65rem;
	}

	.browser-modal__window {
		height: calc(100vh - 1.3rem);
		border-radius: 8px;
	}
}

/* ========== RESPONSIVE ========== */

@media (min-width: 768px) {
	.nav-toggle {
		display: none;
	}
	.nav-desktop {
		display: flex;
	}
	.nav-mobile {
		display: none !important;
	}

	.server-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.server-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
	[data-reveal] {
		opacity: 1;
		transform: none;
	}
}
