/* =========================================================
   Carrot Games - Main Styles
   ========================================================= */

:root{
	--maxw: 1120px;

	/* Theme */
	--bg: #0f0f12;
	--surface: rgba(255,255,255,.06);
	--surface2: rgba(255,255,255,.10);
	--border: rgba(255,255,255,.14);

	--fg: #f4f4f6;
	--muted: rgba(244,244,246,.72);

	/* Carrot Orange */
	--carrot: #ff7a18;
	--carrot2: #ff9a44;

	--radius: 18px;
	--radius2: 24px;

	--shadow: 0 16px 44px rgba(0,0,0,.36);
	--shadow2: 0 10px 26px rgba(0,0,0,.28);

	--header-h: 72px;
}

*{ 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", Arial, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
	background: radial-gradient(1200px 800px at 20% 0%, rgba(255,122,24,.14), transparent 60%),
				radial-gradient(900px 700px at 90% 10%, rgba(255,154,68,.10), transparent 60%),
				var(--bg);
	color: var(--fg);
	line-height: 1.55;
}

img{
	max-width: 100%;
	display: block;
}

a{
	color: inherit;
	text-decoration: none;
}

.container{
	width: 100%;
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 18px;
}

/* Accessibility */
.skip-link{
	position: absolute;
	left: -999px;
	top: 8px;
	background: #ffffff;
	color: #111111;
	padding: 10px 12px;
	border-radius: 10px;
	z-index: 9999;
}
.skip-link:focus{
	left: 12px;
}

/* =========================================================
   Header
   ========================================================= */
.site-header{
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(15,15,18,.72);
	backdrop-filter: blur(12px);
	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: flex;
	align-items: center;
	gap: 12px;
	min-width: 220px;
}

.brand-mark{
	width: 40px;
	height: 40px;
	border-radius: 14px;
	background:
		radial-gradient(16px 16px at 30% 30%, rgba(255,255,255,.36), transparent 60%),
		linear-gradient(135deg, var(--carrot), var(--carrot2));
	box-shadow: 0 12px 24px rgba(255,122,24,.20);
}

.brand-text{
	display: grid;
	gap: 2px;
}
.brand-name{
	font-weight: 800;
	letter-spacing: -0.02em;
}
.brand-sub{
	font-size: 12px;
	color: var(--muted);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.gnb{
	display: flex;
	gap: 18px;
	align-items: center;
}
.gnb a{
	font-size: 14px;
	color: rgba(244,244,246,.86);
	padding: 10px 10px;
	border-radius: 12px;
	transition: background .15s ease, color .15s ease;
}
.gnb a:hover{
	background: rgba(255,255,255,.06);
	color: #fff;
}

.nav-toggle{
	display: none;
	width: 44px;
	height: 44px;
	border-radius: 14px;
	border: 1px solid var(--border);
	background: rgba(255,255,255,.04);
	color: var(--fg);
	cursor: pointer;
}
.nav-toggle-line{
	display: block;
	width: 18px;
	height: 2px;
	background: rgba(244,244,246,.92);
	margin: 4px auto;
	border-radius: 999px;
}

.mobile-menu{
	border-top: 1px solid var(--border);
	background: rgba(15,15,18,.86);
}
.mobile-nav{
	display: grid;
	padding: 10px 18px 16px 18px;
}
.mobile-nav a{
	padding: 12px 10px;
	border-radius: 14px;
	color: rgba(244,244,246,.90);
}
.mobile-nav a:hover{
	background: rgba(255,255,255,.06);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 14px;
	border-radius: 14px;
	border: 1px solid transparent;
	font-weight: 700;
	letter-spacing: -0.01em;
	cursor: pointer;
	transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
	white-space: nowrap;
}
.btn:active{
	transform: translateY(1px);
}

.btn.primary{
	background: linear-gradient(135deg, var(--carrot), var(--carrot2));
	color: #121215;
	box-shadow: 0 14px 28px rgba(255,122,24,.22);
}
.btn.primary:hover{
	box-shadow: 0 18px 36px rgba(255,122,24,.28);
}

.btn.ghost{
	background: rgba(255,255,255,.06);
	border-color: var(--border);
	color: rgba(244,244,246,.94);
}
.btn.ghost:hover{
	background: rgba(255,255,255,.10);
}

/* =========================================================
   Hero
   ========================================================= */
.hero{
	position: relative;
	padding: 0;
}
.hero-slider{
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid var(--border);
}
.hero-track{
	display: flex;
	width: 180%;
	transform: translateX(0%);
	transition: transform .55s ease;
}
.hero-slide{
	position: relative;
	min-width: 100%;
	height: clamp(520px, 68vh, 720px);
}
.hero-img{
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(1.06) contrast(1.02);
}

.hero-overlay{
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(15,15,18,.80), rgba(15,15,18,.30) 55%, rgba(15,15,18,.60)),
		linear-gradient(0deg, rgba(15,15,18,.70), rgba(15,15,18,.05) 55%, rgba(15,15,18,.35));
	display: flex;
	align-items: center;
}
.hero-content{
	padding-top: 10px;
	padding-bottom: 10px;
	max-width: 880px;
}
.hero-eyebrow{
	margin: 0 0 10px 0;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(244,244,246,.78);
	font-size: 12px;
}
.hero-title{
	margin: 0 0 12px 0;
	font-size: clamp(34px, 4.2vw, 54px);
	letter-spacing: -0.04em;
	line-height: 1.08;
}
.hero-desc{
	margin: 0 0 18px 0;
	color: rgba(244,244,246,.78);
	font-size: clamp(14px, 1.6vw, 18px);
}
.hero-cta{
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.hero-controls{
	position: absolute;
	left: 0;
	right: 0;
	bottom: 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	pointer-events: none;
}
.hero-controls *{
	pointer-events: auto;
}

.dots{
	display: inline-flex;
	gap: 8px;
	align-items: center;
	background: rgba(15,15,18,.55);
	border: 1px solid var(--border);
	padding: 8px 10px;
	border-radius: 999px;
	backdrop-filter: blur(10px);
}
.dot{
	width: 10px;
	height: 10px;
	border-radius: 999px;
	border: 1px solid rgba(255,255,255,.18);
	background: rgba(255,255,255,.18);
	cursor: pointer;
}
.dot.is-active{
	background: linear-gradient(135deg, var(--carrot), var(--carrot2));
	border-color: rgba(255,122,24,.35);
}

.arrows{
	display: inline-flex;
	gap: 8px;
	background: rgba(15,15,18,.55);
	border: 1px solid var(--border);
	padding: 6px;
	border-radius: 999px;
	backdrop-filter: blur(10px);
}
.icon-btn{
	width: 40px;
	height: 40px;
	border-radius: 999px;
	border: 1px solid rgba(255,255,255,.12);
	background: rgba(255,255,255,.06);
	color: rgba(244,244,246,.92);
	cursor: pointer;
	font-size: 22px;
	line-height: 1;
	display: grid;
	place-items: center;
}
.icon-btn:hover{
	background: rgba(255,255,255,.10);
}

.hero-progress{
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: rgba(255,255,255,.08);
}
.hero-progress-bar{
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, var(--carrot), var(--carrot2));
}

/* =========================================================
   Sections
   ========================================================= */
.section{
	padding: 72px 0;
}
.section.alt{
	background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
	border-top: 1px solid rgba(255,255,255,.06);
	border-bottom: 1px solid rgba(255,255,255,.06);
}

.section-head{
	display: grid;
	gap: 10px;
	margin-bottom: 24px;
}
.section-title{
	margin: 0;
	font-size: 28px;
	letter-spacing: -0.03em;
}
.section-desc{
	margin: 0;
	color: var(--muted);
	max-width: 860px;
}

/* Cards Grid */
.grid{
	display: grid;
	gap: 14px;
}
.grid.cards{
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card{
	border-radius: var(--radius2);
	border: 1px solid var(--border);
	background: rgba(255,255,255,.04);
	box-shadow: var(--shadow2);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	min-height: 100%;
}
.card-media{
	aspect-ratio: 16 / 9;
	background: rgba(255,255,255,.04);
	border-bottom: 1px solid rgba(255,255,255,.08);
}
.card-media img{
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.card-body{
	padding: 18px 18px 18px 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}
.card-title{
	margin: 0;
	font-size: 18px;
	letter-spacing: -0.02em;
}
.card-text{
	margin: 0;
	color: rgba(244,244,246,.78);
}
.card-list{
	margin: 0;
	padding-left: 18px;
	color: rgba(244,244,246,.78);
}
.card-list li{
	margin: 6px 0;
}

.label{
	display: inline-block;
	min-width: 60px;
	color: rgba(244,244,246,.60);
}
.link{
	color: rgba(244,244,246,.92);
	text-decoration: underline;
	text-decoration-color: rgba(255,122,24,.55);
	text-underline-offset: 4px;
}

/* CTA Panel */
.cta-panel{
	margin-top: 18px;
	border-radius: var(--radius2);
	border: 1px solid rgba(255,122,24,.28);
	background:
		radial-gradient(800px 260px at 20% 10%, rgba(255,122,24,.18), transparent 60%),
		rgba(255,255,255,.04);
	padding: 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	box-shadow: var(--shadow);
}
.cta-text h3{
	margin: 0 0 6px 0;
	font-size: 18px;
	letter-spacing: -0.02em;
}
.cta-text p{
	margin: 0;
	color: rgba(244,244,246,.78);
}
.cta-actions{
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer{
	border-top: 1px solid var(--border);
	background: rgba(15,15,18,.82);
}
.footer-inner{
	padding: 28px 0;
}
.footer-brand{
	display: flex;
	align-items: flex-start;
	gap: 12px;
}
.footer-meta{
	display: grid;
	gap: 6px;
}
.footer-company{
	font-weight: 800;
	letter-spacing: -0.02em;
}
.footer-info{
	color: rgba(244,244,246,.72);
	font-size: 13px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}
.sep{
	opacity: .65;
}

.footer-bottom{
	border-top: 1px solid rgba(255,255,255,.08);
}
.copyright{
	margin: 0;
	padding: 14px 0;
	text-align: center;
	color: rgba(244,244,246,.62);
	font-size: 12px;
	letter-spacing: 0.02em;
}

/* =========================================================
   To Top Button
   ========================================================= */
.to-top{
	position: fixed;
	right: 18px;
	bottom: 18px;
	width: 48px;
	height: 48px;
	border-radius: 999px;
	border: 1px solid rgba(255,122,24,.35);
	background: rgba(15,15,18,.72);
	backdrop-filter: blur(10px);
	color: rgba(244,244,246,.92);
	box-shadow: 0 14px 30px rgba(0,0,0,.35);
	cursor: pointer;
	display: grid;
	place-items: center;
	opacity: 0;
	transform: translateY(10px);
	pointer-events: none;
	transition: opacity .18s ease, transform .18s ease, background .18s ease;
}
.to-top:hover{
	background: rgba(255,255,255,.06);
}
.to-top.is-visible{
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px){
	.gnb{ display: none; }
	.nav-toggle{ display: inline-block; }

	.grid.cards{
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hero-controls{
		bottom: 12px;
	}
}

@media (max-width: 640px){
	.section{
		padding: 56px 0;
	}
	.grid.cards{
		grid-template-columns: 1fr;
	}
	.brand{
		min-width: 0;
	}
	.hero-slide{
		height: 560px;
	}
	.cta-panel{
		flex-direction: column;
		align-items: stretch;
	}
	.cta-actions{
		justify-content: flex-start;
	}
}