:root {
	--saempa-primary: #0f2d5c;
	--saempa-primary-light: #1a4a8a;
	--saempa-accent: #f59e0b;
	--saempa-accent-hover: #d97706;
	--saempa-surface: #ffffff;
	--saempa-bg: #f0f4f8;
	--saempa-text: #1e293b;
	--saempa-text-muted: #64748b;
	--saempa-radius: 12px;
	--saempa-shadow: 0 4px 24px rgba(15, 45, 92, 0.12);
	--saempa-shadow-lg: 0 12px 40px rgba(15, 45, 92, 0.18);
}

body.landing-page,
body.landing-page html {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	background-color: var(--saempa-bg);
	color: var(--saempa-text);
	margin: 0;
	padding: 0;
	-webkit-font-smoothing: antialiased;
}

/* ── Header ── */
.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(15, 45, 92, 0.08);
	box-shadow: 0 1px 12px rgba(15, 45, 92, 0.06);
}

.header-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 14px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--saempa-primary);
}

.brand:hover,
.brand:focus {
	text-decoration: none;
	color: var(--saempa-primary-light);
}

.brand-icon {
	width: 44px;
	height: 44px;
	background: linear-gradient(135deg, var(--saempa-primary), var(--saempa-primary-light));
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 20px;
	box-shadow: 0 4px 12px rgba(15, 45, 92, 0.25);
}

.brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.brand-text strong {
	font-size: 18px;
	font-weight: 800;
	letter-spacing: 0.5px;
}

.brand-text small {
	font-size: 11px;
	font-weight: 500;
	color: var(--saempa-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.8px;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-shrink: 0;
}

.btn-login {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 20px;
	min-height: 44px;
	background: linear-gradient(135deg, var(--saempa-primary), var(--saempa-primary-light));
	color: #fff !important;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
	border: none;
	box-shadow: 0 4px 14px rgba(15, 45, 92, 0.3);
	flex-shrink: 0;
	white-space: nowrap;
	line-height: 1.2;
}

.btn-login-text-short {
	display: none;
}

.btn-login:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(15, 45, 92, 0.35);
	color: #fff;
}

.btn-login i {
	font-size: 18px;
}

.social-links {
	display: flex;
	align-items: center;
	gap: 8px;
}

.social-links a img {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	cursor: pointer;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	opacity: 0.85;
}

.social-links a:hover img {
	transform: scale(1.15) rotate(8deg);
	opacity: 1;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ── Hero / Carousel ── */
.hero-section {
	max-width: 1200px;
	margin: 24px auto 0;
	padding: 0 24px;
}

.hero-carousel {
	border-radius: var(--saempa-radius);
	overflow: hidden;
	box-shadow: var(--saempa-shadow-lg);
}

.hero-carousel .carousel-inner,
.hero-carousel .item,
.hero-carousel .item img {
	width: 100%;
	height: 420px;
	object-fit: cover;
}

.hero-carousel .item {
	position: relative;
}

.hero-carousel .item:not(.active) .hero-caption {
	display: none;
}

.hero-carousel .item.active .hero-caption {
	display: block;
	animation: heroCaptionIn 0.5s ease forwards;
}

@keyframes heroCaptionIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.hero-carousel .item::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(15, 45, 92, 0.75) 0%,
		rgba(15, 45, 92, 0.2) 50%,
		rgba(15, 45, 92, 0.05) 100%
	);
	pointer-events: none;
}

.hero-caption {
	position: absolute;
	bottom: 48px;
	left: 48px;
	right: 48px;
	text-align: left;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	padding: 0;
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(245, 158, 11, 0.9);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: 20px;
	margin-bottom: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.hero-caption h1 {
	font-size: 32px;
	font-weight: 800;
	margin: 0 0 10px;
	line-height: 1.2;
	color: #fff;
}

.hero-caption p {
	font-size: 16px;
	font-weight: 400;
	margin: 0;
	color: rgba(255, 255, 255, 0.9);
	max-width: 520px;
}

.hero-control {
	background: rgba(255, 255, 255, 0.15);
	width: 44px;
	height: 44px;
	top: 50%;
	transform: translateY(-50%);
	border-radius: 50%;
	opacity: 0;
	transition: opacity 0.3s, background 0.3s;
}

.hero-carousel:hover .hero-control {
	opacity: 1;
}

.hero-control:hover {
	background: rgba(255, 255, 255, 0.3);
}

.hero-carousel .carousel-indicators li {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	margin: 0 4px;
	background-color: rgba(255, 255, 255, 0.5);
	border: none;
}

.hero-carousel .carousel-indicators .active {
	background-color: var(--saempa-accent);
	width: 28px;
	border-radius: 5px;
}

/* ── Features ── */
.features-section {
	max-width: 1200px;
	margin: 40px auto;
	padding: 0 24px;
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
}

.feature-card {
	background: var(--saempa-surface);
	border-radius: var(--saempa-radius);
	padding: 28px 24px;
	box-shadow: var(--saempa-shadow);
	border: 1px solid rgba(15, 45, 92, 0.06);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--saempa-shadow-lg);
}

.feature-icon {
	width: 52px;
	height: 52px;
	background: linear-gradient(135deg, rgba(15, 45, 92, 0.08), rgba(26, 74, 138, 0.12));
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
}

.feature-icon i {
	font-size: 22px;
	color: var(--saempa-primary);
}

.feature-card h3 {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 8px;
	color: var(--saempa-primary);
}

.feature-card p {
	font-size: 14px;
	color: var(--saempa-text-muted);
	margin: 0;
	line-height: 1.5;
}

/* ── Footer ── */
.site-footer {
	text-align: center;
	padding: 32px 24px;
	color: var(--saempa-text-muted);
	font-size: 13px;
	border-top: 1px solid rgba(15, 45, 92, 0.08);
	margin-top: 20px;
}

.site-footer p {
	margin: 0;
}

/* ── Login Modal ── */
.modal-login {
	max-width: 440px;
	margin: 60px auto;
}

.login-modal {
	border: none;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: var(--saempa-shadow-lg);
}

.login-modal-header {
	background: linear-gradient(135deg, var(--saempa-primary), var(--saempa-primary-light));
	color: #fff;
	border: none;
	padding: 24px 28px;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
}

.login-modal-title {
	display: flex;
	align-items: center;
	gap: 14px;
}

.login-modal-icon {
	width: 44px;
	height: 44px;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	flex-shrink: 0;
}

.login-modal-header .modal-title {
	font-size: 18px;
	font-weight: 700;
	margin: 0;
	color: #fff;
}

.login-modal-header p {
	font-size: 13px;
	margin: 4px 0 0;
	opacity: 0.8;
	color: #fff;
}

.login-close {
	color: #fff;
	opacity: 0.8;
	font-size: 24px;
	text-shadow: none;
	margin-top: -4px;
}

.login-close:hover {
	opacity: 1;
	color: #fff;
}

.login-modal-body {
	padding: 28px;
}

.login-modal-body label {
	font-size: 13px;
	font-weight: 600;
	color: var(--saempa-text);
	margin-bottom: 6px;
	display: block;
}

.login-modal-body .form-group {
	margin-bottom: 18px;
}

.login-input,
.login-input-group .form-control {
	border-radius: 8px !important;
	border: 1.5px solid #e2e8f0;
	height: 42px;
	font-size: 14px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.login-input:focus,
.login-input-group .form-control:focus {
	border-color: var(--saempa-primary-light);
	box-shadow: 0 0 0 3px rgba(26, 74, 138, 0.15);
	outline: none;
}

.login-input-group .input-group-addon {
	background: #f8fafc;
	border: 1.5px solid #e2e8f0;
	border-right: none;
	border-radius: 8px 0 0 8px;
	color: var(--saempa-text-muted);
}

.login-input-group .form-control {
	border-left: none;
	border-radius: 0 8px 8px 0 !important;
}

.login-modal-footer {
	padding: 16px 28px 24px;
	border: none;
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

.btn-login-secondary {
	border-radius: 8px;
	padding: 10px 20px;
	font-weight: 500;
	border: 1.5px solid #e2e8f0;
	background: #fff;
	color: var(--saempa-text-muted);
}

.btn-login-primary {
	border-radius: 8px;
	padding: 10px 24px;
	font-weight: 600;
	background: linear-gradient(135deg, var(--saempa-accent), var(--saempa-accent-hover));
	color: #fff;
	border: none;
	box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
	transition: transform 0.2s, box-shadow 0.2s;
}

.btn-login-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
	color: #fff;
}

/* ── Responsive ── */
@media (max-width: 768px) {
	.header-inner {
		padding: 12px 16px;
		gap: 12px;
	}

	.brand {
		min-width: 0;
		flex: 1;
	}

	.brand-text strong {
		font-size: 16px;
	}

	.brand-text small {
		font-size: 9px;
		letter-spacing: 0.5px;
	}

	.brand-icon {
		width: 40px;
		height: 40px;
		font-size: 18px;
		flex-shrink: 0;
	}

	.header-actions {
		gap: 0;
		flex-shrink: 0;
	}

	.social-links {
		display: none;
	}

	.btn-login {
		padding: 10px 16px;
		min-width: auto;
		min-height: 44px;
		font-size: 13px;
		border-radius: 10px;
	}

	.btn-login-text-full {
		display: none;
	}

	.btn-login-text-short {
		display: inline;
	}

	.btn-login i {
		font-size: 16px;
	}

	.hero-section {
		padding: 0 12px;
		margin-top: 12px;
	}

	.hero-carousel .item,
	.hero-carousel .item img {
		height: 280px;
	}

	.hero-caption {
		bottom: 24px;
		left: 16px;
		right: 16px;
	}

	.hero-caption h1 {
		font-size: 20px;
	}

	.hero-caption p {
		font-size: 13px;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.hero-badge {
		font-size: 10px;
		padding: 5px 10px;
	}

	.features-section {
		padding: 0 12px;
		margin: 24px auto;
	}
}

@media (max-width: 380px) {
	.brand-text small {
		display: none;
	}

	.btn-login {
		padding: 10px 14px;
		gap: 6px;
	}
}
