/* =========================================================
   Magic Bean Games - main.css
   ========================================================= */

/* Design tokens */
:root{
	--maxw: 1120px;

	--bg: #f5ffea;           /* 단색 배경(연두 계열) */
	--surface: #ffffff;
	--ink: #0e1210;
	--muted: rgba(14,18,16,.70);
	--border: rgba(14,18,16,.12);

	--lime: #b7ff3c;         /* 퍼스널 컬러 */
	--lime-2: #e2ffb4;
	--dark: #0a140a;

	--radius: 18px;
	--pad: 24px;

	--shadow: 0 10px 30px rgba(0,0,0,.08);
	--shadow-soft: 0 6px 18px rgba(0,0,0,.06);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
	margin: 0;
	font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
	color: var(--ink);
	background: var(--bg);
	line-height: 1.55;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }

.wrap{
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 20px;
}

/* Skip link */
.skip{
	position: absolute;
	left: -9999px;
	top: 12px;
	padding: 10px 14px;
	border-radius: 10px;
	background: var(--dark);
	color: white;
	z-index: 9999;
}
.skip:focus{ left: 12px; }

/* Header */
.site-header{
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(245,255,234,.78);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border);
}
.header-inner{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 66px;
}

.brand{
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 900;
	letter-spacing: -.02em;
}
.brand-mark{
	border-radius: 8px;
	box-shadow: var(--shadow-soft);
}
.brand-name{ font-size: 16px; }

.nav{
	display: flex;
	align-items: center;
	gap: 18px;
	font-size: 14px;
	color: rgba(14,18,16,.82);
}
.nav a{
	padding: 10px 10px;
	border-radius: 12px;
}
.nav a:hover{
	background: rgba(183,255,60,.25);
}

.nav-toggle{
	display: none;
	width: 44px;
	height: 44px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: var(--surface);
	box-shadow: var(--shadow-soft);
	cursor: pointer;
}
.nav-toggle span{
	display: block;
	height: 2px;
	margin: 7px 10px;
	background: var(--ink);
	opacity: .8;
}

/* Buttons */
.btn{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 16px;
	border-radius: 14px;
	border: 1px solid var(--border);
	font-weight: 800;
	letter-spacing: -.01em;
	box-shadow: var(--shadow-soft);
}
.btn.primary{
	background: var(--dark);
	color: white;
	border-color: rgba(255,255,255,.08);
}
.btn.primary:hover{ transform: translateY(-1px); }
.btn.ghost{
	background: var(--surface);
}
.btn.ghost:hover{
	background: rgba(183,255,60,.18);
}

/* Hero */
.hero{
	padding: 30px 0 10px;
}
.hero-grid{
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: 22px;
	align-items: stretch;
}
.hero-copy{
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: calc(var(--radius) + 6px);
	padding: 26px;
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 520px;
}
.kicker{
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 900;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: rgba(14,18,16,.62);
	margin: 0 0 8px;
}
.kicker::before{
	content: "";
	width: 12px;
	height: 12px;
	border-radius: 4px;
	background: var(--lime);
	box-shadow: 0 0 0 6px rgba(183,255,60,.25);
}
.hero h1{
	margin: 0 0 10px;
	font-size: clamp(30px, 3.5vw, 44px);
	line-height: 1.12;
	letter-spacing: -.03em;
}
.lead{
	margin: 0 0 18px;
	color: var(--muted);
	font-size: 15px;
}
.hero-ctas{
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin: 8px 0 16px;
}
.hero-stats{
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}
.stat{
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 14px 14px;
	background: rgba(183,255,60,.10);
}
.stat .num{
	font-weight: 950;
	letter-spacing: -.02em;
}
.stat .lab{
	font-size: 13px;
	color: rgba(14,18,16,.70);
	margin-top: 4px;
}

/* Carousel */
.hero-media{
	border-radius: calc(var(--radius) + 6px);
	overflow: hidden;
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
	background: var(--surface);
}
.carousel{
	height: 100%;
	display: flex;
	flex-direction: column;
}
.carousel-track{
	position: relative;
	flex: 1;
	min-height: 520px;
}
.slide{
	position: absolute;
	inset: 0;
	opacity: 0;
	transform: scale(1.02);
	transition: opacity .45s ease, transform .45s ease;
}
.slide.is-active{
	opacity: 1;
	transform: scale(1);
}
.slide img{
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.carousel-ui{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 12px;
	border-top: 1px solid var(--border);
	background: rgba(255,255,255,.92);
}
.cbtn{
	width: 44px;
	height: 40px;
	border-radius: 14px;
	border: 1px solid var(--border);
	background: var(--surface);
	font-size: 22px;
	font-weight: 900;
	cursor: pointer;
	box-shadow: var(--shadow-soft);
}
.cbtn:hover{
	background: rgba(183,255,60,.18);
}
.dots{ display: inline-flex; gap: 8px; }
.dot{
	width: 10px;
	height: 10px;
	border-radius: 999px;
	border: 1px solid rgba(14,18,16,.20);
	background: rgba(14,18,16,.10);
	cursor: pointer;
}
.dot.is-active{
	background: var(--lime);
	border-color: rgba(14,18,16,.16);
}

/* Sections */
.section{
	padding: 56px 0;
}
.section.alt{
	background: rgba(255,255,255,.55);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}
.section-head{
	display: grid;
	gap: 8px;
	margin-bottom: 18px;
}
.section-head h2{
	margin: 0;
	font-size: clamp(22px, 2.2vw, 30px);
	letter-spacing: -.03em;
}
.section-head p{
	margin: 0;
	color: var(--muted);
	max-width: 62ch;
}

.cards{
	display: grid;
	gap: 14px;
}
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }

/* equal height cards */
.equal > .card{ height: 100%; }

.card{
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-soft);
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.card h3{
	margin: 0;
	font-size: 18px;
	letter-spacing: -.02em;
}
.card p{
	margin: 0;
	color: var(--muted);
	font-size: 14px;
}
.bullets{
	margin: 6px 0 0;
	padding-left: 18px;
	color: rgba(14,18,16,.80);
}
.bullets li{ margin: 6px 0; }

.card.media{
	padding: 0;
	overflow: hidden;
}
.card.media img{
	width: 100%;
	height: 220px;
	object-fit: cover;
}
.card-body{
	padding: 16px 18px 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}
.chips{
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: auto;
}
.chips span{
	display: inline-flex;
	align-items: center;
	padding: 7px 10px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: rgba(183,255,60,.14);
	font-size: 12px;
	font-weight: 800;
}

.card.feature .icon{
	width: 44px;
	height: 44px;
	border-radius: 16px;
	background: rgba(183,255,60,.22);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 950;
}

/* Split */
.split{
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	align-items: stretch;
}
.panel{
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-soft);
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.panel.media{
	padding: 0;
	overflow: hidden;
}
.panel.media img{
	width: 100%;
	height: 100%;
	min-height: 340px;
	object-fit: cover;
}
.panel-note{
	padding: 14px 18px 18px;
	border-top: 1px solid var(--border);
	background: rgba(255,255,255,.92);
}
.panel-note p{
	margin: 0;
	color: rgba(14,18,16,.78);
}
.steps{
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 10px;
}
.steps li{
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 12px 12px;
	background: rgba(183,255,60,.10);
	display: grid;
	gap: 6px;
}
.steps b{ letter-spacing: -.02em; }
.steps span{ color: rgba(14,18,16,.76); font-size: 13px; }

/* Footer */
.site-footer{
	padding: 34px 0 18px;
	background: rgba(10,20,10,.96);
	color: rgba(245,247,246,.92);
}
.footer-grid{
	display: grid;
	grid-template-columns: 1.2fr .8fr;
	gap: 16px;
	align-items: start;
}
.footer-title{
	font-weight: 950;
	letter-spacing: -.02em;
	margin-bottom: 6px;
}
.footer-meta{
	display: grid;
	gap: 6px;
	color: rgba(245,247,246,.82);
	font-size: 13px;
}
.footer-meta span{ display: inline-block; }

.footer-links{
	display: grid;
	gap: 10px;
	justify-items: end;
	align-content: start;
}
.footer-links a{
	padding: 8px 10px;
	border-radius: 12px;
	background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.10);
}
.footer-links a:hover{
	background: rgba(183,255,60,.18);
	border-color: rgba(183,255,60,.26);
}

.copyright{
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid rgba(255,255,255,.12);
	text-align: center;
	color: rgba(245,247,246,.78);
	font-size: 12.5px;
}

/* To top */
.to-top{
	position: fixed;
	right: 18px;
	bottom: 18px;
	width: 48px;
	height: 48px;
	border-radius: 18px;
	border: 1px solid rgba(14,18,16,.12);
	background: rgba(255,255,255,.92);
	box-shadow: var(--shadow);
	cursor: pointer;
	display: grid;
	place-items: center;
	opacity: 0;
	pointer-events: none;
	transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease;
}
.to-top span{
	font-size: 18px;
	font-weight: 950;
}
.to-top.is-show{
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}
.to-top:hover{
	background: rgba(183,255,60,.20);
}

/* Responsive */
@media (max-width: 980px){
	.hero-grid{ grid-template-columns: 1fr; }
	.hero-copy{ min-height: auto; }
	.carousel-track{ min-height: 320px; }
	.grid-3{ grid-template-columns: 1fr; }
	.grid-2{ grid-template-columns: 1fr; }
	.split{ grid-template-columns: 1fr; }
	.footer-grid{ grid-template-columns: 1fr; }
	.footer-links{ justify-items: start; }
	.nav{
		position: fixed;
		left: 18px;
		right: 18px;
		top: 76px;
		background: var(--surface);
		border: 1px solid var(--border);
		border-radius: 18px;
		padding: 12px;
		box-shadow: var(--shadow);
		display: none;
		flex-direction: column;
		gap: 6px;
	}
	.nav a{ padding: 12px 12px; }
	.nav.is-open{ display: flex; }
	.nav-toggle{ display: inline-block; }
}