/* Home — KB hub: dark hero, category tiles, device finder, popular+ask, latest downloads, learn tiles. */

.drx-hero-wrap {
	padding-top: 28px;
}

.drx-hero {
	background: var(--bg-dark);
	border-radius: var(--r-3xl);
	padding: 56px 52px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	align-items: center;
	text-align: center;
}

.drx-hero__eyebrow {
	font-family: var(--font-ui);
	font-weight: 500;
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--droix-green);
}

.drx-hero__title {
	font-size: 46px;
	font-weight: 700;
	line-height: 1.08;
	color: #fff;
	max-width: 720px;
}

.drx-hero__sub {
	margin: 0;
	font-size: 15.5px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.72);
	max-width: 560px;
}

.drx-hero__search {
	display: flex;
	align-items: center;
	height: 58px;
	background: var(--bg-0);
	border-radius: 18px;
	padding: 0 8px 0 18px;
	gap: 10px;
	width: 100%;
	max-width: 640px;
	color: var(--fg-5);
	margin: 0;
}

.drx-hero__search input {
	border: 0;
	outline: 0;
	background: none;
	font-family: var(--font-body);
	font-size: 15px;
	color: var(--fg-1);
	width: 100%;
	min-width: 0;
}

.drx-hero__search button {
	all: unset;
	cursor: pointer;
	height: 44px;
	padding: 0 20px;
	border-radius: 14px;
	background: var(--droix-green);
	color: #fff;
	font-family: var(--font-ui);
	font-weight: 500;
	font-size: 14.5px;
	flex: 0 0 auto;
}

.drx-hero__search button:hover {
	background: var(--droix-green-dark);
}

.drx-hero__chips {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
}

.drx-hero__chips span {
	font-size: 12.5px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.55);
}

.drx-hero__chips a {
	padding: 7px 14px;
	border-radius: var(--r-pill);
	border: 1px solid rgba(255, 255, 255, 0.28);
	font-size: 12.5px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.85);
}

.drx-hero__chips a:hover {
	background: rgba(176, 203, 31, 0.16);
	border-color: var(--droix-green);
	color: var(--droix-green);
}

/* ── Shared section head ── */
.drx-home-sect {
	padding-top: 52px;
}

.drx-home-head {
	display: flex;
	align-items: baseline;
	gap: 14px;
	margin-bottom: 22px;
	flex-wrap: wrap;
}

.drx-home-head h2 {
	font-size: 28px;
	font-weight: 700;
}

.drx-home-head span {
	font-size: 13px;
	font-weight: 500;
	color: var(--fg-5);
}

.drx-home-head__link {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--font-ui);
	font-weight: 500;
	font-size: 14.5px;
	color: var(--droix-green-dark);
}

.drx-home-head__link:hover {
	color: var(--droix-green-deep);
}

/* ── Category tiles ── */
.drx-cat-tiles {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.drx-cat-tile {
	background: var(--bg-0);
	border: 1px solid var(--stroke-1);
	border-radius: var(--r-xl);
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	box-shadow: 0 2px 6px rgba(38, 38, 38, 0.04);
	color: inherit;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.drx-cat-tile:hover {
	box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
	border-color: var(--droix-green);
	color: inherit;
}

.drx-cat-tile__top {
	display: flex;
	align-items: center;
	gap: 12px;
}

.drx-cat-tile__ic {
	width: 44px;
	height: 44px;
	border-radius: 14px;
	background: var(--droix-green-tint);
	color: var(--droix-green-deep);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.drx-cat-tile__top b {
	font-family: var(--font-ui);
	font-weight: 700;
	font-size: 17px;
	color: var(--fg-2);
}

.drx-cat-tile__desc {
	font-size: 13px;
	line-height: 1.55;
	color: var(--fg-3);
}

.drx-cat-tile__count {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--font-ui);
	font-weight: 500;
	font-size: 13.5px;
	color: var(--droix-green-dark);
	margin-top: auto;
}

/* ── Find your device ── */
.drx-brand-chips {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.drx-brand-chip {
	all: unset;
	cursor: pointer;
	padding: 9px 18px;
	border-radius: var(--r-pill);
	background: var(--bg-0);
	border: 1px solid var(--stroke-3);
	font-family: var(--font-ui);
	font-weight: 500;
	font-size: 13.5px;
	color: var(--fg-3);
}

.drx-brand-chip:hover {
	border-color: var(--droix-green);
}

.drx-brand-chip.is-active {
	background: var(--fg-2);
	border-color: var(--fg-2);
	color: #fff;
}

/* ── Popular right now + ask a human ── */
.drx-popular {
	display: grid;
	grid-template-columns: 1fr 400px;
	gap: 20px;
	align-items: stretch;
}

.drx-popular__list {
	background: var(--bg-2);
	border-radius: var(--r-2xl);
	padding: 32px 36px;
}

.drx-popular__list .drx-home-head {
	margin-bottom: 18px;
}

.drx-popular__list .drx-home-head h2 {
	font-size: 24px;
}

.drx-popular__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px 28px;
}

.drx-popular__row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 11px 12px;
	border-radius: 14px;
	color: inherit;
}

.drx-popular__row:hover {
	background: var(--bg-0);
	color: inherit;
}

.drx-popular__rank {
	width: 28px;
	height: 28px;
	border-radius: 9px;
	background: var(--bg-0);
	color: var(--droix-green-dark);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-ui);
	font-weight: 700;
	font-size: 13px;
	flex: 0 0 auto;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.drx-popular__tx {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.drx-popular__tx b {
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--fg-2);
}

.drx-popular__tx span {
	font-size: 11.5px;
	color: var(--fg-5);
}

.drx-popular__ask {
	background: var(--bg-dark);
	border-radius: var(--r-2xl);
	padding: 32px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.drx-popular__ask-eyebrow {
	font-family: var(--font-ui);
	font-weight: 500;
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--droix-green);
}

.drx-popular__ask h3 {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
}

.drx-popular__ask p {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.72);
}

.drx-popular__ask-ctas {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: auto;
}

.drx-popular__ask-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	border-radius: var(--r-lg);
	background: var(--droix-green);
	color: #fff;
	font-family: var(--font-ui);
	font-weight: 500;
	font-size: 14px;
}

.drx-popular__ask-cta:hover {
	background: var(--droix-green-dark);
	color: #fff;
}

.drx-popular__ask-cta--ghost {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.28);
}

.drx-popular__ask-cta--ghost:hover {
	background: rgba(255, 255, 255, 0.08);
}

/* ── Latest downloads ── */
.drx-latest-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.drx-latest-card {
	background: var(--bg-0);
	border: 1px solid var(--stroke-1);
	border-radius: var(--r-xl);
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	box-shadow: 0 2px 6px rgba(38, 38, 38, 0.04);
}

.drx-latest-card__badges {
	display: flex;
	align-items: center;
	gap: 8px;
}

.drx-latest-card__type {
	display: inline-flex;
	padding: 4px 11px;
	border-radius: var(--r-pill);
	background: var(--droix-green-tint);
	color: var(--droix-green-deep);
	font-family: var(--font-ui);
	font-weight: 700;
	font-size: 10.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.drx-latest-card__type[data-type='bios'] {
	background: #ece2f7;
	color: #4c2a73;
}

.drx-latest-card__type[data-type='driver'] {
	background: #ddebf7;
	color: #0b3f66;
}

.drx-latest-card__type[data-type='os_image'] {
	background: #fdeedd;
	color: #6e3d00;
}

.drx-latest-card__type[data-type='tool'] {
	background: #e8e8e8;
	color: #333;
}

.drx-latest-card__ver {
	display: inline-flex;
	padding: 4px 10px;
	border-radius: var(--r-pill);
	background: var(--bg-3);
	color: var(--fg-3);
	font-size: 11.5px;
	font-weight: 700;
}

.drx-latest-card__date {
	margin-left: auto;
	font-size: 11.5px;
	color: var(--fg-5);
}

.drx-latest-card__name {
	font-family: var(--font-ui);
	font-weight: 700;
	font-size: 15.5px;
	line-height: 1.3;
	color: var(--fg-2);
}

.drx-latest-card__meta {
	font-size: 12px;
	color: var(--fg-5);
}

.drx-latest-card__ctas {
	display: flex;
	gap: 8px;
	margin-top: auto;
}

.drx-latest-card__dl {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	height: 42px;
	border-radius: 14px;
	background: var(--droix-green);
	color: #fff;
	font-family: var(--font-ui);
	font-weight: 500;
	font-size: 13.5px;
}

.drx-latest-card__dl:hover {
	background: var(--droix-green-dark);
	color: #fff;
	box-shadow: var(--shadow-cta);
}

.drx-latest-card__guide {
	width: 42px;
	height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
	border: 1px solid var(--stroke-3);
	color: var(--fg-3);
}

.drx-latest-card__guide:hover {
	background: var(--droix-green-tint);
	border-color: var(--droix-green);
	color: var(--droix-green-deep);
}

/* ── Learn tiles ── */
.drx-learn-tiles {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 16px;
}

.drx-learn-tile {
	background: var(--bg-0);
	border: 1px solid var(--stroke-1);
	border-radius: var(--r-lg);
	padding: 18px 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	color: inherit;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.drx-learn-tile:hover {
	border-color: var(--droix-green);
	box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
	color: inherit;
}

.drx-learn-tile__ic {
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: var(--bg-3);
	color: var(--fg-3);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.drx-learn-tile b {
	font-family: var(--font-ui);
	font-weight: 700;
	font-size: 14px;
	line-height: 1.25;
	color: var(--fg-2);
}

.drx-learn-tile > span:last-child {
	font-size: 12px;
	color: var(--fg-5);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
	.drx-hero {
		padding: 40px 28px;
		border-radius: var(--r-2xl);
	}

	.drx-hero__title {
		font-size: 34px;
	}

	.drx-cat-tiles,
	.drx-latest-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.drx-device-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.drx-popular {
		grid-template-columns: 1fr;
	}

	.drx-learn-tiles {
		grid-template-columns: repeat(3, 1fr);
	}

	.drx-home-head h2 {
		font-size: 23px;
	}
}

@media (max-width: 640px) {
	.drx-hero {
		padding: 32px 20px;
	}

	.drx-hero__title {
		font-size: 27px;
	}

	.drx-hero__search button {
		padding: 0 14px;
	}

	.drx-cat-tiles,
	.drx-latest-grid,
	.drx-learn-tiles {
		grid-template-columns: 1fr;
	}

	.drx-device-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.drx-popular__grid {
		grid-template-columns: 1fr;
	}

	.drx-popular__list {
		padding: 24px 20px;
	}

	.drx-home-sect {
		padding-top: 40px;
	}
}
