/* Feature Tabs — frontend */
.ft {
	--ft-accent: #5CBF60;
	--ft-bg: #1b391e;
	--ft-radius: 36px;
	--ft-overlap: 0px;          /* how far the preview image hangs below the dark panel */
	--ft-card-bg: #F1F1F1;
	--ft-card-text: #555;
	--ft-heading: #1D1D1D;
	max-width: 1360px;
	width: calc(100% - 1.5rem);
	margin: 0 auto;
	font-family: inherit;
	box-sizing: border-box;
}
.ft *,
.ft *::before,
.ft *::after { box-sizing: border-box; }

/* ---------- Dark stage (tabs + intro + preview) ---------- */
.ft__stage {
	position: relative;
	isolation: isolate;
	padding: 3rem 24px 48px;
}
.ft__stage:has(.ft__panel.is-active .ft__preview) {
	--ft-overlap: clamp(40px, 9vw, 110px);
	padding-bottom: 0;
}
.ft__stage::before {
	content: "";
	position: absolute;
	inset: 0 0 var(--ft-overlap) 0;
	z-index: -1;
	border-radius: var(--ft-radius);
	background: var(--ft-bg); /* fallback for browsers without color-mix */
	background: radial-gradient(circle at top left, var(--ft-bg) 0%,rgb(0,0,0) 100%);
}

/* ---------- Tab buttons ---------- */
.ft__nav {
	display: flex;
	justify-content: center;
	gap: 30px;
	margin: 0 auto 32px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	overflow: visible;
}
.ft__nav::-webkit-scrollbar { display: none; }

.ft__tab {
	flex: 0 0 auto;
	min-width: 210px;
	padding: 12px 28px;
	border: 0;
	border-radius: 999px;
	background: #ffffff;
	color: #2A2A2A;
	font: inherit;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
	transition: background-color .4s ease, color .4s ease;
}
.ft__tab:hover,
.ft__tab.is-active,
.ft__tab[aria-selected="true"] {
	background: var(--ft-accent);
	color: #FFFFFF;
}
.ft__tab:focus-visible {
	outline: 2px solid #FFFFFF;
	outline-offset: 3px;
}
.ft__tab:hover {
    animation: shadow 1s infinite;
}
/* ---------- Panel ---------- */
.ft__panel[hidden],
.ft__features-group[hidden] { display: none; }

.ft__panel.is-active,
.ft__features-group.is-active {
	animation: ft-fade .5s ease both;
}
@keyframes ft-fade {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: none; }
}

.ft__intro {
	max-width: 980px;
	margin: 0 auto 28px;
	text-align: center;
	color: #FFFFFF;
}
.ft__title {
	margin: 0 0 6px;
	color: #FFFFFF;
	font-size: clamp(20px, 2.4vw, 26px);
	font-weight: 700;
	line-height: 1.25;
}
.ft__subtitle {
	margin: 0 0 12px;
	color: #FFFFFF;
	font-size: 15px;
	font-weight: 500;
}
.ft__desc {
	color: rgba(255, 255, 255, 1);
	font-size: 15px;
	line-height: 1.6;
}
.ft__desc p { margin: 0 0 .6em; }
.ft__desc p:last-child { margin-bottom: 0; }

.ft__preview {
	max-width: 900px;
	margin: 0 auto;
	padding: 0;
	border: none;
	border-radius: 15px;
	overflow: hidden;
	background: transparent;
	box-shadow: none;
}
.ft__img {
	display: block;
	width: 100%;
	height: auto;
}

/* ---------- Feature boxes ---------- */
.ft__features-group { padding: 40px 24px 8px; }

.ft__features {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	max-width: 1170px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}
.ft__feature {
	margin: 0;
	padding: 22px 30px;
	border-radius: 20px;
	background: var(--ft-card-bg);
	box-shadow: 4px 4px 5px 0px rgba(0, 0, 0, .1);
	border: 3px solid #ffffff;
}
.ft__feature:hover {
    border-color: var(--ft-accent);
}
.ft__feature-title {
	margin: 0 0 8px;
	color: var(--ft-heading);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}
.ft__feature-text {
	margin: 0;
	color: var(--ft-card-text);
	font-size: 14px;
	line-height: 1.55;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.ft__features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.ft { --ft-radius: 22px; }
	.ft__stage { padding: 20px 14px 32px; }
	.ft__nav { justify-content: center;gap: 6px;margin-bottom: 22px;margin-top: 15px; }
	.ft__tab { min-width: 0; padding: 8px 10px; font-size: 12px; }
	.ft__preview { border-width: 3px; border-radius: 12px; }
	.ft__features-group { padding: 28px 14px 0; }
	.ft__features { grid-template-columns: 1fr; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.ft__panel.is-active,
	.ft__features-group.is-active { animation: none; }
	.ft__tab { transition: none; }
}
