:root {
	--tm-ink: #111827;
	--tm-muted: #64748b;
	--tm-line: #e5e7eb;
	--tm-surface: #ffffff;
	--tm-soft: #f6f8fb;
	--tm-blue: #1663ff;
	--tm-green: #12a66a;
	--tm-gold: #f5b23b;
	--tm-dark: #0f172a;
	--tm-radius: 8px;
}

.tm-home {
	background: var(--tm-surface);
	color: var(--tm-ink);
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	overflow-x: clip;
	width: 100% !important;
}

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

.tm-wrap {
	margin-inline: auto;
	max-width: min(1180px, calc(100vw - 36px)) !important;
	padding-inline: 0;
	width: 100% !important;
}

.tm-hero {
	background:
		linear-gradient(135deg, rgba(22, 99, 255, 0.10), rgba(18, 166, 106, 0.08)),
		var(--tm-soft);
	padding: 34px 0 28px;
}

.tm-hero__grid,
.tm-feature,
.tm-social__grid,
.tm-about__grid {
	display: grid;
	gap: 22px;
}

.tm-kicker {
	color: var(--tm-green);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0;
	margin: 0 0 10px;
	text-transform: uppercase;
}

.tm-hero h1,
.tm-section h2 {
	color: var(--tm-ink);
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-weight: 850;
	letter-spacing: 0;
	line-height: 1.06;
	margin: 0;
	word-break: normal;
}

.tm-hero h1 {
	font-size: clamp(2.25rem, 13vw, 4.9rem);
	max-width: 820px;
}

.tm-section h2 {
	font-size: clamp(1.65rem, 5vw, 3rem) !important;
}

.tm-lead,
.tm-feature__copy p,
.tm-social p,
.tm-about p {
	color: var(--tm-muted);
	font-size: 1rem;
	line-height: 1.65;
	margin: 14px 0 0;
}

.tm-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 22px;
}

.tm-button,
.tm-text-link {
	align-items: center;
	border-radius: var(--tm-radius);
	display: inline-flex;
	font-weight: 800;
	justify-content: center;
	min-height: 46px;
	text-decoration: none;
}

.tm-button--primary {
	background: var(--tm-blue);
	box-shadow: 0 12px 28px rgba(22, 99, 255, 0.22);
	color: #ffffff;
	padding: 12px 18px;
}

.tm-button--ghost {
	background: #ffffff;
	border: 1px solid var(--tm-line);
	color: var(--tm-ink);
	padding: 12px 18px;
}

.tm-text-link {
	color: var(--tm-blue);
	justify-content: flex-start;
	margin-top: 18px;
}

.tm-trading-cards {
	display: grid;
	gap: 14px;
}

.tm-platform-card {
	background: #ffffff;
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-radius);
	box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
	color: var(--tm-ink);
	display: grid;
	gap: 16px;
	padding: 18px;
	text-decoration: none;
}

.tm-platform-card--dark {
	background: var(--tm-dark);
	border-color: rgba(255, 255, 255, 0.12);
	color: #ffffff;
}

.tm-platform-card span {
	color: var(--tm-muted);
	font-size: 0.83rem;
	font-weight: 750;
}

.tm-platform-card--dark span {
	color: #cbd5e1;
}

.tm-platform-card img {
	background: #ffffff;
	border-radius: 6px;
	height: 54px;
	max-width: 210px;
	object-fit: contain;
	padding: 8px;
	width: fit-content;
}

.tm-section {
	padding: 42px 0;
}

.tm-section:nth-of-type(odd) {
	background: var(--tm-soft);
}

.tm-feature__image {
	aspect-ratio: 16 / 10;
	background: var(--tm-soft);
	border-radius: var(--tm-radius);
	overflow: hidden;
}

.tm-feature__image img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.tm-section-head {
	margin-bottom: 22px;
	max-width: 760px;
}

.tm-post-grid {
	display: grid !important;
	gap: 18px !important;
	grid-auto-flow: row !important;
	grid-template-columns: minmax(0, 1fr) !important;
	margin: 0 !important;
	width: 100% !important;
}

.tm-post-card {
	background: #ffffff;
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-radius);
	box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
	display: flex !important;
	flex-direction: column !important;
	justify-self: stretch !important;
	margin: 0 !important;
	max-width: none !important;
	min-width: 0 !important;
	overflow: hidden;
	width: 100% !important;
}

.tm-post-card__media {
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, var(--tm-dark), var(--tm-blue));
	color: #ffffff;
	display: block !important;
	flex: 0 0 auto;
	overflow: hidden;
	text-decoration: none;
	width: 100% !important;
}

.tm-post-card__media img {
	display: block !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover !important;
	width: 100% !important;
}

.tm-post-card__fallback {
	align-items: center;
	display: flex;
	font-weight: 850;
	height: 100%;
	justify-content: center;
}

.tm-post-card__body {
	flex: 1 1 auto;
	min-width: 0 !important;
	padding: 16px;
	width: 100% !important;
}

.tm-post-card time {
	background: rgba(18, 166, 106, 0.10);
	border-radius: 999px;
	color: var(--tm-green);
	display: inline-flex;
	font-size: 0.76rem;
	font-weight: 800;
	line-height: 1;
	margin-bottom: 12px;
	padding: 7px 10px;
	white-space: nowrap;
}

.tm-post-card h3 {
	font-size: 1.08rem !important;
	line-height: 1.25;
	margin: 0;
	word-break: normal;
}

.tm-post-card h3 a {
	color: var(--tm-ink);
	text-decoration: none;
	overflow-wrap: break-word;
	word-break: normal;
}

.tm-post-card p {
	color: var(--tm-muted);
	line-height: 1.55;
	margin: 10px 0 0;
}

.tm-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-top: 24px;
}

.tm-pagination .page-numbers {
	align-items: center;
	border: 1px solid var(--tm-line);
	border-radius: 6px;
	color: var(--tm-ink);
	display: inline-flex;
	font-weight: 800;
	height: 38px;
	justify-content: center;
	min-width: 38px;
	padding: 0 10px;
	text-decoration: none;
}

.tm-pagination .current {
	background: var(--tm-blue);
	border-color: var(--tm-blue);
	color: #ffffff;
}

.tm-social-cards {
	display: grid;
	gap: 12px;
}

.tm-social-card {
	border-radius: var(--tm-radius);
	color: #ffffff;
	display: grid;
	font-size: 1.2rem;
	font-weight: 850;
	gap: 6px;
	min-height: 112px;
	padding: 18px;
	text-decoration: none;
}

.tm-social-card span {
	font-size: 0.9rem;
	font-weight: 650;
	opacity: 0.86;
}

.tm-social-card--yt {
	background: #d61f26;
}

.tm-social-card--ig {
	background: linear-gradient(135deg, #f58529, #dd2a7b 54%, #515bd4);
}

.tm-course {
	background: #ffffff;
}

.tm-about {
	background: var(--tm-dark);
	color: #ffffff;
}

.tm-about h2,
.tm-about p {
	color: #ffffff;
}

.tm-about p {
	color: #cbd5e1;
}

.tm-contact {
	display: grid;
	gap: 10px;
}

.tm-contact a {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 6px;
	color: #ffffff;
	font-weight: 750;
	padding: 12px 14px;
	text-decoration: none;
	word-break: break-word;
}

.tm-button:hover,
.tm-button:focus,
.tm-social-card:hover,
.tm-social-card:focus,
.tm-contact a:hover,
.tm-contact a:focus {
	color: #ffffff;
}

.tm-button--ghost:hover,
.tm-button--ghost:focus {
	color: var(--tm-ink);
}

.tm-contact a:hover,
.tm-contact a:focus {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.24);
}

@media (min-width: 640px) {
	.tm-actions,
	.tm-trading-cards,
	.tm-social-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tm-actions {
		display: flex;
		flex-direction: row;
	}

	.tm-post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (min-width: 900px) {
	.tm-hero {
		padding: 74px 0 58px;
	}

	.tm-hero__grid,
	.tm-feature,
	.tm-social__grid,
	.tm-about__grid {
		align-items: center;
		grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
		gap: 46px;
	}

	.tm-feature--reverse .tm-feature__image {
		order: 2;
	}

	.tm-section {
		padding: 72px 0;
	}

	.tm-posts .tm-section-head {
		max-width: 820px;
	}

	.tm-posts .tm-section-head h2 {
		font-size: clamp(2.1rem, 3.2vw, 3.2rem) !important;
	}

	.tm-post-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
		gap: 24px !important;
	}

	.tm-post-card h3 {
		font-size: 1.14rem !important;
	}
}

@media (min-width: 1280px) {
	.tm-post-grid {
		gap: 26px !important;
	}
}

@media (hover: hover) {
	.tm-button,
	.tm-platform-card,
	.tm-post-card,
	.tm-social-card,
	.tm-contact a {
		transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
	}

	.tm-button:hover,
	.tm-platform-card:hover,
	.tm-post-card:hover,
	.tm-social-card:hover,
	.tm-contact a:hover {
		transform: translateY(-2px);
	}

	.tm-platform-card:hover,
	.tm-post-card:hover {
		box-shadow: 0 20px 42px rgba(15, 23, 42, 0.12);
	}
}
