:root {
	--bg: #0f1b33;
	--bg-2: #101f3d;
	--grid-line: rgba(159, 176, 204, 0.07);
	--panel: #16264a;
	--panel-alt: #1b2e56;
	--border: #2e436b;
	--border-error: #9c0a0a;
	--border-soft: #24365c;
	--text: #eaeff7;
	--text-dim: #9fb0cc;
	--text-faint: #6e80a3;
	--accent: #f2a541;
	--accent-ink: #241505;
	--accent-2: #5fa8d3;
	--success: #13971e;

	--font-display: "Space Grotesk", "Segoe UI", sans-serif;
	--font-body: "Inter", "Segoe UI", sans-serif;
	--font-mono: "JetBrains Mono", "Courier New", monospace;

	--radius: 4px;
	--wrap: 1120px;
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}
}

*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 24px;
}

/* graph-paper background */
.grid-bg {
	position: fixed;
	inset: 0;
	z-index: -1;
	background-color: var(--bg);
	background-image:
		linear-gradient(var(--grid-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
	background-size: 40px 40px;
	mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
}

a {
	color: inherit;
	text-decoration: none;
}
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
	outline: 2px solid var(--accent-2);
	outline-offset: 3px;
}

h1,
h2,
h3 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.15;
	margin: 0 0 0.5em;
	letter-spacing: -0.01em;
}

p {
	margin: 0 0 1em;
	color: var(--text-dim);
}

.accent {
	color: var(--accent);
}

/* corner registration marks — used across panels */
.corner {
	position: absolute;
	width: 14px;
	height: 14px;
	border: 1.5px solid var(--accent-2);
	opacity: 0.8;
}
.c-tl {
	top: -1px;
	left: -1px;
	border-right: none;
	border-bottom: none;
}
.c-tr {
	top: -1px;
	right: -1px;
	border-left: none;
	border-bottom: none;
}
.c-bl {
	bottom: -1px;
	left: -1px;
	border-right: none;
	border-top: none;
}
.c-br {
	bottom: -1px;
	right: -1px;
	border-left: none;
	border-top: none;
}

/* ===================== HEADER ===================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(15, 27, 51, 0.88);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--border-soft);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 76px;
}

.logo-mark {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border: 1px solid var(--border);
}
.logo-text {
	font-family: var(--font-mono);
	font-size: 17px;
	color: var(--text-faint);
	letter-spacing: 0.01em;
}
.logo-text b {
	color: var(--accent);
	font-weight: 600;
}

.main-nav {
	display: flex;
	align-items: center;
	gap: 30px;
}
.main-nav a {
	font-family: var(--font-mono);
	font-size: 13px;
	text-transform: lowercase;
	color: var(--text-dim);
	padding: 6px 2px;
	border-bottom: 1px solid transparent;
	transition:
		color 0.15s ease,
		border-color 0.15s ease;
}
.main-nav a:hover {
	color: var(--text);
	border-color: var(--accent-2);
}

.nav-cta {
	color: var(--accent) !important;
	border: 1px solid var(--accent);
	border-bottom: 1px solid var(--accent) !important;
	padding: 8px 14px !important;
	border-radius: var(--radius);
}
.nav-cta:hover {
	background: var(--accent);
	color: var(--accent-ink) !important;
}

.nav-toggle {
	display: none;
}
.nav-burger {
	display: none;
	flex-direction: column;
	gap: 5px;
	cursor: pointer;
	padding: 6px;
}
.nav-burger span {
	width: 22px;
	height: 2px;
	background: var(--text);
	display: block;
}

/* ===================== BUTTONS ===================== */
.btn {
	display: inline-block;
	cursor: pointer;
	font-family: var(--font-mono);
	font-size: 14px;
	padding: 13px 22px;
	border-radius: var(--radius);
	border: 1px solid transparent;
	transition:
		transform 0.15s ease,
		background 0.15s ease,
		color 0.15s ease,
		border-color 0.15s ease;
}
.btn-primary {
	background: var(--accent);
	color: var(--accent-ink);
	font-weight: 600;
}
.btn-primary:hover {
	transform: translateY(-2px);
}
.btn-ghost {
	border-color: var(--border);
	color: var(--text);
}
.btn-ghost:hover {
	border-color: var(--accent-2);
	color: var(--accent-2);
}
.btn-block {
	display: block;
	text-align: center;
}

/* ===================== HERO ===================== */
.hero {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 48px;
	align-items: center;
	padding: 88px 24px 96px;
}

.eyebrow,
.section-eyebrow {
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--accent-2);
	margin: 0 0 18px;
}

.hero h1 {
	font-size: clamp(2rem, 4vw, 2.9rem);
	margin-bottom: 22px;
}

.lede {
	font-size: 17px;
	max-width: 46ch;
}

.hero-actions {
	display: flex;
	gap: 14px;
	margin: 30px 0 42px;
	flex-wrap: wrap;
}

.hero-stats {
	display: flex;
	gap: 34px;
	border-top: 1px solid var(--border-soft);
	padding-top: 22px;
	margin: 0;
	flex-wrap: wrap;
}
.hero-stats dt {
	font-family: var(--font-mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--text-faint);
	margin-bottom: 4px;
}
.hero-stats dd {
	margin: 0;
	font-size: 14px;
	color: var(--text);
	font-weight: 500;
}

.hero-diagram {
	position: relative;
	border: 1px solid var(--border);
	background: rgba(22, 38, 74, 0.4);
	padding: 24px 24px 16px;
	border-radius: var(--radius);
}
.hero-diagram svg {
	width: 100%;
	height: auto;
	display: block;
}

.d-frame {
	fill: none;
	stroke: var(--border);
	stroke-width: 1.5;
}
.d-block {
	fill: var(--panel-alt);
	stroke: var(--border);
	stroke-width: 1;
}
.d-block-alt {
	fill: var(--panel);
	stroke: var(--border-soft);
	stroke-width: 1;
}
.d-dot {
	fill: var(--accent);
}
.d-line {
	stroke: var(--text-faint);
	stroke-width: 2;
	stroke-linecap: round;
}
.d-line-thick {
	stroke: var(--text-dim);
	stroke-width: 5;
	stroke-linecap: round;
}
.d-line-thin {
	stroke: var(--text-faint);
	stroke-width: 1.5;
	stroke-linecap: round;
	opacity: 0.7;
}
.d-line-accent {
	stroke: var(--accent-2);
	stroke-width: 3;
	stroke-linecap: round;
}
.d-cta {
	fill: var(--accent);
}
.d-cta-outline {
	fill: none;
	stroke: var(--accent-2);
	stroke-width: 1.5;
}
.d-ring {
	fill: none;
	stroke: var(--accent-2);
	stroke-width: 2;
}

.dim-line {
	stroke: var(--text-faint);
	stroke-width: 1;
}
.dim-tick {
	stroke: var(--text-faint);
	stroke-width: 1;
}
.dim-text {
	font-family: var(--font-mono);
	font-size: 9px;
	fill: var(--text-faint);
	letter-spacing: 0.08em;
}
.callout-line {
	stroke: var(--border);
	stroke-width: 1;
	stroke-dasharray: 2 2;
}
.callout-text {
	font-family: var(--font-mono);
	font-size: 11px;
	fill: var(--text-dim);
}

.diagram-caption {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--text-faint);
	text-align: right;
	margin: 10px 2px 0;
}

/* ===================== SECTIONS ===================== */
.section {
	padding: 44px 24px;
	border-top: 1px solid var(--border-soft);
}
.section h2 {
	font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.section-lede {
	font-size: 16px;
}

/* tags */
.tag-grid {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	padding: 0;
	margin: 32px 0 0;
}
.tag-grid li span {
	display: block;
	border: 1px solid var(--border);
	border-left: 3px solid var(--accent-2);
	padding: 16px 18px;
	font-size: 14.5px;
	color: var(--text);
	background: rgba(22, 38, 74, 0.35);
}

/* cards */
.card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: 36px;
}
.card {
	position: relative;
	border: 1px solid var(--border-soft);
	padding: 26px 22px 22px;
	border-radius: var(--radius);
	transition:
		border-color 0.18s ease,
		transform 0.18s ease;
}
.card:hover {
	border-color: var(--accent-2);
	transform: translateY(-3px);
}
.card-index {
	display: block;
	font-family: var(--font-mono);
	color: var(--accent);
	font-size: 13px;
	margin-bottom: 14px;
}
.card h3 {
	font-size: 18px;
	margin-bottom: 8px;
}
.card p {
	font-size: 14.5px;
	margin: 0;
}

/* process */
.process-list {
	list-style: none;
	margin: 40px 0 0;
	padding: 0;
}
.process-list li {
	display: flex;
	gap: 22px;
	padding: 22px 0;
	border-top: 1px solid var(--border-soft);
}
.process-list li:first-child {
	border-top: none;
}
.step-num {
	font-family: var(--font-mono);
	font-size: 22px;
	color: var(--accent-2);
	min-width: 42px;
}
.process-list h3 {
	font-size: 17px;
	margin-bottom: 6px;
}
.process-list p {
	font-size: 14.5px;
	margin: 0;
}

/* pricing */
.price-panel {
	position: relative;
	border: 1px solid var(--border);
	background: rgba(22, 38, 74, 0.35);
	padding: 40px 38px;
	border-radius: var(--radius);
	margin-top: 32px;
}
.price-head h3 {
	font-size: 20px;
	margin-bottom: 6px;
}
.price-head p {
	font-size: 14.5px;
}
.price-list {
	list-style: none;
	padding: 0;
	margin: 24px 0 30px;
	display: grid;
	gap: 12px;
}
.price-list li {
	font-size: 14.5px;
	color: var(--text);
	padding-left: 22px;
	position: relative;
}
.price-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 7px;
	width: 9px;
	height: 9px;
	border: 1.5px solid var(--accent);
}

/* contact */
.contact-grid {
	gap: 20px;
	margin-top: 32px;
	align-items: start;
}

.contact-panel,
.contact-form {
	position: relative;
	border: 1px solid var(--border);
	background: rgba(22, 38, 74, 0.35);
	padding: 34px 34px 30px;
	border-radius: var(--radius);
	margin-bottom: 24px;
}
.contact-list {
	margin: 0 0 26px;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
}

.contact-list dt {
	font-family: var(--font-mono);
	font-size: 11px;
	text-transform: uppercase;
	color: var(--text-faint);
	margin-bottom: 3px;
}
.contact-list dd {
	margin: 0;
	font-size: 15px;
}
.contact-list a:hover {
	color: var(--accent-2);
}
.contact-note {
	font-size: 12px;
	color: var(--text-faint);
	margin: 14px 0 0;
}

/* contact form */
.contact-form {
	display: flex;
	flex-direction: column;
}
.form-row {
	margin-bottom: 18px;
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.form-row-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 18px;
}
.form-row-split > div {
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.contact-form label {
	font-family: var(--font-mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--text-faint);
}

.contact-form input,
.contact-form textarea {
	width: 100%;
	background: var(--bg-2);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 14.5px;
	padding: 11px 13px;
	transition: border-color 0.15s ease;
}

.contact-form input.error,
.contact-form textarea.error {
	border: 1px solid var(--border-error);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
	color: var(--text-faint);
}
.contact-form input:focus,
.contact-form textarea:focus {
	outline: none;
	border-color: var(--accent-2);
}
.contact-form textarea {
	resize: vertical;
	min-height: 110px;
}

.contact-form .btn {
	margin-top: 4px;
}

.contact-form #contact-success {
	display: none;
	font-size: 18px;
	text-align: center;
	color: var(--success);
}

.contact-form .error_message {
	color: var(--border-error);
}

@media (max-width: 880px) {
	.contact-grid {
		grid-template-columns: 1fr;
	}
	.form-row-split {
		grid-template-columns: 1fr;
		gap: 18px;
	}
}

/* ===================== FOOTER ===================== */
.site-footer {
	border-top: 1px solid var(--border-soft);
	padding: 56px 24px 40px;
}
.footer-inner {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 30px;
}
.title-block {
	position: relative;
	border: 1px solid var(--border);
	font-family: var(--font-mono);
	font-size: 12px;
	min-width: 260px;
}
.tb-row {
	display: flex;
	justify-content: space-between;
	padding: 8px 14px;
	border-top: 1px solid var(--border-soft);
	color: var(--text-dim);
}
.tb-row:first-child {
	border-top: none;
}
.tb-row b {
	color: var(--text);
	font-weight: 500;
}

.footer-text {
	font-size: 13px;
	color: var(--text-faint);
	margin: 0;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 880px) {
	.hero {
		grid-template-columns: 1fr;
		padding-top: 56px;
	}
	.tag-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.card-grid {
		grid-template-columns: 1fr;
	}
	.contact-list {
		flex-direction: column;
		display: flex;
	}
	.footer-inner {
		flex-direction: column;
		align-items: flex-start;
	}
	.footer-text {
		text-align: left;
	}
}

@media (max-width: 720px) {
	.main-nav {
		position: absolute;
		top: 76px;
		left: 0;
		right: 0;
		background: var(--bg-2);
		border-bottom: 1px solid var(--border-soft);
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		padding: 8px 24px 18px;
		transform: translateY(-8px);
		opacity: 0;
		pointer-events: none;
		transition:
			transform 0.18s ease,
			opacity 0.18s ease;
	}
	.main-nav a {
		padding: 12px 0;
		width: 100%;
		border-bottom: 1px solid var(--border-soft);
	}
	.nav-cta {
		margin-top: 10px;
		text-align: center;
	}
	.nav-toggle:checked ~ .main-nav {
		transform: translateY(0);
		opacity: 1;
		pointer-events: auto;
	}
	.nav-burger {
		display: flex;
	}
	.tag-grid {
		grid-template-columns: 1fr;
	}
	.contact-list {
		display: flex;
		flex-direction: column;
	}
}
