:root {
	color-scheme: dark;
	font-family: "DM Sans", "Noto Sans JP", sans-serif;
	font-synthesis: none;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	--background: #090b18;
	--foreground: #f5f5ff;
	--muted: #a5a8c2;
	--accent: #a78bfa;
}

* {
	box-sizing: border-box;
}

html {
	min-width: 320px;
	scroll-behavior: smooth;
}

body {
	min-width: 320px;
	margin: 0;
	color: var(--foreground);
	background: var(--background);
}

a {
	color: inherit;
}

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 10;
	display: flex;
	width: 100%;
	min-height: 72px;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 0 clamp(18px, 5vw, 64px);
	border-bottom: 1px solid rgb(255 255 255 / 7%);
	background: rgb(9 11 24 / 82%);
	backdrop-filter: blur(18px);
}

.brand {
	font-size: 0.9rem;
	font-weight: 800;
	letter-spacing: 0.13em;
	text-decoration: none;
}

.brand span {
	margin-left: 4px;
	color: var(--accent);
}

.site-nav {
	display: flex;
	align-items: center;
	gap: clamp(18px, 4vw, 44px);
}

.nav-link {
	position: relative;
	padding: 10px 0;
	color: #c5c6d8;
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
	transition: color 160ms ease;
}

.nav-link::after {
	position: absolute;
	right: 0;
	bottom: 3px;
	left: 0;
	height: 2px;
	border-radius: 2px;
	background: var(--accent);
	content: "";
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
	color: #fff;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
	transform: scaleX(1);
}

.header-discord {
	padding: 9px 14px;
	border: 1px solid rgb(195 189 230 / 24%);
	border-radius: 999px;
	color: #efedff;
	font-size: 0.76rem;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease;
}

.header-discord:hover {
	border-color: rgb(195 189 230 / 54%);
	background: rgb(255 255 255 / 8%);
}

.header-discord span {
	margin-left: 5px;
	color: #c4b5fd;
}

main section[id] {
	scroll-margin-top: 72px;
}

.hero,
.discord-section {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	overflow: hidden;
	text-align: center;
}

.hero {
	justify-content: flex-start;
	min-height: 100svh;
	padding: clamp(132px, 21vh, 210px) 24px 48px;
	background:
		radial-gradient(ellipse at 50% 34%, rgb(86 65 171 / 17%), transparent 48%),
		linear-gradient(180deg, #0c0e20 0%, var(--background) 100%);
}

.hero::before,
.discord-section::before {
	position: absolute;
	z-index: 0;
	pointer-events: none;
	content: "";
	inset: 0;
	background-image: radial-gradient(rgb(255 255 255 / 13%) 0.7px, transparent 0.7px);
	background-size: 28px 28px;
	opacity: 0.22;
	mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.hero > :not(.hero-glow),
.discord-section > :not(.section-content) {
	z-index: 1;
}

.hero-glow {
	position: absolute;
	top: 15%;
	left: 50%;
	width: min(72vw, 760px);
	height: 320px;
	border-radius: 50%;
	background: rgb(119 91 232 / 14%);
	filter: blur(100px);
	transform: translateX(-50%);
}

.eyebrow {
	margin: 0 0 22px;
	color: #b9a7ff;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.28em;
}

.hero h1 {
	position: relative;
	margin: 0;
	font-size: clamp(3rem, 9vw, 7.5rem);
	font-weight: 800;
	letter-spacing: -0.075em;
	line-height: 1.08;
	text-wrap: balance;
	text-shadow: 0 0 52px rgb(167 139 250 / 24%);
}

.hero h1 span {
	color: var(--accent);
}

.hero-caption {
	margin: 24px 0 0;
	color: var(--muted);
	font-size: clamp(0.95rem, 2vw, 1.1rem);
	letter-spacing: 0.08em;
}

.scroll-hint {
	position: absolute;
	bottom: 36px;
	display: grid;
	justify-items: center;
	gap: 12px;
	color: #8e91aa;
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-decoration: none;
}

.scroll-arrow {
	color: var(--accent);
	font-size: 1.3rem;
	animation: float 1.8s ease-in-out infinite;
}

.discord-section {
	justify-content: center;
	min-height: 82svh;
	padding: 100px 24px 72px;
	background:
		radial-gradient(ellipse at 50% 50%, rgb(71 55 136 / 14%), transparent 54%),
		#0b0d1a;
}

.commands-section,
.announce-section {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(ellipse at 50% 0%, rgb(86 65 171 / 13%), transparent 48%),
		#0b0d1a;
}

.commands-section::before,
.announce-section::before {
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgb(255 255 255 / 10%) 0.7px, transparent 0.7px);
	background-size: 28px 28px;
	content: "";
	opacity: 0.2;
	mask-image: linear-gradient(to bottom, black, transparent 90%);
	pointer-events: none;
}

.commands-content {
	position: relative;
	z-index: 1;
	width: min(100%, 1040px);
	margin: 0 auto;
	padding: 110px 24px 100px;
}

.commands-content > .eyebrow,
.commands-content > h2,
.commands-content > .section-description {
	text-align: center;
}

.commands-content > h2 {
	margin: 0;
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 800;
	letter-spacing: -0.05em;
}

.commands-content > .section-description {
	margin: 14px 0 56px;
}

.command-category + .command-category {
	margin-top: 44px;
}

.command-category h3 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	font-size: 1.08rem;
	font-weight: 700;
}

.category-mark {
	color: #c4b5fd;
	font-size: 1.15rem;
}

.command-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.command-card {
	align-self: start;
	min-width: 0;
	border: 1px solid rgb(195 189 230 / 12%);
	border-radius: 14px;
	background: rgb(255 255 255 / 3%);
	transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.command-card:hover,
.command-card[open] {
	border-color: rgb(167 139 250 / 48%);
	background: rgb(167 139 250 / 7%);
}

.command-card:hover {
	transform: translateY(-2px);
}

.command-card summary {
	display: flex;
	min-height: 64px;
	align-items: center;
	gap: 14px;
	padding: 13px 16px;
	cursor: pointer;
	list-style: none;
}

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

.command-card summary:focus-visible {
	border-radius: 13px;
	outline: 2px solid #c4b5fd;
	outline-offset: 2px;
}

.command-card summary > code {
	flex: 0 0 auto;
	color: #c4b5fd;
	font-family: "SFMono-Regular", Consolas, monospace;
	font-size: 0.88rem;
	font-weight: 700;
}

.command-label {
	flex: 1;
	color: #e5e4f2;
	font-size: 0.88rem;
}

.expand-mark {
	flex: 0 0 auto;
	color: #a9a5c5;
	font-size: 1.1rem;
	transition: transform 180ms ease;
}

.command-card[open] .expand-mark {
	transform: rotate(45deg);
}

.command-detail {
	margin: 0 16px 16px;
	padding: 14px 14px 2px;
	border-top: 1px solid rgb(195 189 230 / 13%);
}

.command-detail code {
	color: #c4b5fd;
	font-family: "SFMono-Regular", Consolas, monospace;
	font-size: 0.82rem;
	line-height: 1.7;
	word-break: break-word;
}

.command-detail p {
	margin: 8px 0 10px;
	color: var(--muted);
	font-size: 0.83rem;
	line-height: 1.7;
}

.announce-section {
	display: grid;
	min-height: 76svh;
	place-items: center;
	padding: 96px 24px;
	background:
		radial-gradient(ellipse at 50% 50%, rgb(78 59 149 / 16%), transparent 55%),
		#090b18;
}

.announce-card {
	position: relative;
	z-index: 1;
	width: min(100%, 760px);
	padding: clamp(28px, 6vw, 56px);
	border: 1px solid rgb(195 189 230 / 17%);
	border-radius: 24px;
	background: linear-gradient(145deg, rgb(255 255 255 / 7%), rgb(255 255 255 / 2%));
	box-shadow: 0 24px 80px rgb(0 0 0 / 22%);
}

.announce-card .eyebrow {
	margin-bottom: 26px;
}

.announce-date {
	margin: 0 0 12px;
	color: #c4b5fd;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.announce-date span {
	color: #a5a8c2;
	font-weight: 500;
}

.announce-card h2 {
	margin: 0;
	font-size: clamp(1.7rem, 5vw, 3rem);
	font-weight: 800;
	letter-spacing: -0.05em;
}

.announce-copy {
	max-width: 590px;
	margin: 18px 0 26px;
	color: var(--muted);
	font-size: 0.95rem;
	line-height: 1.9;
}

.announce-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #d0c4ff;
	font-size: 0.88rem;
	font-weight: 700;
	text-decoration: none;
}

.announce-link:hover {
	color: #fff;
}

.section-content {
	position: relative;
	z-index: 1;
	width: min(100%, 760px);
}

.section-content .eyebrow {
	margin-bottom: 16px;
}

.section-content h2 {
	margin: 0;
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 800;
	letter-spacing: -0.05em;
}

.section-description {
	margin: 18px 0 36px;
	color: var(--muted);
	font-size: clamp(0.9rem, 2vw, 1.05rem);
	line-height: 1.8;
}

.button-group {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
}

.button {
	display: inline-flex;
	min-height: 58px;
	align-items: center;
	justify-content: center;
	gap: 11px;
	padding: 0 22px;
	border: 1px solid transparent;
	border-radius: 14px;
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
	transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
	transform: translateY(-3px);
}

.button:focus-visible,
.scroll-hint:focus-visible {
	outline: 3px solid #c4b5fd;
	outline-offset: 4px;
}

.button-primary {
	color: #171126;
	background: linear-gradient(135deg, #c4b5fd, #a78bfa);
	box-shadow: 0 10px 32px rgb(145 116 239 / 25%);
}

.button-primary:hover {
	box-shadow: 0 14px 40px rgb(145 116 239 / 38%);
}

.button-secondary {
	border-color: rgb(195 189 230 / 22%);
	background: rgb(255 255 255 / 4%);
}

.button-secondary:hover {
	border-color: rgb(195 189 230 / 48%);
	background: rgb(255 255 255 / 8%);
}

.button-icon {
	font-size: 1.2rem;
}

.discord-icon {
	font-size: 1rem;
}

.button-arrow {
	margin-left: 3px;
	font-size: 1.05rem;
}

footer {
	position: absolute;
	bottom: 24px;
	z-index: 1;
	color: #73768f;
	font-size: 0.68rem;
	letter-spacing: 0.16em;
}

@keyframes float {
	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(6px);
	}
}

@media (max-width: 560px) {
	.site-header {
		min-height: 64px;
		gap: 10px;
		padding-inline: 14px;
	}

	.brand {
		font-size: 0.74rem;
	}

	.site-nav {
		gap: 14px;
	}

	.nav-link {
		font-size: 0.73rem;
	}

	.header-discord {
		padding: 8px 10px;
		font-size: 0.68rem;
	}

	main section[id] {
		scroll-margin-top: 64px;
	}

	.hero {
		padding-top: 25vh;
	}

	.hero h1 {
		font-size: clamp(2.8rem, 12vw, 4.5rem);
	}

	.discord-section {
		min-height: 88svh;
	}

	.commands-content {
		padding: 88px 18px 76px;
	}

	.commands-content > .section-description {
		margin-bottom: 42px;
	}

	.command-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 9px;
	}

	.command-card summary {
		min-height: 60px;
		gap: 10px;
		padding-inline: 13px;
	}

	.command-card summary > code {
		font-size: 0.82rem;
	}

	.command-label {
		font-size: 0.82rem;
	}

	.announce-section {
		min-height: 68svh;
		padding: 76px 18px;
	}

	.button-group {
		width: min(100%, 380px);
		margin-inline: auto;
	}

	.button {
		width: 100%;
		padding-inline: 14px;
		font-size: 0.88rem;
	}
}

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