/* =========================================================
   Spiral Games - main.css
   ========================================================= */

:root{
	--maxw: 1120px;

	--bg: #ffffff;
	--panel: #f7f7f8;
	--fg: #111111;
	--muted: #6b7280;
	--border: rgba(0,0,0,.10);

	/* Personal color: Red */
	--accent: #e11d2e;			/* 메인 빨강 */
	--accent-2: #b3121f;		/* 진한 빨강 */
	--accent-soft: rgba(225,29,46,.12);

	--radius: 18px;
	--shadow: 0 12px 30px rgba(0,0,0,.10);

	--header-h: 72px;
	--section-pad: 72px;

	--ease: cubic-bezier(.2,.8,.2,1);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
	margin: 0;
	font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Noto Sans KR", Arial, sans-serif;
	color: var(--fg);
	background: var(--bg);
	line-height: 1.6;
}

img{
	max-width: 100%;
	display: block;
}

a{ color: inherit; text-decoration: none; }
button, input, textarea{ font: inherit; }
p{ margin: 0; }
ul{ margin: 0; padding-left: 1.1em; }

.container{
	width: min(var(--maxw), calc(100% - 40px));
	margin: 0 auto;
}

/* 접근성 */
.skip{
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.skip:focus{
	left: 16px;
	top: 16px;
	width: auto;
	height: auto;
	padding: 10px 12px;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 10px;
	z-index: 9999;
}
.sr{
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Header */
.header{
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(255,255,255,.85);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border);
}
.header-inner{
	height: var(--header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.brand{
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 200px;
}
.brand-mark{
	width: 34px;
	height: 34px;
	border-radius: 12px;
	background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.28), rgba(255,255,255,0)) , var(--accent);
	box-shadow: 0 10px 24px rgba(225,29,46,.22);
	position: relative;
}
.brand-mark::after{
	content: "";
	position: absolute;
	inset: 9px;
	border-radius: 10px;
	border: 2px solid rgba(255,255,255,.9);
	opacity: .9;
}
.brand-text{
	display: grid;
	line-height: 1.1;
}
.brand-text strong{
	font-size: 14px;
	letter-spacing: -0.02em;
}
.brand-text em{
	font-style: normal;
	font-size: 12px;
	color: var(--muted);
}

.nav{
	display: flex;
	align-items: center;
	gap: 18px;
}
.nav a{
	font-size: 14px;
	color: #1f2937;
	padding: 10px 10px;
	border-radius: 12px;
	transition: background .2s var(--ease), color .2s var(--ease);
}
.nav a:hover{
	background: var(--accent-soft);
	color: var(--accent-2);
}

/* Mobile nav */
.nav-toggle{
	display: none;
	width: 44px;
	height: 44px;
	border: 1px solid var(--border);
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 8px 18px rgba(0,0,0,.06);
}
.nav-toggle span{
	display: block;
	width: 18px;
	height: 2px;
	background: #111;
	margin: 4px auto;
	border-radius: 2px;
}

/* Hero */
.hero{
	position: relative;
	background: #0b0b0d;
	color: #fff;
}
.hero-slider{
	position: relative;
	overflow: hidden;
}
.hero-track{
	position: relative;
}
.hero-slide{
	position: absolute;
	inset: 0;
	opacity: 0;
	transform: scale(1.02);
	transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.hero-slide.is-active{
	position: relative;
	opacity: 1;
	transform: scale(1);
}
.hero-slide img{
	width: 100%;
	height: clamp(520px, 62vh, 720px);
	object-fit: cover;
	filter: saturate(1.05) contrast(1.05);
}

.hero-overlay{
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.32) 55%, rgba(0,0,0,.18) 100%),
		linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.55) 100%);
	display: grid;
	align-items: center;
}

.hero-content{
	padding: 28px 0 96px 0;
	max-width: 720px;
}
.hero-kicker{
	display: inline-block;
	font-size: 12px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: rgba(255,255,255,.78);
	padding: 8px 10px;
	border-radius: 999px;
	background: rgba(255,255,255,.10);
	border: 1px solid rgba(255,255,255,.12);
	margin-bottom: 14px;
}
.hero-title{
	margin: 0 0 10px 0;
	font-size: clamp(30px, 3.6vw, 52px);
	letter-spacing: -0.03em;
	line-height: 1.08;
}
.hero-sub{
	color: rgba(255,255,255,.85);
	font-size: 15px;
}
.hero-cta{
	margin-top: 18px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.hero-controls{
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 16px 0 18px;
	background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 100%);
}
.hero-controls-inner{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.hero-right{
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.icon-btn{
	width: 44px;
	height: 44px;
	border-radius: 16px;
	border: 1px solid rgba(255,255,255,.20);
	background: rgba(255,255,255,.08);
	color: #fff;
	cursor: pointer;
	transition: transform .15s var(--ease), background .2s var(--ease);
	position: relative;
}
.icon-btn:hover{
	background: rgba(255,255,255,.14);
	transform: translateY(-1px);
}
.icon-btn[data-prev]::before,
.icon-btn[data-next]::before{
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 10px;
	height: 10px;
	border-right: 2px solid rgba(255,255,255,.9);
	border-bottom: 2px solid rgba(255,255,255,.9);
	transform: rotate(135deg);
	top: 15px;
	left: 17px;
}
.icon-btn[data-next]::before{
	transform: rotate(-45deg);
	left: 15px;
}

.dots{
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.dot{
	width: 10px;
	height: 10px;
	border-radius: 999px;
	border: 1px solid rgba(255,255,255,.35);
	background: rgba(255,255,255,.20);
	cursor: pointer;
	transition: transform .15s var(--ease), background .2s var(--ease), width .2s var(--ease);
}
.dot.is-active{
	background: var(--accent);
	border-color: rgba(255,255,255,.50);
	width: 26px;
}

.pill{
	border-radius: 999px;
	border: 1px solid rgba(255,255,255,.20);
	background: rgba(255,255,255,.08);
	color: rgba(255,255,255,.92);
	padding: 10px 12px;
	cursor: pointer;
	transition: background .2s var(--ease), transform .15s var(--ease);
}
.pill:hover{
	background: rgba(255,255,255,.14);
	transform: translateY(-1px);
}

/* Sections */
.section{
	padding: var(--section-pad) 0;
	background: var(--bg);
}
.section:nth-of-type(even){
	background: #fff;
}
.section-head{
	display: grid;
	gap: 10px;
	margin-bottom: 22px;
}
.section-head h2{
	margin: 0;
	font-size: clamp(22px, 2.1vw, 32px);
	letter-spacing: -0.03em;
}
.section-head p{
	color: var(--muted);
	max-width: 820px;
}

/* Grid */
.grid{
	display: grid;
	gap: 16px;
}
.grid.two{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three{ grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card{
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: 0 10px 26px rgba(0,0,0,.06);
	overflow: hidden;
	display: grid;
	grid-template-rows: auto 1fr;
}
.card.equal{
	min-height: 420px; /* 섹션 내부 카드 높이 균일 */
}
.card-media{
	background: #111;
}
.card-media img{
	width: 100%;
	height: 220px;
	object-fit: cover;
}
.card-body{
	padding: 18px 18px 20px;
	display: grid;
	gap: 12px;
	align-content: start;
}
.card-body h3{
	margin: 0;
	font-size: 18px;
	letter-spacing: -0.02em;
}
.muted{ color: var(--muted); }

.list{
	color: #1f2937;
}
.list li{ margin: 6px 0; }

.pill-grid{
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.chip{
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 10px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--border);
	font-size: 13px;
}
.metrics{
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}
.metric{
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 12px;
	display: grid;
	gap: 4px;
}
.metric strong{
	color: var(--accent-2);
	font-size: 13px;
	letter-spacing: .06em;
}
.metric span{
	font-size: 13px;
	color: #1f2937;
}

.meta{
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 6px;
}
.meta li{
	font-size: 13px;
	color: #1f2937;
}
.meta strong{
	color: var(--accent-2);
	margin-right: 6px;
}

.note{
	margin-top: 16px;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border);
	box-shadow: 0 10px 24px rgba(0,0,0,.06);
}
.note img{
	width: 100%;
	height: 240px;
	object-fit: cover;
}

/* Buttons */
.btn{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-radius: 14px;
	padding: 12px 14px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
	user-select: none;
}
.btn:active{ transform: translateY(0); }
.btn.primary{
	background: var(--accent);
	color: #fff;
	box-shadow: 0 12px 26px rgba(225,29,46,.24);
}
.btn.primary:hover{ background: var(--accent-2); transform: translateY(-1px); }
.btn.ghost{
	background: rgba(255,255,255,.08);
	color: #fff;
	border-color: rgba(255,255,255,.18);
}
.btn.ghost:hover{
	background: rgba(255,255,255,.14);
	transform: translateY(-1px);
}

/* Contact form */
.form{
	display: grid;
	gap: 12px;
}
.field{
	display: grid;
	gap: 6px;
}
.field span{
	font-size: 13px;
	color: #1f2937;
}
.field input,
.field textarea{
	width: 100%;
	border-radius: 14px;
	border: 1px solid var(--border);
	padding: 12px 12px;
	background: #fff;
	outline: none;
}
.field input:focus,
.field textarea:focus{
	border-color: rgba(225,29,46,.45);
	box-shadow: 0 0 0 4px rgba(225,29,46,.12);
}
.form-actions{
	display: grid;
	gap: 8px;
	align-items: start;
}
.hint{
	min-height: 18px;
	color: var(--muted);
	font-size: 13px;
}
.callout{
	border-radius: 14px;
	border: 1px solid rgba(225,29,46,.25);
	background: rgba(225,29,46,.08);
	padding: 12px;
	display: grid;
	gap: 6px;
}

/* To top */
.to-top{
	position: fixed;
	right: 18px;
	bottom: 18px;
	width: 48px;
	height: 48px;
	border-radius: 16px;
	border: 1px solid var(--border);
	background: #fff;
	box-shadow: 0 14px 28px rgba(0,0,0,.12);
	cursor: pointer;
	display: grid;
	place-items: center;
	opacity: 0;
	transform: translateY(10px);
	pointer-events: none;
	transition: opacity .2s var(--ease), transform .2s var(--ease), background .2s var(--ease);
}
.to-top:hover{
	background: var(--accent-soft);
}
.to-top.is-visible{
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}
.to-top span{
	font-size: 18px;
	color: #111;
}

/* Footer */
.footer{
	border-top: 1px solid var(--border);
	background: #fff;
}
.footer-inner{
	padding: 26px 0 20px;
	display: grid;
	gap: 14px;
}
.biz p{ margin: 0; }
.copyright{
	margin-top: 4px;
	text-align: center;
	color: var(--muted);
	font-size: 13px;
}

/* Responsive */
@media (max-width: 980px){
	.grid.three{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.card.equal{ min-height: 400px; }
}
@media (max-width: 760px){
	.nav-toggle{ display: inline-block; }
	.nav{
		position: fixed;
		left: 16px;
		right: 16px;
		top: calc(var(--header-h) + 10px);
		background: #fff;
		border: 1px solid var(--border);
		border-radius: 18px;
		padding: 12px;
		box-shadow: 0 18px 40px rgba(0,0,0,.14);
		display: none;
		flex-direction: column;
		gap: 6px;
	}
	.nav.is-open{ display: flex; }
	.nav a{ padding: 12px 12px; }

	.grid.two,
	.grid.three{ grid-template-columns: 1fr; }

	.hero-content{ padding: 20px 0 92px 0; }
	.hero-slide img{ height: clamp(520px, 68vh, 740px); }
	.hero-controls-inner{ gap: 10px; }
}

@media (prefers-reduced-motion: reduce){
	.hero-slide,
	.icon-btn,
	.btn,
	.to-top,
	.dot{
		transition: none !important;
	}
}