/* ==========================================================================
   Niguro Launchpad — main stylesheet
   ========================================================================== */

:root {
	--bg: #0b0f17;
	--bg-elevated: #101828;
	--foreground: #e7edf5;
	--muted-foreground: #8d99ac;
	--primary: #10b981;
	--accent: #2dd4bf;
	--secondary: #1b2337;
	--border: rgba(255, 255, 255, 0.08);
	--card-bg: rgba(27, 35, 55, 0.55);
	--gradient-brand: linear-gradient(100deg, #34d399, #2dd4bf);
	--shadow-glow: 0 0 0 1px rgba(16, 185, 129, 0.35),
		0 18px 60px -18px rgba(16, 185, 129, 0.7);
	--radius: 0.875rem;
	--font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
		Roboto, sans-serif;
}

/* ---- Base ---- */

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background-color: var(--bg);
	color: var(--foreground);
	font-family: var(--font-sans);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	line-height: 1.6;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--primary);
	text-decoration: none;
}

::selection {
	background: rgba(16, 185, 129, 0.35);
	color: #fff;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.container {
	margin: 0 auto;
	max-width: 72rem; /* max-w-6xl */
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}

/* ---- Reusable surfaces ---- */

.glass-card {
	background: var(--card-bg);
	backdrop-filter: blur(18px) saturate(140%);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--radius);
	transition:
		border-color 0.35s ease,
		transform 0.35s ease,
		box-shadow 0.35s ease;
}

.glass-card:hover {
	border-color: rgba(16, 185, 129, 0.45);
	transform: translateY(-4px);
	box-shadow: 0 24px 70px -30px rgba(16, 185, 129, 0.75);
}

.glow-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	background: var(--gradient-brand);
	color: #05301f;
	border-radius: 9999px;
	padding: 0.9rem 1.9rem;
	font-size: 0.9rem;
	font-weight: 600;
	box-shadow: var(--shadow-glow);
	transition:
		transform 0.25s ease,
		filter 0.25s ease;
}

.glow-button:hover {
	transform: translateY(-2px);
	filter: brightness(1.08);
	color: #05301f;
}

.inline-button {
	display: inline-flex;
	padding: 0.75rem 1.6rem;
	font-size: 0.9rem;
}

.text-brand-gradient {
	background: var(--gradient-brand);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

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

.site-header {
	border-bottom: 1px solid var(--border);
	background: rgba(11, 15, 23, 0.6);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	position: sticky;
	top: 0;
	z-index: 50;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 3.75rem;
}

.site-header__brand {
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--foreground);
	letter-spacing: -0.02em;
}

.site-header__menu {
	display: flex;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-header__menu a {
	color: var(--muted-foreground);
	font-size: 0.9rem;
	font-weight: 500;
	transition: color 0.2s ease;
}

.site-header__menu a:hover {
	color: var(--primary);
}

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

.hero-shell {
	position: relative;
	min-height: 100vh;
	overflow: hidden;
}

.hero-shell__grid {
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
	-webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

.hero-shell__noise {
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.035;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-shell__glow {
	position: absolute;
	border-radius: 9999px;
	filter: blur(120px);
	opacity: 0.35;
	pointer-events: none;
}

.hero-shell__glow--top {
	left: 50%;
	top: -14rem;
	width: 56rem;
	height: 34rem;
	background: var(--primary);
	transform: translateX(-50%);
	animation: float-y 12s ease-in-out infinite;
}

.hero-shell__glow--right {
	right: -12rem;
	top: 26rem;
	width: 26rem;
	height: 26rem;
	background: var(--accent);
	opacity: 0.25;
	animation: float-y-right 18s ease-in-out infinite reverse;
}

.hero-shell__glow--left {
	left: -10rem;
	top: 70rem;
	width: 24rem;
	height: 24rem;
	background: var(--primary);
	opacity: 0.15;
}

@keyframes float-y {
	0%,
	100% {
		transform: translateX(-50%) translateY(0);
	}
	50% {
		transform: translateX(-50%) translateY(28px);
	}
}

@keyframes float-y-right {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(28px);
	}
}

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

.hero-inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: 3.5rem;
	padding-bottom: 6rem;
}

.pill {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.4rem 1rem;
	border-radius: 9999px;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--muted-foreground);
}

.pill__dot {
	position: relative;
	width: 0.4rem;
	height: 0.4rem;
	border-radius: 9999px;
	background: var(--primary);
}

.pill__dot::after {
	content: "";
	position: absolute;
	inset: -0.3rem;
	border-radius: 9999px;
	background: var(--primary);
	opacity: 0.75;
	animation: ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
	0% {
		transform: scale(1);
		opacity: 0.75;
	}
	75%,
	100% {
		transform: scale(2.4);
		opacity: 0;
	}
}

.hero-title {
	margin: 2.5rem 0 0;
	width: 100%;
	max-width: 72rem;
	text-align: center;
	font-size: clamp(2rem, 5vw, 4.4rem);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.025em;
}

.hero-title__lead {
	display: block;
	color: rgba(231, 237, 245, 0.72);
}

.hero-title__main {
	display: block;
	margin-top: 0.75rem;
}

.hero-title__sub {
	display: block;
	margin-top: 0.5rem;
	font-size: clamp(1.25rem, 2.4vw, 2.2rem);
	font-weight: 400;
	letter-spacing: 0;
	color: rgba(231, 237, 245, 0.55);
}

.shimmer {
	background: linear-gradient(
		100deg,
		#34d399,
		#e8fbe9,
		#2dd4bf,
		#34d399
	);
	background-size: 220% 100%;
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	animation: shimmer-pan 6s linear infinite;
}

@keyframes shimmer-pan {
	to {
		background-position: -220% 0;
	}
}

.hero-sub {
	margin: 1.5rem 0 0;
	max-width: 42rem;
	text-align: center;
	font-size: 1rem;
	line-height: 1.75;
	color: var(--muted-foreground);
}

.hero-sub__count {
	color: var(--foreground);
	font-weight: 500;
}

.hero-cta {
	margin-top: 2.25rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
}

.hero-cta__secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	border-radius: 9999px;
	padding: 0.9rem 1.9rem;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--foreground);
}

@media (min-width: 40rem) {
	.hero-cta {
		flex-direction: row;
		justify-content: center;
	}

	.hero-cta__secondary {
		width: auto;
	}
}

/* ---- Redirect card ---- */

.redirect-card {
	margin-top: 3rem;
	width: 100%;
	max-width: 42rem;
	border-radius: 1.5rem;
	padding: 1.5rem;
}

.redirect-card__ring {
	position: relative;
	display: grid;
	place-items: center;
	width: 62px;
	height: 62px;
	flex-shrink: 0;
}

.redirect-card__ring svg {
	width: 62px;
	height: 62px;
	transform: rotate(-90deg);
}

.redirect-card__ring-track {
	stroke: var(--secondary);
}

.redirect-card__ring-progress {
	stroke: var(--primary);
	transition: stroke-dashoffset 1s linear;
}

.redirect-card__count {
	position: absolute;
	font-size: 1rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--foreground);
}

.redirect-card__copy {
	min-width: 12rem;
	flex: 1;
}

.redirect-card__title {
	margin: 0;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--foreground);
}

.redirect-card__note {
	margin: 0.25rem 0 0;
	font-size: 0.75rem;
	line-height: 1.6;
	color: var(--muted-foreground);
}

.redirect-card__toggle {
	border: 1px solid var(--border);
	background: rgba(27, 35, 55, 0.6);
	color: var(--foreground);
	border-radius: 9999px;
	padding: 0.5rem 1rem;
	font-size: 0.75rem;
	font-weight: 500;
	cursor: pointer;
	transition:
		border-color 0.2s ease,
		color 0.2s ease;
}

.redirect-card__toggle:hover {
	border-color: rgba(16, 185, 129, 0.5);
	color: var(--primary);
}

.redirect-card.is-paused .redirect-card__ring-progress {
	transition: none;
}

@media (min-width: 40rem) {
	.redirect-card {
		display: flex;
		align-items: center;
		gap: 1.25rem;
	}
}

/* ---- Timeline ---- */

.timeline {
	margin-top: 6rem;
	width: 100%;
}

.timeline__grid {
	display: grid;
	gap: 1rem;
}

@media (min-width: 48rem) {
	.timeline__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.timeline__card {
	padding: 1.5rem;
	border-radius: 1rem;
}

.timeline__tag {
	display: inline-block;
	background: var(--secondary);
	color: var(--primary);
	border-radius: 9999px;
	padding: 0.25rem 0.65rem;
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.timeline__title {
	margin: 1rem 0 0;
	font-size: 1.1rem;
	font-weight: 600;
	line-height: 1.35;
}

.timeline__body {
	margin: 0.65rem 0 0;
	font-size: 0.875rem;
	line-height: 1.7;
	color: var(--muted-foreground);
}

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

.services {
	margin-top: 6rem;
	width: 100%;
	scroll-margin-top: 4rem;
}

.services__intro {
	text-align: center;
}

.services__heading {
	margin: 0;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 600;
	letter-spacing: -0.02em;
}

.services__sub {
	margin: 0.75rem auto 0;
	max-width: 36rem;
	font-size: 0.875rem;
	line-height: 1.7;
	color: var(--muted-foreground);
}

.services__group {
	margin-top: 3rem;
}

.services__group-head {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.services__group-label {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--muted-foreground);
}

.services__group-count {
	font-size: 0.625rem;
	font-weight: 500;
	color: var(--primary);
}

.services__group-rule {
	height: 1px;
	flex: 1;
	background: var(--border);
}

.services__grid {
	margin-top: 1.25rem;
	display: grid;
	gap: 0.75rem;
}

@media (min-width: 40rem) {
	.services__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 64rem) {
	.services__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.services__card {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 1rem;
	border-radius: 1rem;
	overflow: hidden;
	color: var(--foreground);
}

.services__card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom right, var(--tint), transparent);
	pointer-events: none;
}

.services__card--emerald {
	--tint: rgba(16, 185, 129, 0.22);
}

.services__card--teal {
	--tint: rgba(45, 212, 191, 0.22);
}

.services__icon {
	position: relative;
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	flex-shrink: 0;
	background: var(--secondary);
	border-radius: 0.75rem;
	font-size: 1rem;
}

.services__body {
	position: relative;
	min-width: 0;
}

.services__name {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--foreground);
}

.services__desc {
	display: block;
	margin-top: 0.375rem;
	font-size: 0.75rem;
	line-height: 1.6;
	color: var(--muted-foreground);
}

.services__arrow {
	position: absolute;
	right: 0.75rem;
	top: 0.75rem;
	font-size: 0.75rem;
	color: var(--primary);
	opacity: 0;
	transition: opacity 0.2s ease;
	pointer-events: none;
}

.services__card:hover .services__arrow {
	opacity: 1;
}

/* ---- Final CTA ---- */

.final-cta {
	margin-top: 6rem;
	width: 100%;
	border-radius: 1.5rem;
	padding: 3rem 1.5rem;
	text-align: center;
}

@media (min-width: 48rem) {
	.final-cta {
		padding: 3rem 3rem;
	}
}

.final-cta__title {
	margin: 0;
	font-size: clamp(1.5rem, 3vw, 1.875rem);
	font-weight: 600;
	letter-spacing: -0.02em;
}

.final-cta__sub {
	margin: 0.75rem auto 0;
	max-width: 32rem;
	font-size: 0.875rem;
	line-height: 1.7;
	color: var(--muted-foreground);
}

.final-cta__button {
	margin-top: 1.75rem;
}

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

.site-footer {
	padding: 2rem 0 3rem;
	text-align: center;
}

.site-footer__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}

.site-footer p {
	margin: 0;
	font-size: 0.75rem;
	line-height: 1.7;
	color: var(--muted-foreground);
}

.site-footer__link {
	color: var(--primary);
}

.site-footer__link:hover {
	text-decoration: underline;
}

.site-footer__tagline {
	opacity: 0.8;
}

.site-footer__menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer__menu a {
	color: var(--muted-foreground);
	font-size: 0.8rem;
	transition: color 0.2s ease;
}

.site-footer__menu a:hover {
	color: var(--primary);
}

/* ---- Generic pages ---- */

.page-shell {
	min-height: 70vh;
	padding: 4rem 0 6rem;
}

.page-shell--404 {
	display: flex;
	align-items: center;
}

.page-shell__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.page-card {
	width: 100%;
	max-width: 48rem;
	padding: 2.5rem;
}

.page-card--404 {
	text-align: center;
}

.page-card__code {
	margin: 0;
	font-size: 4rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	background: var(--gradient-brand);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.page-card__title {
	margin: 0.5rem 0 0;
	font-size: 1.75rem;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.page-card__meta {
	margin-top: 0.5rem;
	font-size: 0.8rem;
	color: var(--muted-foreground);
}

.page-card__thumb {
	margin-top: 1.5rem;
	border-radius: 0.75rem;
	overflow: hidden;
}

.page-card__content {
	margin-top: 1.5rem;
	font-size: 0.975rem;
	line-height: 1.8;
	color: var(--foreground);
}

.page-card__content p {
	margin: 0 0 1rem;
}

.page-card__actions {
	margin-top: 1.5rem;
}

.page-card__content a {
	color: var(--primary);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.page-card__content a:hover {
	color: var(--accent);
}

/* ---- Reduced motion ---- */

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