/* stacklinux.com — Aurora design system.
   Deep-space black, drifting blue/violet blooms, frosted-glass cards.
   Sora (display) + Hanken Grotesk (body). */

:root {
	--bg: #04060A;
	--text: #EDF1F7;
	--dim: #8E99AB;
	--line: rgba(237, 241, 247, 0.1);
	--blue: #4BA9F5;
	--violet: #7A6CF0;
	--green: #3DDC97;
	--glass: rgba(255, 255, 255, 0.04);
	--display: 'Sora', system-ui, sans-serif;
	--body: 'Hanken Grotesk', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: 2px;
}

/* ---------- Aurora field ---------- */

.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.aurora i:nth-child(1) { width: 60vw; height: 60vw; left: -18vw; top: -22vw; background: radial-gradient(circle, rgba(1,115,191,.5), transparent 65%); animation: drift1 26s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 46vw; height: 46vw; right: -16vw; top: 8vw; background: radial-gradient(circle, rgba(122,108,240,.32), transparent 65%); animation: drift2 32s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 52vw; height: 52vw; left: 26vw; bottom: -30vw; background: radial-gradient(circle, rgba(1,115,191,.28), transparent 65%); animation: drift1 38s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(9vw, 6vw) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-8vw, 9vw) scale(0.92); } }

.page { position: relative; z-index: 1; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */

.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; }

.nav-brand { display: flex; align-items: center; }
.nav-brand img { height: 30px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 26px; font-size: .92rem; font-weight: 500; }
.nav-links a { color: var(--dim); transition: color .2s; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--text); }

.nav-cta {
	font-size: .88rem; font-weight: 600; color: var(--text); white-space: nowrap;
	border: 1px solid var(--line); background: var(--glass);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	padding: 9px 20px; border-radius: 999px;
	transition: border-color .2s, background .2s;
}
.nav-cta:hover { text-decoration: none; border-color: var(--blue); background: rgba(75,169,245,.1); }

.menu-btn {
	display: none; font-family: var(--body); font-size: .85rem; font-weight: 600;
	color: var(--text); background: var(--glass); border: 1px solid var(--line);
	border-radius: 999px; padding: 8px 16px; cursor: pointer;
}

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

.hero { text-align: center; padding: 100px 0 90px; }

.pill {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: .8rem; font-weight: 500; letter-spacing: .05em;
	color: var(--dim); border: 1px solid var(--line); background: var(--glass);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	padding: 7px 18px; border-radius: 999px; margin-bottom: 30px;
	transition: border-color .2s, color .2s;
}
a.pill:hover { text-decoration: none; border-color: var(--green); color: var(--text); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .4; } }

h1 {
	font-family: var(--display); font-weight: 700;
	font-size: clamp(2.6rem, 6.5vw, 4.4rem); line-height: 1.08; letter-spacing: -0.03em;
	margin: 0 0 26px;
	background: linear-gradient(120deg, #FFFFFF 30%, #9CC8EE 70%, var(--blue));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero-sub { max-width: 34em; margin: 0 auto 42px; color: var(--dim); font-size: 1.13rem; }
.hero-sub b { color: var(--text); font-weight: 600; }

.btn {
	display: inline-block; font-family: var(--display); font-weight: 600; font-size: .95rem;
	color: #041018; background: linear-gradient(120deg, var(--blue), #7FC2F8);
	padding: 16px 36px; border-radius: 999px; border: 0; cursor: pointer;
	box-shadow: 0 0 40px rgba(75,169,245,.35);
	transition: transform .2s, box-shadow .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 0 60px rgba(75,169,245,.5); }

.btn-quiet { display: inline-block; margin-left: 22px; font-size: .92rem; font-weight: 500; color: var(--dim); }
.btn-quiet:hover { color: var(--blue); text-decoration: none; }

/* ---------- Sections ---------- */

section { padding: 76px 0; }

.section-head {
	text-align: center; font-family: var(--display); font-weight: 600;
	font-size: clamp(1.5rem, 3.5vw, 2.1rem); letter-spacing: -0.02em; margin: 0 0 14px;
}
.section-sub { text-align: center; color: var(--dim); max-width: 40em; margin: 0 auto 48px; }

.card {
	border: 1px solid var(--line); background: var(--glass); border-radius: 20px;
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}

/* ---------- Stats ---------- */

.stats-card { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 36px; text-align: center; padding: 44px 32px; }
.stat-num {
	display: block; font-family: var(--display); font-weight: 700; font-size: 2.1rem;
	background: linear-gradient(120deg, #FFF, var(--blue));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { display: block; font-size: .85rem; color: var(--dim); margin-top: 4px; }

/* ---------- Features ---------- */

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.feature { padding: 32px 28px; transition: transform .25s, border-color .25s; }
.feature:hover { transform: translateY(-4px); border-color: rgba(75,169,245,.4); }

.feature-icon {
	width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
	margin-bottom: 20px; font-size: 1.15rem;
	background: linear-gradient(135deg, rgba(75,169,245,.25), rgba(122,108,240,.2));
	border: 1px solid var(--line);
}

.feature h2, .feature h3 { font-family: var(--display); font-weight: 600; font-size: 1.15rem; margin: 0 0 10px; }
.feature p { font-size: .93rem; color: var(--dim); margin: 0; }
.feature p a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Vendor strip ---------- */

.vendors { text-align: center; }
.vendors-card { background: #F4F6F9; border-radius: 20px; padding: 30px 36px; }
.vendors-card img { margin: 0 auto; }

/* ---------- Testimonials ---------- */

.quote { padding: 30px 28px; display: flex; flex-direction: column; gap: 16px; }
.quote blockquote { margin: 0; font-size: 1rem; line-height: 1.65; }
.quote figcaption { font-size: .84rem; color: var(--dim); margin-top: auto; }

/* ---------- Steps (Getting started) ---------- */

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { padding: 32px 28px; }
.step::before {
	counter-increment: step; content: counter(step, decimal-leading-zero);
	display: block; font-family: var(--display); font-weight: 700; font-size: 1rem;
	background: linear-gradient(120deg, var(--blue), var(--violet));
	-webkit-background-clip: text; background-clip: text; color: transparent;
	margin-bottom: 14px;
}
.step h2 { font-family: var(--display); font-weight: 600; font-size: 1.1rem; margin: 0 0 10px; }
.step p { font-size: .93rem; color: var(--dim); margin: 0; }

/* ---------- Closing CTA ---------- */

.closing { text-align: center; padding: 100px 0 120px; }
.closing h2 {
	font-family: var(--display); font-weight: 700;
	font-size: clamp(1.9rem, 5vw, 3.1rem); letter-spacing: -0.03em; margin: 0 0 18px;
	background: linear-gradient(120deg, #FFF 40%, var(--blue));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.closing p { color: var(--dim); margin: 0 0 38px; }

/* ---------- Inner pages ---------- */

.page-hero { text-align: center; padding: 80px 0 50px; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
.page-hero p { color: var(--dim); max-width: 38em; margin: 0 auto; }

.content-card { max-width: 780px; margin: 0 auto; padding: 48px 44px; }
.content-card h2 { font-family: var(--display); font-weight: 600; font-size: 1.35rem; margin: 36px 0 14px; }
.content-card h2:first-child { margin-top: 0; }
.content-card p, .content-card li { color: var(--dim); }
.content-card ul { padding-left: 1.3em; }
.content-card a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Forms ---------- */

.form-card { max-width: 640px; margin: 0 auto; padding: 44px 40px; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 8px; }
.form-row input, .form-row textarea, .form-row select {
	width: 100%; font-family: var(--body); font-size: 1rem; color: var(--text);
	background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 12px;
	padding: 13px 16px;
}
.form-row input::placeholder, .form-row textarea::placeholder { color: rgba(142,153,171,.7); }
.form-row textarea { min-height: 150px; resize: vertical; }
.cf-turnstile { margin-bottom: 22px; }
.form-note { font-size: .82rem; color: var(--dim); margin-top: 16px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-status { margin-top: 18px; font-size: .92rem; display: none; }
.form-status.ok { display: block; color: var(--green); }
.form-status.err { display: block; color: #F58B8B; }

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

footer { border-top: 1px solid var(--line); padding: 44px 0 36px; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.footer-brand img { height: 26px; width: auto; margin-bottom: 12px; }
.footer-brand p { font-size: .82rem; color: var(--dim); margin: 0; max-width: 26em; }
.footer-col { font-size: .88rem; }
.footer-col strong { display: block; font-family: var(--display); font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.footer-col a { display: block; color: var(--dim); padding: 3px 0; }
.footer-col a:hover { color: var(--text); text-decoration: none; }
.footer-legal { margin-top: 36px; font-size: .78rem; color: var(--dim); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-legal a { color: var(--dim); }

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
	.grid3, .grid2, .steps { grid-template-columns: 1fr; }
	.nav-links {
		display: none;
	}
	.nav-links.open {
		display: flex; flex-direction: column; align-items: flex-start; gap: 0;
		position: absolute; top: 70px; left: 16px; right: 16px; z-index: 40;
		background: #0A0F16; border: 1px solid var(--line); border-radius: 16px; padding: 10px;
	}
	.nav-links.open a { padding: 12px 14px; width: 100%; }
	.menu-btn { display: block; }
	section { padding: 56px 0; }
	.hero { padding: 70px 0 60px; }
	.btn-quiet { display: block; margin: 18px auto 0; }
	.stats-card { gap: 26px; }
	.content-card, .form-card { padding: 32px 24px; }
}

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

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.aurora i { animation: none; }
	.pill .dot { animation: none; }
	.reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
	.btn, .feature { transition: none; }
}
