:root {
	--tf-red: #c50024;
	--tf-red-dark: #9b001c;
	--tf-red-soft: #f9e6e9;
	--tf-text: #333333;
	--tf-text-muted: #868686;
	--tf-bg: #f2f2f2;
	--tf-white: #ffffff;
	--tf-border: #d0d0d0;
	--tf-shadow: 0 8px 24px rgba(51, 51, 51, 0.08);
	--tf-radius: 4px;
	--tf-font: "Source Sans 3", "Source Sans Pro", Helvetica, Arial, sans-serif;
	--tf-container: 1180px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--tf-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--tf-text);
	background: var(--tf-bg);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--tf-red);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--tf-red-dark);
}

.tf-container {
	width: min(100% - 2rem, var(--tf-container));
	margin-inline: auto;
}

/* Top bar */
.tf-topbar {
	background: var(--tf-white);
	border-bottom: 1px solid var(--tf-border);
	font-size: 0.875rem;
}

.tf-topbar__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 0.5rem 0;
	flex-wrap: wrap;
}

.tf-topbar__contact,
.tf-topbar__links {
	display: flex;
	gap: 1.25rem;
	flex-wrap: wrap;
}

.tf-topbar a {
	color: var(--tf-text-muted);
	text-transform: none;
}

.tf-topbar a:hover {
	color: var(--tf-red);
}

/* Header */
.tf-header {
	background: var(--tf-white);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	position: sticky;
	top: 0;
	z-index: 100;
}

.tf-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 0;
	gap: 1.5rem;
}

.tf-logo img {
	width: 220px;
	max-width: 100%;
}

.tf-nav__list {
	display: flex;
	gap: 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tf-nav__list a {
	color: var(--tf-text);
	font-weight: 600;
	text-transform: uppercase;
	font-size: 0.8125rem;
	letter-spacing: 0.04em;
	position: relative;
	padding-bottom: 0.35rem;
}

.tf-nav__list a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 3px;
	background: var(--tf-red);
	transition: width 0.2s ease;
}

.tf-nav__list a:hover,
.tf-nav__list .current-menu-item > a {
	color: var(--tf-red);
}

.tf-nav__list a:hover::after,
.tf-nav__list .current-menu-item > a::after {
	width: 100%;
}

.tf-nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: 0;
	padding: 0.5rem;
	cursor: pointer;
}

.tf-nav-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--tf-text);
}

/* Hero */
.tf-hero {
	background: linear-gradient(135deg, rgba(51, 51, 51, 0.92), rgba(51, 51, 51, 0.78)),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='400' viewBox='0 0 1200 400'%3E%3Crect fill='%23333' width='1200' height='400'/%3E%3Cpath fill='%23444' d='M0 320 L200 280 L400 300 L600 240 L800 260 L1000 200 L1200 220 L1200 400 L0 400 Z'/%3E%3C/svg%3E") center/cover;
	color: var(--tf-white);
	padding: 4.5rem 0 4rem;
}

.tf-hero--compact {
	padding: 3rem 0;
}

.tf-hero__eyebrow {
	margin: 0 0 0.75rem;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: rgba(255, 255, 255, 0.75);
	font-weight: 600;
}

.tf-hero__title {
	margin: 0 0 1rem;
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 700;
	line-height: 1.1;
}

.tf-hero__subtitle {
	margin: 0;
	max-width: 680px;
	font-size: 1.125rem;
	color: rgba(255, 255, 255, 0.88);
}

/* Dashboard */
.tf-dashboard {
	padding: 3rem 0 4rem;
}

.tf-tabs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	margin-bottom: 2rem;
}

.tf-tab {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.25rem;
	border: 1px solid var(--tf-border);
	background: var(--tf-white);
	border-radius: var(--tf-radius);
	cursor: pointer;
	font: inherit;
	color: var(--tf-text);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tf-tab:hover,
.tf-tab.is-active {
	border-color: var(--tf-red);
	box-shadow: var(--tf-shadow);
}

.tf-tab.is-active {
	background: var(--tf-red-soft);
}

.tf-tab__label {
	font-weight: 700;
	text-align: left;
}

.tf-tab__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2rem;
	height: 2rem;
	padding: 0 0.5rem;
	border-radius: 999px;
	background: var(--tf-red);
	color: var(--tf-white);
	font-size: 0.875rem;
	font-weight: 700;
}

.tf-panel__header h2 {
	margin: 0 0 0.35rem;
	font-size: 1.75rem;
}

.tf-panel__header p {
	margin: 0 0 1.5rem;
	color: var(--tf-text-muted);
}

.tf-cards {
	display: grid;
	gap: 1.25rem;
}

.tf-card {
	background: var(--tf-white);
	border: 1px solid var(--tf-border);
	border-left: 4px solid var(--tf-red);
	border-radius: var(--tf-radius);
	padding: 1.5rem;
	box-shadow: var(--tf-shadow);
}

.tf-card--in_progress {
	border-left-color: #3e7830;
}

.tf-card--bug {
	border-left-color: #c50024;
}

.tf-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	align-items: center;
	margin-bottom: 0.75rem;
	font-size: 0.875rem;
	color: var(--tf-text-muted);
}

.tf-card__version {
	display: inline-block;
	padding: 0.15rem 0.55rem;
	background: var(--tf-bg);
	border-radius: 999px;
	font-weight: 600;
	color: var(--tf-text);
}

.tf-card__title {
	margin: 0 0 0.75rem;
	font-size: 1.25rem;
	line-height: 1.3;
}

.tf-card__content p {
	margin: 0 0 0.75rem;
}

.tf-card__content p:last-child {
	margin-bottom: 0;
}

.tf-card__footer {
	margin-top: 1rem;
}

.tf-badge {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.tf-badge--released,
.tf-badge--fixed {
	background: #e8f5e9;
	color: #2e7d32;
}

.tf-badge--in_progress,
.tf-badge--investigating {
	background: #fff8e1;
	color: #f57f17;
}

.tf-badge--planned {
	background: #e3f2fd;
	color: #1565c0;
}

.tf-badge--open {
	background: var(--tf-red-soft);
	color: var(--tf-red);
}

.tf-empty {
	padding: 2rem;
	text-align: center;
	background: var(--tf-white);
	border: 1px dashed var(--tf-border);
	border-radius: var(--tf-radius);
	color: var(--tf-text-muted);
}

/* CTA */
.tf-cta {
	padding: 0 0 4rem;
}

.tf-cta__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 2rem;
	background: var(--tf-white);
	border: 1px solid var(--tf-border);
	border-radius: var(--tf-radius);
	box-shadow: var(--tf-shadow);
}

.tf-cta h2 {
	margin: 0 0 0.35rem;
	font-size: 1.5rem;
}

.tf-cta p {
	margin: 0;
	color: var(--tf-text-muted);
}

.tf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.85rem 1.5rem;
	border-radius: var(--tf-radius);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.8125rem;
	border: 2px solid transparent;
	cursor: pointer;
}

.tf-btn--primary {
	background: var(--tf-red);
	color: var(--tf-white);
	border-color: var(--tf-red);
}

.tf-btn--primary:hover {
	background: var(--tf-red-dark);
	border-color: var(--tf-red-dark);
	color: var(--tf-white);
}

/* Footer */
.tf-footer {
	background: #444444;
	color: rgba(255, 255, 255, 0.88);
}

.tf-footer__inner {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 2rem;
	padding: 2.5rem 0;
}

.tf-footer__brand p {
	margin: 1rem 0 0;
	max-width: 420px;
	color: rgba(255, 255, 255, 0.72);
}

.tf-footer__links {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.tf-footer a {
	color: rgba(255, 255, 255, 0.88);
}

.tf-footer a:hover {
	color: var(--tf-white);
}

.tf-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: 1rem 0;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.65);
}

.tf-footer__bottom p {
	margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
	.tf-tabs {
		grid-template-columns: 1fr;
	}

	.tf-footer__inner,
	.tf-cta__inner {
		grid-template-columns: 1fr;
		flex-direction: column;
		align-items: flex-start;
	}

	.tf-nav-toggle {
		display: flex;
	}

	.tf-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--tf-white);
		border-top: 1px solid var(--tf-border);
		display: none;
	}

	.tf-nav.is-open {
		display: block;
	}

	.tf-nav__list {
		flex-direction: column;
		gap: 0;
		padding: 1rem;
	}

	.tf-nav__list a {
		display: block;
		padding: 0.75rem 0;
	}

	.tf-header {
		position: relative;
	}
}

@media (max-width: 600px) {
	.tf-hero {
		padding: 3rem 0;
	}

	.tf-card {
		padding: 1.15rem;
	}
}
