/* =====================================================================
   NetReach — New Homepage (Operator / Affiliate)
   Faithful port of the operator deck's *final* visual language:
   clean, minimal, generous whitespace, all Sofia Sans, solid-purple
   accents on light-gray backgrounds, thin rules, white bordered cards,
   soft light-gray circles, faint "n" watermark. Mobile-first.
   ===================================================================== */

:root {
	--purple:       #B184D0;
	--purple-deep:  #8E5FB7;
	--ink:          #1B1B1F;
	--ink-soft:     #4A4A52;
	--ink-mute:     #8A8A92;
	--rule:         #E6E4E4;
	--bg-1:         #F8F8F8;
	--bg-2:         #F5F5F5;
	--bg-3:         #F2F1F1;
	--white:        #ffffff;

	--sans:  "Sofia Sans", "Inter", "Mulish", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

	--shell:    1280px;
	--gutter:   20px;
	--header-h: 76px;
}

/* ---------- Reset-ish, scoped to the home body ---------- */
body.nr-home {
	margin: 0;
	font-family: var(--sans);
	color: var(--ink);
	background: var(--bg-1);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
body.nr-home * { box-sizing: border-box; }
/* Force Sofia Sans across the template — beats the theme's global body{font-family:"Assistant"} */
body.nr-home, body.nr-home h1, body.nr-home h2, body.nr-home h3, body.nr-home h4,
body.nr-home p, body.nr-home a, body.nr-home span, body.nr-home button, body.nr-home li,
body.nr-home .nr-display, body.nr-home .nr-headline, body.nr-home .nr-eyebrow { font-family: var(--sans); }
body.nr-home h1, body.nr-home h2, body.nr-home h3, body.nr-home h4, body.nr-home p { margin: 0; }
body.nr-home a { color: inherit; text-decoration: none; }
body.nr-home img { max-width: 100%; display: block; }
html.nr-home-root { scroll-behavior: smooth; }

/* ---------- Audience swap utilities ---------- */
.nr-aud-inline, .nr-aud-block { display: none; }
[data-audience="operators"] .nr-aud-inline[data-aud="operators"],
[data-audience="affiliates"] .nr-aud-inline[data-aud="affiliates"] { display: inline; }
[data-audience="operators"] .nr-aud-block[data-aud="operators"],
[data-audience="affiliates"] .nr-aud-block[data-aud="affiliates"] { display: block; }
.nr-swapping .nr-aud-inline, .nr-swapping .nr-aud-block { animation: nrFade .32s ease both; }
@keyframes nrFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- Layout shell ---------- */
.nr-shell {
	width: 100%;
	max-width: var(--shell);
	margin-inline: auto;
	padding-inline: var(--gutter);
	position: relative;
	z-index: 1;
}

/* ---------- Decorative soft circles + watermark (deck "blob" set) ---------- */
.nr-blob {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	z-index: 0;
}
.nr-blob--soft { background: #ECECEC; }
.nr-blob--soft2 { background: #EFEFEF; }
.nr-blob--ring { border: 1px solid #E2E2E2; background: transparent; }

.nr-watermark {
	position: absolute;
	right: 16px;
	bottom: 12px;
	width: 52px;
	height: auto;
	opacity: .32;
	pointer-events: none;
	z-index: 0;
}

/* ---------- Type system (matches deck scale, fluid for web) ---------- */
.nr-eyebrow {
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: .22em;
	color: var(--purple-deep);
	font-weight: 600;
}
.nr-eyebrow--label {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--ink-mute);
}
.nr-dot { width: 8px; height: 8px; background: var(--purple); border-radius: 50%; display: inline-block; }

.nr-display {
	font-size: clamp(40px, 8.4vw, 104px) !important;
	line-height: 1.02;
	font-weight: 700;
	letter-spacing: -0.035em;
	color: var(--ink);
	text-wrap: balance;
}
.nr-display--md { font-size: clamp(38px, 6.4vw, 84px); }

.nr-headline {
	font-size: clamp(34px, 6vw, 76px);
	line-height: 1.05;
	font-weight: 700;
	letter-spacing: -0.03em;
	color: var(--ink);
	text-wrap: balance;
}

/* Accent = solid deep purple, same weight/family as its parent (no italic, no serif) */
.nr-accent { color: var(--purple-deep); }

.nr-sub {
	font-size: clamp(17px, 2.3vw, 22px);
	line-height: 1.5;
	color: var(--ink-soft);
	font-weight: 400;
	max-width: 62ch;
}

.nr-divider { display: block; width: 88px; height: 4px; background: var(--purple); margin: 22px 0; }

.nr-textlink { color: var(--purple-deep); font-weight: 600; letter-spacing: .02em; }

/* ---------- Section scaffolding ---------- */
.nr-section {
	position: relative;
	overflow: hidden;
	padding: clamp(72px, 12vh, 150px) 0;
}
.bg-1 { background: var(--bg-1); }
.bg-2 { background: var(--bg-2); }
.bg-3 { background: var(--bg-3); }

/* scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	[data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
	html.nr-home-root { scroll-behavior: auto; }
}

/* =====================================================================
   HEADER
   ===================================================================== */
.nr-header {
	position: sticky;
	top: 0;
	z-index: 100;
	transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.nr-header__inner { display: flex; align-items: center; gap: 18px; height: var(--header-h); }
.nr-header[data-scrolled="true"] {
	background: rgba(248,248,248,.82);
	backdrop-filter: saturate(140%) blur(12px);
	-webkit-backdrop-filter: saturate(140%) blur(12px);
	box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.nr-brand { flex: 0 0 auto; }
.nr-brand__logo { height: 34px; width: auto; }

.nr-nav { margin-left: auto; }
.nr-nav__list { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nr-nav__link { font-size: 15px; font-weight: 600; color: var(--ink-soft); letter-spacing: .01em; position: relative; padding: 6px 0; }
.nr-nav__link::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--purple); transition: width .25s ease; }
.nr-nav__link:hover { color: var(--ink); }
.nr-nav__link:hover::after { width: 100%; }

/* ---------- Audience toggle (segmented control) ---------- */
.nr-toggle {
	position: relative;
	display: inline-flex;
	background: rgba(27,27,31,.05);
	border: 1px solid var(--rule);
	border-radius: 999px;
	padding: 4px;
	flex: 0 0 auto;
}
.nr-toggle__thumb {
	position: absolute;
	top: 4px; bottom: 4px; left: 4px;
	width: calc(50% - 4px);
	background: var(--purple-deep);
	border-radius: 999px;
	transition: transform .28s cubic-bezier(.4,0,.2,1);
	z-index: 0;
	box-shadow: 0 4px 14px rgba(142,95,183,.30);
}
[data-audience="affiliates"] .nr-toggle__thumb { transform: translateX(100%); }
.nr-toggle__btn {
	position: relative; z-index: 1;
	border: 0; background: transparent; cursor: pointer;
	font-family: inherit; font-size: 14px; font-weight: 700; letter-spacing: .02em;
	color: var(--ink-soft); padding: 8px 20px; border-radius: 999px;
	transition: color .25s ease; white-space: nowrap;
}
[data-audience="operators"] .nr-toggle__btn[data-audience-set="operators"],
[data-audience="affiliates"] .nr-toggle__btn[data-audience-set="affiliates"] { color: #fff; }

.nr-toggle--block { display: flex; width: 100%; margin-top: 18px; }
.nr-toggle--block .nr-toggle__btn { flex: 1; }

/* ---------- Burger + mobile drawer ---------- */
.nr-burger {
	display: none;
	margin-left: 6px;
	width: 44px; height: 44px;
	border: 0; background: transparent; cursor: pointer;
	flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nr-burger span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .25s ease, opacity .25s ease; }
.nr-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nr-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nr-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nr-mobile {
	border-top: 1px solid var(--rule);
	background: rgba(248,248,248,.97);
	backdrop-filter: blur(12px);
	padding: 20px var(--gutter) 28px;
}
.nr-mobile[hidden] { display: none; }
.nr-mobile__nav { display: flex; flex-direction: column; }
.nr-mobile__link { font-size: 19px; font-weight: 600; padding: 14px 0; border-bottom: 1px solid var(--rule); }

/* =====================================================================
   HERO  (Slide 1)
   ===================================================================== */
.nr-hero { padding-top: clamp(60px, 14vh, 140px); }
.nr-hero__inner { max-width: 980px; }
.nr-hero .nr-display { margin-bottom: 32px; }
.nr-hero__meta {
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
	margin-top: clamp(40px, 8vh, 88px);
	color: var(--ink-mute);
	font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
	border-top: 1px solid var(--rule); padding-top: 24px;
}

/* =====================================================================
   CHALLENGE  (Slide 2)
   ===================================================================== */
.nr-challenge .nr-headline { margin-top: 22px; }
.nr-challenge .nr-sub { margin-top: 20px; }
.nr-challenge__grid {
	margin-top: clamp(36px, 6vh, 64px);
	display: grid; grid-template-columns: 1fr; gap: 28px;
}
.nr-coltitle { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--ink-mute); margin-bottom: 18px; }
.nr-coltitle--alt { color: var(--purple-deep); }

.nr-channels { display: flex; flex-direction: column; gap: 12px; }
.nr-channel {
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
	background: #fff; border: 1px solid var(--rule);
	padding: 18px 22px;
}
.nr-channel__text { display: flex; flex-direction: column; gap: 5px; }
.nr-channel__name { font-size: 19px; font-weight: 600; color: var(--ink); }
.nr-channel__sub  { font-size: 14px; color: var(--ink-mute); }
.nr-vol { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.nr-vol__bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 26px; }
.nr-vol__bars span { width: 5px; background: var(--ink); border-radius: 1px; }
.nr-vol__label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }

/* Owned / solution card — white with purple border + left bar (deck slide 2) */
.nr-owned {
	position: relative;
	background: #fff;
	border: 1.5px solid var(--purple);
	padding: 32px 32px 28px 38px;
	height: 100%;
	display: flex; flex-direction: column;
	overflow: hidden;
}
.nr-owned::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--purple); }
.nr-owned__name { font-size: clamp(32px, 5vw, 46px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.04; color: var(--ink); }
.nr-owned__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.nr-tag {
	font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
	border: 1px solid var(--purple); color: var(--purple-deep); padding: 8px 14px;
}
.nr-owned__curve { display: block; width: 100%; height: 90px; margin-top: auto; }
.nr-owned__foot { font-size: 15px; line-height: 1.55; color: var(--ink-soft); margin-top: 18px; }

/* =====================================================================
   OUR SERVICES  (neutral capability menu, replaces "What We Build")
   ===================================================================== */
.nr-services .nr-headline { margin-top: 22px; }
.nr-services .nr-sub { margin-top: 18px; }
.nr-svc-grid { margin-top: clamp(36px, 6vh, 56px); display: grid; grid-template-columns: 1fr; gap: 16px; }
.nr-svc {
	position: relative;
	background: #fff;
	border: 1px solid var(--rule);
	padding: 24px 26px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.nr-svc:hover { border-color: var(--purple); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(27,27,31,.07); }
.nr-svc__head { display: flex; align-items: center; gap: 14px; }
.nr-svc .nr-icon { width: 28px; height: 28px; flex: 0 0 28px; color: var(--purple-deep); margin: 0; }
.nr-svc__title { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; color: var(--ink); margin: 0; }
.nr-svc__chev { margin-left: auto; color: var(--ink-mute); font-size: 22px; line-height: 1; transition: transform .2s ease, color .2s ease; }
.nr-svc:hover .nr-svc__chev { color: var(--purple-deep); transform: translateX(3px); }
.nr-svc__body { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }

/* "Let's talk" tile that completes the grid */
.nr-svc--cta { background: var(--purple); border-color: var(--purple); text-decoration: none; }
.nr-svc--cta:hover { background: var(--purple-deep); border-color: var(--purple-deep); box-shadow: 0 16px 38px rgba(142,95,183,.32); }
.nr-svc--cta .nr-svc__title { color: #fff; }
.nr-svc--cta .nr-svc__body { color: rgba(255,255,255,.85); }
.nr-svc--cta .nr-svc__chev { color: #fff; }
.nr-svc__cta-label { margin-top: auto; color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .01em; }

.nr-build__foot {
	margin-top: clamp(32px, 5vh, 52px);
	text-align: center;
	font-size: clamp(16px, 2.2vw, 20px);
	color: var(--ink-soft);
	line-height: 1.5;
}
.nr-build__foot-em { display: block; margin-top: 6px; color: var(--ink); font-weight: 600; }

/* =====================================================================
   APPROACH  (Slide 4)
   ===================================================================== */
.nr-approach .nr-headline { margin-top: 22px; }
.nr-approach .nr-sub { margin-top: 18px; }
.nr-steps {
	list-style: none; margin: clamp(44px, 8vh, 88px) 0 0; padding: 0;
	display: grid; grid-template-columns: 1fr; gap: 44px;
	position: relative;
}
.nr-step { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.nr-step__num {
	width: 92px; height: 92px; border-radius: 50%;
	background: #fff; border: 1.5px solid var(--purple);
	color: var(--purple-deep);
	font-size: 40px; font-weight: 700; letter-spacing: -0.02em;
	display: flex; align-items: center; justify-content: center;
	margin-bottom: 28px;
}
.nr-step__label { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; margin-bottom: 12px; }
.nr-step__title { font-size: clamp(26px, 3.5vw, 40px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 16px; color: var(--ink); }
.nr-step__body { font-size: 16px; line-height: 1.55; color: var(--ink-soft); max-width: 42ch; }

.nr-approach__tag {
	display: flex; align-items: center; gap: 14px;
	margin-top: clamp(40px, 7vh, 72px);
	font-size: 18px; color: var(--ink-soft);
}
.nr-pip { width: 10px; height: 10px; background: var(--purple); border-radius: 50%; }

/* =====================================================================
   CLOSING  (Slide 5)
   ===================================================================== */
.nr-closing__grid { margin-top: clamp(28px, 5vh, 48px); display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.nr-closing__left { display: flex; flex-direction: column; gap: 28px; }
.nr-closing__left .nr-display { margin: 0; }
.nr-cta-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 6px; }
.nr-cta {
	display: inline-flex; align-items: center; gap: 12px;
	background: var(--purple); color: #fff;
	padding: 16px 30px;
	font-weight: 600; font-size: 17px; letter-spacing: .01em;
	transition: transform .2s ease, background .2s ease;
}
.nr-cta:hover { transform: translateY(-2px); background: var(--purple-deep); }
.nr-cta__arrow { transition: transform .2s ease; }
.nr-cta:hover .nr-cta__arrow { transform: translateX(4px); }
.nr-cta-meta { font-size: 14px; color: var(--ink-mute); letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
.nr-cta-meta:hover { color: var(--purple-deep); }
.nr-closing__visual { width: 100%; max-width: 520px; margin-inline: auto; }
.nr-closing__curve { stroke-dasharray: 900; stroke-dashoffset: 900; }
.is-visible .nr-closing__curve { animation: nrDraw 1.6s ease forwards .2s; }
@keyframes nrDraw { to { stroke-dashoffset: 0; } }

/* =====================================================================
   FOOTER  (light, on-brand)
   ===================================================================== */
.nr-footer {
	position: relative;
	background: var(--bg-3);
	color: var(--ink-soft);
	padding: clamp(56px, 9vh, 96px) 0 32px;
	overflow: hidden;
	border-top: 1px solid var(--rule);
}
.nr-footer__inner {
	display: grid; grid-template-columns: 1fr; gap: 44px;
	padding-bottom: 40px; border-bottom: 1px solid var(--rule);
}
.nr-footer__logo { height: 30px; width: auto; margin-bottom: 4px; }
.nr-footer__tagline { margin-top: 22px; font-size: 15px; line-height: 1.6; max-width: 42ch; color: var(--ink-soft); }
.nr-regions { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.nr-region { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); }
.nr-region__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--purple); }

.nr-footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; }
.nr-footer__col h4 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); font-weight: 600; margin-bottom: 24px; }
.nr-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.nr-footer__col a { font-size: 15px; color: var(--ink-soft); transition: color .2s ease; }
.nr-footer__col a:hover { color: var(--purple-deep); }

.nr-footer__bar {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	padding-top: 26px;
	font-size: 13px; color: var(--ink-mute); letter-spacing: .04em;
}
.nr-footer__watermark { position: absolute; right: 3%; bottom: 8%; width: 110px; opacity: .25; pointer-events: none; }

/* =====================================================================
   RESPONSIVE — tablet
   ===================================================================== */
@media (min-width: 700px) {
	:root { --gutter: 40px; }
	.nr-svc-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
	.nr-footer__inner { grid-template-columns: 1.2fr 1fr; }
	.nr-footer__cols { grid-template-columns: repeat(3, 1fr); }
}

/* =====================================================================
   RESPONSIVE — desktop
   ===================================================================== */
@media (min-width: 1000px) {
	:root { --gutter: 56px; --header-h: 84px; }
	.nr-challenge__grid { grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: stretch; }
	.nr-steps { grid-template-columns: repeat(3, 1fr); gap: 0; }
	.nr-step { padding: 0 32px; }
	.nr-step:first-child { padding-left: 0; }
	.nr-steps::before { content: ""; position: absolute; top: 46px; left: 8%; right: 8%; height: 1px; background: var(--rule); z-index: 0; }
	.nr-step__num { position: relative; z-index: 1; }
	.nr-closing__grid { grid-template-columns: 1.1fr .9fr; gap: 64px; }
	.nr-closing__visual { margin-inline: 0; justify-self: end; }
	.nr-svc-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =====================================================================
   RESPONSIVE — mobile nav switch
   ===================================================================== */
@media (max-width: 860px) {
	.nr-nav { display: none; }
	.nr-header .nr-header__inner > .nr-toggle { display: none; } /* lives in the drawer on mobile */
	.nr-burger { display: flex; margin-left: auto; }
}
@media (min-width: 861px) {
	.nr-mobile { display: none !important; }
}
