:root {
	--bg-1: #f6f3ee;
	--bg-2: #e6eef4;
	--ink: #1b1f24;
	--ink-muted: #4b5563;
	--accent: #0d6b5f;
	--accent-2: #c97a2d;
	--card: #ffffff;
	--stroke: #d7dde4;
	--shadow: 0 18px 45px rgba(27, 31, 36, 0.12);
	--radius-lg: 22px;
	--radius-sm: 12px;
	--max-w: 1240px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	color: var(--ink);
	background: radial-gradient(1200px 700px at 15% 0%, #f9efe4 0%, var(--bg-1) 40%, var(--bg-2) 100%);
	font-family: "Space Grotesk", "Segoe UI", Arial, sans-serif;
	min-height: 100vh;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	background-image: linear-gradient(120deg, rgba(13, 107, 95, 0.08), rgba(201, 122, 45, 0.08));
	mix-blend-mode: multiply;
	pointer-events: none;
}

body::after {
	content: "";
	position: fixed;
	inset: 0;
	background-image: radial-gradient(rgba(27, 31, 36, 0.08) 1px, transparent 1px);
	background-size: 22px 22px;
	opacity: 0.45;
	pointer-events: none;
}

.page {
	position: relative;
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 32px 20px 80px;
}

.topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 56px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	font-size: 0.95rem;
	color: inherit;
	text-decoration: none;
}

.brand-mark {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: linear-gradient(135deg, #0d6b5f, #128a7b 45%, #d38a3d);
	box-shadow: 0 10px 25px rgba(13, 107, 95, 0.3);
}

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

.brand-subtitle {
	font-size: 0.75em;
	opacity: 0.8;
	font-weight: 500;
	text-transform: none;
}

.status-pill {
	border: 1px solid var(--stroke);
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 0.85rem;
	background: rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(6px);
}

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: 36px;
	align-items: center;
}

.hero h1 {
	font-size: clamp(2.4rem, 3vw, 3.6rem);
	line-height: 1.05;
	margin: 0 0 16px;
}

.hero p {
	font-size: 1.05rem;
	color: var(--ink-muted);
	margin: 0 0 24px;
	max-width: 46ch;
}

.card {
	background: var(--card);
	border: 1px solid rgba(215, 221, 228, 0.75);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	padding: 26px;
	display: flex;
	flex-direction: column;
}

.form-stack {
	display: grid;
	gap: 14px;
}

.alert {
	border: 1px solid rgba(201, 122, 45, 0.4);
	background: rgba(201, 122, 45, 0.12);
	padding: 12px 14px;
	border-radius: var(--radius-sm);
	font-size: 0.95rem;
	color: var(--ink);
	display: grid;
	gap: 6px;
}

.alert strong {
	font-weight: 600;
}

label {
	font-weight: 600;
	font-size: 0.95rem;
}

input[type="url"] {
	width: 100%;
	padding: 14px 16px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--stroke);
	font-size: 1rem;
	font-family: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="url"]:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(13, 107, 95, 0.2);
	outline: none;
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.btn {
	border: none;
	border-radius: 999px;
	padding: 12px 20px;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	color: #fff;
	background: linear-gradient(135deg, #0d6b5f, #128a7b 60%, #0d6b5f 100%);
	box-shadow: 0 12px 24px rgba(13, 107, 95, 0.28);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 28px rgba(13, 107, 95, 0.35);
}

.link {
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid rgba(27, 31, 36, 0.3);
}

.hero-panel {
	display: grid;
	gap: 18px;
}

.metric-card {
	border-radius: var(--radius-lg);
	padding: 20px;
	background: linear-gradient(145deg, rgba(13, 107, 95, 0.08), rgba(201, 122, 45, 0.08));
	border: 1px solid rgba(13, 107, 95, 0.18);
}

.metric-card h3 {
	margin: 0 0 8px;
	font-size: 1.1rem;
}

.metric-card p {
	margin: 0;
	color: var(--ink-muted);
	font-size: 0.95rem;
}

.fade-in {
	animation: fadeInUp 0.7s ease forwards;
	opacity: 0;
	transform: translateY(12px);
}

.delay-1 {
	animation-delay: 0.05s;
}

.delay-2 {
	animation-delay: 0.15s;
}

.delay-3 {
	animation-delay: 0.25s;
}

@keyframes fadeInUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.footer {
	margin-top: 56px;
	color: var(--ink-muted);
	font-size: 0.9rem;
}

.analysis-grid {
	display: grid;
	gap: 24px;
}

.page-title {
	margin: 18px 0 24px;
	font-size: clamp(2.1rem, 3.1vw, 3.1rem);
	line-height: 1.05;
}

.analysis-grid.three-col {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
}

.analysis-grid.three-col .card {
	min-height: 360px;
	height: 100%;
}

.analysis-title {
	margin: 0 0 16px;
	font-size: clamp(1.9rem, 2.6vw, 2.6rem);
}

.repo-name {
	overflow-wrap: anywhere;
	word-break: break-word;
	color: var(--ink);
	text-decoration: none;
	border-bottom: 2px solid rgba(13, 107, 95, 0.25);
	transition: border-bottom-color 0.2s ease, color 0.2s ease;
}

.repo-name:hover {
	color: var(--accent);
	border-bottom-color: var(--accent);
}

.summary-grid {
	display: grid;
	gap: 16px;
}

.summary-item {
	display: grid;
	gap: 6px;
}

.summary-label {
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ink-muted);
}

.summary-value {
	font-size: 2rem;
	font-weight: 700;
}

.summary-note {
	font-size: 0.9rem;
	color: var(--ink-muted);
}

.stat-grid {
	display: grid;
	gap: 10px;
	margin-top: 10px;
}

.stat-row {
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: 8px;
	align-items: center;
	font-size: 0.95rem;
}

.stat-strong {
	font-weight: 600;
}

.stat-pill {
	font-size: 0.8rem;
	color: var(--ink-muted);
	padding: 2px 8px;
	border-radius: 999px;
	border: 1px solid rgba(27, 31, 36, 0.12);
	background: rgba(27, 31, 36, 0.04);
}

.muted {
	color: var(--ink-muted);
	margin-top: 6px;
	margin-bottom: 18px;
}

.bar-list {
	display: grid;
	gap: 14px;
	align-content: start;
}

.bar-list.fill {
	flex: 1;
	align-content: space-between;
}

.bar-row {
	display: grid;
	grid-template-columns: 80px 1fr 44px;
	gap: 12px;
	align-items: center;
	font-size: 0.95rem;
}

.bar-label {
	color: var(--ink-muted);
}

.bar-track {
	height: 12px;
	background: rgba(13, 107, 95, 0.12);
	border-radius: 999px;
	overflow: hidden;
}

.bar-fill {
	height: 100%;
	background: linear-gradient(135deg, #0d6b5f, #128a7b 70%);
	border-radius: inherit;
}

.bar-fill.accent {
	background: linear-gradient(135deg, #c97a2d, #e0a158 70%);
}

.bar-value {
	font-weight: 600;
	text-align: right;
}

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

	.topbar {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.bar-row {
		grid-template-columns: 1fr;
		gap: 6px;
	}

	.bar-value {
		text-align: left;
	}

	.analysis-grid.three-col {
		grid-template-columns: 1fr;
	}
}