/* ==========================================
   Features Page
   ========================================== */

/* ---- Sticky Nav ---- */
.feat-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	height: 60px;
	padding: 0 2rem;
	display: flex;
	align-items: center;
	background: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.feat-nav-inner {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.feat-nav-logo {
	font-family: "CabinetGrotesk-Variable";
	font-weight: 800;
	font-size: 1.1rem;
	color: #fff;
	text-decoration: none;
	letter-spacing: -0.01em;
}

.feat-nav-back {
	color: rgba(255, 255, 255, 0.5);
	text-decoration: none;
	font-size: 0.875rem;
	transition: color 0.2s ease;
}

.feat-nav-back:hover {
	color: #fff;
}

/* ---- Hero ---- */
.feat-hero {
	min-height: 68vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 10rem 2rem 7rem;
	background:
		radial-gradient(ellipse 90% 55% at 50% -5%, rgba(248, 33, 61, 0.14) 0%, transparent 65%),
		#000;
	position: relative;
	overflow: hidden;
}

.feat-hero::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 140px;
	background: linear-gradient(to bottom, transparent, #0a0a0a);
	pointer-events: none;
}

.feat-hero-inner {
	max-width: 800px;
	width: 100%;
	position: relative;
	z-index: 1;
	opacity: 0;
	animation: fadeInUp 0.8s ease-out 0.15s forwards;
}

.feat-hero-title {
	font-family: "CabinetGrotesk-Variable";
	font-weight: 900;
	font-size: clamp(3rem, 8vw, 5.5rem);
	line-height: 1.1;
	letter-spacing: -0.03em;
	margin: 1.5rem 0;
}

.feat-hero-sub {
	font-size: clamp(1.05rem, 2vw, 1.2rem);
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.5);
	max-width: 540px;
	margin: 0 auto 2.5rem;
}

.feat-hero-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
}

.feat-hero-tag {
	display: inline-block;
	padding: 0.4rem 1rem;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 999px;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.55);
	text-decoration: none;
	transition: all 0.2s ease;
}

.feat-hero-tag:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.2);
	color: #fff;
}

/* ---- Bento section ---- */
.feat-section {
	background: #0a0a0a;
	padding: 4rem 2rem 9rem;
}

.feat-bento {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}

/* ---- Base card ---- */
.feat-card {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 24px;
	padding: 2.5rem;
	display: flex;
	flex-direction: column;
	gap: 0;
	overflow: hidden;
	/* scroll animation */
	opacity: 0;
	transform: translateY(24px);
	transition:
		opacity 0.6s ease,
		transform 0.6s ease,
		border-color 0.3s ease;
}

.feat-card.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.feat-card.is-visible:hover {
	border-color: rgba(255, 255, 255, 0.15);
	transform: translateY(-4px);
}

/* ---- Grid spans ---- */
.feat-span-2 {
	grid-column: span 2;
	display: flex;
	flex-direction: column;
}

.feat-span-3 {
	grid-column: span 3;
	display: flex;
	flex-direction: column;
	/* Subtle glow for the full-width card */
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.1);
	position: relative;
	overflow: hidden;
}

.feat-span-3::before {
	content: '';
	position: absolute;
	top: -100px;
	left: 50%;
	transform: translateX(-50%);
	width: 1000px;
	height: 400px;
	background: radial-gradient(ellipse, rgba(248, 33, 61, 0.07) 0%, transparent 65%);
	pointer-events: none;
}

/* ---- Label ---- */
.feat-label {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--color-highlight);
	margin-bottom: 0.875rem;
}

/* ---- Headings ---- */
.feat-h2 {
	font-family: "CabinetGrotesk-Variable";
	font-weight: 800;
	font-size: clamp(1.85rem, 3vw, 2.5rem);
	line-height: 1.15;
	letter-spacing: -0.025em;
	color: #fff;
	margin-bottom: 0.875rem;
}

.feat-h3 {
	font-family: "CabinetGrotesk-Variable";
	font-weight: 700;
	font-size: clamp(1.3rem, 2.2vw, 1.6rem);
	line-height: 1.25;
	letter-spacing: -0.015em;
	color: #fff;
	margin-bottom: 0.75rem;
}

/* ---- Body text ---- */
.feat-p {
	font-size: 1rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.52);
	margin-bottom: 1.75rem;
}

.feat-p-sm {
	font-size: 0.925rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.52);
	margin-bottom: 1.25rem;
}

/* ---- Two-column groups row (used inside span-2) ---- */
.feat-row-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	margin-bottom: 1.5rem;
}

/* ---- Feature group ---- */
.feat-group {
	margin-bottom: 1.5rem;
}

.feat-group:last-child {
	margin-bottom: 0;
}

.feat-group-label {
	font-size: 0.68rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: rgba(255, 255, 255, 0.28);
	margin-bottom: 0.6rem;
}

/* ---- Tags ---- */
.feat-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.feat-tag {
	display: inline-block;
	padding: 0.3rem 0.8rem;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 999px;
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.6);
	white-space: nowrap;
}

.feat-tag-sm {
	padding: 0.2rem 0.6rem;
	font-size: 0.72rem;
}

/* ---- Route state badges ---- */
.feat-states {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.feat-state {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.3rem 0.8rem;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 500;
	white-space: nowrap;
}

.feat-state::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	flex-shrink: 0;
	opacity: 0.9;
}

.feat-state-project  { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.45); border: 1px solid rgba(255,255,255,0.1); }
.feat-state-attempt  { background: rgba(251,146,60,0.1);   color: rgb(251,146,60);        border: 1px solid rgba(251,146,60,0.22); }
.feat-state-done     { background: rgba(52,211,153,0.1);   color: rgb(52,211,153);        border: 1px solid rgba(52,211,153,0.22); }
.feat-state-flash    { background: rgba(96,165,250,0.1);   color: rgb(96,165,250);        border: 1px solid rgba(96,165,250,0.22); }
.feat-state-onsight  { background: rgba(251,191,36,0.1);   color: rgb(251,191,36);        border: 1px solid rgba(251,191,36,0.22); }

/* ---- Arrow checklist ---- */
.feat-checklist {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

/* Two-column checklist for span-2 cards */
.feat-checklist-2col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem 2.5rem;
}

.feat-check-item {
	display: flex;
	gap: 0.75rem;
	align-items: baseline;
	font-size: 0.9rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.55);
}

.feat-check-icon {
	color: var(--color-highlight);
	font-weight: 700;
	flex-shrink: 0;
	font-size: 0.8rem;
}

.feat-check-item strong {
	color: rgba(255, 255, 255, 0.85);
}

/* ---- Simple bullet list ---- */
.feat-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.feat-list li {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.52);
	padding-left: 1.2rem;
	position: relative;
	line-height: 1.5;
}

.feat-list li::before {
	content: '→';
	position: absolute;
	left: 0;
	color: var(--color-highlight);
	font-size: 0.75rem;
	top: 0.05em;
}

/* ---- Grading table ---- */
.feat-grading-table {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin: 1.25rem 0 1.5rem;
}

.feat-grading-row {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feat-grading-row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.feat-grading-sport {
	font-size: 0.68rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(255, 255, 255, 0.3);
}

.feat-grading-systems {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.feat-note {
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.28);
	margin-top: auto;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	line-height: 1.5;
}

/* ---- Polish: full-width pill grid ---- */
.feat-pills-intro {
	max-width: 600px;
	margin-bottom: 2rem;
}

.feat-pills-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.feat-pill {
	display: inline-block;
	padding: 0.5rem 1.1rem;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.55);
	transition: all 0.2s ease;
	cursor: default;
}

.feat-pill:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.15);
	color: rgba(255, 255, 255, 0.85);
}

/* ---- Placeholder (kept for when screenshots arrive) ---- */
.feat-placeholder {
	border-radius: 16px;
	border: 1px dashed rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.015);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	min-height: 200px;
	color: rgba(255, 255, 255, 0.2);
	margin-top: 2rem;
}

.feat-placeholder svg { opacity: 0.35; }

.feat-placeholder-label {
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-align: center;
	max-width: 200px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
	.feat-bento {
		grid-template-columns: repeat(2, 1fr);
	}

	.feat-span-2 {
		grid-column: span 2;
	}

	.feat-span-3 {
		grid-column: span 2;
	}

	.feat-row-2,
	.feat-checklist-2col {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.feat-hero {
		padding: 8rem 1.5rem 5rem;
		min-height: 60vh;
	}

	.feat-section {
		padding: 3rem 1.25rem 6rem;
	}

	.feat-bento {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.feat-span-2,
	.feat-span-3 {
		grid-column: span 1;
	}

	.feat-card {
		padding: 2rem;
	}

	.feat-nav {
		padding: 0 1.25rem;
	}

	.feat-row-2,
	.feat-checklist-2col {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}

@media (max-width: 480px) {
	.feat-hero {
		padding: 7rem 1.25rem 4rem;
	}

	.feat-card {
		padding: 1.75rem 1.5rem;
	}
}
