/*
Theme Name: FlotaForge
Theme URI: https://lechovia.pl
Author: FlotaForge
Description: Custom-built theme for FlotaForge — advanced web development, HomeLab and server fleet engineering services.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: flotaforge
*/

:root {
	--ff-bg: #0a0e17;
	--ff-bg-alt: #0f1420;
	--ff-surface: #131a29;
	--ff-surface-2: #1a2233;
	--ff-border: #232c40;
	--ff-text: #e7ecf5;
	--ff-text-dim: #93a1bd;
	--ff-accent: #4f7cff;
	--ff-accent-2: #8b5cf6;
	--ff-accent-3: #22d3c8;
	--ff-glow-1: rgba(79,124,255,0.16);
	--ff-glow-2: rgba(139,92,246,0.14);
	--ff-radius: 16px;
	--ff-max: 1180px;
	--ff-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
	--ff-sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* Color theme variants — switched via data-theme on <html>, persisted in localStorage */
:root[data-theme="matrix"] {
	--ff-accent: #22c55e;
	--ff-accent-2: #16a34a;
	--ff-accent-3: #86efac;
	--ff-glow-1: rgba(34,197,94,0.16);
	--ff-glow-2: rgba(16,163,74,0.14);
}
:root[data-theme="ember"] {
	--ff-accent: #fb7185;
	--ff-accent-2: #f97316;
	--ff-accent-3: #fbbf24;
	--ff-glow-1: rgba(251,113,133,0.16);
	--ff-glow-2: rgba(249,115,22,0.14);
}
:root[data-theme="arctic"] {
	--ff-accent: #38bdf8;
	--ff-accent-2: #22d3ee;
	--ff-accent-3: #a5f3fc;
	--ff-glow-1: rgba(56,189,248,0.16);
	--ff-glow-2: rgba(34,211,238,0.14);
}
:root[data-theme="mono"] {
	--ff-accent: #d4d4d8;
	--ff-accent-2: #71717a;
	--ff-accent-3: #ffffff;
	--ff-glow-1: rgba(255,255,255,0.09);
	--ff-glow-2: rgba(161,161,170,0.09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--ff-bg); }
::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, var(--ff-accent), var(--ff-accent-2));
	border-radius: 999px;
	border: 2px solid var(--ff-bg);
}
html { scrollbar-color: var(--ff-accent) var(--ff-bg); scrollbar-width: thin; }

/* Scroll progress bar */
.ff-scrollbar {
	position: fixed;
	top: 0; left: 0;
	height: 3px;
	width: 0%;
	background: linear-gradient(90deg, var(--ff-accent-3), var(--ff-accent), var(--ff-accent-2));
	z-index: 200;
	transition: width .08s linear;
	box-shadow: 0 0 10px var(--ff-glow-2);
}

/* Easter egg overlay canvas */
#ff-easter-canvas {
	position: fixed;
	inset: 0;
	z-index: 999;
	pointer-events: none;
	opacity: 0;
	transition: opacity .6s ease;
}
#ff-easter-canvas.on { opacity: 1; }

body {
	margin: 0;
	background: var(--ff-bg);
	color: var(--ff-text);
	font-family: var(--ff-sans);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	background:
		radial-gradient(ellipse 900px 500px at var(--ff-bx1, 15%) var(--ff-by1, -10%), var(--ff-glow-1), transparent 60%),
		radial-gradient(ellipse 800px 500px at var(--ff-bx2, 90%) var(--ff-by2, 10%), var(--ff-glow-2), transparent 60%);
	pointer-events: none;
	z-index: 0;
	animation: ff-drift 26s ease-in-out infinite alternate;
}
@keyframes ff-drift {
	0%   { --ff-bx1: 10%;  --ff-by1: -12%; --ff-bx2: 92%; --ff-by2: 8%; }
	50%  { --ff-bx1: 22%;  --ff-by1: 4%;   --ff-bx2: 78%; --ff-by2: 22%; }
	100% { --ff-bx1: 14%;  --ff-by1: -6%;  --ff-bx2: 88%; --ff-by2: 2%; }
}
@property --ff-bx1 { syntax: '<percentage>'; inherits: true; initial-value: 15%; }
@property --ff-by1 { syntax: '<percentage>'; inherits: true; initial-value: -10%; }
@property --ff-bx2 { syntax: '<percentage>'; inherits: true; initial-value: 90%; }
@property --ff-by2 { syntax: '<percentage>'; inherits: true; initial-value: 10%; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.ff-wrap {
	max-width: var(--ff-max);
	margin: 0 auto;
	padding: 0 24px;
	position: relative;
	z-index: 1;
}

/* Header */
.ff-header {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: blur(14px);
	background: rgba(10,14,23,0.72);
	border-bottom: 1px solid var(--ff-border);
}
.ff-header .ff-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 76px;
}
.ff-logo {
	font-family: var(--ff-mono);
	font-weight: 700;
	font-size: 1.25rem;
	letter-spacing: -0.02em;
	display: flex;
	align-items: center;
	gap: 8px;
}
.ff-logo .dot { color: var(--ff-accent-3); }
.ff-nav { display: flex; align-items: center; gap: 32px; }
.ff-nav a {
	font-size: 0.92rem;
	color: var(--ff-text-dim);
	font-weight: 500;
	transition: color .15s ease;
}
.ff-nav a:hover { color: var(--ff-text); }
.ff-lang-switch {
	display: flex;
	border: 1px solid var(--ff-border);
	border-radius: 999px;
	overflow: hidden;
	font-family: var(--ff-mono);
	font-size: 0.78rem;
}
.ff-lang-switch a {
	padding: 6px 12px;
	color: var(--ff-text-dim);
}
.ff-lang-switch a.active {
	background: var(--ff-accent);
	color: #fff;
}
.ff-nav-toggle { display: none; }

/* Theme swatch switcher */
.ff-theme-switch {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 0 4px;
}
.ff-theme-dot {
	width: 18px; height: 18px;
	border-radius: 50%;
	border: 2px solid transparent;
	padding: 0;
	cursor: pointer;
	background: linear-gradient(135deg, var(--dot-a), var(--dot-b));
	transition: transform .15s ease, border-color .15s ease;
}
.ff-theme-dot:hover { transform: scale(1.15); }
.ff-theme-dot.active { border-color: var(--ff-text); }

/* Hero */
.ff-hero {
	padding: 108px 0 96px;
	position: relative;
}
.ff-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--ff-mono);
	font-size: 0.8rem;
	color: var(--ff-accent-3);
	background: rgba(34,211,200,0.08);
	border: 1px solid rgba(34,211,200,0.25);
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 28px;
}
.ff-eyebrow .pulse {
	width: 7px; height: 7px; border-radius: 50%;
	background: var(--ff-accent-3);
	box-shadow: 0 0 0 0 rgba(34,211,200,0.6);
	animation: ff-pulse 2s infinite;
}
@keyframes ff-pulse {
	0% { box-shadow: 0 0 0 0 rgba(34,211,200,0.5); }
	70% { box-shadow: 0 0 0 8px rgba(34,211,200,0); }
	100% { box-shadow: 0 0 0 0 rgba(34,211,200,0); }
}
.ff-hero h1 {
	font-size: clamp(2.4rem, 5vw, 4.1rem);
	line-height: 1.08;
	letter-spacing: -0.03em;
	margin: 0 0 24px;
	max-width: 820px;
}
.ff-hero h1 .grad {
	background: linear-gradient(100deg, var(--ff-accent), var(--ff-accent-2) 60%, var(--ff-accent-3));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.ff-hero p.lead {
	font-size: 1.15rem;
	color: var(--ff-text-dim);
	max-width: 620px;
	margin: 0 0 40px;
}
.ff-cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.ff-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 26px;
	border-radius: 12px;
	font-weight: 600;
	font-size: 0.95rem;
	transition: transform .15s ease, box-shadow .15s ease;
}
.ff-btn-primary {
	background: linear-gradient(100deg, var(--ff-accent), var(--ff-accent-2));
	color: #fff;
	box-shadow: 0 8px 24px -8px rgba(79,124,255,0.55);
}
.ff-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(79,124,255,0.7); }
.ff-btn-ghost {
	border: 1px solid var(--ff-border);
	color: var(--ff-text);
}
.ff-btn-ghost:hover { border-color: var(--ff-accent); }

.ff-hero-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: var(--ff-border);
	border: 1px solid var(--ff-border);
	border-radius: var(--ff-radius);
	overflow: hidden;
	margin-top: 72px;
}
.ff-hero-stats div {
	background: var(--ff-surface);
	padding: 24px 20px;
	text-align: center;
}
.ff-hero-stats .num {
	font-family: var(--ff-mono);
	font-size: 1.9rem;
	font-weight: 700;
	background: linear-gradient(100deg, var(--ff-accent-3), var(--ff-accent));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.ff-hero-stats .lbl { font-size: 0.82rem; color: var(--ff-text-dim); margin-top: 6px; }

/* Section shell */
.ff-section { padding: 100px 0; position: relative; }
.ff-section-head { max-width: 640px; margin-bottom: 56px; }
.ff-kicker {
	font-family: var(--ff-mono);
	font-size: 0.8rem;
	color: var(--ff-accent-3);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 14px;
}
.ff-section-head h2 {
	font-size: clamp(1.8rem, 3.4vw, 2.6rem);
	letter-spacing: -0.02em;
	margin: 0 0 16px;
}
.ff-section-head p { color: var(--ff-text-dim); font-size: 1.05rem; margin: 0; }

/* Services */
.ff-services-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.ff-card {
	background: var(--ff-surface);
	border: 1px solid var(--ff-border);
	border-radius: var(--ff-radius);
	padding: 32px;
	transition: border-color .2s ease, transform .2s ease;
}
.ff-card:hover { border-color: var(--ff-accent); transform: translateY(-4px); }
.ff-card, .ff-node, .ff-diag, .ff-monitor-card {
	position: relative;
	overflow: hidden;
}
.ff-card::before, .ff-node::before, .ff-diag::before, .ff-monitor-card::before {
	content: "";
	position: absolute;
	left: var(--sx, 50%); top: var(--sy, 50%);
	width: 320px; height: 320px;
	transform: translate(-50%, -50%);
	background: radial-gradient(circle, var(--ff-glow-1), transparent 70%);
	opacity: 0;
	transition: opacity .35s ease;
	pointer-events: none;
	z-index: 0;
}
.ff-card:hover::before, .ff-node:hover::before, .ff-diag:hover::before, .ff-monitor-card:hover::before { opacity: 1; }
.ff-card > *, .ff-node > *, .ff-diag > *, .ff-monitor-card > * { position: relative; z-index: 1; }
.ff-card .icon {
	width: 48px; height: 48px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 12px;
	background: var(--ff-surface-2);
	color: var(--ff-accent-3);
	font-size: 1.4rem;
	margin-bottom: 20px;
}
.ff-card h3 { font-size: 1.15rem; margin: 0 0 12px; letter-spacing: -0.01em; }
.ff-card p { color: var(--ff-text-dim); font-size: 0.95rem; margin: 0; }

/* Fleet section */
.ff-fleet { background: var(--ff-bg-alt); border-top: 1px solid var(--ff-border); border-bottom: 1px solid var(--ff-border); }
.ff-fleet-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-bottom: 48px;
}
.ff-node {
	background: var(--ff-surface);
	border: 1px solid var(--ff-border);
	border-radius: var(--ff-radius);
	padding: 28px;
}
.ff-node-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ff-node-head .name { font-family: var(--ff-mono); font-weight: 700; letter-spacing: 0.02em; }
.ff-node-head .role { font-size: 0.8rem; color: var(--ff-accent-3); }
.ff-node p { color: var(--ff-text-dim); font-size: 0.92rem; margin: 0; }

.ff-video-frame {
	border: 1px solid var(--ff-border);
	border-radius: var(--ff-radius);
	background: var(--ff-surface);
	padding: 8px;
	margin-bottom: 48px;
}
.ff-video-placeholder {
	aspect-ratio: 16/9;
	border-radius: calc(var(--ff-radius) - 8px);
	background:
		linear-gradient(135deg, rgba(79,124,255,0.12), rgba(139,92,246,0.12));
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	color: var(--ff-text-dim);
	font-family: var(--ff-mono);
	font-size: 0.9rem;
	text-align: center;
	padding: 24px;
}
.ff-video-placeholder .play {
	width: 64px; height: 64px; border-radius: 50%;
	background: linear-gradient(100deg, var(--ff-accent), var(--ff-accent-2));
	display: flex; align-items: center; justify-content: center;
	font-size: 1.4rem; color: #fff;
}
.ff-video-frame video { width: 100%; border-radius: calc(var(--ff-radius) - 8px); display: block; }

.ff-highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ff-highlight {
	display: flex; gap: 14px; align-items: flex-start;
	background: var(--ff-surface); border: 1px solid var(--ff-border);
	border-radius: 12px; padding: 20px;
}
.ff-highlight .mark { color: var(--ff-accent-3); font-family: var(--ff-mono); font-weight: 700; }
.ff-highlight p { margin: 0; font-size: 0.92rem; color: var(--ff-text-dim); }

/* Stack badges */
.ff-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 48px; }
.ff-badge {
	font-family: var(--ff-mono);
	font-size: 0.82rem;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid var(--ff-border);
	color: var(--ff-text-dim);
	background: var(--ff-surface);
}

/* Contact */
.ff-contact-box {
	background: var(--ff-surface);
	border: 1px solid var(--ff-border);
	border-radius: var(--ff-radius);
	padding: 48px;
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 48px;
	align-items: center;
}
.ff-contact-box h2 { font-size: 1.9rem; margin: 0 0 16px; letter-spacing: -0.02em; }
.ff-contact-box p { color: var(--ff-text-dim); margin: 0 0 28px; }
.ff-contact-email {
	font-family: var(--ff-mono);
	font-size: 1.15rem;
	color: var(--ff-accent-3);
	border-bottom: 1px dashed var(--ff-accent-3);
	padding-bottom: 4px;
}
.ff-form { display: flex; flex-direction: column; gap: 14px; }
.ff-form input, .ff-form textarea {
	background: var(--ff-surface-2);
	border: 1px solid var(--ff-border);
	border-radius: 10px;
	padding: 14px 16px;
	color: var(--ff-text);
	font-family: var(--ff-sans);
	font-size: 0.95rem;
}
.ff-form textarea { min-height: 110px; resize: vertical; }
.ff-form button { align-self: flex-start; border: none; cursor: pointer; }
.ff-form-note { font-size: 0.78rem; color: var(--ff-text-dim); }

/* Footer */
.ff-footer {
	border-top: 1px solid var(--ff-border);
	padding: 40px 0;
}
.ff-footer .ff-wrap {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
}
.ff-footer small { color: var(--ff-text-dim); font-size: 0.85rem; }

/* Reveal-on-scroll — hidden only once JS confirms it can reveal them again (progressive enhancement) */
.js-reveal [data-reveal] {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .7s cubic-bezier(.16,.8,.24,1), transform .7s cubic-bezier(.16,.8,.24,1);
}
.js-reveal [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }

/* Hero layout with terminal */
.ff-hero-grid {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: 56px;
	align-items: center;
}

/* Terminal window mockup */
.ff-terminal {
	background: #0d1119;
	border: 1px solid var(--ff-border);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.02);
}
.ff-terminal-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	background: var(--ff-surface-2);
	border-bottom: 1px solid var(--ff-border);
}
.ff-terminal-bar span {
	width: 11px; height: 11px; border-radius: 50%;
	background: var(--ff-border);
}
.ff-terminal-bar span:nth-child(1) { background: #f87171; }
.ff-terminal-bar span:nth-child(2) { background: #fbbf24; }
.ff-terminal-bar span:nth-child(3) { background: #34d399; }
.ff-terminal-bar .path {
	margin-left: 10px;
	font-family: var(--ff-mono);
	font-size: 0.75rem;
	color: var(--ff-text-dim);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
}
.ff-terminal-body {
	padding: 20px 22px 24px;
	font-family: var(--ff-mono);
	font-size: 0.84rem;
	line-height: 1.75;
}
.ff-terminal-body .prompt { color: var(--ff-accent-3); }
.ff-terminal-body .cmd { color: var(--ff-text); }
.ff-terminal-body .out { color: var(--ff-text-dim); }
.ff-terminal-body .ok { color: #34d399; }
.ff-terminal-body .tag { color: var(--ff-accent); }
.ff-terminal-body .blink {
	display: inline-block; width: 7px; height: 14px;
	background: var(--ff-accent-3);
	animation: ff-blink 1s step-end infinite;
	vertical-align: middle;
	margin-left: 2px;
}
@keyframes ff-blink { 50% { opacity: 0; } }

/* Network diagram */
.ff-diagram {
	position: relative;
	background:
		radial-gradient(ellipse 500px 380px at 50% 45%, var(--ff-glow-1), transparent 70%),
		var(--ff-surface);
	background-image:
		radial-gradient(ellipse 500px 380px at 50% 45%, var(--ff-glow-1), transparent 70%),
		linear-gradient(var(--ff-border) 1px, transparent 1px),
		linear-gradient(90deg, var(--ff-border) 1px, transparent 1px);
	background-size: auto, 34px 34px, 34px 34px;
	background-position: 0 0, -1px -1px, -1px -1px;
	border: 1px solid var(--ff-border);
	border-radius: var(--ff-radius);
	padding: 56px 24px;
	margin-bottom: 40px;
	overflow: hidden;
	mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, #000 55%, transparent 100%);
}
.ff-diagram-hub-wrap {
	position: relative;
	max-width: 620px;
	margin: 0 auto;
	aspect-ratio: 1 / 0.82;
}
.ff-diagram-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ff-diagram-lines line {
	stroke: url(#ffLineGrad);
	stroke-width: 2;
	stroke-dasharray: 6 8;
	opacity: 0.65;
	animation: ff-dash 1.4s linear infinite;
}
.ff-diagram-lines circle.ff-pulse-dot { fill: var(--ff-accent-3); filter: drop-shadow(0 0 4px var(--ff-accent-3)); }
@keyframes ff-dash { to { stroke-dashoffset: -28; } }

.ff-diagram-hub {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	width: 124px; height: 124px;
	border-radius: 50%;
	background: linear-gradient(140deg, var(--ff-accent), var(--ff-accent-2));
	display: flex; align-items: center; justify-content: center;
	flex-direction: column;
	color: #fff;
	font-family: var(--ff-mono);
	font-weight: 700;
	font-size: 0.85rem;
	text-align: center;
	box-shadow: 0 0 0 8px var(--ff-glow-1), 0 0 70px var(--ff-glow-2);
	z-index: 3;
	animation: ff-hub-breathe 3.4s ease-in-out infinite;
}
.ff-diagram-hub::before,
.ff-diagram-hub::after {
	content: "";
	position: absolute;
	inset: -18px;
	border-radius: 50%;
	border: 1px dashed color-mix(in srgb, var(--ff-accent-3) 55%, transparent);
	animation: ff-spin 14s linear infinite;
}
.ff-diagram-hub::after { inset: -34px; animation-duration: 22s; animation-direction: reverse; opacity: 0.6; }
@keyframes ff-spin { to { transform: rotate(360deg); } }
@keyframes ff-hub-breathe {
	0%, 100% { box-shadow: 0 0 0 8px var(--ff-glow-1), 0 0 70px var(--ff-glow-2); }
	50% { box-shadow: 0 0 0 14px var(--ff-glow-1), 0 0 95px var(--ff-glow-2); }
}
.ff-diagram-hub small { font-weight: 500; opacity: 0.9; font-size: 0.64rem; margin-top: 3px; letter-spacing: 0.02em; }

.ff-diagram-node {
	position: absolute;
	width: 148px;
	transform: translate(-50%, -50%);
	background: color-mix(in srgb, var(--ff-surface-2) 92%, transparent);
	backdrop-filter: blur(6px);
	border: 1px solid var(--ff-border);
	border-radius: 14px;
	padding: 14px 14px 12px;
	text-align: left;
	z-index: 2;
	box-shadow: 0 10px 30px -14px rgba(0,0,0,0.6);
	transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.ff-diagram-node:hover {
	border-color: var(--ff-accent-3);
	transform: translate(-50%, -50%) translateY(-4px);
	box-shadow: 0 16px 34px -14px rgba(0,0,0,0.7), 0 0 0 1px var(--ff-accent-3);
}
.ff-diagram-node .dn-top {
	display: flex; align-items: center; justify-content: space-between;
	margin-bottom: 6px;
}
.ff-diagram-node .dn-icon {
	width: 26px; height: 26px;
	border-radius: 7px;
	display: flex; align-items: center; justify-content: center;
	background: var(--ff-glow-1);
	color: var(--ff-accent-3);
	font-size: 0.85rem;
}
.ff-diagram-node .dn-live {
	display: inline-flex; align-items: center; gap: 4px;
	font-family: var(--ff-mono); font-size: 0.6rem; color: #34d399;
	text-transform: uppercase; letter-spacing: 0.04em;
}
.ff-diagram-node .dn-live::before { content:""; width: 5px; height: 5px; border-radius: 50%; background: #34d399; animation: ff-pulse 2s infinite; }
.ff-diagram-node .dn-name { font-family: var(--ff-mono); font-weight: 700; font-size: 0.82rem; }
.ff-diagram-node .dn-stat { font-size: 0.7rem; color: var(--ff-accent-3); margin-top: 3px; }
.ff-diagram-node.n1 { top: 6%; left: 50%; }
.ff-diagram-node.n2 { top: 50%; left: 91%; }
.ff-diagram-node.n3 { top: 94%; left: 50%; }
.ff-diagram-node.n4 { top: 50%; left: 9%; }

/* Node cards with stack chips */
.ff-node-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ff-node-stack span {
	font-family: var(--ff-mono);
	font-size: 0.7rem;
	padding: 4px 9px;
	border-radius: 999px;
	background: rgba(79,124,255,0.08);
	color: var(--ff-accent-3);
	border: 1px solid rgba(79,124,255,0.18);
}

/* Fake monitoring dashboard */
.ff-monitor {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-bottom: 48px;
}
.ff-monitor-card {
	background: var(--ff-surface);
	border: 1px solid var(--ff-border);
	border-radius: 14px;
	padding: 20px;
}
.ff-monitor-card .mc-head {
	display: flex; align-items: center; justify-content: space-between;
	font-family: var(--ff-mono); font-size: 0.75rem; margin-bottom: 14px;
}
.ff-monitor-card .mc-head .live {
	display: inline-flex; align-items: center; gap: 5px;
	color: #34d399; font-size: 0.68rem;
}
.ff-monitor-card .mc-head .live::before {
	content: ""; width: 6px; height: 6px; border-radius: 50%; background: #34d399;
	animation: ff-pulse 2s infinite;
}
.ff-meter { margin-bottom: 10px; }
.ff-meter .ml { display: flex; justify-content: space-between; font-size: 0.68rem; color: var(--ff-text-dim); margin-bottom: 4px; }
.ff-meter .mb { height: 6px; border-radius: 999px; background: var(--ff-surface-2); overflow: hidden; }
.ff-meter .mb i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ff-accent-3), var(--ff-accent)); }
.ff-monitor-note {
	text-align: center; font-size: 0.75rem; color: var(--ff-text-dim);
	font-family: var(--ff-mono); margin-bottom: 48px;
}

/* Process timeline */
.ff-process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.ff-process::before {
	content: "";
	position: absolute; top: 27px; left: 8%; right: 8%; height: 1px;
	background: linear-gradient(90deg, transparent, var(--ff-border) 15%, var(--ff-border) 85%, transparent);
	z-index: 0;
}
.ff-process-step { position: relative; z-index: 1; }
.ff-process-step .pn {
	width: 54px; height: 54px; border-radius: 50%;
	background: var(--ff-surface); border: 1px solid var(--ff-border);
	display: flex; align-items: center; justify-content: center;
	font-family: var(--ff-mono); font-weight: 700; color: var(--ff-accent-3);
	margin-bottom: 18px;
}
.ff-process-step h3 { font-size: 1rem; margin: 0 0 8px; }
.ff-process-step p { font-size: 0.88rem; color: var(--ff-text-dim); margin: 0; }

/* FAQ */
.ff-faq { max-width: 780px; }
.ff-faq-item {
	border: 1px solid var(--ff-border);
	border-radius: 12px;
	margin-bottom: 12px;
	background: var(--ff-surface);
	overflow: hidden;
}
.ff-faq-q {
	display: flex; align-items: center; justify-content: space-between;
	padding: 20px 24px;
	cursor: pointer;
	font-weight: 600;
	font-size: 0.98rem;
	user-select: none;
}
.ff-faq-q .plus {
	font-family: var(--ff-mono);
	color: var(--ff-accent-3);
	transition: transform .2s ease;
	font-size: 1.1rem;
}
.ff-faq-item.open .plus { transform: rotate(45deg); }
.ff-faq-a {
	max-height: 0;
	overflow: hidden;
	transition: max-height .3s ease;
}
.ff-faq-a p { margin: 0; padding: 0 24px 20px; color: var(--ff-text-dim); font-size: 0.92rem; }
.ff-faq-item.open .ff-faq-a { max-height: 320px; }

/* Live power demo */
.ff-power-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 24px;
	align-items: stretch;
}
.ff-power-canvas-wrap {
	position: relative;
	background: var(--ff-surface);
	border: 1px solid var(--ff-border);
	border-radius: var(--ff-radius);
	overflow: hidden;
	min-height: 380px;
}
.ff-power-canvas-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ff-power-canvas-label {
	position: absolute;
	left: 20px; bottom: 18px;
	font-family: var(--ff-mono);
	font-size: 0.74rem;
	color: var(--ff-text-dim);
	background: rgba(10,14,23,0.55);
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid var(--ff-border);
	backdrop-filter: blur(6px);
	z-index: 2;
}
.ff-diag {
	background: var(--ff-surface);
	border: 1px solid var(--ff-border);
	border-radius: var(--ff-radius);
	padding: 26px 28px;
	display: flex;
	flex-direction: column;
}
.ff-diag-head {
	display: flex; align-items: center; justify-content: space-between;
	font-family: var(--ff-mono); font-size: 0.78rem; color: var(--ff-text-dim);
	margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--ff-border);
}
.ff-diag-head .live { display: inline-flex; align-items: center; gap: 6px; color: #34d399; }
.ff-diag-head .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #34d399; animation: ff-pulse 2s infinite; }
.ff-diag-row {
	display: flex; justify-content: space-between; align-items: baseline;
	padding: 10px 0;
	border-bottom: 1px dashed var(--ff-border);
	font-size: 0.88rem;
}
.ff-diag-row:last-child { border-bottom: none; }
.ff-diag-row span:first-child { color: var(--ff-text-dim); }
.ff-diag-row span:last-child { font-family: var(--ff-mono); color: var(--ff-accent-3); text-align: right; }

/* CTA band */
.ff-cta-band {
	background: linear-gradient(120deg, rgba(79,124,255,0.14), rgba(139,92,246,0.14));
	border-top: 1px solid var(--ff-border);
	border-bottom: 1px solid var(--ff-border);
	padding: 80px 0;
	text-align: center;
}
.ff-cta-band h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: 0 0 18px; letter-spacing: -0.02em; }
.ff-cta-band p { color: var(--ff-text-dim); max-width: 520px; margin: 0 auto 32px; font-size: 1.05rem; }

@media (max-width: 860px) {
	.ff-nav > a { display: none; }
	.ff-nav { gap: 10px; }
	.ff-services-grid { grid-template-columns: 1fr; }
	.ff-fleet-grid { grid-template-columns: 1fr; }
	.ff-highlights { grid-template-columns: 1fr; }
	.ff-hero-stats { grid-template-columns: repeat(2, 1fr); }
	.ff-contact-box { grid-template-columns: 1fr; padding: 32px; }
	.ff-hero-grid { grid-template-columns: 1fr; }
	.ff-monitor { grid-template-columns: repeat(2, 1fr); }
	.ff-process { grid-template-columns: 1fr; gap: 32px; }
	.ff-process::before { display: none; }
	.ff-diagram-lines { display: none; }
	.ff-diagram { padding: 40px 16px; }
	.ff-diagram-hub-wrap {
		aspect-ratio: auto;
		max-width: 340px;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 14px;
	}
	.ff-diagram-hub {
		position: static;
		transform: none;
		width: 84px; height: 84px;
		font-size: 0.68rem;
		margin-bottom: 4px;
		animation: none;
	}
	.ff-diagram-hub::before, .ff-diagram-hub::after { display: none; }
	.ff-diagram-node {
		position: static;
		transform: none !important;
		width: 100%;
		max-width: 260px;
		text-align: left;
	}
	.ff-diagram-node:hover { transform: none !important; }
	.ff-power-grid { grid-template-columns: 1fr; }
	.ff-power-canvas-wrap { min-height: 260px; }
}

