@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

:root {
	--brand-950: #0b1f43;
	--brand-900: #12356c;
	--brand-700: #1e5fbf;
	--brand-600: #1e88e5;
	--brand-500: #2f94f1;
	--brand-200: #d7e8ff;
	--ink-900: #0e1c2d;
	--ink-700: #1f2d3d;
	--ink-500: #445167;
	--surface: #ffffff;
	--surface-alt: #f3f7ff;
	--line: rgba(13, 40, 80, 0.12);
	--shadow-lg: 0 32px 60px rgba(9, 32, 78, 0.18);
	--shadow-md: 0 18px 40px rgba(9, 32, 78, 0.14);
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: 'Roboto', 'Helvetica Neue', sans-serif;
	color: var(--ink-700);
	background: var(--surface);
}

.ui-widget {
	font-family: 'Roboto', 'Helvetica Neue', sans-serif;
}

a {
	color: var(--brand-600);
	text-decoration: none;
}

a:focus-visible,
.btn:focus-visible,
.ui-button:focus-visible,
.ui-inputfield:focus-visible {
	outline: 2px solid rgba(30, 136, 229, 0.6);
	outline-offset: 2px;
}

.landing {
	min-height: 100vh;
	background: var(--surface-alt);
}

.topbar {
	position: sticky;
	top: 0;
	z-index: 20;
	backdrop-filter: blur(14px);
	background: rgba(255, 255, 255, 0.92);
	border-bottom: 1px solid var(--line);
}

@supports not (backdrop-filter: blur(1px)) {
	.topbar {
		background: rgba(255, 255, 255, 0.98);
	}
}

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

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 600;
	letter-spacing: 0.4px;
	color: var(--ink-900);
}

.brand img {
	width: auto;
	height: 56px;
}

.brand-title {
	font-size: 16px;
	text-transform: uppercase;
}

.nav-links {
	display: flex;
	gap: 12px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.nav-links a {
	padding: 8px 12px;
	border-radius: 999px;
	color: var(--ink-700);
	transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
	background: rgba(30, 136, 229, 0.12);
	color: var(--brand-700);
}

.material-icons {
	font-family: 'Material Icons';
	font-weight: normal;
	font-style: normal;
	font-size: 22px;
	display: inline-flex;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	white-space: nowrap;
	word-wrap: normal;
	direction: ltr;
	-webkit-font-smoothing: antialiased;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 20px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.6px;
	border: 1px solid transparent;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
	background: linear-gradient(120deg, var(--brand-600), var(--brand-500));
	color: #fff;
	box-shadow: 0 12px 24px rgba(30, 136, 229, 0.2);
}

.btn-primary:hover {
	transform: translateY(-2px);
}

.btn-ghost {
	border-color: rgba(255, 255, 255, 0.7);
	color: #ffffff;
	background: transparent;
}

.hero {
	position: relative;
	padding: 96px 20px 72px;
	background-image: linear-gradient(120deg, rgba(11, 31, 67, 0.86), rgba(18, 53, 108, 0.7)),
		url("../resources/img/landing-bg.jpg");
	background-size: cover;
	background-position: center;
	color: #ffffff;
}

.hero-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: 36px;
	align-items: start;
	position: relative;
	z-index: 1;
}

.hero-badge {
	background: rgba(255, 255, 255, 0.15);
	color: #ffffff;
	padding: 8px 16px;
	border-radius: 999px;
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
	font-family: 'Roboto', 'Helvetica Neue', sans-serif;
	font-size: clamp(34px, 4vw, 54px);
	line-height: 1.05;
	margin: 18px 0 14px;
	color: #ffffff;
}

.hero-copy {
	font-size: 18px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.85);
	max-width: 520px;
}

.hero-actions {
	margin-top: 24px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.hero-actions .btn-ghost {
	border-color: rgba(255, 255, 255, 0.5);
}

.hero-metrics {
	margin-top: 32px;
	display: grid;
	gap: 16px;
}

.metric {
	display: grid;
	grid-template-columns: 40px 1fr;
	gap: 14px;
	padding: 14px 16px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.18);
	backdrop-filter: blur(6px);
}

.metric-icon {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.15);
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
}

.metric-title {
	display: block;
	font-weight: 600;
	color: #ffffff;
}

.metric-subtitle {
	display: block;
	color: rgba(255, 255, 255, 0.75);
	font-size: 13px;
}

.section {
	max-width: 1200px;
	margin: 0 auto;
	padding: 56px 20px;
	scroll-margin-top: 90px;
}

#login {
	scroll-margin-top: 90px;
}

.section-title {
	font-family: 'Roboto', 'Helvetica Neue', sans-serif;
	font-size: clamp(24px, 3vw, 34px);
	margin-bottom: 12px;
	color: var(--ink-900);
}

.section-subtitle {
	color: var(--ink-500);
	font-size: 16px;
	max-width: 720px;
}

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

.card {
	background: #fff;
	border-radius: 24px;
	padding: 22px;
	box-shadow: 0 18px 40px rgba(9, 32, 78, 0.08);
	border: 1px solid rgba(9, 32, 78, 0.08);
	min-height: 180px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card-icon {
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: rgba(30, 136, 229, 0.12);
	color: var(--brand-700);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.card-title {
	font-weight: 600;
	font-size: 18px;
	color: var(--ink-900);
}

.card p {
	margin: 0;
	color: var(--ink-500);
	line-height: 1.5;
}

.timeline {
	display: grid;
	gap: 16px;
	margin-top: 24px;
	position: relative;
}

.timeline::before {
	content: '';
	position: absolute;
	left: 20px;
	top: 8px;
	bottom: 8px;
	width: 2px;
	background: rgba(30, 136, 229, 0.2);
}

.timeline-item {
	display: grid;
	grid-template-columns: 40px 1fr;
	gap: 16px;
	align-items: start;
	background: #fff;
	border-radius: 20px;
	padding: 16px 20px;
	border: 1px solid rgba(13, 27, 32, 0.05);
	box-shadow: 0 12px 30px rgba(9, 32, 78, 0.06);
	position: relative;
}

.timeline-step {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--brand-600);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	box-shadow: 0 10px 20px rgba(30, 136, 229, 0.3);
}

.login-panel {
	background: #fff;
	border-radius: 24px;
	padding: 28px;
	box-shadow: var(--shadow-lg);
	border: 1px solid rgba(9, 32, 78, 0.08);
}

.login-panel h3 {
	margin: 0 0 8px;
	font-size: 22px;
	color: var(--ink-900);
}

.login-panel p {
	margin: 0 0 20px;
	color: var(--ink-500);
}

.login-panel .ui-inputfield {
	border-radius: 12px;
	border: 1px solid rgba(9, 32, 78, 0.15);
	padding: 10px 12px;
	background: #f7f9ff;
	transition: border 0.2s ease, box-shadow 0.2s ease;
}

.login-panel .ui-inputfield.ui-state-focus {
	border-color: var(--brand-600);
	box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.18);
}

.login-panel .ui-button {
	border-radius: 999px;
	background: var(--brand-600);
	border: none;
	box-shadow: 0 12px 24px rgba(30, 136, 229, 0.2);
}

.login-panel .ui-button.ui-state-hover {
	background: var(--brand-700);
}

.login-panel .ui-button .ui-button-text {
	color: #fff;
	font-weight: 600;
}

.login-fields {
	display: grid;
	gap: 12px;
}

.login-actions {
	display: grid;
	gap: 10px;
	margin-top: 12px;
}

.login-help {
	margin-top: 18px;
	font-size: 14px;
	color: var(--ink-500);
}

.forgot-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--brand-600);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	cursor: pointer;
}

.forgot-panel {
	margin-top: 12px;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px solid rgba(9, 32, 78, 0.12);
	background: #ffffff;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transform: translateY(-6px);
	transition: max-height 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.forgot-panel.is-open {
	max-height: 200px;
	opacity: 1;
	transform: translateY(0);
}

.forgot-panel p {
	margin: 0 0 10px;
	color: var(--ink-500);
}

.inline-field {
	display: grid;
	gap: 8px;
}

.footer {
	padding: 32px 20px 60px;
	text-align: center;
	color: var(--ink-500);
	font-size: 14px;
}

.footer-link {
	display: inline-block;
	margin-top: 6px;
	color: var(--brand-600);
	font-weight: 600;
}

@media (max-width: 980px) {
	.hero-inner {
		grid-template-columns: 1fr;
	}

	.btn-ghost {
		border-color: rgba(30, 136, 229, 0.4);
		color: var(--brand-600);
		background: rgba(255, 255, 255, 0.9);
	}
}

@media (max-width: 720px) {
	.topbar-inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.nav-links {
		justify-content: flex-start;
	}

	.hero {
		padding-top: 72px;
	}
}
