/* MonZphere — Zabbix Module Builder
 * Aesthetic: Refined dark engineering aesthetic.
 * Type: Fraunces (display serif) + JetBrains Mono (UI/data).
 * Palette: deep night + MonZphere red signal.
 */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800&family=Geist+Mono:wght@400;500;600&display=swap');

:root {
	/* Surfaces */
	--mnz-bg: #0a0d14;
	--mnz-bg-elev: #11151e;
	--mnz-bg-card: #141925;
	--mnz-bg-code: #0e1118;

	/* Borders */
	--mnz-border: #232a39;
	--mnz-border-strong: #2f3849;
	--mnz-border-accent: rgba(220, 53, 34, 0.30);

	/* Foreground */
	--mnz-fg: #ecedf2;
	--mnz-fg-strong: #ffffff;
	--mnz-fg-muted: #99a1b3;
	--mnz-fg-dim: #6b7387;

	/* Brand */
	--mnz-brand: #e63a26;
	--mnz-brand-strong: #ff4733;
	--mnz-brand-soft: rgba(230, 58, 38, 0.10);
	--mnz-brand-glow: rgba(230, 58, 38, 0.32);

	/* Type */
	--mnz-display: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
	--mnz-text:    'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
	--mnz-mono:    'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

	/* Geometry */
	--mnz-radius: 4px;
	--mnz-radius-lg: 10px;
	--mnz-shadow: 0 1px 0 rgba(255,255,255,0.02) inset, 0 8px 32px -16px rgba(0,0,0,0.6);
	--mnz-shadow-glow: 0 0 0 1px rgba(230, 58, 38, 0.4), 0 20px 60px -20px rgba(230, 58, 38, 0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
	font-family: var(--mnz-text);
	color: var(--mnz-fg);
	background: var(--mnz-bg);
	line-height: 1.55;
	font-size: 15px;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	letter-spacing: -0.005em;

	background-image:
		radial-gradient(ellipse 80% 60% at 78% -10%, rgba(230, 58, 38, 0.16), transparent 65%),
		radial-gradient(ellipse 60% 40% at 0% 0%, rgba(230, 58, 38, 0.05), transparent 70%);
	background-attachment: fixed;
	min-height: 100vh;
	overflow-x: hidden;
}

/* Subtle grain — hand-rolled SVG noise overlay */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 1;
	opacity: 0.04;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
}

main, header, footer { position: relative; z-index: 2; }

/* ---- Container ---- */
.mnz-container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 28px;
}

/* ---- Links ---- */
a { color: inherit; text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--mnz-fg-strong); }

/* ---- Inline code & pre ---- */
code, pre {
	font-family: var(--mnz-mono);
	font-size: 0.92em;
}
pre {
	background: var(--mnz-bg-code);
	color: #e6e8ef;
	padding: 14px 18px;
	border-radius: var(--mnz-radius);
	overflow-x: auto;
	margin: 0;
	font-size: 12.5px;
	line-height: 1.7;
	border: 1px solid var(--mnz-border);
	letter-spacing: 0;
}
pre code {
	background: transparent;
	border: 0;
	padding: 0;
	font-size: inherit;
	color: inherit;
	border-radius: 0;
}
p code, li code {
	background: var(--mnz-bg-code);
	padding: 1px 6px;
	border-radius: 3px;
	font-size: 0.85em;
	border: 1px solid var(--mnz-border);
	color: #c9cfd9;
}

/* ---- Header ---- */
.mnz-header {
	border-bottom: 1px solid var(--mnz-border);
	background: rgba(10, 13, 20, 0.72);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	position: sticky;
	top: 0;
	z-index: 10;
}
.mnz-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 0;
	min-height: 60px;
}
.mnz-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.mnz-brand-logo {
	height: 24px;
	width: auto;
	display: block;
	/* Original PNG is dark-on-transparent; flip to light for the dark theme. */
	filter: brightness(0) invert(0.96);
	transition: filter 0.2s ease;
}
.mnz-brand:hover .mnz-brand-logo { filter: brightness(0) invert(1); }
.mnz-nav {
	display: flex;
	gap: 32px;
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: 0.02em;
}
.mnz-nav a {
	color: var(--mnz-fg-muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 11.5px;
}
.mnz-nav a:hover { color: var(--mnz-fg-strong); }

/* ---- Buttons ---- */
.mnz-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 22px;
	border-radius: var(--mnz-radius);
	font-family: var(--mnz-mono);
	font-weight: 500;
	font-size: 13px;
	letter-spacing: 0.02em;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.04s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	line-height: 1;
	white-space: nowrap;
}
.mnz-btn:active { transform: translateY(1px); }

.mnz-btn-primary {
	background: var(--mnz-brand);
	color: #fff;
	box-shadow: 0 0 0 1px rgba(230, 58, 38, 0.4), 0 12px 32px -10px var(--mnz-brand-glow);
}
.mnz-btn-primary:hover {
	background: var(--mnz-brand-strong);
	color: #fff;
	box-shadow: 0 0 0 1px rgba(230, 58, 38, 0.6), 0 16px 40px -10px var(--mnz-brand-glow);
}
.mnz-btn-primary:disabled {
	background: #5a2620;
	color: #b89d99;
	cursor: not-allowed;
	box-shadow: none;
}

.mnz-btn-ghost {
	background: rgba(255,255,255,0.02);
	color: var(--mnz-fg);
	border-color: var(--mnz-border-strong);
}
.mnz-btn-ghost:hover {
	background: rgba(255,255,255,0.04);
	border-color: var(--mnz-fg-dim);
	color: var(--mnz-fg-strong);
}

.mnz-btn-block { width: 100%; }

.mnz-btn-tiny {
	padding: 7px 12px;
	font-size: 11.5px;
	letter-spacing: 0.04em;
}

/* ---- HERO ---- */
.mnz-hero {
	padding: 110px 0 100px;
	text-align: center;
	position: relative;
}
.mnz-hero::after {
	/* Thin red line under hero — subtle telemetry feel */
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 60%;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--mnz-border-strong), transparent);
}

.mnz-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--mnz-mono);
	font-size: 11.5px;
	font-weight: 500;
	color: var(--mnz-fg-muted);
	text-transform: uppercase;
	letter-spacing: 0.18em;
	margin: 0 0 28px;
	padding: 6px 14px;
	border: 1px solid var(--mnz-border);
	border-radius: 100px;
	background: rgba(230, 58, 38, 0.04);
}
.mnz-eyebrow::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--mnz-brand);
	box-shadow: 0 0 0 0 rgba(230, 58, 38, 0.6);
	animation: mnz-pulse 2.4s ease-out infinite;
}
@keyframes mnz-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(230, 58, 38, 0.55); }
	70%  { box-shadow: 0 0 0 8px rgba(230, 58, 38, 0); }
	100% { box-shadow: 0 0 0 0 rgba(230, 58, 38, 0); }
}

.mnz-hero h1 {
	font-family: var(--mnz-display);
	font-weight: 600;
	font-size: clamp(40px, 6.2vw, 72px);
	line-height: 1.04;
	letter-spacing: -0.035em;
	color: var(--mnz-fg-strong);
	margin: 0 auto 24px;
	max-width: 19ch;
}
.mnz-hero h1 em {
	font-style: normal;
	font-weight: 600;
	color: var(--mnz-brand);
}

.mnz-lede {
	font-family: var(--mnz-text);
	font-size: 15px;
	color: var(--mnz-fg-muted);
	max-width: 620px;
	margin: 0 auto 40px;
	line-height: 1.7;
}

.mnz-cta-row {
	display: inline-flex;
	gap: 12px;
	flex-wrap: wrap;
	justify-content: center;
}

.mnz-trust {
	font-family: var(--mnz-mono);
	font-size: 11.5px;
	color: var(--mnz-fg-dim);
	margin-top: 28px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

/* ---- Sections ---- */
.mnz-section {
	padding: 96px 0;
	position: relative;
}

.mnz-section-header {
	text-align: center;
	margin-bottom: 56px;
}
.mnz-section-tag {
	display: inline-block;
	font-family: var(--mnz-mono);
	font-size: 11px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--mnz-brand);
	margin-bottom: 12px;
}
.mnz-section h2 {
	font-family: var(--mnz-display);
	font-weight: 600;
	font-size: clamp(26px, 3.6vw, 38px);
	letter-spacing: -0.025em;
	color: var(--mnz-fg-strong);
	margin: 0 auto 14px;
	max-width: 24ch;
	line-height: 1.12;
}
.mnz-section-sub {
	font-size: 14px;
	color: var(--mnz-fg-muted);
	margin: 0 auto;
	max-width: 56ch;
}

/* ---- Features grid ---- */
.mnz-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}
@media (max-width: 720px) {
	.mnz-grid { grid-template-columns: 1fr; }
}

.mnz-card {
	background: var(--mnz-bg-card);
	border: 1px solid var(--mnz-border);
	border-radius: var(--mnz-radius-lg);
	padding: 28px 28px 26px;
	position: relative;
	transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.mnz-card:hover {
	border-color: var(--mnz-border-accent);
	background: linear-gradient(180deg, var(--mnz-bg-card), #161b27);
	transform: translateY(-1px);
}

.mnz-card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 8px;
	background: var(--mnz-brand-soft);
	border: 1px solid var(--mnz-border-accent);
	color: var(--mnz-brand);
	margin-bottom: 18px;
}
.mnz-card-icon svg {
	width: 18px;
	height: 18px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mnz-card h3 {
	font-family: var(--mnz-display);
	font-weight: 600;
	font-size: 17px;
	letter-spacing: -0.015em;
	color: var(--mnz-fg-strong);
	margin: 0 0 8px;
	line-height: 1.3;
}
.mnz-card p {
	margin: 0;
	font-size: 13.5px;
	color: var(--mnz-fg-muted);
	line-height: 1.65;
}

/* ---- Workflow steps ---- */
.mnz-workflow {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	max-width: 720px;
	margin: 0 auto;
}

.mnz-step {
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 22px;
	align-items: start;
	background: var(--mnz-bg-card);
	border: 1px solid var(--mnz-border);
	border-radius: var(--mnz-radius-lg);
	padding: 22px 26px;
	position: relative;
	transition: border-color 0.2s ease;
}
.mnz-step:hover { border-color: var(--mnz-border-accent); }

.mnz-step-num {
	font-family: var(--mnz-mono);
	font-size: 13px;
	font-weight: 500;
	color: var(--mnz-brand);
	line-height: 1;
	padding-top: 6px;
	letter-spacing: 0.06em;
	font-variant-numeric: tabular-nums;
}

.mnz-step-body { min-width: 0; }
.mnz-step-title {
	font-family: var(--mnz-display);
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -0.015em;
	color: var(--mnz-fg-strong);
	margin: 0 0 4px;
	line-height: 1.3;
}
.mnz-step-text {
	font-size: 13px;
	color: var(--mnz-fg-muted);
	margin: 0 0 14px;
	line-height: 1.6;
}
.mnz-step-text:last-child { margin-bottom: 0; }

/* ---- Code chrome (used in workflow) ---- */
.mnz-code {
	background: var(--mnz-bg-code);
	border: 1px solid var(--mnz-border);
	border-radius: var(--mnz-radius);
	overflow: hidden;
	font-family: var(--mnz-mono);
}
.mnz-code-bar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 14px;
	background: rgba(255,255,255,0.015);
	border-bottom: 1px solid var(--mnz-border);
	font-size: 11px;
	color: var(--mnz-fg-dim);
}
.mnz-code-dots {
	display: inline-flex;
	gap: 6px;
}
.mnz-code-dots i {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #2a3140;
	display: inline-block;
}
.mnz-code-dots i:nth-child(1) { background: #ff5f57; }
.mnz-code-dots i:nth-child(2) { background: #ebbf3f; }
.mnz-code-dots i:nth-child(3) { background: #5fce5f; }
.mnz-code-path {
	font-family: var(--mnz-mono);
	font-size: 11px;
	color: var(--mnz-fg-dim);
	letter-spacing: 0.02em;
}
.mnz-code pre {
	border: 0;
	border-radius: 0;
	margin: 0;
	padding: 14px 16px;
	font-size: 12.5px;
}
.mnz-code .prompt { color: var(--mnz-brand); user-select: none; }
.mnz-code .comment { color: var(--mnz-fg-dim); }
.mnz-code .ok { color: #5fce5f; }
.mnz-code .key { color: #e8b86a; }

/* ---- Pricing ---- */
.mnz-pricing-wrap {
	display: flex;
	justify-content: center;
}
.mnz-price-card {
	background: linear-gradient(180deg, var(--mnz-bg-card), #161b28);
	border: 1px solid var(--mnz-border-accent);
	border-radius: var(--mnz-radius-lg);
	padding: 36px 36px 32px;
	width: 100%;
	max-width: 380px;
	position: relative;
	box-shadow: var(--mnz-shadow-glow);
	overflow: hidden;
}
.mnz-price-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 50% -30%, rgba(230, 58, 38, 0.20), transparent 60%);
	pointer-events: none;
}
.mnz-price-card > * { position: relative; }

.mnz-price-tier {
	font-family: var(--mnz-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--mnz-brand);
	margin: 0 0 4px;
}
.mnz-price-name {
	font-family: var(--mnz-display);
	font-weight: 500;
	font-size: 15px;
	color: var(--mnz-fg-muted);
	margin: 0 0 22px;
	letter-spacing: -0.01em;
}
.mnz-price {
	font-family: var(--mnz-display);
	font-weight: 700;
	font-size: 72px;
	color: var(--mnz-fg-strong);
	margin: 0;
	letter-spacing: -0.045em;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
.mnz-price-cents {
	font-size: 32px;
	font-weight: 500;
	color: var(--mnz-fg-muted);
	letter-spacing: -0.025em;
}
.mnz-price-cycle {
	display: block;
	font-family: var(--mnz-mono);
	font-size: 12px;
	color: var(--mnz-fg-muted);
	margin: 6px 0 24px;
	letter-spacing: 0.04em;
}
.mnz-price-card ul {
	list-style: none;
	padding: 0;
	margin: 0 0 28px;
	display: grid;
	gap: 11px;
}
.mnz-price-card li {
	font-size: 13.5px;
	color: var(--mnz-fg);
	padding-left: 28px;
	position: relative;
	line-height: 1.5;
}
.mnz-price-card li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 6px;
	width: 16px;
	height: 9px;
	border-left: 1.5px solid var(--mnz-brand);
	border-bottom: 1.5px solid var(--mnz-brand);
	transform: rotate(-45deg);
}

/* ---- Footer ---- */
.mnz-footer {
	border-top: 1px solid var(--mnz-border);
	padding: 36px 0 44px;
	background: rgba(10, 13, 20, 0.6);
}
.mnz-footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.mnz-footer-logo {
	height: 18px;
	width: auto;
	opacity: 0.7;
}
.mnz-footer p {
	margin: 0;
	font-family: var(--mnz-mono);
	font-size: 11.5px;
	color: var(--mnz-fg-dim);
	letter-spacing: 0.02em;
}
.mnz-footer a { color: var(--mnz-fg-muted); }
.mnz-footer a:hover { color: var(--mnz-fg-strong); }

/* ---- Status / success / cancel ---- */
.mnz-status {
	max-width: 640px;
	margin: 80px auto;
	padding: 36px 38px;
	background: var(--mnz-bg-card);
	border: 1px solid var(--mnz-border);
	border-radius: var(--mnz-radius-lg);
	box-shadow: var(--mnz-shadow);
}
.mnz-status h1 {
	font-family: var(--mnz-display);
	font-weight: 600;
	font-size: 30px;
	color: var(--mnz-fg-strong);
	letter-spacing: -0.025em;
	margin: 0 0 10px;
}
.mnz-status p {
	color: var(--mnz-fg-muted);
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.65;
}
.mnz-key-box {
	background: var(--mnz-bg-code);
	color: #f4cf6a;
	font-family: var(--mnz-mono);
	padding: 14px 16px;
	border-radius: var(--mnz-radius);
	font-size: 13px;
	word-break: break-all;
	margin: 8px 0 16px;
	user-select: all;
	border: 1px solid var(--mnz-border);
}
.mnz-status-actions {
	display: flex;
	gap: 10px;
	margin-top: 24px;
	flex-wrap: wrap;
}

/* ---- Legal pages ---- */
.mnz-legal {
	max-width: 740px;
	margin: 64px auto;
	padding: 0 28px 80px;
}
.mnz-legal h1 {
	font-family: var(--mnz-display);
	font-weight: 600;
	font-size: 34px;
	letter-spacing: -0.025em;
	color: var(--mnz-fg-strong);
	margin: 0 0 8px;
}
.mnz-legal .mnz-meta {
	font-family: var(--mnz-mono);
	font-size: 11.5px;
	color: var(--mnz-fg-dim);
	letter-spacing: 0.04em;
	margin-bottom: 36px;
}
.mnz-legal h2 {
	font-family: var(--mnz-display);
	font-weight: 600;
	font-size: 20px;
	color: var(--mnz-fg-strong);
	margin: 36px 0 10px;
	letter-spacing: -0.015em;
}
.mnz-legal p, .mnz-legal li {
	font-size: 14px;
	line-height: 1.7;
	color: var(--mnz-fg);
}
.mnz-legal ul { padding-left: 22px; }
.mnz-legal a { color: var(--mnz-brand); }
.mnz-legal a:hover { color: var(--mnz-brand-strong); }

/* ---- Responsive ---- */
@media (max-width: 720px) {
	.mnz-container { padding: 0 20px; }
	.mnz-hero { padding: 64px 0 56px; }
	.mnz-section { padding: 64px 0; }
	.mnz-nav { display: none; }
	.mnz-step { grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 18px; }
	.mnz-step-num { font-size: 22px; }
	.mnz-status { margin: 40px 16px; padding: 24px 20px; }
}

/* ---- Selection ---- */
::selection {
	background: rgba(230, 58, 38, 0.32);
	color: var(--mnz-fg-strong);
}
