/**
 * HumiHQ — Features page styles.
 *
 * User-centric design. White theme. Full width.
 * Timeline, before/after, benefit cards.
 * V=#38bdf8 E=#fbbf24 S=#14b8a6 F=#84cc16 T=#a78bfa
 */

:root {
	--hqf-v: #0ea5e9;
	--hqf-e: #f59e0b;
	--hqf-s: #10b981;
	--hqf-f: #84cc16;
	--hqf-t: #8b5cf6;
	--hqf-bg: #ffffff;
	--hqf-surface: #f8fafc;
	--hqf-surface-raised: #f1f5f9;
	--hqf-surface-hover: #e8edf3;
	--hqf-border: #e2e8f0;
	--hqf-border-active: #c8d2de;
	--hqf-text: #0f172a;
	--hqf-text-muted: #475569;
	--hqf-text-dim: #94a3b8;
	--hqf-radius: 8px;
	--hqf-radius-lg: 12px;
}

.hqf {
	font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif;
	color: var(--hqf-text);
	background: var(--hqf-bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.hqf section {
	padding: 80px 5vw;
	width: 100%;
	max-width: none;
	box-sizing: border-box;
}

/* ==================================================================== */
/*  SECTION HEADERS                                                      */
/* ==================================================================== */
.hqf-section-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .12em;
	color: var(--hqf-v);
	margin-bottom: 10px;
}

.hqf-section-title {
	font-size: 32px;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--hqf-text);
	margin: 0 0 14px 0;
	line-height: 1.2;
}

.hqf-section-sub {
	font-size: 16px;
	color: var(--hqf-text-muted);
	margin: 0 0 44px 0;
	max-width: 600px;
	line-height: 1.6;
}

/* ==================================================================== */
/*  BUTTONS                                                              */
/* ==================================================================== */
.hqf-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: all .2s ease;
	border: none;
	cursor: pointer;
}

.hqf-btn--primary {
	background: var(--hqf-v);
	color: #fff;
}
.hqf-btn--primary:hover {
	background: #0284c7;
	box-shadow: 0 4px 20px rgba(14,165,233,.3);
	transform: translateY(-1px);
}

.hqf-btn--ghost {
	background: transparent;
	color: var(--hqf-text);
	border: 1.5px solid var(--hqf-border);
}
.hqf-btn--ghost:hover {
	background: var(--hqf-surface-raised);
	border-color: var(--hqf-border-active);
}

/* ==================================================================== */
/*  SKELETON PANEL — abstract admin UI (light theme)                     */
/* ==================================================================== */
.hqf-skel-panel {
	background: #fff;
	border: 1px solid var(--hqf-border);
	border-radius: var(--hqf-radius-lg);
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,.04);
	transition: border-color .3s ease;
}
.hqf-skel-panel.live { border-color: rgba(14,165,233,.18); }
.hqf-skel-panel.dead { border-color: var(--hqf-border); opacity: .8; }

.hqf-skel-panel-head {
	display: flex;
	gap: 0;
	padding: 10px 14px 0;
	background: var(--hqf-surface);
	border-bottom: 1px solid var(--hqf-border);
}

.hqf-skel-tab {
	display: inline-block;
	height: 28px;
	border-radius: 6px 6px 0 0;
	background: transparent;
	padding: 0 14px;
	font-size: 11px;
	color: var(--hqf-text-dim);
	line-height: 28px;
	min-width: 40px;
}
.hqf-skel-tab::after { content: "..."; }
.hqf-skel-tab.active { background: #fff; color: var(--hqf-text); font-weight: 600; border: 1px solid var(--hqf-border); border-bottom-color: #fff; }
.hqf-skel-tab.dead { opacity: .4; }
.hqf-skel-tab.live { opacity: .65; }

.hqf-skel-tag {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--hqf-text-muted);
	padding: 10px 14px;
}

.hqf-skel-panel-body { padding: 14px; }

/* KPI row */
.hqf-skel-kpi-row {
	display: flex;
	gap: 12px;
	margin-bottom: 14px;
}
.hqf-skel-kpi {
	flex: 1;
	background: var(--hqf-surface);
	border-radius: 6px;
	padding: 12px;
}
.hqf-skel-kpi-val {
	display: block;
	height: 18px;
	background: var(--hqf-border);
	border-radius: 4px;
	margin-bottom: 6px;
}
.hqf-skel-kpi-label {
	display: block;
	height: 10px;
	background: var(--hqf-border);
	border-radius: 3px;
}

/* Chart area */
.hqf-skel-chart-area { margin-bottom: 14px; }
.hqf-skel-chart-bars {
	display: flex;
	align-items: flex-end;
	gap: 4px;
	height: 80px;
	padding: 0 4px;
}
.hqf-skel-chart-bars span {
	flex: 1;
	background: rgba(14,165,233,.12);
	border-radius: 3px 3px 0 0;
	min-width: 12px;
}

/* Table */
.hqf-skel-table-row {
	display: flex;
	gap: 8px;
	padding: 8px 0;
	border-bottom: 1px solid var(--hqf-border);
}
.hqf-skel-table-row span {
	height: 10px;
	background: var(--hqf-border);
	border-radius: 3px;
	display: block;
}

/* Stack items */
.hqf-skel-stack {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px;
}
.hqf-skel-stack-item {
	padding: 12px 14px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--hqf-text-muted);
	border: 1px solid var(--hqf-border);
	line-height: 1.5;
}
.hqf-skel-stack-item.accent {
	color: var(--hqf-text);
	border-color: rgba(14,165,233,.15);
	background: rgba(14,165,233,.04);
}

/* Form rows */
.hqf-skel-form-row {
	height: 18px;
	background: var(--hqf-surface);
	border-radius: 4px;
	margin-bottom: 8px;
}
.hqf-skel-form-row span {
	display: block;
	height: 100%;
	background: var(--hqf-border);
	border-radius: 4px;
}

/* Bar group (scorer results) */
.hqf-skel-bar-group {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.hqf-skel-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 20px;
	border-radius: 4px;
	padding: 0 8px;
	font-size: 10px;
	color: var(--hqf-text);
}
.hqf-skel-bar i { font-style: normal; color: var(--hqf-text-muted); }
.hqf-skel-bar b { font-weight: 700; color: var(--hqf-text); }
.hqf-demo:nth-child(2) .hqf-skel-bar { background: rgba(14,165,233,.08); }
.hqf-demo:nth-child(3) .hqf-skel-bar { background: rgba(245,158,11,.08); }
.hqf-demo:nth-child(4) .hqf-skel-bar { background: rgba(16,185,129,.08); }
.hqf-demo:nth-child(5) .hqf-skel-bar { background: rgba(139,92,246,.08); }

/* Badge */
.hqf-skel-badge {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	margin-top: 8px;
}
.hqf-skel-badge.yes { background: rgba(16,185,129,.1); color: #10b981; }

/* Doc lines */
.hqf-skel-doc-line {
	height: 8px;
	background: var(--hqf-border);
	border-radius: 4px;
	margin-bottom: 8px;
}
.hqf-skel-doc-highlight {
	font-size: 11px;
	font-weight: 600;
	color: var(--hqf-e);
	background: rgba(245,158,11,.08);
	padding: 8px 12px;
	border-radius: 6px;
	margin: 12px 0;
}

/* Funnel bars */
.hqf-skel-funnel {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px;
}
.hqf-skel-funnel-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 26px;
	background: var(--hqf-surface);
	border-radius: 5px;
	padding: 0 10px;
	font-size: 11px;
	color: var(--hqf-text-muted);
}
.hqf-skel-funnel-bar.highlight { background: rgba(14,165,233,.08); color: var(--hqf-v); font-weight: 600; }
.hqf-skel-funnel-bar.accent { background: rgba(16,185,129,.08); color: var(--hqf-s); font-weight: 600; }

/* Vertical funnel */
.hqf-skel-funnel-v {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}
.hqf-skel-funnel-stage {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 280px;
	height: 28px;
	background: var(--hqf-surface);
	border-radius: 6px;
	padding: 0 10px;
	font-size: 11px;
	color: var(--hqf-text-muted);
}
.hqf-skel-funnel-stage.highlight { background: rgba(14,165,233,.08); color: var(--hqf-v); font-weight: 600; }
.hqf-skel-funnel-stage.accent { background: rgba(16,185,129,.08); color: var(--hqf-s); font-weight: 600; }
.hqf-skel-funnel-n { font-weight: 700; font-family: 'SF Mono', monospace; }
.hqf-skel-funnel-arrow { font-size: 14px; color: var(--hqf-text-muted); margin: 2px 0; }
.hqf-skel-funnel-arrow span { font-size: 10px; margin-left: 4px; color: var(--hqf-text-dim); }

/* Data table */
.hqf-skel-data-table { display: flex; flex-direction: column; gap: 0; }
.hqf-skel-data-row {
	display: grid;
	grid-template-columns: 2fr 0.7fr 0.8fr 0.5fr;
	padding: 8px 10px;
	font-size: 11px;
	color: var(--hqf-text-muted);
	border-bottom: 1px solid var(--hqf-border);
}
.hqf-skel-data-row.head {
	font-size: 9px;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--hqf-text-dim);
	font-weight: 700;
}
.hqf-skel-data-n { font-family: 'SF Mono', monospace; font-weight: 600; }
.hqf-skel-data-n.win { color: #16a34a; }
.hqf-skel-data-n.warn { color: var(--hqf-e); }
.hqf-skel-data-n.lose { color: #dc2626; }
.hqf-skel-data-arrow { font-weight: 700; }
.hqf-skel-data-arrow.up { color: #16a34a; }
.hqf-skel-data-arrow.down { color: #dc2626; }
.hqf-skel-data-arrow.flat { color: var(--hqf-text-dim); }

/* ==================================================================== */
/*  1. HERO                                                              */
/* ==================================================================== */
.hqf-hero { padding-top: 100px; padding-bottom: 60px; }
.hqf-hero-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}
.hqf-hero-title {
	font-size: 44px;
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -.03em;
	color: var(--hqf-text);
	margin: 0 0 16px 0;
}
.hqf-hero-desc {
	font-size: 17px;
	color: var(--hqf-text-muted);
	margin: 0 0 28px 0;
	line-height: 1.65;
	max-width: 480px;
}
.hqf-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hqf-hero-viz { position: relative; }

/* ==================================================================== */
/*  2. BEFORE / AFTER                                                     */
/* ==================================================================== */
.hqf-before-after {
	background: var(--hqf-surface);
}
.hqf-ba-columns {
	display: flex;
	align-items: flex-start;
	gap: 32px;
	margin-top: 36px;
}
.hqf-ba-col { flex: 1; }
.hqf-ba-col-label {
	font-size: 20px;
	font-weight: 700;
	color: var(--hqf-text);
	margin-bottom: 6px;
}
.hqf-ba-col-sub {
	font-size: 14px;
	color: var(--hqf-text-muted);
	margin-bottom: 24px;
}
.hqf-ba-divider {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding-top: 120px;
	gap: 4px;
	flex-shrink: 0;
}
.hqf-ba-arrow {
	font-size: 28px;
	color: var(--hqf-text-dim);
}
.hqf-ba-arrow-label {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--hqf-text-dim);
	font-weight: 700;
}

/* ==================================================================== */
/*  3. GROWTH TIMELINE                                                    */
/* ==================================================================== */
.hqf-timeline {
	background: var(--hqf-surface);
	text-align: center;
}
.hqf-timeline .hqf-section-sub {
	margin-left: auto;
	margin-right: auto;
}
.hqf-timeline-rows {
	margin-top: 40px;
	position: relative;
	padding: 0 20px;
}
.hqf-timeline-line {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 0;
	position: relative;
}
.hqf-timeline-step {
	flex: 1;
	max-width: 280px;
	text-align: center;
	position: relative;
	padding-top: 48px;
}
.hqf-timeline-step::before {
	content: '';
	position: absolute;
	top: 14px;
	left: 50%;
	width: 100%;
	height: 2px;
	background: var(--hqf-border);
}
.hqf-timeline-step:first-child::before {
	left: 50%;
	width: 50%;
}
.hqf-timeline-step:last-child::before {
	width: 50%;
}
.hqf-timeline-dot {
	position: absolute;
	top: 6px;
	left: 50%;
	transform: translateX(-50%);
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--hqf-v);
	border: 3px solid #fff;
	box-shadow: 0 0 0 3px var(--hqf-v);
	opacity: .2;
	z-index: 2;
}
.hqf-timeline-dot.active {
	opacity: 1;
}
.hqf-timeline-step:nth-child(2) .hqf-timeline-dot:nth-child(1) { opacity: .5; }
.hqf-timeline-step:nth-child(3) .hqf-timeline-dot:nth-child(1) { opacity: .7; }
.hqf-timeline-step:nth-child(4) .hqf-timeline-dot:nth-child(1) { background: var(--hqf-s); box-shadow: 0 0 0 3px var(--hqf-s); opacity: 1; }

.hqf-timeline-step-label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	color: var(--hqf-text-dim);
	text-transform: uppercase;
	letter-spacing: .08em;
	margin-bottom: 6px;
}
.hqf-timeline-step-metric {
	display: block;
	font-size: 26px;
	font-weight: 800;
	color: var(--hqf-text);
	line-height: 1.1;
}
.hqf-timeline-step-metric span {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: var(--hqf-text-muted);
	margin-top: 3px;
}

/* ==================================================================== */
/*  4. BENEFIT CARDS (原 Authority)                                       */
/* ==================================================================== */
.hqf-benefits-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
	gap: 16px;
	margin: 36px 0;
}

.hqf-benefit-card {
	background: #fff;
	border: 1px solid var(--hqf-border);
	border-radius: var(--hqf-radius-lg);
	padding: 24px;
	opacity: 0;
	transform: translateY(12px);
	transition: all .45s ease;
	position: relative;
	overflow: hidden;
}
.hqf-benefit-card.is-visible {
	opacity: 1;
	transform: translateY(0);
}
.hqf-benefit-card::after {
	content: '';
	position: absolute;
	top: 0; left: 0; bottom: 0;
	width: 3px;
	background: var(--hqf-benefit-color, var(--hqf-v));
}

.hqf-benefit-card-num {
	font-size: 12px;
	font-weight: 800;
	color: var(--hqf-benefit-color, var(--hqf-v));
	opacity: .6;
	margin-bottom: 6px;
}

.hqf-benefit-card-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--hqf-text);
	margin: 0 0 6px 0;
}

.hqf-benefit-card-desc {
	font-size: 13px;
	color: var(--hqf-text-muted);
	margin: 0;
	line-height: 1.55;
}

/* ==================================================================== */
/*  5. DEMO CARDS                                                         */
/* ==================================================================== */
.hqf-demos { display: flex; flex-direction: column; }
.hqf-demos .hqf-section-title,
.hqf-demos .hqf-section-sub,
.hqf-demos .hqf-section-label { text-align: center; }
.hqf-demos .hqf-section-sub { margin-left: auto; margin-right: auto; }

.hqf-demo {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 36px;
	align-items: center;
	margin-bottom: 24px;
	padding: 32px;
	border: 1px solid var(--hqf-border);
	border-radius: var(--hqf-radius-lg);
	transition: all .4s ease;
	opacity: 0;
	transform: translateY(20px);
	background: #fff;
}
.hqf-demo.is-visible {
	opacity: 1;
	transform: translateY(0);
}
.hqf-demo.is-active,
.hqf-demo:hover {
	border-color: var(--hqf-demo-color, var(--hqf-v));
	box-shadow: 0 4px 24px rgba(14,165,233,.06);
}

.hqf-demo-num {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--hqf-demo-color, var(--hqf-v));
	margin-bottom: 8px;
}

.hqf-demo-title {
	font-size: 22px;
	font-weight: 700;
	color: var(--hqf-text);
	margin: 0 0 4px 0;
}
.hqf-demo-desc {
	font-size: 14px;
	color: var(--hqf-text-muted);
	margin: 0 0 10px 0;
	line-height: 1.6;
}
.hqf-demo-quote {
	font-size: 12px;
	color: var(--hqf-text-dim);
	font-style: italic;
	padding: 8px 0 0 12px;
	border-left: 2px solid var(--hqf-demo-color, var(--hqf-v));
}

.hqf-demo-viz {
	border-radius: var(--hqf-radius);
	border: 1px solid transparent;
	transition: border-color .3s ease;
	overflow: hidden;
}
.hqf-demo.is-active .hqf-demo-viz {
	border-color: var(--hqf-demo-color, var(--hqf-v));
}

/* ==================================================================== */
/*  6. CAPABILITY MATRIX                                                  */
/* ==================================================================== */
.hqf-matrix { margin-top: 48px; }
.hqf-matrix-title {
	font-size: 22px;
	font-weight: 700;
	color: var(--hqf-text);
	margin: 0 0 20px 0;
}

.hqf-matrix-table {
	border-radius: var(--hqf-radius-lg);
	overflow: hidden;
	border: 1px solid var(--hqf-border);
	background: #fff;
	opacity: 0;
	transform: translateY(12px);
	transition: all .45s ease;
}
.hqf-matrix-table.is-visible { opacity: 1; transform: translateY(0); }

.hqf-matrix-row {
	display: grid;
	grid-template-columns: 2.5fr 1fr 1fr 1fr;
	border-bottom: 1px solid var(--hqf-border);
	font-size: 12px;
}
.hqf-matrix-row:last-child { border-bottom: none; }
.hqf-matrix-row.head {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--hqf-text-dim);
	font-weight: 700;
	background: var(--hqf-surface);
}
.hqf-matrix-row > div {
	padding: 11px 14px;
	display: flex;
	align-items: center;
}
.hqf-matrix-row .dim { color: var(--hqf-text-dim); }
.hqf-matrix-row .accent { color: var(--hqf-v); font-weight: 700; }
.hqf-matrix-row .max { color: var(--hqf-s); font-weight: 700; }

/* ==================================================================== */
/*  7. CTA                                                               */
/* ==================================================================== */
.hqf-cta {
	text-align: center;
	padding: 100px 5vw 80px;
}
.hqf-cta-title {
	font-size: 36px;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--hqf-text);
	margin: 0 0 12px 0;
	max-width: 660px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.2;
}
.hqf-cta-desc {
	font-size: 16px;
	color: var(--hqf-text-muted);
	margin: 0 0 28px 0;
}
.hqf-cta-buttons {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

/* ==================================================================== */
/*  FOOTER LINE                                                          */
/* ==================================================================== */
.hqf-foot {
	text-align: center;
	padding: 60px 5vw 120px;
	border-top: 1px solid var(--hqf-border);
	background: var(--hqf-surface);
}
.hqf-foot-text {
	font-size: 20px;
	font-weight: 700;
	color: var(--hqf-text);
	margin: 0 0 8px 0;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.4;
}
.hqf-foot-sub {
	font-size: 14px;
	color: var(--hqf-text-muted);
	margin: 0;
}

/* ==================================================================== */
/*  RESPONSIVE                                                           */
/* ==================================================================== */
@media (max-width: 860px) {
	.hqf section { padding: 60px 20px; }
	.hqf-hero-grid { grid-template-columns: 1fr; gap: 40px; }
	.hqf-hero-title { font-size: 32px; }
	.hqf-section-title { font-size: 26px; }

	.hqf-ba-columns { flex-direction: column; align-items: center; }
	.hqf-ba-col { width: 100%; }
	.hqf-ba-divider { flex-direction: row; padding-top: 0; margin: 8px 0; }
	.hqf-ba-divider .hqf-ba-arrow { transform: rotate(90deg); }

	.hqf-timeline-line { flex-direction: column; align-items: center; gap: 20px; }
	.hqf-timeline-step { max-width: 100%; padding-top: 0; }
	.hqf-timeline-step::before { display: none; }
	.hqf-timeline-dot { position: static; transform: none; margin: 0 auto 8px; }
	.hqf-timeline-step:not(:last-child) {
		border-bottom: 2px solid var(--hqf-border);
		padding-bottom: 20px;
	}

	.hqf-demo { grid-template-columns: 1fr; padding: 24px; }
	.hqf-benefits-grid { grid-template-columns: 1fr; }
	.hqf-matrix-row { grid-template-columns: 2fr 0.8fr 0.8fr 0.8fr; }
	.hqf-matrix-row > div { padding: 8px 6px; font-size: 10px; }
}
