/* Homepage sections */

.rf-hero {
	position: relative;
	isolation: isolate;
	min-height: 680px;
	display: flex;
	align-items: center;
	/* Clear absolute/sticky header so H1 is never clipped */
	padding: calc(var(--rf-header-h) + 2.5rem) 0 4.5rem;
	background: var(--rf-navy-950);
	color: var(--rf-text-on-dark);
	overflow: hidden;
}

.rf-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-color: var(--rf-navy-950);
	background-image:
		linear-gradient(90deg, rgba(7, 17, 31, 0.94) 0%, rgba(7, 17, 31, 0.84) 42%, rgba(7, 17, 31, 0.48) 68%, rgba(7, 17, 31, 0.18) 100%),
		url("../images/hero/rashedforge-hero-clean.webp");
	background-repeat: no-repeat;
	background-size: cover;
	/* Keep gateway / rack hardware visible on the right */
	background-position: 82% center;
}

.rf-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	width: min(100% - 2.5rem, 1240px);
	margin-inline: auto;
}

.rf-hero__content {
	width: min(100%, 50%);
	max-width: 34rem;
}

.rf-hero h1 {
	margin: 0;
	font-size: clamp(2.1rem, 3.7vw, 3.35rem);
	line-height: 1.08;
	color: var(--rf-white);
	font-weight: 700;
	letter-spacing: -0.025em;
}

.rf-hero h1 .rf-accent {
	color: var(--rf-accent);
}

.rf-hero__copy {
	margin: 1.35rem 0 0;
	max-width: 34rem;
	font-size: 1.125rem;
	line-height: 1.62;
	color: rgba(232, 237, 242, 0.86);
}

.rf-hero .rf-btn-row {
	margin-top: 1.65rem;
	align-items: center;
}

.rf-hero .rf-btn-row--hero .rf-btn--primary {
	min-height: 2.85rem;
	padding-inline: 1.35rem;
}

.rf-hero__mini {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-start;
	width: fit-content;
	max-width: 100%;
	gap: 2rem;
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}

.rf-hero__mini li {
	display: inline-flex;
	align-items: center;
	gap: 0.5625rem; /* 9px icon-to-text */
	flex: 0 0 auto;
	white-space: nowrap;
	font-family: var(--rf-font-body);
	font-size: 0.9375rem; /* 15px */
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: 0;
	text-transform: none;
	color: var(--rf-text-muted-on-dark);
}

.rf-hero__mini img,
.rf-hero__mini svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	color: var(--rf-accent);
}

/* Removed inset hero card — background image only */
.rf-hero__visual {
	display: none !important;
}

.rf-industry {
	background: var(--rf-surface);
	padding-block: 3.25rem;
	text-align: center;
}

.rf-industry h2 {
	margin: 0 0 1.5rem;
	font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.rf-industry__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 0.75rem;
	margin: 0 auto;
	padding: 0;
	max-width: 56rem;
	list-style: none;
}

.rf-industry__list li {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.55rem 1.05rem;
	border: 1px solid var(--rf-border);
	border-radius: 6px;
	background: var(--rf-white);
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.2;
	color: var(--rf-text-dark);
}

/* Compact proof strip — domains + technologies only (no fabricated metrics) */
.rf-proof {
	padding-block: 2.75rem;
	background: var(--rf-white);
	border-block: 1px solid var(--rf-border);
}

.rf-proof__row {
	display: grid;
	grid-template-columns: 11.5rem minmax(0, 1fr);
	gap: 1rem 1.75rem;
	align-items: start;
}

.rf-proof__row + .rf-proof__row {
	margin-top: 1.35rem;
	padding-top: 1.35rem;
	border-top: 1px solid var(--rf-border);
}

.rf-proof__label {
	margin: 0.2rem 0 0;
	font-family: var(--rf-font-mono);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rf-metal);
	line-height: 1.4;
}

.rf-proof__chips,
.rf-proof__tech {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.55rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rf-proof__chips li {
	padding: 0.4rem 0.7rem;
	border: 1px solid var(--rf-border);
	border-radius: 6px;
	background: var(--rf-surface);
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--rf-text-dark);
	line-height: 1.3;
}

.rf-proof__tech li {
	padding: 0.28rem 0.55rem;
	border: 1px solid var(--rf-border);
	border-radius: 4px;
	font-family: var(--rf-font-mono);
	font-size: 0.78rem;
	letter-spacing: 0.02em;
	color: var(--rf-text-muted);
	background: var(--rf-white);
	line-height: 1.3;
}

.rf-grid-4,
.rf-grid-3,
.rf-grid-2,
.rf-grid-solutions,
.rf-grid-why {
	display: grid;
	gap: 1.25rem;
}

.rf-grid-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rf-grid-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rf-grid-solutions {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rf-grid-why {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rf-edge {
	display: flex;
	flex-direction: column;
	gap: 2.25rem;
	align-items: stretch;
}

.rf-edge__intro {
	max-width: 46rem;
}

.rf-edge__intro .rf-section-heading {
	margin-bottom: 1.35rem;
}

.rf-edge__diagram {
	width: 100%;
	height: auto;
	border-radius: var(--rf-radius-card);
	background: rgba(7, 17, 31, 0.35);
	border: 1px solid rgba(143, 154, 168, 0.22);
}

.rf-cta-band {
	text-align: center;
}

.rf-cta-band h2 {
	margin: 0;
	font-size: clamp(1.6rem, 3vw, 2.25rem);
	color: var(--rf-text-on-dark);
}

.rf-cta-band .rf-lead {
	margin-inline: auto;
	color: var(--rf-text-muted-on-dark);
}

.rf-cta-band .rf-btn-row {
	justify-content: center;
}

.rf-section-footer-cta {
	margin-top: 2rem;
}

.rf-grid-why {
	margin-top: 0;
	gap: 1rem;
}

.rf-section--surface .rf-section-heading {
	margin-bottom: 1.75rem;
}

/* Full-bleed sections: remove Kadence boxed framing on home */
.home #inner-wrap,
.home .site-container,
.home .content-container,
.home .entry-content-wrap,
.home .content-wrap,
.home .content-bg,
.home .content-wrap > .entry,
.home .entry-content-wrap .entry-content {
	max-width: none !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	border: 0 !important;
	border-radius: 0 !important;
}

.home .entry-content > *:not(.alignfull):not(.rf-hero):not(.rf-section):not(.rf-industry) {
	max-width: var(--rf-container);
	margin-inline: auto;
}

/* Block editor / group alignment helpers */
.entry-content .rf-hero,
.entry-content .rf-section,
.entry-content .rf-industry,
.entry-content .rf-footer {
	max-width: none;
	width: 100%;
}

.home .entry-hero-container-inner,
.home .entry-header,
.page-template-default.home .entry-header {
	display: none;
}

@media (max-width: 1280px) {
	.rf-hero {
		min-height: 660px;
	}

	.rf-hero__content {
		width: min(100%, 52%);
	}

	.rf-hero__bg {
		background-position: 86% center;
	}

	.rf-grid-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 1024px) {
	.rf-hero {
		min-height: 600px;
		padding-top: calc(var(--rf-header-h) + 2rem);
		padding-bottom: 3.5rem;
	}

	.rf-hero__content {
		width: min(100%, 34rem);
		max-width: 34rem;
	}

	.rf-hero__bg {
		background-position: 88% center;
	}

	.rf-hero__mini {
		display: grid;
		grid-template-columns: max-content max-content;
		justify-content: start;
		justify-items: start;
		width: fit-content;
		max-width: 100%;
		row-gap: 1rem; /* 16px */
		column-gap: 1.5rem; /* 24px */
	}

	.rf-hero__mini li {
		white-space: nowrap;
	}

	.rf-proof__row {
		grid-template-columns: 1fr;
		gap: 0.65rem;
	}

	.rf-grid-3,
	.rf-grid-solutions,
	.rf-grid-why {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.rf-hero {
		min-height: 0;
		padding-top: calc(var(--rf-header-h) + 1.75rem);
		padding-bottom: 3rem;
	}

	.rf-hero__content {
		width: 100%;
		max-width: none;
	}

	.rf-hero__copy {
		font-size: 1.0625rem;
	}

	.rf-btn-row .rf-btn {
		width: 100%;
	}

	.rf-btn-row--hero {
		gap: 0.65rem;
	}

	.rf-proof {
		padding-block: 2.25rem;
	}

	.rf-proof__chips,
	.rf-proof__tech {
		gap: 0.45rem;
	}

	.rf-grid-4,
	.rf-grid-3,
	.rf-grid-solutions,
	.rf-grid-why {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.rf-hero__mini {
		display: grid;
		grid-template-columns: max-content max-content;
		justify-content: start;
		width: fit-content;
		row-gap: 0.875rem;
		column-gap: 1.375rem;
	}

	.rf-hero__bg {
		background-position: 92% center;
	}

	.rf-logo__img {
		height: auto;
		max-height: 40px;
		max-width: min(220px, 55vw);
	}
}

@media (max-width: 430px) {
	.rf-proof__chips li {
		font-size: 0.88rem;
		padding: 0.35rem 0.6rem;
	}
}

@media (max-width: 390px) {
	.rf-hero__mini {
		grid-template-columns: max-content max-content;
		row-gap: 0.875rem;
		column-gap: 1.25rem;
	}

	.rf-industry__list li {
		width: 100%;
	}

	.rf-hero__bg {
		background-position: 96% center;
	}

	.rf-logo__img {
		height: auto;
		max-height: 36px;
		max-width: 180px;
	}
}

/* Premium Upgrade Phase 2 — homepage depth and storytelling */
.rf-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(rgba(143, 154, 168, 0.055) 1px, transparent 1px),
		linear-gradient(90deg, rgba(143, 154, 168, 0.055) 1px, transparent 1px),
		radial-gradient(circle at 22% 34%, rgba(47, 111, 237, 0.16), transparent 28rem);
	background-size: 34px 34px, 34px 34px, auto;
	mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.72), transparent 74%);
	pointer-events: none;
}

.rf-hero__bg {
	transform: translate3d(var(--rf-hero-shift-x, 0), var(--rf-hero-shift-y, 0), 0) scale(1.015);
	transition: transform 180ms ease-out;
	will-change: transform;
}

.rf-hero h1 {
	letter-spacing: 0;
	text-wrap: balance;
}

.rf-hero__mini {
	padding-top: 1rem;
	border-top: 1px solid rgba(232, 237, 242, 0.16);
}

.rf-industry {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0)),
		var(--rf-surface);
	border-bottom: 1px solid rgba(143, 154, 168, 0.16);
}

.rf-industry__list li,
.rf-proof__chips li,
.rf-proof__tech li {
	box-shadow: 0 1px 0 rgba(7, 17, 31, 0.03);
}

.rf-proof {
	background:
		linear-gradient(90deg, rgba(47, 111, 237, 0.055), transparent 22rem),
		var(--rf-white);
}

.rf-proof__row {
	align-items: center;
}

.rf-proof__label {
	position: relative;
	padding-left: 0.85rem;
	color: var(--rf-text-muted);
}

.rf-proof__label::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2rem;
	bottom: 0.2rem;
	width: 2px;
	background: var(--rf-accent);
	border-radius: 999px;
}

.rf-proof__tech li {
	font-weight: 500;
	color: var(--rf-navy-800);
	background: rgba(245, 247, 248, 0.86);
}

.rf-proof__metrics[hidden] {
	display: none;
}

.rf-edge {
	gap: 2.75rem;
}

.rf-edge__intro {
	position: relative;
}

.rf-e2c {
	position: relative;
	padding: 1.35rem;
	background:
		linear-gradient(rgba(143, 154, 168, 0.09) 1px, transparent 1px),
		linear-gradient(90deg, rgba(143, 154, 168, 0.09) 1px, transparent 1px),
		rgba(7, 17, 31, 0.46);
	background-size: 30px 30px;
	box-shadow: var(--rf-shadow-dark);
}

.rf-e2c::before {
	content: "";
	position: absolute;
	inset: 1rem;
	border: 1px solid rgba(26, 155, 148, 0.14);
	border-radius: calc(var(--rf-radius-card) - 2px);
	pointer-events: none;
}

.rf-e2c__chain {
	position: relative;
}

.rf-e2c__node {
	display: grid;
	align-content: center;
	min-height: 6.2rem;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
		var(--rf-navy-800);
}

.rf-e2c__layer {
	display: block;
	margin-bottom: 0.42rem;
	font-family: var(--rf-font-mono);
	font-size: 0.56rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--rf-signal);
}

.rf-e2c__node--data-path {
	border-color: rgba(47, 111, 237, 0.56);
	box-shadow: inset 0 0 0 1px rgba(47, 111, 237, 0.16);
}

.rf-solutions-premium {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}

.rf-solution-visual {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.4rem;
	margin: 0 0 1rem;
	padding: 0.75rem;
	border-radius: 8px;
	border: 1px solid rgba(143, 154, 168, 0.22);
	background: rgba(7, 17, 31, 0.34);
}

.rf-solution-visual span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 2rem;
	padding: 0.35rem;
	border: 1px solid rgba(143, 154, 168, 0.28);
	border-radius: 5px;
	font-family: var(--rf-font-mono);
	font-size: 0.64rem;
	line-height: 1.25;
	text-align: center;
	color: rgba(232, 237, 242, 0.84);
	background: rgba(18, 34, 56, 0.92);
}

.rf-solution-visual span:last-child {
	border-color: rgba(26, 155, 148, 0.48);
	color: var(--rf-white);
}

.rf-section--surface .rf-why-item {
	border-color: rgba(143, 154, 168, 0.22);
}

.rf-cta-band {
	overflow: hidden;
	background:
		radial-gradient(circle at 50% 0%, rgba(47, 111, 237, 0.17), transparent 28rem),
		linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 100%),
		var(--rf-navy-950);
	background-size: auto, 28px 28px, auto;
}

@media (max-width: 1024px) {
	.rf-solutions-premium {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.rf-hero::before {
		opacity: 0.52;
	}

	.rf-hero__bg {
		transform: none;
		will-change: auto;
	}

	.rf-solutions-premium {
		grid-template-columns: 1fr;
	}

	.rf-e2c {
		padding: 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rf-hero__bg {
		transform: none;
		transition: none;
		will-change: auto;
	}
}
