/* styles.css */
/* SpaceCat Games — Neon Warm Reds Palette */
:root{
	--c-accent-1:#D95163; /* bright malina red */
	--c-accent-2:#E45B77; /* warm pink coral */
	--c-accent-3:#B94447; /* deep red-burgundy */
	--c-accent-4:#7E343A; /* muted wine */
	--c-bg-1:#0A0303;     /* near black warm */
	--c-bg-2:#241616;     /* deep warm shadow */
	--radius-1:12px;
	--radius-2:18px;
	--shadow-1:0 10px 30px rgba(217,81,99,0.2);
	--shadow-2:0 20px 60px rgba(228,91,119,0.18);
	--container:1120px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
	margin:0;
	background:var(--c-bg-1);
	color:#F5EDEE;
	font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
	font-size:16px; line-height:1.65;
	overflow-x:hidden;
}
img{max-width:100%; display:block}
.sr-only{position:absolute;left:-9999px}

.container{width:100%; max-width:var(--container); margin:0 auto; padding:0 24px}

/* Header */
.site-header{position:sticky; top:0; z-index:50; background:linear-gradient(180deg, rgba(10,3,3,0.9), rgba(10,3,3,0.6) 60%, rgba(10,3,3,0)); backdrop-filter:saturate(140%) blur(8px);}
.header-inner{display:flex; align-items:center; justify-content:space-between; padding:14px 0}
.logo{display:inline-flex; align-items:center; gap:12px; color:#fff; text-decoration:none; font-weight:700}
.logo-badge{width:28px; height:28px; border-radius:8px; background:radial-gradient(60% 60% at 30% 30%, var(--c-accent-2), var(--c-accent-1) 60%, var(--c-accent-3)); box-shadow:0 0 24px rgba(228,91,119,0.55), inset 0 0 18px rgba(217,81,99,0.35)}
.logo-text{letter-spacing:0.2px}
.logo-img{height:28px; width:auto; display:block; filter:drop-shadow(0 2px 12px rgba(228,91,119,0.18))}

.site-nav ul{list-style:none; margin:0; padding:0; display:flex; gap:18px}
.site-nav a{color:#EED8DB; text-decoration:none; padding:8px 10px; border-radius:8px; transition:color .2s ease, background .2s ease}
.site-nav a:hover{color:#fff; background:rgba(228,91,119,0.12)}

.nav-toggle{display:none; background:none; border:0; padding:8px; border-radius:8px;}
.nav-toggle:hover{background:rgba(228,91,119,0.12)}
.nav-toggle-bar{display:block; width:24px; height:2px; background:#F0DDE0; margin:5px 0}

/* Hero */
.hero{position:relative; padding:96px 0 88px; overflow:hidden}
.hero{min-height:100vh; display:grid; place-items:center}
.hero-inner{text-align:center; position:relative; z-index:1}
.eyebrow{font-size:12px; letter-spacing:2px; text-transform:uppercase; color:#F1C8CF}
.hero-title{font-size:48px; line-height:1.1; margin:10px 0 14px; font-weight:700}
.txt-glow{color:#fff; text-shadow:0 0 24px rgba(228,91,119,0.55), 0 0 48px rgba(185,68,71,0.35)}
.hero-subtitle{max-width:760px; margin:0 auto 28px; color:#EED8DB}
.hero-cta{display:flex; gap:14px; justify-content:center}

.hero-bg{position:absolute; inset:-30% -10% auto -10%; height:70%; z-index:0; background:radial-gradient(60% 60% at 50% 35%, rgba(228,91,119,0.25), rgba(217,81,99,0.16) 40%, rgba(36,22,22,0.0) 70%), linear-gradient(180deg, rgba(228,91,119,0.10), rgba(10,3,3,0)); filter:blur(18px)}
/* animated aurora */
.hero::before, .section::before{
	content:""; position:absolute; inset:-10% -20%; z-index:0; pointer-events:none;
	background:radial-gradient(40% 30% at 20% 30%, rgba(228,91,119,0.22) 0%, rgba(10,3,3,0) 70%), radial-gradient(35% 25% at 80% 60%, rgba(185,68,71,0.18) 0%, rgba(10,3,3,0) 70%);
	filter:blur(20px) saturate(120%);
	animation:drift 18s ease-in-out infinite alternate;
	opacity:0.9;
}
@keyframes drift{
	0%{transform:translate3d(0,0,0) rotate(0.2deg)}
	50%{transform:translate3d(2%, -2%,0) rotate(-0.6deg)}
	100%{transform:translate3d(-2%, 2%,0) rotate(0.4deg)}
}

/* Sections */
.section{position:relative; min-height:100vh; display:grid; place-items:center; padding:56px 0; background:linear-gradient(180deg, rgba(36,22,22,0.3), rgba(10,3,3,0.4)); overflow:hidden}
.section:nth-of-type(even){background:linear-gradient(180deg, rgba(10,3,3,0.5), rgba(36,22,22,0.35))}
.section h2{font-size:32px; margin:0 0 18px}
.section h3{margin:0 0 10px}

.grid-2{display:grid; grid-template-columns:1.1fr 0.9fr; gap:28px}
.cards-3{display:grid; grid-template-columns:repeat(3,1fr); gap:28px; align-items:stretch}

.card{background:linear-gradient(180deg, #161010, #120A0A); border:1px solid rgba(126,52,58,0.35); border-radius:var(--radius-2); padding:22px; box-shadow:var(--shadow-1)}
.gradient-depth{background:linear-gradient(160deg, rgba(185,68,71,0.14), rgba(10,3,3,0.6) 45%, rgba(126,52,58,0.18) 100%), radial-gradient(60% 80% at 0% 0%, rgba(228,91,119,0.2), rgba(10,3,3,0)); border:1px solid rgba(217,81,99,0.28)}
.hover-glow{transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease}
.hover-glow:hover{transform:translateY(-2px); box-shadow:var(--shadow-2); border-color:rgba(228,91,119,0.5)}

.bullets{margin:12px 0 0; padding:0 0 0 18px; color:#EED8DB}
.bullets li+li{margin-top:6px}

/* Projects tweaks */
.projects-grid .project-card{min-height:360px; display:flex; flex-direction:column}
.projects-grid .project-card h3{margin:0 0 12px}
.projects-grid .project-text{
	margin:12px 0 12px; color:#F1D9DD;
	display:-webkit-box; -webkit-box-orient:vertical; overflow:hidden;
	-webkit-line-clamp:4; line-clamp:4; /* equal text length */
}
.projects-grid .tags{margin:10px 0 18px; gap:10px}
.star-list{list-style:none; padding:0; margin:10px 0 12px; color:#EED8DB; display:flex; flex-direction:column; gap:6px}
.star-list li{position:relative; padding-left:18px}
.star-list li::before{content:"*"; position:absolute; left:0; top:0; color:#F3C2CA; font-weight:700}
.projects-grid .cta-row{margin-top:auto; display:flex; gap:12px; flex-wrap:wrap}

/* Vision extras */
.pills{display:flex; flex-wrap:wrap; gap:8px; list-style:none; padding:0; margin:14px 0 8px}
.pills li{font-size:12px; letter-spacing:.2px; color:#F7E9EB; background:rgba(228,91,119,0.10); border:1px solid rgba(228,91,119,0.30); padding:8px 12px; border-radius:999px; box-shadow:0 6px 18px rgba(228,91,119,0.12)}
.cta-row{margin-top:12px}

#vision .card{position:relative; overflow:hidden}
#vision .card::after{
	content:""; position:absolute; inset:-30%; z-index:-1;
	background:
		radial-gradient(35% 25% at 75% 25%, rgba(228,91,119,0.22), rgba(10,3,3,0) 70%),
		radial-gradient(30% 20% at 20% 80%, rgba(185,68,71,0.20), rgba(10,3,3,0) 70%);
	filter:blur(18px) saturate(120%);
	animation:drift 22s ease-in-out infinite alternate;
	opacity:.9;
}

/* Steps */
.process-intro{margin:10px 0 18px; padding:20px 22px}
.process-intro p{margin:0; max-width:90%; color:#F1D9DD; font-size:18px; line-height:1.6}
.process-intro .cta-row{margin-top:12px}
.section-subtitle{margin:4px 0 14px; color:#EED8DB}
.steps{display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:8px; position:relative}
.process-rail::before{
	content:""; position:absolute; left:calc(50% - 1px); top:-8px; bottom:-8px; width:2px;
	background:linear-gradient(180deg, rgba(228,91,119,0.0), rgba(228,91,119,0.35) 15%, rgba(185,68,71,0.35) 85%, rgba(228,91,119,0.0));
	filter:blur(.2px); opacity:.7; pointer-events:none;
}
.step{position:relative; background:linear-gradient(180deg, #120A0A, #0D0707); border:1px solid rgba(126,52,58,0.35); border-radius:var(--radius-1); padding:18px; transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease}
.step:hover{transform:translateY(-2px); box-shadow:var(--shadow-2); border-color:rgba(228,91,119,0.5)}
.step-head{display:flex; align-items:center; gap:10px; margin-bottom:8px}
.step-dot{width:10px; height:10px; border-radius:999px; background:radial-gradient(50% 50% at 50% 50%, var(--c-accent-2), var(--c-accent-1)); box-shadow:0 0 0 3px rgba(228,91,119,0.18), 0 0 22px rgba(228,91,119,0.35)}
.step-num{display:inline-flex; align-items:center; justify-content:center; min-width:44px; height:28px; font-family:"JetBrains Mono",monospace; font-weight:600; color:#F3C2CA; background:rgba(217,81,99,0.12); border:1px solid rgba(217,81,99,0.35); padding:0 8px; border-radius:8px}
.steps .step:nth-child(1){transform:translateY(-4px)}
.steps .step:nth-child(2){transform:translateY(4px)}
.steps .step:nth-child(3){transform:translateY(-6px)}
.steps .step:nth-child(4){transform:translateY(6px)}
.steps .step:nth-child(5){transform:translateY(-8px)}
.steps .step:nth-child(6){transform:translateY(8px)}

/* Tags */
.tags{display:flex; flex-wrap:wrap; gap:8px; list-style:none; margin:12px 0 0; padding:0}
.tags li{font-size:12px; color:#F2CED3; background:rgba(228,91,119,0.10); border:1px solid rgba(228,91,119,0.30); padding:6px 10px; border-radius:999px}

/* Buttons */
.btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; height:44px; padding:0 16px; border-radius:12px; border:1px solid transparent; text-decoration:none; font-weight:600; cursor:pointer}
.btn-primary{color:#0B0606; background:linear-gradient(180deg, var(--c-accent-2), var(--c-accent-1)); border-color:rgba(217,81,99,0.6); box-shadow:0 10px 30px rgba(217,81,99,0.32)}
.btn-primary:hover{filter:brightness(1.05)}
.btn-ghost{color:#F4DEE1; border-color:rgba(228,91,119,0.35); background:rgba(126,52,58,0.12)}
.btn-ghost:hover{background:rgba(126,52,58,0.18)}

/* Contact form */
.contact .grid-2{align-items:start}
.contact-form{background:linear-gradient(160deg, rgba(185,68,71,0.12), rgba(10,3,3,0.7)), #0A0303}
.form-row{display:flex; flex-direction:column; gap:6px; margin-bottom:14px}
label{font-size:14px; color:#F2D4D8}
input, textarea{color:#F7E9EB; background:#120A0A; border:1px solid rgba(126,52,58,0.45); border-radius:10px; padding:12px 12px; outline:none; transition:border-color .15s ease, box-shadow .15s ease}
input:focus, textarea:focus{border-color:rgba(228,91,119,0.75); box-shadow:0 0 0 3px rgba(228,91,119,0.22)}
.field-hint{min-height:16px; font-size:12px; color:#F4B5BF}
.form-note{margin-top:8px; font-size:12px; color:#EED8DB}
.form-toast{margin-top:10px; font-size:14px}
.contact-info{margin-top:14px; padding:18px}
.contact-info .info-row{display:grid; grid-template-columns:108px 1fr; gap:10px; align-items:start; padding:8px 0; border-bottom:1px dashed rgba(228,91,119,0.22)}
.contact-info .info-row:last-child{border-bottom:0}
.info-label{font-size:12px; color:#F1C8CF; text-transform:uppercase; letter-spacing:1px}
.info-value{color:#F7E9EB}
.info-link{color:#F7E9EB; text-decoration:none; border-bottom:1px dashed rgba(228,91,119,0.35)}
.info-link:hover{color:#fff; border-bottom-color:rgba(228,91,119,0.55)}

/* Footer (Kostrel-inspired layout) */
.site-footer{
	padding:32px 0;
	border-top:1px solid rgba(126,52,58,0.45);
	background:linear-gradient(180deg, rgba(10,3,3,0.85), rgba(10,3,3,0.98));
}
.footer-inner{
	display:grid;
	grid-template-columns:minmax(0,0.55fr) minmax(0,1.45fr);
	gap:24px;
	align-items:start;
	color:#EED8DB;
	font-size:14px;
	letter-spacing:.03em;
}
.footer-brand-block{
	display:grid;
	gap:10px;
	max-width:340px;
}
.footer-brand{
	display:inline-flex;
	align-items:center;
	gap:12px;
	color:#fff;
	text-decoration:none;
	font-weight:600;
	letter-spacing:.04em;
}
.footer-brand:hover,
.footer-brand:focus-visible{
	color:var(--c-accent-2);
}
.footer-brand-text{display:grid; gap:4px}
.footer-brand-name{font-size:18px; font-weight:700; letter-spacing:.08em; text-transform:uppercase}
.footer-brand-tag{font-size:11px; color:#F1C8CF; letter-spacing:.16em; text-transform:uppercase}
.footer-desc{
	margin:0;
	color:#EED8DB;
	opacity:.9;
	line-height:1.6;
	max-width:320px;
}
.footer-social-link{
	display:inline-flex;
	align-items:center;
	gap:8px;
	padding:8px 12px;
	border-radius:10px;
	border:1px solid rgba(217,81,99,0.45);
	background:rgba(18,10,10,0.9);
	color:#F5E2E5;
	text-decoration:none;
	font-weight:600;
	letter-spacing:.08em;
	text-transform:uppercase;
	transition:border-color .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.footer-social-link:hover,
.footer-social-link:focus-visible{
	border-color:rgba(228,91,119,0.8);
	color:#fff;
	transform:translateY(-2px);
	box-shadow:0 14px 28px rgba(228,91,119,0.35);
}
.x-icon{width:18px; height:18px}
.footer-social-label{font-size:12px}
.footer-grid{
	display:grid;
	grid-template-columns:repeat(3,minmax(0,1fr));
	gap:24px;
}
.footer-col{display:grid; gap:10px}
.footer-col h4{
	margin:0;
	font-size:12px;
	color:#F1C8CF;
	letter-spacing:.16em;
	text-transform:uppercase;
}
.footer-links{
	list-style:none;
	padding:0;
	margin:0;
	display:grid;
	gap:8px;
}
.footer-links a{
	color:rgba(245,221,225,0.9);
	text-decoration:none;
	font-weight:500;
	letter-spacing:.06em;
	font-size:14px;
	transition:color .25s ease, transform .25s ease;
}
.footer-links a:hover,
.footer-links a:focus-visible{
	color:var(--c-accent-2);
	transform:translateX(4px);
}
.copyright{
	grid-column:1 / -1;
	margin-top:8px;
	font-size:12px;
	text-align:center;
	color:#D8B9BE;
	letter-spacing:.12em;
	text-transform:uppercase;
}

@media (max-width: 960px){
	.footer-inner{
		grid-template-columns:1fr;
		text-align:center;
	}
	.footer-brand-block{
		max-width:none;
		justify-items:center;
	}
	.footer-desc{max-width:100%}
	.footer-grid{
		grid-template-columns:repeat(2,minmax(0,1fr));
	}
	.footer-social-link{
		justify-content:center;
	}
}

@media (max-width: 600px){
	.footer-grid{
		grid-template-columns:1fr;
	}
}

/* Layout helpers */
.list-columns{display:grid; grid-template-columns:1fr 1fr; gap:18px}

/* per-section glow variations */
.section:nth-of-type(2)::before{background:radial-gradient(40% 30% at 20% 30%, rgba(228,91,119,0.25), rgba(10,3,3,0) 70%), radial-gradient(35% 25% at 80% 60%, rgba(126,52,58,0.22), rgba(10,3,3,0) 70%)}
.section:nth-of-type(3)::before{background:radial-gradient(45% 35% at 75% 25%, rgba(185,68,71,0.26), rgba(10,3,3,0) 70%), radial-gradient(35% 25% at 20% 70%, rgba(228,91,119,0.20), rgba(10,3,3,0) 70%)}
.section:nth-of-type(4)::before{background:radial-gradient(45% 35% at 25% 25%, rgba(228,91,119,0.22), rgba(10,3,3,0) 70%), radial-gradient(35% 25% at 80% 70%, rgba(185,68,71,0.24), rgba(10,3,3,0) 70%)}
.section:nth-of-type(5)::before{background:radial-gradient(45% 35% at 70% 30%, rgba(126,52,58,0.26), rgba(10,3,3,0) 70%), radial-gradient(35% 25% at 20% 70%, rgba(228,91,119,0.20), rgba(10,3,3,0) 70%)}
.section:nth-of-type(6)::before{background:radial-gradient(45% 35% at 20% 30%, rgba(185,68,71,0.24), rgba(10,3,3,0) 70%), radial-gradient(35% 25% at 85% 60%, rgba(228,91,119,0.22), rgba(10,3,3,0) 70%)}
.contact::before{background:radial-gradient(45% 35% at 50% 10%, rgba(228,91,119,0.28), rgba(10,3,3,0) 70%), radial-gradient(35% 25% at 50% 80%, rgba(185,68,71,0.24), rgba(10,3,3,0) 70%)}

/* Technology extras */
.tech-pills{display:flex; gap:8px; flex-wrap:wrap; list-style:none; padding:0; margin:10px 0 12px}
.tech-pills li{font-size:12px; color:#F2D4D8; background:rgba(228,91,119,0.10); border:1px solid rgba(228,91,119,0.30); padding:8px 12px; border-radius:999px}
.tech-matrix{display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin:12px 0 10px}
.stat{background:linear-gradient(180deg, #130B0B, #0E0808); border:1px solid rgba(126,52,58,0.4); border-radius:12px; padding:12px}
.stat-num{font-weight:700; color:#fff}
.stat-label{font-size:12px; color:#EED8DB}
.tech-card{position:relative}
.tech-card .snippet{margin:12px 0 0; padding:12px 14px; background:#0E0707; border:1px solid rgba(126,52,58,0.4); border-radius:10px; color:#F2D4D8; overflow:auto}
.tech-card .snippet code{font-family:\"JetBrains Mono\",monospace; font-size:12px; line-height:1.5; color:#F5E6E8}

/* Responsive */
@media (max-width: 960px){
	.grid-2{grid-template-columns:1fr}
	.cards-3{grid-template-columns:1fr 1fr}
	.steps{grid-template-columns:1fr 1fr}
}
@media (max-width: 680px){
	.hero{padding:84px 0 72px}
	.hero-title{font-size:36px}
	.cards-3{grid-template-columns:1fr}
	.steps{grid-template-columns:1fr}
	.site-nav{position:fixed; inset:56px 16px auto 16px; background:#0A0303; border:1px solid rgba(126,52,58,0.45); border-radius:12px; padding:12px; transform:translateY(-20px); opacity:0; pointer-events:none; transition:opacity .2s ease, transform .2s ease}
	.site-nav.open{opacity:1; transform:translateY(0); pointer-events:auto}
	.site-nav ul{flex-direction:column; gap:6px}
	.nav-toggle{display:inline-flex}
}
