/* ==========================================================================
   Notes Baba Network Hub — stylesheet
   Design tokens
   --nbnh-bg        #0B0B1E  deep space navy background
   --nbnh-surface   #14142E  glass card base
   --nbnh-violet    #7C5CFF  primary AI accent
   --nbnh-cyan      #22D3EE  secondary accent
   --nbnh-pink      #FF4FD8  tertiary accent
   --nbnh-amber     #FFB020  quaternary accent / CTA warmth
   Type: Space Grotesk (display) / Inter (body) / JetBrains Mono (utility)
   Scoped under .nbnh-home to avoid leaking into the active theme.
   ========================================================================== */

.nbnh-home {
	--nbnh-bg: #FFFFFF;
	--nbnh-surface: #F7F7FB;
	--nbnh-surface-2: #EFEFF6;
	--nbnh-violet: #7C5CFF;
	--nbnh-violet-deep: #5B3DE0;
	--nbnh-cyan: #22D3EE;
	--nbnh-pink: #FF4FD8;
	--nbnh-amber: #FFB020;
	--nbnh-text: #0A0A0F;
	--nbnh-muted: #55565F;
	--nbnh-line: rgba(10, 10, 15, 0.1);

	--nbnh-font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
	--nbnh-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--nbnh-font-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;

	background: var(--nbnh-bg);
	color: var(--nbnh-text);
	font-family: var(--nbnh-font-body);
	line-height: 1.6;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

.nbnh-home * { box-sizing: border-box; }
.nbnh-home img { max-width: 100%; display: block; }
.nbnh-home a { color: inherit; text-decoration: none; }
.nbnh-home ol, .nbnh-home ul { list-style: none; margin: 0; padding: 0; }
.nbnh-home blockquote { margin: 0; }

.nbnh-home .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ---------- shared rhythm ---------- */

.nbnh-home .nbnh-section {
	max-width: 1180px;
	margin: 0 auto;
	padding: clamp(3.5rem, 7vw, 6.5rem) 1.5rem;
	position: relative;
}

.nbnh-home .nbnh-section__head {
	max-width: 640px;
	margin: 0 auto 2.75rem;
	text-align: center;
}

.nbnh-home .nbnh-eyebrow {
	font-family: var(--nbnh-font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	background: linear-gradient(90deg, var(--nbnh-violet-deep), var(--nbnh-pink));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-weight: 700;
	margin: 0 0 0.75rem;
}

.nbnh-home .nbnh-section__title {
	font-family: var(--nbnh-font-display);
	font-weight: 600;
	font-size: clamp(1.6rem, 3vw, 2.35rem);
	line-height: 1.2;
	margin: 0;
	color: var(--nbnh-text);
}

.nbnh-home .nbnh-section__sub {
	margin: 0.9rem auto 0;
	color: var(--nbnh-muted);
	font-size: 1rem;
}

.nbnh-home .nbnh-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--nbnh-font-mono);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background: rgba(124, 92, 255, 0.1);
	border: 1px solid rgba(124, 92, 255, 0.35);
	color: var(--nbnh-violet-deep);
	padding: 0.45rem 0.9rem;
	border-radius: 999px;
	margin: 0 0 1.4rem;
}
.nbnh-home .nbnh-badge--light { background: rgba(10, 10, 15, 0.04); border-color: rgba(10, 10, 15, 0.14); color: var(--nbnh-text); }
.nbnh-home .nbnh-badge__dot {
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--nbnh-cyan);
	box-shadow: 0 0 8px 2px var(--nbnh-cyan);
	animation: nbnh-pulse 1.8s ease-in-out infinite;
}

@keyframes nbnh-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.4; transform: scale(0.7); }
}

/* ==========================================================================
   HERO
   ========================================================================== */

.nbnh-home .nbnh-hero {
	position: relative;
	padding: clamp(4rem, 9vw, 6.5rem) 1.5rem clamp(3rem, 6vw, 4.5rem);
	overflow: hidden;
	isolation: isolate;
}

.nbnh-home .nbnh-hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.nbnh-home .nbnh-blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.22;
	animation: nbnh-drift 20s ease-in-out infinite;
}
.nbnh-home .nbnh-blob--a { width: 420px; height: 420px; top: -160px; left: -100px; background: var(--nbnh-violet); }
.nbnh-home .nbnh-blob--b { width: 380px; height: 380px; top: 20%; right: -120px; background: var(--nbnh-pink); animation-delay: 5s; }
.nbnh-home .nbnh-blob--c { width: 340px; height: 340px; bottom: -140px; left: 30%; background: var(--nbnh-cyan); animation-delay: 9s; opacity: 0.16; }

@keyframes nbnh-drift {
	0%, 100% { transform: translate(0,0) scale(1); }
	50% { transform: translate(40px, -30px) scale(1.1); }
}

.nbnh-home .nbnh-grain {
	position: absolute; inset: 0;
	background-image: radial-gradient(rgba(10,10,15,0.035) 1px, transparent 1px);
	background-size: 3px 3px;
	opacity: 0.5;
}

.nbnh-home .nbnh-hero__grid {
	position: relative;
	z-index: 1;
	max-width: 1180px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}

.nbnh-home .nbnh-hero__title {
	font-family: var(--nbnh-font-display);
	font-weight: 600;
	font-size: clamp(2rem, 4.6vw, 3.1rem);
	line-height: 1.14;
	letter-spacing: -0.01em;
	margin: 0 0 1.1rem;
}
.nbnh-home .nbnh-hero__title-grad {
	background: linear-gradient(90deg, var(--nbnh-violet), var(--nbnh-pink) 50%, var(--nbnh-cyan));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.nbnh-home .nbnh-hero__subtitle {
	font-size: clamp(1rem, 1.4vw, 1.1rem);
	color: var(--nbnh-muted);
	max-width: 520px;
	margin: 0 0 2rem;
}

.nbnh-home .nbnh-hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.nbnh-home .nbnh-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-family: var(--nbnh-font-body);
	font-weight: 700;
	font-size: 0.95rem;
	padding: 0.85rem 1.6rem;
	border-radius: 999px;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
	cursor: pointer;
	border: 1px solid transparent;
}
.nbnh-home .nbnh-btn--primary {
	background: linear-gradient(90deg, var(--nbnh-violet), var(--nbnh-pink));
	color: #fff;
	box-shadow: 0 14px 30px -12px rgba(124, 92, 255, 0.6);
}
.nbnh-home .nbnh-btn--primary:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -12px rgba(124, 92, 255, 0.75); }
.nbnh-home .nbnh-btn--ghost {
	background: transparent;
	color: var(--nbnh-text);
	border-color: var(--nbnh-line);
}
.nbnh-home .nbnh-btn--ghost:hover { border-color: var(--nbnh-cyan); color: var(--nbnh-cyan); transform: translateY(-3px); }
.nbnh-home .nbnh-btn:focus-visible { outline: 3px solid var(--nbnh-cyan); outline-offset: 2px; }

/* ---------- signature: network orbit graphic ---------- */

.nbnh-home .nbnh-orbit {
	position: relative;
	width: min(400px, 100%);
	aspect-ratio: 1 / 1;
	margin: 0 auto;
}
.nbnh-home .nbnh-orbit__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.nbnh-home .nbnh-orbit__path {
	fill: none;
	stroke: url(#nbnh-grad);
	stroke-width: 2;
	stroke-dasharray: 6 8;
	opacity: 0.6;
	animation: nbnh-flow 2.4s linear infinite;
}
@keyframes nbnh-flow { to { stroke-dashoffset: -140; } }

.nbnh-home .nbnh-orbit__hub,
.nbnh-home .nbnh-orbit__node {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--nbnh-font-display);
	font-weight: 700;
	border-radius: 50%;
	color: #fff;
	transform: translate(-50%, -50%);
}
.nbnh-home .nbnh-orbit__hub {
	top: 50%; left: 50%;
	width: 27%; height: 27%;
	font-size: clamp(1rem, 2.2vw, 1.3rem);
	background: linear-gradient(135deg, var(--nbnh-violet), var(--nbnh-pink));
	box-shadow: 0 0 0 8px rgba(124, 92, 255, 0.12), 0 0 40px rgba(124, 92, 255, 0.55);
	animation: nbnh-pulse-hub 3s ease-in-out infinite;
}
@keyframes nbnh-pulse-hub {
	0%, 100% { box-shadow: 0 0 0 8px rgba(124, 92, 255, 0.12), 0 0 40px rgba(124, 92, 255, 0.55); }
	50% { box-shadow: 0 0 0 14px rgba(124, 92, 255, 0.05), 0 0 55px rgba(124, 92, 255, 0.75); }
}
.nbnh-home .nbnh-orbit__node {
	width: 17%; height: 17%;
	font-size: clamp(0.7rem, 1.4vw, 0.85rem);
	background: var(--nbnh-surface-2);
	border: 1px solid var(--nbnh-line);
}
.nbnh-home .nbnh-orbit__node--1 { top: 12.5%; left: 50%; background: linear-gradient(135deg, var(--nbnh-violet), #4a3aa8); }
.nbnh-home .nbnh-orbit__node--2 { top: 35%; left: 85%; background: linear-gradient(135deg, var(--nbnh-cyan), #0e8fa8); }
.nbnh-home .nbnh-orbit__node--3 { top: 65%; left: 85%; background: linear-gradient(135deg, var(--nbnh-pink), #a52a8f); }
.nbnh-home .nbnh-orbit__node--4 { top: 65%; left: 15%; background: linear-gradient(135deg, var(--nbnh-amber), #b8790f); }

.nbnh-home .nbnh-hero__stats {
	position: relative;
	z-index: 1;
	max-width: 1180px;
	margin: clamp(2.5rem, 6vw, 4rem) auto 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: clamp(1.5rem, 4vw, 3rem);
	border-top: 1px solid var(--nbnh-line);
	padding-top: 2.25rem;
}
.nbnh-home .nbnh-stat { text-align: center; }
.nbnh-home .nbnh-stat__num {
	display: block;
	font-family: var(--nbnh-font-mono);
	font-weight: 700;
	font-size: clamp(1.3rem, 2.4vw, 1.7rem);
	background: linear-gradient(90deg, var(--nbnh-violet-deep), var(--nbnh-pink));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.nbnh-home .nbnh-stat__label { display: block; font-size: 0.78rem; color: var(--nbnh-muted); margin-top: 0.2rem; }

/* ==========================================================================
   CARDS + REVEAL
   ========================================================================== */

.nbnh-home .nbnh-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s cubic-bezier(0.2,0.7,0.3,1), transform 0.7s cubic-bezier(0.2,0.7,0.3,1);
}
.nbnh-home .nbnh-reveal.is-visible { opacity: 1; transform: translateY(0); }
.nbnh-home .nbnh-reveal-grid .nbnh-reveal:nth-child(2) { transition-delay: 0.08s; }
.nbnh-home .nbnh-reveal-grid .nbnh-reveal:nth-child(3) { transition-delay: 0.16s; }
.nbnh-home .nbnh-reveal-grid .nbnh-reveal:nth-child(4) { transition-delay: 0.24s; }
.nbnh-home .nbnh-reveal-grid .nbnh-reveal:nth-child(5) { transition-delay: 0.32s; }
.nbnh-home .nbnh-reveal-grid .nbnh-reveal:nth-child(6) { transition-delay: 0.4s; }

.nbnh-home .nbnh-card {
	background: var(--nbnh-bg);
	border: 1px solid var(--nbnh-line);
	border-radius: 18px;
	padding: 1.9rem 1.7rem;
	box-shadow: 0 10px 30px -22px rgba(10, 10, 15, 0.18);
	transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.nbnh-home .nbnh-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 26px 44px -22px rgba(124, 92, 255, 0.35);
	border-color: rgba(124, 92, 255, 0.5);
}

.nbnh-home .nbnh-card__title { font-family: var(--nbnh-font-display); font-weight: 600; font-size: 1.12rem; margin: 0 0 0.5rem; }
.nbnh-home .nbnh-card__text { font-size: 0.94rem; color: var(--nbnh-muted); margin: 0; }

/* ---------- website cards ---------- */

.nbnh-home .nbnh-site-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.nbnh-home .nbnh-site-card { position: relative; overflow: hidden; }
.nbnh-home .nbnh-site-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.nbnh-home .nbnh-site-card__badge {
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px;
	border-radius: 12px;
	font-family: var(--nbnh-font-display); font-weight: 700; font-size: 0.85rem;
	color: #fff;
}
.nbnh-home .nbnh-site-card--violet .nbnh-site-card__badge { background: linear-gradient(135deg, var(--nbnh-violet), #4a3aa8); }
.nbnh-home .nbnh-site-card--cyan .nbnh-site-card__badge   { background: linear-gradient(135deg, var(--nbnh-cyan), #0e8fa8); }
.nbnh-home .nbnh-site-card--pink .nbnh-site-card__badge   { background: linear-gradient(135deg, var(--nbnh-pink), #a52a8f); }
.nbnh-home .nbnh-site-card--amber .nbnh-site-card__badge  { background: linear-gradient(135deg, var(--nbnh-amber), #b8790f); }

.nbnh-home .nbnh-site-card__tag {
	font-family: var(--nbnh-font-mono);
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--nbnh-muted);
	border: 1px solid var(--nbnh-line);
	border-radius: 999px;
	padding: 0.25rem 0.6rem;
}
.nbnh-home .nbnh-site-card__link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-top: 1.1rem;
	font-weight: 700;
	font-size: 0.88rem;
	color: var(--nbnh-cyan);
}
.nbnh-home .nbnh-site-card__link:hover { color: var(--nbnh-pink); }

/* ---------- academy teaser ---------- */

.nbnh-home .nbnh-academy__card {
	position: relative;
	max-width: 780px;
	margin: 0 auto;
	text-align: center;
	background: linear-gradient(160deg, rgba(124,92,255,0.16), rgba(255,79,216,0.08));
	border: 1px solid rgba(124, 92, 255, 0.4);
	border-radius: 26px;
	padding: clamp(2.5rem, 6vw, 3.75rem);
	overflow: hidden;
}
.nbnh-home .nbnh-academy__glow {
	position: absolute;
	width: 340px; height: 340px;
	background: var(--nbnh-violet);
	filter: blur(90px);
	opacity: 0.35;
	top: -100px; right: -60px;
	border-radius: 50%;
}
.nbnh-home .nbnh-academy__title {
	position: relative;
	font-family: var(--nbnh-font-display);
	font-weight: 700;
	font-size: clamp(1.7rem, 3.6vw, 2.4rem);
	margin: 0 0 0.9rem;
	background: linear-gradient(90deg, var(--nbnh-cyan), var(--nbnh-violet), var(--nbnh-pink));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.nbnh-home .nbnh-academy__text {
	position: relative;
	color: var(--nbnh-muted);
	max-width: 560px;
	margin: 0 auto 2rem;
}
.nbnh-home .nbnh-academy__form {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	max-width: 480px;
	margin: 0 auto;
}
.nbnh-home .nbnh-academy__input {
	flex: 1;
	min-width: 220px;
	background: var(--nbnh-bg);
	border: 1px solid var(--nbnh-line);
	border-radius: 999px;
	padding: 0.85rem 1.3rem;
	color: var(--nbnh-text);
	font-family: var(--nbnh-font-body);
	font-size: 0.95rem;
}
.nbnh-home .nbnh-academy__input::placeholder { color: rgba(10,10,15,0.35); }
.nbnh-home .nbnh-academy__input:focus { outline: none; border-color: var(--nbnh-cyan); }
.nbnh-home .nbnh-form__message { position: relative; font-weight: 600; padding: 0.9rem 1.2rem; border-radius: 12px; display: inline-block; }
.nbnh-home .nbnh-form__message--success { background: rgba(34, 211, 238, 0.14); color: var(--nbnh-cyan); border: 1px solid rgba(34,211,238,0.4); }
.nbnh-home .nbnh-form__message--error { background: rgba(255, 79, 216, 0.12); color: var(--nbnh-pink); border: 1px solid rgba(255,79,216,0.4); }

/* ---------- feature cards ---------- */

.nbnh-home .nbnh-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.nbnh-home .nbnh-feature-card__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 46px; height: 46px;
	font-size: 1.4rem;
	background: rgba(124, 92, 255, 0.14);
	border-radius: 12px;
	margin-bottom: 1rem;
}

/* ---------- testimonials ---------- */

.nbnh-home .nbnh-testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.nbnh-home .nbnh-testimonial-card { display: flex; flex-direction: column; }
.nbnh-home .nbnh-stars { color: var(--nbnh-amber); font-size: 0.9rem; margin-bottom: 0.8rem; letter-spacing: 0.1em; }
.nbnh-home .nbnh-testimonial-card blockquote {
	font-family: var(--nbnh-font-display);
	font-size: 1rem;
	line-height: 1.55;
	color: var(--nbnh-muted);
	flex-grow: 1;
}
.nbnh-home .nbnh-testimonial-card figcaption {
	display: flex; flex-direction: column;
	margin-top: 1.2rem; padding-top: 1rem;
	border-top: 1px solid var(--nbnh-line);
	font-size: 0.85rem;
}
.nbnh-home .nbnh-testimonial-card figcaption strong { color: var(--nbnh-text); }
.nbnh-home .nbnh-testimonial-card figcaption span { color: var(--nbnh-muted); }

/* ---------- FAQ ---------- */

.nbnh-home .nbnh-faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.8rem; }
.nbnh-home .nbnh-faq-item {
	background: var(--nbnh-surface);
	border: 1px solid var(--nbnh-line);
	border-radius: 14px;
	padding: 1.1rem 1.4rem;
}
.nbnh-home .nbnh-faq-item summary {
	cursor: pointer;
	font-weight: 700;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}
.nbnh-home .nbnh-faq-item summary::-webkit-details-marker { display: none; }
.nbnh-home .nbnh-faq-item summary::after {
	content: "+";
	font-size: 1.3rem;
	color: var(--nbnh-cyan);
	flex-shrink: 0;
	transition: transform 0.2s ease;
}
.nbnh-home .nbnh-faq-item[open] summary::after { transform: rotate(45deg); }
.nbnh-home .nbnh-faq-item p { margin: 0.8rem 0 0; color: var(--nbnh-muted); font-size: 0.95rem; }

/* ---------- final CTA ---------- */

.nbnh-home .nbnh-cta__card {
	position: relative;
	text-align: center;
	background: linear-gradient(135deg, rgba(124,92,255,0.18), rgba(34,211,238,0.1));
	border: 1px solid var(--nbnh-line);
	border-radius: 26px;
	padding: clamp(2.5rem, 6vw, 3.75rem);
}
.nbnh-home .nbnh-cta__title { font-family: var(--nbnh-font-display); font-weight: 700; font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin: 0 0 0.75rem; }
.nbnh-home .nbnh-cta__text { color: var(--nbnh-muted); margin: 0 0 1.75rem; }
.nbnh-home .nbnh-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1000px) {
	.nbnh-home .nbnh-hero__grid { grid-template-columns: 1fr; text-align: center; }
	.nbnh-home .nbnh-hero__copy { order: 1; }
	.nbnh-home .nbnh-orbit { order: 0; margin-bottom: 1rem; }
	.nbnh-home .nbnh-hero__actions { justify-content: center; }
	.nbnh-home .nbnh-site-grid { grid-template-columns: repeat(2, 1fr); }
	.nbnh-home .nbnh-feature-grid,
	.nbnh-home .nbnh-testimonial-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
	.nbnh-home .nbnh-site-grid,
	.nbnh-home .nbnh-feature-grid,
	.nbnh-home .nbnh-testimonial-grid { grid-template-columns: 1fr; }
	.nbnh-home .nbnh-academy__form { flex-direction: column; }
	.nbnh-home .nbnh-academy__input { width: 100%; }
}

/* ==========================================================================
   MOTION PREFERENCE
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.nbnh-home .nbnh-blob,
	.nbnh-home .nbnh-badge__dot,
	.nbnh-home .nbnh-orbit__hub,
	.nbnh-home .nbnh-orbit__path { animation: none; }
	.nbnh-home .nbnh-reveal { transition: none; opacity: 1; transform: none; }
}
