.resources-page {
	--resources-navy: var(--bg);
	--resources-violet: var(--v1);
	--resources-lavender: var(--v3);
	--resources-ink: var(--ink-dark);
	--resources-muted: var(--muted-dark);
	--resources-line: var(--line-dark);
	--resources-surface: #fbfafc;
	--resources-card: #fff;
	--resources-icon: #f1ebfb;
	--resources-image: #ece9f3;
	--resources-soumia-start: #eee5fb;
	margin: 0;
	background: var(--resources-navy);
	color: var(--resources-ink);
	font-family: "Public Sans", ui-sans-serif, system-ui, sans-serif;
}

.dark .resources-page {
	--resources-violet: #c5a6f6;
	--resources-lavender: #d8c4ff;
	--resources-ink: #f4f3fb;
	--resources-muted: #c4bfd5;
	--resources-line: rgba(255, 255, 255, 0.14);
	--resources-surface: #0d1948;
	--resources-card: #132056;
	--resources-icon: #281a63;
	--resources-image: #1b2558;
	--resources-soumia-start: #251653;
	color-scheme: dark;
}

.resources-page .nav { background: rgba(7, 25, 87, 0.84); }
.resources-page .nav.scrolled { background: rgba(7, 25, 87, 0.96); }
.resources-page .nav-links a { color: #d7d4e7; }
.resources-page .nav-links a:hover,
.resources-page .nav-links a[aria-current="page"] { color: #fff; }

.resources-hero {
	position: relative;
	overflow: hidden;
	padding-block: calc(var(--nav-h) + clamp(62px, 9vw, 116px)) clamp(70px, 9vw, 112px);
	background:
		radial-gradient(circle at 82% 18%, rgba(176, 137, 242, 0.28), transparent 25%),
		linear-gradient(135deg, #071957 0%, #170c43 58%, #35137b 100%);
	color: #fff;
}
.resources-orbit {
	position: absolute;
	inset: -35% -18% auto auto;
	width: 68vw;
	aspect-ratio: 1;
	border: 1px solid rgba(255, 255, 255, 0.11);
	border-radius: 50%;
	box-shadow: 0 0 0 80px rgba(255, 255, 255, 0.025), 0 0 0 170px rgba(176, 137, 242, 0.025);
}
.resources-hero-grid {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.5fr);
	gap: clamp(42px, 8vw, 110px);
	align-items: end;
}
.resources-hero h1 {
	max-width: 900px;
	margin: 20px 0 0;
	color: #fff;
	font-size: clamp(44px, 7vw, 88px);
	line-height: 0.98;
	letter-spacing: -0.055em;
}
.resources-hero h1 .grad {
	display: block;
	background: linear-gradient(120deg, #fff 5%, #d4bfff 48%, #b089f2 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.resources-hero p {
	max-width: 68ch;
	margin: 24px 0 0;
	color: #d4d0e4;
	font-size: clamp(17px, 1.7vw, 21px);
	line-height: 1.65;
}
.resources-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 30px; }
.resources-actions .btn { gap: 9px; }
.resources-actions svg { width: 17px; height: 17px; }
.resources-btn-secondary { border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.08); color: #fff; }
.resources-btn-secondary:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.resources-index { display: grid; border-block: 1px solid rgba(255, 255, 255, 0.16); }
.resources-index span { padding: 15px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.11); color: #d5d1e4; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.resources-index span:last-child { border-bottom: 0; }

.resources-surface { background: var(--resources-surface); }
.resources-wrap { padding-block: clamp(48px, 7vw, 92px); }
.resources-gateways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.resources-gateways > a {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 15px;
	align-items: center;
	padding: 21px;
	border: 1px solid var(--resources-line);
	border-radius: 18px;
	background: var(--resources-card);
	box-shadow: 0 20px 48px -42px rgba(7, 25, 87, 0.55);
}
.resources-gateways > a:hover { border-color: rgba(74, 31, 168, 0.3); }
.resources-gateways > a > svg { width: 17px; height: 17px; color: var(--resources-violet); }
.resources-gateway-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--resources-icon); color: var(--resources-violet); }
.resources-gateway-icon svg { width: 19px; height: 19px; }
.resources-gateways a > span:nth-child(2) { display: grid; gap: 3px; }
.resources-gateways b { font-size: 15px; }
.resources-gateways small { color: var(--resources-muted); font-size: 12.5px; line-height: 1.5; }

.resources-featured {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
	overflow: hidden;
	border: 1px solid var(--resources-line);
	border-radius: 24px;
	background: var(--resources-card);
	box-shadow: 0 36px 80px -58px rgba(7, 25, 87, 0.62);
}
.resources-featured-image { min-height: 370px; overflow: hidden; background: var(--resources-image); }
.resources-featured-image img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 350ms ease; }
.resources-featured:hover img { transform: scale(1.025); }
.resources-featured-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4vw, 50px); }
.resources-label, .resources-kicker { color: var(--resources-violet); font-size: 11px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.resources-featured h2 { margin: 14px 0 12px; color: var(--resources-ink); font-size: clamp(27px, 3.3vw, 42px); line-height: 1.08; letter-spacing: -0.04em; }
.resources-featured p { margin: 0; color: var(--resources-muted); font-size: 15px; line-height: 1.65; }
.resources-read { display: inline-flex; gap: 8px; align-items: center; margin-top: 22px; color: var(--resources-violet); font-size: 13px; font-weight: 700; }
.resources-read svg { width: 15px; height: 15px; }

.resources-section-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
	gap: 44px;
	align-items: end;
	margin: clamp(62px, 8vw, 96px) 0 26px;
}
.resources-section-head h2 { margin: 8px 0 0; color: var(--resources-ink); font-size: clamp(31px, 4.2vw, 54px); line-height: 1.06; letter-spacing: -0.045em; }
.resources-section-head > p { margin: 0; color: var(--resources-muted); font-size: 15px; line-height: 1.68; }
.resources-pillar-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.resources-pillar {
	grid-column: span 2;
	min-width: 0;
	padding: 25px;
	border: 1px solid var(--resources-line);
	border-radius: 19px;
	background: var(--resources-card);
	box-shadow: 0 24px 54px -48px rgba(7, 25, 87, 0.62);
}
.resources-pillar--flagship { grid-column: span 3; background: linear-gradient(145deg, #271064, #071957); color: #fff; }
.resources-pillar:nth-child(2) { grid-column: span 3; }
.resources-pillar-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 22px; border-radius: 13px; background: var(--resources-icon); color: var(--resources-violet); }
.resources-pillar-icon svg { width: 21px; height: 21px; }
.resources-pillar--flagship .resources-pillar-icon { background: rgba(255, 255, 255, 0.1); color: #fff; }
.resources-pillar--flagship .resources-label { color: #d2baff; }
.resources-pillar h3 { margin: 9px 0 10px; color: var(--resources-ink); font-size: 21px; letter-spacing: -0.025em; }
.resources-pillar--flagship h3 { color: #fff; }
.resources-pillar p { margin: 0; color: var(--resources-muted); font-size: 13.5px; line-height: 1.6; }
.resources-pillar--flagship p { color: #d5d1e4; }
.resources-pillar ul { display: grid; gap: 8px; margin: 20px 0 0; padding: 17px 0 0 18px; border-top: 1px solid var(--resources-line); }
.resources-pillar--flagship ul { border-color: rgba(255, 255, 255, 0.13); }
.resources-pillar li { color: var(--resources-muted); font-size: 12.5px; }
.resources-pillar--flagship li { color: #ece9f5; }
.resources-pillar li::marker { color: var(--resources-lavender); }

.resources-soumia {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: clamp(22px, 4vw, 42px);
	align-items: center;
	margin-top: clamp(54px, 8vw, 92px);
	padding: clamp(28px, 5vw, 58px);
	border-radius: 24px;
	background: linear-gradient(125deg, var(--resources-soumia-start), var(--resources-card) 72%);
	box-shadow: inset 0 0 0 1px rgba(74, 31, 168, 0.12);
}
.resources-soumia-mark { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 20px; background: linear-gradient(145deg, #4a1fa8, #071957); color: #fff; box-shadow: 0 22px 44px -24px rgba(74, 31, 168, 0.7); }
.resources-soumia-mark svg { width: 27px; height: 27px; }
.resources-soumia h2 { margin: 8px 0 10px; color: var(--resources-ink); font-size: clamp(28px, 3.7vw, 46px); line-height: 1.08; letter-spacing: -0.04em; }
.resources-soumia p { max-width: 76ch; margin: 0; color: var(--resources-muted); line-height: 1.67; }

.resources-faq { margin-top: clamp(62px, 8vw, 96px); }
.resources-faq .resources-section-head { grid-template-columns: 1fr; margin: 0 0 22px; }
.resources-faq details { padding: 21px 0; border-top: 1px solid var(--resources-line); }
.resources-faq details:last-child { border-bottom: 1px solid var(--resources-line); }
.resources-faq summary { color: var(--resources-ink); font-size: 16px; font-weight: 700; cursor: pointer; }
.resources-faq details p { max-width: 75ch; margin: 13px 0 0; color: var(--resources-muted); font-size: 14px; line-height: 1.65; }

.resources-cta { padding-block: clamp(50px, 7vw, 82px); background: var(--resources-navy); color: #fff; }
.resources-cta-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 46px; align-items: center; }
.resources-cta h2 { margin: 8px 0 0; color: #fff; font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.04em; }
.resources-cta p { margin: 12px 0 0; color: #ccc8dc; }
.resources-cta .resources-kicker { color: var(--resources-lavender); }
.resources-cta .resources-actions { margin-top: 0; }
.resources-footer { background: #050f38; }

@media (max-width: 900px) {
	.resources-hero-grid,
	.resources-section-head,
	.resources-cta-inner { grid-template-columns: 1fr; }
	.resources-index { max-width: 420px; }
	.resources-featured { grid-template-columns: 1fr; }
	.resources-featured-image { min-height: 280px; max-height: 420px; }
	.resources-pillar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.resources-pillar,
	.resources-pillar--flagship,
	.resources-pillar:nth-child(2) { grid-column: auto; }
	.resources-cta .resources-actions { margin-top: 0; }
}

@media (max-width: 640px) {
	.resources-page .nav.open { background: #071957; }
	.resources-hero { padding-block: calc(var(--nav-h) + 42px) 58px; }
	.resources-hero-grid { gap: 32px; }
	.resources-hero h1 { font-size: clamp(40px, 13vw, 58px); }
	.resources-actions { align-items: stretch; flex-direction: column; }
	.resources-actions .btn { width: 100%; }
	.resources-gateways,
	.resources-pillar-grid { grid-template-columns: 1fr; }
	.resources-featured-image { min-height: 210px; }
	.resources-featured-copy,
	.resources-pillar { padding: 22px; }
	.resources-soumia { grid-template-columns: 1fr; }
	.resources-soumia-mark { width: 54px; height: 54px; border-radius: 15px; }
	.resources-section-head { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.resources-featured-image img { transition: none; }
	.resources-featured:hover img { transform: none; }
}
