/*
Theme Name: Niftecs
Theme URI: https://niftecs.co.ke
Author: Niftecs Company Limited
Description: Elementor-editable, multi-page theme for Niftecs. Intelligence. Integrated. AI, data and software engineering, shown as code. Dark by default with a light toggle.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: niftecs
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root,
:root[data-theme="dark"] {
	--bg: #0a0d2b;
	--bg-alt: #0d1135;
	--surface: #121748;
	--surface-2: #171d58;
	--line: rgba(160, 175, 255, .15);
	--line-strong: rgba(160, 175, 255, .28);
	--text: #eaf0fb;
	--muted: #a3b0d4;
	--accent: #3dc6c9;
	--accent-text: #3dc6c9;
	--on-accent: #0a0d2b;
	--glow: rgba(61, 198, 201, .22);
	--header-bg: rgba(10, 13, 43, .82);
	--radius: 14px;
	--font-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
	--font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
	--font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	--c-teal: #3dc6c9;
	--c-violet: #9b8cff;
	--c-green: #5fd68a;
	--c-amber: #f2b45a;
	--c-blue: #6aa8ff;
	--c-pink: #f08ab8;
	color-scheme: dark;
}

:root[data-theme="light"] {
	--bg: #f6f8fd;
	--bg-alt: #eaeffa;
	--surface: #ffffff;
	--surface-2: #f1f4fc;
	--line: rgba(17, 21, 66, .12);
	--line-strong: rgba(17, 21, 66, .24);
	--text: #111542;
	--muted: #4b567f;
	--accent: #1fa3a6;
	--accent-text: #0d7f82;
	--on-accent: #ffffff;
	--glow: rgba(31, 163, 166, .16);
	--header-bg: rgba(246, 248, 253, .85);
	--c-teal: #0d8f92;
	--c-violet: #6a58e0;
	--c-green: #218a4c;
	--c-amber: #b36b00;
	--c-blue: #2468d8;
	--c-pink: #c2457f;
	color-scheme: light;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.niftecs,
body[class*="elementor-kit-"].niftecs {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
body.niftecs img { max-width: 100%; height: auto; }
body.niftecs a { color: var(--accent-text); text-decoration: none; }
body.niftecs a:hover { text-decoration: underline; }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--header-bg);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text) !important; text-decoration: none !important; }
.brand img { border-radius: 10px; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; }
.site-nav { margin-left: auto; }
.nav-list, .nav-list ul { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list > li { position: relative; }
.nav-list a {
	display: block; padding: 9px 14px; border-radius: 10px;
	color: var(--muted) !important; font-weight: 500; font-size: .97rem; text-decoration: none !important;
}
.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current-menu-ancestor > a,
.nav-list .current_page_item > a { color: var(--text) !important; background: var(--surface); }
.nav-list .menu-item-has-children > a::after { content: ""; display: inline-block; margin-left: 7px; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.nav-list .sub-menu {
	position: absolute; left: 0; top: 100%; min-width: 280px; padding: 8px;
	background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .16s ease;
}
.nav-list li:hover > .sub-menu,
.nav-list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-list .sub-menu a { padding: 10px 12px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle, .nav-toggle {
	display: inline-grid; place-items: center; width: 42px; height: 42px; cursor: pointer;
	background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 12px;
}
.theme-toggle:hover, .nav-toggle:hover { border-color: var(--accent); }
.theme-toggle svg, .nav-toggle svg { display: block; }
.ti-moon { display: none; }
:root[data-theme="light"] .ti-sun { display: none; }
:root[data-theme="light"] .ti-moon { display: inline-flex; }
.nav-toggle { display: none; }
.nav-toggle .nt-close { display: none; }
.nav-toggle[aria-expanded="true"] .nt-open { display: none; }
.nav-toggle[aria-expanded="true"] .nt-close { display: inline-flex; }
.nf-header-cta {
	padding: 10px 18px; border-radius: 12px; font-weight: 600; font-size: .95rem;
	background: var(--accent); color: var(--on-accent) !important; text-decoration: none !important;
	box-shadow: 0 0 0 0 var(--glow); transition: box-shadow .2s;
}
.nf-header-cta:hover { box-shadow: 0 8px 26px var(--glow); }

/* ==========================================================================
   Elementor reset: the page is ours, neutralise Elementor's defaults
   ========================================================================== */
.nf-page { overflow-x: clip; }
.nf-page .e-con,
.nf-page .e-con-inner,
body .nf-page .elementor-element.e-con {
	--padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
	--gap: 0px; --row-gap: 0px; --column-gap: 0px;
	--margin-top: 0px; --margin-bottom: 0px; --margin-left: 0px; --margin-right: 0px;
	--widgets-spacing: 0px; --widgets-spacing-row: 0px; --widgets-spacing-column: 0px;
	padding: 0; margin: 0; gap: 0; row-gap: 0; column-gap: 0;
	min-height: 0; border: 0; background: none;
}
.nf-page .elementor-widget,
.nf-page .elementor-element .elementor-widget-container { margin: 0; padding: 0; }
.nf-page .elementor-widget:not(:last-child) { margin-block-end: 0; }
.nf-page .elementor-element { --e-global-color-text: var(--text); --e-global-color-primary: var(--text); --e-global-color-accent: var(--accent); }
.nf-page .elementor-widget-heading .elementor-heading-title,
.nf-page .elementor-widget-text-editor,
.nf-page .elementor-widget-text-editor p { font-family: inherit; color: inherit; }

/* Layout bands */
.nf-page .nf-section { width: 100%; padding: 96px 20px; position: relative; }
.nf-page .nf-section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.nf-page .nf-wrap { width: 100%; max-width: 1180px; margin-inline: auto; display: flex; flex-direction: column; gap: 48px; }
.nf-page .nf-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.nf-page .nf-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.nf-page .nf-wrap.nf-split { display: grid; }
.nf-page .nf-split > * { min-width: 0; }
.nf-page .nf-split--flip { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.nf-page .nf-grid { display: grid; gap: 22px; }
.nf-page .nf-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nf-page .nf-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nf-page .nf-grid + .nf-grid { margin-top: 0; }
.nf-page .nf-head { max-width: 760px; gap: 14px; }
.nf-page .nf-head--center { margin-inline: auto; text-align: center; align-items: center; }
.nf-page .nf-btn-row, .nf-page .e-con.nf-btn-row { display: flex !important; flex-wrap: wrap; gap: 12px !important; margin-top: 10px; flex-direction: row !important; align-items: center; }

/* Type */
.nf-page .nf-h1 .elementor-heading-title,
.nf-page h1.elementor-heading-title {
	font-family: var(--font-head); font-weight: 700; color: var(--text);
	font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.04; letter-spacing: -.03em; margin: 0;
}
.nf-page .nf-h1--page .elementor-heading-title { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.nf-page .nf-h2 .elementor-heading-title {
	font-family: var(--font-head); font-weight: 700; color: var(--text);
	font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.12; letter-spacing: -.02em; margin: 0;
}
.nf-page .accent { color: var(--accent-text); }
.nf-page .nf-eyebrow .elementor-heading-title {
	font-family: var(--font-mono); font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin: 0;
}
.nf-page .nf-eyebrow .elementor-heading-title::before { content: "// "; opacity: .7; }
.nf-page .nf-tagline .elementor-heading-title {
	font-family: var(--font-mono); font-size: 1.02rem; font-weight: 500; color: var(--accent-text); margin: 0;
}
.nf-page .nf-pill { align-self: flex-start; }
.nf-page .nf-pill .elementor-heading-title {
	display: inline-block; font-family: var(--font-mono); font-size: .78rem; font-weight: 500; letter-spacing: .06em;
	padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--accent-text);
	background: var(--surface); margin: 0;
}
.nf-page .nf-lead,
.nf-page .nf-lead p { font-size: 1.12rem; line-height: 1.7; color: var(--muted); margin: 0; max-width: 62ch; }
.nf-page .nf-head--center .nf-lead { margin-inline: auto; }
.nf-page .nf-lead p { margin: 0; }

/* Buttons (Elementor button widget) */
.nf-page .nf-btn { width: auto; }
.nf-page .nf-btn .elementor-button {
	font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1;
	padding: 15px 26px; border-radius: 12px; border: 1px solid transparent; transition: .18s ease; text-decoration: none;
}
.nf-page .nf-btn--primary .elementor-button { background: var(--accent); color: var(--on-accent); }
.nf-page .nf-btn--primary .elementor-button:hover { box-shadow: 0 10px 30px var(--glow); transform: translateY(-1px); color: var(--on-accent); }
.nf-page .nf-btn--ghost .elementor-button { background: transparent; color: var(--text); border-color: var(--line-strong); }
.nf-page .nf-btn--ghost .elementor-button:hover { border-color: var(--accent); color: var(--accent-text); }

/* Hero */
.nf-page .nf-hero { width: 100%; padding: 88px 20px 96px; position: relative; overflow: hidden; }
.nf-page .nf-hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background:
		radial-gradient(60% 55% at 80% 10%, var(--glow), transparent 70%),
		linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 56px 56px,
		linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 56px 56px;
	-webkit-mask-image: radial-gradient(75% 85% at 70% 20%, #000 15%, transparent 78%);
	mask-image: radial-gradient(75% 85% at 70% 20%, #000 15%, transparent 78%);
	opacity: .55;
}
.nf-page .nf-hero > * { position: relative; }
.nf-page .nf-hero--page { padding: 72px 20px 80px; }
.nf-page .nf-hero--short { padding-bottom: 24px; }
.nf-page .nf-hero__copy { gap: 20px; }
.nf-page .nf-hero__copy--wide { max-width: 1180px; }

/* CTA band */
.nf-page .nf-section--cta { padding: 40px 20px 100px; }
.nf-page .nf-cta__box {
	padding: 48px; border-radius: 22px; border: 1px solid var(--line-strong);
	background: radial-gradient(70% 120% at 100% 0%, var(--glow), transparent 60%), var(--surface);
}

/* ==========================================================================
   Code windows
   ========================================================================== */
.nf-widget { min-width: 0; width: 100%; }
.nf-window {
	--code-bg: #0b0f2e; --code-bar: #121748; --code-line: rgba(160, 175, 255, .16); --code-text: #dbe4ff; --code-muted: #6f7bb0;
	background: var(--code-bg); color: var(--code-text);
	border: 1px solid var(--code-line); border-radius: 16px; overflow: hidden;
	box-shadow: 0 24px 60px rgba(4, 6, 26, .45), 0 0 0 1px rgba(61, 198, 201, .04);
}
:root[data-theme="light"] .nf-window { box-shadow: 0 20px 50px rgba(17, 21, 66, .18); }
.nf-window__bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--code-bar); border-bottom: 1px solid var(--code-line); }
.nf-dots { display: inline-flex; gap: 7px; }
.nf-dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff6b6b; display: block; }
.nf-dots i:nth-child(2) { background: #f2b45a; }
.nf-dots i:nth-child(3) { background: #5fd68a; }
.nf-window__file { font-family: var(--font-mono); font-size: .82rem; color: #b6c2ee; }
.nf-window__badge {
	margin-left: auto; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase;
	color: #3dc6c9; border: 1px solid rgba(61, 198, 201, .4); padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.nf-code {
	margin: 0; padding: 18px 0 20px; overflow-x: auto; counter-reset: ln;
	font-family: var(--font-mono); font-size: .88rem; line-height: 1.75; tab-size: 2; color: var(--code-text);
	background: transparent; border: 0; white-space: pre;
}
.nf-code code { display: block; font: inherit; background: none; padding: 0; color: inherit; min-width: max-content; }
.nf-code .cl { display: block; padding: 0 20px; min-height: 1.75em; }
.nf-code.has-ln .cl { counter-increment: ln; padding-left: 58px; position: relative; }
.nf-code.has-ln .cl::before {
	content: counter(ln); position: absolute; left: 0; width: 38px; text-align: right; color: var(--code-muted); opacity: .7; user-select: none;
}
.c-com { color: #7683b8; font-style: italic; }
.c-key { color: #7fd8ff; }
.c-str { color: #f0c987; }
.c-kw  { color: #c9a7ff; }
.c-num { color: #ff9d7a; }
.c-fn  { color: #7be0b0; }
.c-var { color: #8fc6ff; }
.c-prompt { color: #3dc6c9; }
.c-ok { color: #5fd68a; }
.c-warn { color: #f2b45a; }
.nf-code a.c-link, .nf-code a { color: inherit !important; text-decoration: none !important; border-bottom: 1px dashed rgba(61, 198, 201, .5); }
.nf-code a:hover { border-bottom-style: solid; background: rgba(61, 198, 201, .12); }
.c-cursor { display: inline-block; width: .6em; height: 1.1em; background: #3dc6c9; vertical-align: text-bottom; animation: nf-blink 1.1s steps(1) infinite; }
@keyframes nf-blink { 50% { opacity: 0; } }

/* Tabs */
.nf-tabs .nf-tabs__list { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.nf-tab {
	display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
	padding: 8px 14px; border-radius: 999px; font: 500 .85rem var(--font-body);
	background: var(--surface); color: var(--muted); border: 1px solid var(--line);
}
.nf-tab svg { width: 16px; height: 16px; }
.nf-tab:hover { color: var(--text); border-color: var(--line-strong); }
.nf-tab.is-active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.nf-tabs [role="tabpanel"][hidden] { display: none; }

/* ==========================================================================
   Cards, tiles, tags
   ========================================================================== */
.nf-card {
	display: flex; flex-direction: column; gap: 14px; height: 100%;
	padding: 28px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.nf-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 18px 44px rgba(0, 0, 0, .22); }
.nf-card.is-featured { border-color: rgba(61, 198, 201, .5); background: linear-gradient(160deg, var(--surface-2), var(--surface)); box-shadow: 0 0 0 1px rgba(61, 198, 201, .15), 0 20px 50px var(--glow); }
.nf-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nf-card .nf-card__title { font-family: var(--font-head); font-size: 1.3rem; line-height: 1.2; margin: 0; color: var(--text); letter-spacing: -.01em; }
.nf-card .nf-card__text { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.65; }
.nf-card .nf-card__code {
	margin: 4px 0 0; padding: 12px 14px; border-radius: 10px; background: #0b0f2e; color: #dbe4ff;
	font-family: var(--font-mono); font-size: .78rem; line-height: 1.6; overflow-x: auto; white-space: pre; border: 1px solid rgba(160, 175, 255, .14);
}
.nf-more { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: .95rem; display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text) !important; text-decoration: none !important; }
.nf-more:hover { gap: 10px; }
.nf-tile { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; color: var(--tile); background: color-mix(in srgb, var(--tile) 16%, transparent); border: 1px solid color-mix(in srgb, var(--tile) 35%, transparent); flex: none; }
.nf-tile svg { display: block; }
.nf-tile--sm { width: 40px; height: 40px; border-radius: 11px; }
.nf-tile--teal { --tile: var(--c-teal); }
.nf-tile--violet { --tile: var(--c-violet); }
.nf-tile--green { --tile: var(--c-green); }
.nf-tile--amber { --tile: var(--c-amber); }
.nf-tile--blue { --tile: var(--c-blue); }
.nf-tile--pink { --tile: var(--c-pink); }
.nf-tag { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; color: var(--muted); border: 1px solid var(--line-strong); padding: 4px 10px; border-radius: 999px; }

/* ==========================================================================
   Pipeline
   ========================================================================== */
.nf-pipeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 20px; counter-reset: stage; }
.nf-stage { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.nf-stage::after { content: ""; position: absolute; top: 38px; right: -21px; width: 22px; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 4px, transparent 4px 8px); }
.nf-stage:last-child::after { display: none; }
.nf-stage__status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: .76rem; color: var(--c-green); }
.nf-stage__title { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--text); margin: 0; }
.nf-stage__text { margin: 0; color: var(--muted); font-size: .95rem; }
.nf-stage__cmd { margin-top: auto; display: block; padding: 9px 11px; border-radius: 9px; background: #0b0f2e; color: #b6c2ee; font-family: var(--font-mono); font-size: .76rem; overflow-x: auto; white-space: nowrap; border: 1px solid rgba(160, 175, 255, .14); }
.nf-stage__cmd .c-prompt { margin-right: 6px; }

/* ==========================================================================
   Info list
   ========================================================================== */
.nf-info { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.nf-info__item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.nf-info__body { min-width: 0; }
.nf-info__label { display: block; font-weight: 600; color: var(--text); line-height: 1.35; word-break: break-word; }
.nf-info__desc { display: block; color: var(--muted); font-size: .92rem; line-height: 1.55; margin-top: 2px; }
.nf-info a.nf-info__item { color: inherit !important; text-decoration: none !important; }
.nf-info a.nf-info__item:hover { border-color: var(--accent); }

/* ==========================================================================
   Form
   ========================================================================== */
.nf-form-card { padding: 32px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 20px; }
.nf-form { display: flex; flex-direction: column; gap: 18px; }
.nf-field { display: flex; flex-direction: column; gap: 7px; }
.nf-field label { font-weight: 600; font-size: .92rem; color: var(--text); }
.nf-field input, .nf-field select, .nf-field textarea {
	width: 100%; padding: 13px 14px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 11px;
}
.nf-field input:focus, .nf-field select:focus, .nf-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.nf-field textarea { resize: vertical; min-height: 130px; }
.nf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nf-submit { align-self: flex-start; cursor: pointer; padding: 15px 28px; border: 0; border-radius: 12px; background: var(--accent); color: var(--on-accent); font: 600 1rem var(--font-body); }
.nf-submit:hover { box-shadow: 0 10px 30px var(--glow); }
.nf-form__note { margin: 0; font-size: .85rem; color: var(--muted); }
.nf-notice { padding: 12px 16px; border-radius: 11px; margin-bottom: 18px; font-weight: 500; }
.nf-notice--ok { background: rgba(95, 214, 138, .14); border: 1px solid rgba(95, 214, 138, .5); color: var(--c-green); }
.nf-notice--bad { background: rgba(240, 138, 184, .14); border: 1px solid rgba(240, 138, 184, .5); color: var(--c-pink); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { color: var(--muted); max-width: 38ch; font-size: .95rem; margin: 16px 0; }
.footer-title { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.footer-col li, .contact-list li { margin-bottom: 9px; color: var(--muted); font-size: .95rem; }
.site-footer .brand { color: var(--text) !important; }
.site-footer a:not(.brand) { color: var(--muted) !important; text-decoration: none !important; }
.site-footer a:not(.brand):hover { color: var(--accent-text) !important; }
.social-list { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer-tag { font-family: var(--font-mono); color: var(--accent-text); }

/* Plain pages and posts */
.page-main { min-height: 50vh; }
.page-main > .container { padding-block: 64px; }
.entry-title { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.02em; }
.entry-content { max-width: 760px; color: var(--muted); }
.entry-content h2, .entry-content h3 { color: var(--text); font-family: var(--font-head); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
	.nf-page .nf-split, .nf-page .nf-split--flip { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.nf-page .nf-split--flip > :first-child { order: 2; }
	.nf-page .nf-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nf-pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nf-stage::after { display: none; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
	.nav-toggle { display: inline-grid; }
	.nf-header-cta { display: none; }
	.site-nav {
		position: absolute; left: 0; right: 0; top: 100%; margin: 0; padding: 12px 20px 20px;
		background: var(--bg); border-bottom: 1px solid var(--line); display: none; max-height: calc(100vh - 72px); overflow-y: auto;
	}
	.site-nav.is-open { display: block; }
	.nav-list { flex-direction: column; align-items: stretch; }
	.nav-list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 14px; min-width: 0; }
	.nav-list .menu-item-has-children > a::after { display: none; }
}
@media (max-width: 640px) {
	body.niftecs { font-size: 16px; }
	.nf-page .nf-section { padding: 64px 16px; }
	.nf-page .nf-hero, .nf-page .nf-hero--page { padding: 52px 16px 60px; }
	.nf-page .nf-grid--3, .nf-page .nf-grid--2, .nf-pipeline { grid-template-columns: minmax(0, 1fr); }
	.nf-page .nf-cta__box { padding: 28px 20px; }
	.nf-page .nf-btn-row, .nf-page .e-con.nf-btn-row { flex-direction: column !important; align-items: stretch; }
	.nf-page .nf-btn .elementor-button { width: 100%; justify-content: center; text-align: center; }
	.nf-code { font-size: .8rem; }
	.nf-form-card { padding: 22px 18px; }
	.footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.c-cursor { animation: none; }
	.nf-card, .nf-btn .elementor-button { transition: none; }
}

/* Code lists wrap long notes instead of scrolling */
.nf-code-list .nf-code code { min-width: 0; }
.nf-code-list .nf-code .cl { white-space: pre-wrap; overflow-wrap: anywhere; }
