/* Homepage sections. Loads after main.css so it wins on shared selectors. */

/* Hero
 *
 * Mobile-first: two stacked blocks.
 *   1. .home-hero__content-wrap — gradient panel with the copy, no video.
 *   2. .home-hero__media        — a 16:9 iframe stage below, with no text overlaid.
 * At >= 900px the two blocks collapse into a single 16:9 stage: the media becomes
 * an absolutely-positioned background and the copy panel sits on top with a dark
 * scrim so the text stays legible over the video. Keep this split — mobile users
 * on a 16:9 hero would otherwise get unreadable copy over motion.
 */

.home-hero {
	position: relative;
	overflow: hidden;
	color: var(--myco-color-white);
	background: var(--myco-color-primary);
}

.home-hero__content-wrap {
	position: relative;
	z-index: 2;
	background:
		radial-gradient(120% 120% at 85% 0%, rgba(242, 107, 15, 0.22) 0%, transparent 55%),
		linear-gradient(160deg, var(--myco-color-primary) 0%, var(--myco-color-primary-deep) 100%);
}

.home-hero__inner {
	position: relative;
	z-index: 1;
	padding: var(--myco-space-4xl) 0;
}

.home-hero__content {
	max-width: 46rem;
}

/* Video block. On mobile it is its own 16:9 stage under the copy; on desktop
 * this same stage is stretched behind the copy via the media query below. */

.home-hero__media {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--myco-color-primary-deep);
	/* The stage never takes pointer events: on desktop it sits under the copy
	 * and must not swallow clicks meant for the CTA buttons. */
	pointer-events: none;
}

/* The sources are already cropped to 16:9, so `cover` has nothing to trim on a
 * 16:9 stage — it only guards the desktop case, where the stage follows the
 * viewport and can drift off ratio. */
.home-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 0;
}

@media (min-width: 900px) {
	.home-hero {
		aspect-ratio: 16 / 9;
	}

	.home-hero__media {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		aspect-ratio: auto;
		z-index: 1;
	}

	/* Scrim: keeps the copy readable on top of any frame of the video. */
	.home-hero__media::after {
		content: "";
		position: absolute;
		inset: 0;
		background:
			linear-gradient(100deg, rgba(15, 27, 45, 0.78) 0%, rgba(15, 27, 45, 0.42) 48%, rgba(15, 27, 45, 0.06) 100%);
		pointer-events: none;
	}

	/* The copy panel covers the whole stage on desktop, so it must not swallow
	 * clicks meant for the play button underneath it — only its own links and
	 * buttons take pointer events back. */
	.home-hero__content-wrap {
		position: absolute;
		inset: 0;
		z-index: 2;
		display: flex;
		align-items: center;
		background: transparent;
		pointer-events: none;
	}

	.home-hero__content-wrap a,
	.home-hero__content-wrap button {
		pointer-events: auto;
	}


	.home-hero__inner {
		width: min(calc(100% - 2rem), var(--myco-container));
		padding: var(--myco-space-3xl) 0;
	}
}

.home-hero__eyebrow {
	margin-bottom: var(--myco-space-sm);
	color: var(--myco-color-accent-soft);
	font-size: var(--myco-font-size-sm);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.home-hero__title {
	margin-bottom: var(--myco-space-lg);
	color: var(--myco-color-white);
	font-size: clamp(2.1rem, 5.2vw, 3.6rem);
	line-height: 1.08;
	letter-spacing: -0.02em;
}

.home-hero__text {
	max-width: 38rem;
	margin-bottom: var(--myco-space-xl);
	color: rgba(255, 255, 255, 0.82);
	font-size: var(--myco-font-size-lg);
}

.home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--myco-space-md);
	margin-bottom: var(--myco-space-3xl);
}

.home-hero__stats {
	display: grid;
	gap: var(--myco-space-lg);
	margin: 0;
	padding-top: var(--myco-space-xl);
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
}

.home-hero__stat-value {
	color: var(--myco-color-white);
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	font-weight: 800;
	line-height: 1;
}

.home-hero__stat-label {
	margin: var(--myco-space-2xs) 0 0;
	color: rgba(255, 255, 255, 0.66);
	font-size: var(--myco-font-size-sm);
}

/* Category grid */

.section-heading--center {
	margin-inline: auto;
	text-align: center;
}

.section-heading--invert h2 {
	color: var(--myco-color-white);
}

.section-heading--invert p:last-child {
	color: rgba(255, 255, 255, 0.72);
}

.category-grid {
	display: grid;
	gap: var(--myco-space-lg);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

.category-card {
	display: flex;
	overflow: hidden;
	flex-direction: column;
	border: 1px solid var(--myco-color-border);
	border-radius: var(--myco-radius-xl);
	background: var(--myco-color-white);
	box-shadow: var(--myco-shadow-soft);
	color: inherit;
	text-decoration: none;
	transition: transform var(--myco-transition-slow), box-shadow var(--myco-transition-slow);
}

.category-card:hover,
.category-card:focus-visible {
	transform: translateY(-4px);
	box-shadow: var(--myco-shadow-lift);
}

.category-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--myco-color-surface-strong);
}

.category-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--myco-transition-slow);
}

.category-card:hover .category-card__image {
	transform: scale(1.05);
}

.category-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--myco-color-surface-strong), var(--myco-color-surface));
}

.category-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: var(--myco-space-2xs);
	padding: var(--myco-space-lg);
}

.category-card__title {
	color: var(--myco-color-primary);
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.25;
}

.category-card__text {
	color: var(--myco-color-muted);
	font-size: var(--myco-font-size-sm);
}

.category-card__count {
	margin-top: auto;
	padding-top: var(--myco-space-sm);
	color: var(--myco-color-accent-ink);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* About + advantages */

.about-split {
	display: grid;
	gap: var(--myco-space-3xl);
}

.about-split__intro h2 {
	margin-bottom: var(--myco-space-lg);
}

.about-split__intro p {
	color: var(--myco-color-muted);
}

.about-split__badge {
	display: flex;
	align-items: center;
	gap: var(--myco-space-md);
	margin-top: var(--myco-space-xl);
	padding: var(--myco-space-md) var(--myco-space-lg);
	border-left: 4px solid var(--myco-color-accent);
	border-radius: var(--myco-radius-md);
	background: var(--myco-color-surface);
}

.about-split__badge strong {
	color: var(--myco-color-accent-ink);
	font-size: 2rem;
	line-height: 1;
}

.about-split__badge span {
	color: var(--myco-color-muted);
	font-size: var(--myco-font-size-sm);
}

.advantages {
	display: grid;
	gap: var(--myco-space-lg);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: advantage;
}

.advantage {
	position: relative;
	padding: var(--myco-space-lg) var(--myco-space-lg) var(--myco-space-lg) var(--myco-space-4xl);
	border: 1px solid var(--myco-color-border);
	border-radius: var(--myco-radius-lg);
	background: var(--myco-color-white);
}

.advantage__number {
	position: absolute;
	top: var(--myco-space-lg);
	left: var(--myco-space-lg);
	color: var(--myco-color-accent-ink);
	font-size: 1.1rem;
	font-weight: 800;
}

.advantage__title {
	margin-bottom: var(--myco-space-2xs);
	font-size: 1.05rem;
}

.advantage__text {
	margin: 0;
	color: var(--myco-color-muted);
	font-size: var(--myco-font-size-sm);
}

/* Showcase */

.showcase + .showcase {
	margin-top: var(--myco-space-3xl);
}

.showcase__head {
	display: flex;
	flex-wrap: wrap;
	gap: var(--myco-space-md);
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: var(--myco-space-lg);
	padding-bottom: var(--myco-space-sm);
	border-bottom: 1px solid var(--myco-color-border);
}

.showcase__title {
	margin: 0;
	font-size: 1.4rem;
}

.showcase__all {
	color: var(--myco-color-accent-ink);
	font-size: var(--myco-font-size-sm);
	font-weight: 700;
	text-decoration: none;
}

.showcase__all:hover {
	text-decoration: underline;
}

/* Dark feature band */

.section--dark {
	background: linear-gradient(160deg, var(--myco-color-primary) 0%, var(--myco-color-primary-deep) 100%);
	color: rgba(255, 255, 255, 0.78);
}

.feature-grid {
	display: grid;
	gap: var(--myco-space-lg);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.feature {
	padding: var(--myco-space-xl);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--myco-radius-lg);
	background: rgba(255, 255, 255, 0.04);
}

.feature__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	margin-bottom: var(--myco-space-md);
	border-radius: var(--myco-radius-md);
	background: rgba(242, 107, 15, 0.16);
	color: var(--myco-color-accent-soft);
}

.feature__icon svg {
	width: 1.5rem;
	height: 1.5rem;
	fill: currentColor;
}

.feature__title {
	margin-bottom: var(--myco-space-xs);
	color: var(--myco-color-white);
	font-size: 1.05rem;
}

.feature__text {
	margin: 0;
	color: rgba(255, 255, 255, 0.7);
	font-size: var(--myco-font-size-sm);
}

/* FAQ */

.myco-container--narrow {
	width: min(calc(100% - 2rem), 56rem);
	margin-inline: auto;
}

.faq {
	display: grid;
	gap: var(--myco-space-sm);
}

.faq__item {
	overflow: hidden;
	border: 1px solid var(--myco-color-border);
	border-radius: var(--myco-radius-lg);
	background: var(--myco-color-white);
}

.faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--myco-space-lg);
	color: var(--myco-color-primary);
	cursor: pointer;
	font-weight: 700;
	list-style: none;
}

.faq__question::-webkit-details-marker {
	display: none;
}

.faq__question::after {
	content: "+";
	margin-left: var(--myco-space-md);
	color: var(--myco-color-accent-ink);
	font-size: 1.4rem;
	line-height: 1;
}

.faq__item[open] .faq__question::after {
	content: "\2013";
}

.faq__answer {
	padding: 0 var(--myco-space-lg) var(--myco-space-lg);
	color: var(--myco-color-muted);
}

.faq__answer p {
	margin: 0;
}

/* Closing CTA band */

.cta-band {
	background: var(--myco-color-surface);
}

.cta-band__inner {
	display: grid;
	gap: var(--myco-space-xl);
	padding: var(--myco-space-2xl);
	border-radius: var(--myco-radius-2xl);
	background:
		radial-gradient(110% 130% at 100% 0%, rgba(242, 107, 15, 0.28) 0%, transparent 60%),
		linear-gradient(150deg, var(--myco-color-primary) 0%, var(--myco-color-primary-deep) 100%);
	color: var(--myco-color-white);
}

.cta-band__title {
	margin-bottom: var(--myco-space-sm);
	color: var(--myco-color-white);
	font-size: clamp(1.5rem, 3.4vw, 2.1rem);
}

.cta-band__text {
	margin: 0;
	color: rgba(255, 255, 255, 0.78);
}

.cta-band__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--myco-space-md);
	align-items: center;
}

@media (min-width: 820px) {
	.about-split {
		align-items: start;
		grid-template-columns: 1.05fr 1fr;
	}

	.cta-band__inner {
		align-items: center;
		padding: var(--myco-space-3xl);
		grid-template-columns: 1.4fr 1fr;
	}

	.cta-band__actions {
		justify-content: flex-end;
	}
}
