:root {
	--btp-ink: #161b22;
	--btp-muted: #5e6875;
	--btp-line: #d9dee5;
	--btp-surface: #fff;
	--btp-soft: #f5f7f9;
	--btp-accent: #d97706;
	--btp-accent-dark: #9a4d00;
	--btp-radius: 14px;
}

* {
	box-sizing: border-box;
}

.btp-tools-view {
	overflow-x: hidden;
}

.btp-container {
	width: min(100% - 40px, 1240px);
	margin-inline: auto;
}

.btp-main {
	color: var(--btp-ink);
}

.btp-section-nav {
	border-block: 1px solid var(--btp-line);
	background: var(--btp-surface);
}

.btp-section-nav .btp-container {
	display: flex;
	gap: 28px;
	min-height: 48px;
	align-items: center;
}

.btp-section-nav a {
	color: var(--btp-muted);
	font-size: .92rem;
	font-weight: 650;
	text-decoration: none;
}

.btp-section-nav a.is-current {
	color: var(--btp-ink);
	text-decoration: underline;
	text-decoration-color: var(--btp-accent);
	text-decoration-thickness: 3px;
	text-underline-offset: 8px;
}

.btp-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-block: 22px;
	color: var(--btp-muted);
	font-size: .86rem;
}

.btp-breadcrumbs a {
	color: inherit;
}

.btp-hero {
	border-block: 1px solid var(--btp-line);
	background: linear-gradient(135deg, #fff9ef 0%, #f5f7f9 70%);
}

.btp-hero-inner {
	padding-block: clamp(54px, 8vw, 92px);
}

.btp-eyebrow {
	margin: 0 0 10px;
	color: var(--btp-accent-dark);
	font-size: .78rem;
	font-weight: 750;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.btp-hero h1,
.btp-tool-header h1 {
	max-width: 850px;
	margin: 0;
	font-size: clamp(2.5rem, 6vw, 5.25rem);
	line-height: .98;
	letter-spacing: -.045em;
}

.btp-hero-copy,
.btp-tool-lead {
	max-width: 720px;
	margin: 22px 0 0;
	color: var(--btp-muted);
	font-size: clamp(1rem, 2vw, 1.22rem);
	line-height: 1.7;
}

.btp-search {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	max-width: 820px;
	margin-top: 32px;
	padding: 6px;
	border: 1px solid var(--btp-line);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 12px 34px rgb(22 27 34 / 8%);
}

.btp-search input {
	min-width: 0;
	border: 0;
	padding: 13px 15px;
	background: transparent;
	color: var(--btp-ink);
	font: inherit;
	outline: none;
}

.btp-search button,
.btp-filters button,
.btp-button,
.btp-filter-toggle {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid var(--btp-ink);
	border-radius: 8px;
	background: var(--btp-ink);
	color: #fff;
	font: inherit;
	font-size: .9rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.btp-button-secondary {
	border-color: var(--btp-line);
	background: #fff;
	color: var(--btp-ink);
}

.btp-section {
	padding-block: clamp(48px, 7vw, 78px);
}

.btp-section + .btp-section {
	border-top: 1px solid var(--btp-line);
}

.btp-section-heading {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	align-items: end;
	margin-bottom: 26px;
}

.btp-section h2,
.btp-tool-module h2,
.btp-notice h2,
.btp-empty-state h2 {
	margin: 0;
	font-size: clamp(1.65rem, 3vw, 2.5rem);
	letter-spacing: -.025em;
}

.btp-result-count {
	margin: 0;
	color: var(--btp-muted);
}

.btp-category-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.btp-category {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px;
	border: 1px solid var(--btp-line);
	border-radius: 10px;
	background: var(--btp-surface);
	color: var(--btp-ink);
	text-decoration: none;
}

.btp-category span {
	font-weight: 720;
}

.btp-category small {
	color: var(--btp-muted);
}

.btp-tool-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
}

.btp-tool-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--btp-line);
	border-radius: var(--btp-radius);
	background: var(--btp-surface);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.btp-tool-card:hover {
	transform: translateY(-3px);
	border-color: #b8c0ca;
	box-shadow: 0 14px 34px rgb(22 27 34 / 8%);
}

.btp-tool-media {
	display: flex;
	height: 170px;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: var(--btp-soft);
}

.btp-tool-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.btp-tool-placeholder {
	display: grid;
	width: 70px;
	height: 70px;
	place-items: center;
	border-radius: 18px;
	background: #fff;
	color: var(--btp-accent);
	font-size: 2.4rem;
	font-weight: 800;
	box-shadow: 0 6px 20px rgb(22 27 34 / 7%);
}

.btp-tool-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 22px;
}

.btp-tool-meta {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	min-height: 24px;
	color: var(--btp-muted);
	font-size: .76rem;
}

.btp-tool-meta a {
	color: inherit;
}

.btp-status {
	display: inline-flex;
	width: fit-content;
	align-items: center;
	padding: 4px 8px;
	border-radius: 99px;
	background: #edf5ef;
	color: #276338;
	font-size: .72rem;
	font-weight: 700;
}

.btp-status-beta .btp-status {
	background: #fff4dc;
	color: #8a5100;
}

.btp-status-coming_soon .btp-status,
.btp-status-temporarily_unavailable .btp-status {
	background: #edf0f4;
	color: #4c5663;
}

.btp-tool-card h3 {
	margin: 14px 0 9px;
	font-size: 1.3rem;
	line-height: 1.25;
}

.btp-tool-card h3 a {
	color: inherit;
	text-decoration: none;
}

.btp-tool-description {
	display: -webkit-box;
	min-height: 4.8em;
	margin: 0 0 14px;
	overflow: hidden;
	color: var(--btp-muted);
	line-height: 1.6;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.btp-chain {
	margin: auto 0 16px;
	color: var(--btp-muted);
	font-size: .82rem;
}

.btp-filters {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
	gap: 14px;
	align-items: end;
	margin-bottom: 28px;
	padding: 20px;
	border: 1px solid var(--btp-line);
	border-radius: 12px;
	background: var(--btp-soft);
}

.btp-filters label {
	display: grid;
	gap: 7px;
	color: var(--btp-muted);
	font-size: .82rem;
	font-weight: 650;
}

.btp-filters select {
	width: 100%;
	min-height: 44px;
	padding: 8px 34px 8px 11px;
	border: 1px solid var(--btp-line);
	border-radius: 8px;
	background: #fff;
	color: var(--btp-ink);
	font: inherit;
}

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

.btp-filter-actions a {
	color: var(--btp-ink);
	white-space: nowrap;
}

.btp-filter-toggle {
	margin-bottom: 14px;
}

.btp-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin: 34px 0 0;
	padding: 0;
	list-style: none;
}

.btp-pagination a,
.btp-pagination span {
	display: grid;
	min-width: 42px;
	min-height: 42px;
	place-items: center;
	border: 1px solid var(--btp-line);
	border-radius: 8px;
	color: var(--btp-ink);
	text-decoration: none;
}

.btp-pagination .current {
	border-color: var(--btp-ink);
	background: var(--btp-ink);
	color: #fff;
}

.btp-empty-state,
.btp-notice {
	margin-block: clamp(48px, 8vw, 90px);
	padding: clamp(32px, 6vw, 64px);
	border: 1px solid var(--btp-line);
	border-radius: var(--btp-radius);
	background: var(--btp-soft);
	text-align: center;
}

.btp-empty-state p,
.btp-notice p {
	max-width: 650px;
	margin: 16px auto 0;
	color: var(--btp-muted);
	line-height: 1.65;
}

.btp-empty-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin-top: 24px;
}

.btp-methodology-entry {
	display: flex;
	justify-content: space-between;
	gap: 30px;
	align-items: center;
}

.btp-methodology-entry > div {
	max-width: 760px;
}

.btp-methodology-entry p:not(.btp-eyebrow) {
	color: var(--btp-muted);
}

.btp-trust-panel {
	display: grid;
	grid-template-columns: minmax(220px, .75fr) minmax(0, 1.25fr);
	gap: 34px;
	margin-block: 55px;
	padding: clamp(26px, 5vw, 44px);
	border: 1px solid var(--btp-line);
	border-radius: var(--btp-radius);
	background: var(--btp-soft);
}

.btp-trust-panel dl {
	display: grid;
	gap: 0;
	margin: 0;
}

.btp-trust-panel dl > div {
	display: grid;
	grid-template-columns: minmax(120px, .65fr) minmax(0, 1.35fr);
	gap: 18px;
	padding: 12px 0;
	border-bottom: 1px solid var(--btp-line);
}

.btp-trust-panel dt {
	color: var(--btp-muted);
	font-size: .8rem;
	font-weight: 700;
}

.btp-trust-panel dd {
	margin: 0;
	overflow-wrap: anywhere;
}

.btp-tool-header {
	display: grid;
	grid-template-columns: 170px minmax(0, 1fr);
	gap: clamp(26px, 5vw, 60px);
	align-items: center;
	padding-block: clamp(46px, 8vw, 86px);
	border-bottom: 1px solid var(--btp-line);
}

.btp-tool-header-icon {
	display: grid;
	aspect-ratio: 1;
	place-items: center;
	overflow: hidden;
	border-radius: 24px;
	background: var(--btp-soft);
}

.btp-tool-module {
	padding-block: clamp(38px, 6vw, 64px);
	border-bottom: 1px solid var(--btp-line);
}

.btp-prose,
.btp-tool-interface {
	max-width: 820px;
	margin-top: 22px;
	color: var(--btp-muted);
	line-height: 1.75;
}

.btp-knowledge-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.btp-knowledge-grid article {
	padding: 22px;
	border: 1px solid var(--btp-line);
	border-radius: 10px;
}

@media (max-width: 900px) {
	.btp-category-grid,
	.btp-tool-grid,
	.btp-knowledge-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.btp-filters {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 620px) {
	.btp-container {
		width: min(100% - 28px, 1240px);
	}

	.btp-section-nav .btp-container {
		gap: 20px;
		overflow-x: auto;
	}

	.btp-search {
		grid-template-columns: 1fr;
	}

	.btp-search button {
		width: 100%;
	}

	.btp-category-grid,
	.btp-tool-grid,
	.btp-knowledge-grid,
	.btp-filters {
		grid-template-columns: 1fr;
	}

	.btp-section-heading {
		align-items: start;
		flex-direction: column;
	}

	.btp-filters.is-collapsible {
		display: none;
	}

	.btp-filters.is-collapsible.is-open {
		display: grid;
	}

	.btp-filter-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.btp-tool-header {
		grid-template-columns: 1fr;
	}

	.btp-methodology-entry,
	.btp-trust-panel {
		align-items: flex-start;
		grid-template-columns: 1fr;
		flex-direction: column;
	}

	.btp-trust-panel dl > div {
		grid-template-columns: 1fr;
		gap: 3px;
	}

	.btp-tool-header-icon {
		width: 120px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.btp-tool-card {
		transition: none;
	}
}
