/**
 * Reusable components.
 *
 * Anything that appears in more than one section lives here. Section files
 * must not restyle these — they compose them.
 */

/* ---- Eyebrow ---------------------------------------------------------- */
.eyebrow {
	display: flex;
	align-items: center;
	gap: var(--s-2);
	font-family: var(--f-mono);
	font-size: var(--t-eyebrow);
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--c-copper-text);
}

.eyebrow--center {
	justify-content: center;
}

.eyebrow__dot {
	width: 7px;
	height: 7px;
	border-radius: var(--r-pill);
	background: var(--c-ok);
	animation: glowpulse 2.4s var(--ease) infinite;
	flex: none;
}

/* ---- Section heading -------------------------------------------------- */
.section-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--s-4);
	max-width: 46rem;
	margin-inline: auto;
	margin-bottom: var(--s-9);
	text-align: center;
}

.section-head__lead {
	color: var(--c-muted-2);
	font-size: var(--t-lead);
	line-height: var(--lh-body);
}

/* ---- Icon ------------------------------------------------------------- */
.icon {
	width: 1.1875rem;
	height: 1.1875rem;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.icon--lg {
	width: 1.4375rem;
	height: 1.4375rem;
}

.icon--sm {
	width: 0.875rem;
	height: 0.875rem;
}

/* Icon in a rounded copper tile — used by every capability card. */
.icon-tile {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid var(--c-line);
	border-radius: var(--r-lg);
	background: var(--c-copper-wash);
	color: var(--c-sand);
}

/* ---- Buttons ---------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--s-2);
	padding: 0.8125rem var(--s-5);
	border: 1px solid transparent;
	border-radius: var(--r-pill);
	font-size: var(--t-sm);
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition: transform var(--dur-fast) var(--ease),
		box-shadow var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease),
		border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.btn:hover {
	transform: translateY(-1px);
}

.btn:active {
	transform: translateY(0);
}

.btn--primary {
	background: var(--g-cta);
	color: var(--c-on-cta);
	box-shadow: var(--shadow-cta);
}

.btn--primary:hover {
	color: var(--c-on-cta);
	box-shadow: 0 14px 40px -12px rgb(167 95 39 / 0.75);
}

.btn--ghost {
	border-color: var(--c-line-strong);
	background: var(--c-surface);
	color: var(--c-ink);
}

.btn--ghost:hover {
	border-color: var(--c-sand);
	background: var(--c-sand-wash);
	color: var(--c-ink);
}

.btn--sm {
	padding: 0.5rem var(--s-4);
	font-size: var(--t-xs);
}

.btn--block {
	width: 100%;
}

/* Text link with a nudging arrow. */
.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: var(--s-2);
	font-size: var(--t-sm);
	font-weight: 500;
	color: var(--c-sand);
}

.link-arrow::after {
	content: "→";
	transition: transform var(--dur-fast) var(--ease);
}

.link-arrow:hover::after {
	transform: translateX(4px);
}

/* ---- Card ------------------------------------------------------------- */
.card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--s-3);
	padding: var(--s-5);
	border: 1px solid var(--c-line);
	border-radius: var(--r-2xl);
	background: var(--g-panel-soft);
	box-shadow: var(--shadow-card);
	transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
		box-shadow var(--dur) var(--ease);
}

.card--interactive:hover {
	transform: translateY(-3px);
	border-color: var(--c-line-strong);
	box-shadow: var(--shadow-lift);
}

.card--feature {
	border-color: rgb(227 204 165 / 0.28);
	background: var(--g-panel);
}

.card__label {
	font-family: var(--f-mono);
	font-size: var(--t-eyebrow);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--c-muted-3);
}

.card__title {
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.card__text {
	font-size: var(--t-sm);
	color: var(--c-muted-2);
	line-height: var(--lh-body);
}

/* Pushes a trailing link to the bottom so cards in a row align. */
.card__foot {
	margin-top: auto;
	padding-top: var(--s-2);
}

/* ---- Panel (large bordered surface) ----------------------------------- */
.panel {
	border: 1px solid var(--c-line);
	border-radius: var(--r-3xl);
	background: var(--g-panel);
	box-shadow: var(--shadow-card);
	overflow: hidden;
}

/* ---- Badge / pill ----------------------------------------------------- */
.badge {
	display: inline-flex;
	align-items: center;
	gap: var(--s-2);
	padding: 0.3125rem var(--s-3);
	border: 1px solid var(--c-line);
	border-radius: var(--r-pill);
	background: var(--c-copper-wash);
	font-family: var(--f-mono);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--c-sand);
}

.badge--ok {
	background: var(--c-ok-wash);
	color: var(--c-ok);
	border-color: rgb(124 203 143 / 0.3);
}

/* ---- Stat ------------------------------------------------------------- */
.stat__value {
	font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1;
	background: var(--g-cta);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.stat__label {
	font-weight: 600;
	font-size: var(--t-sm);
}

/* ---- Gradient text ---------------------------------------------------- */
.text-gradient {
	background: var(--g-accent);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* ---- Divider ---------------------------------------------------------- */
.rule {
	height: 1px;
	border: 0;
	background: var(--c-line-soft);
}
