/* =========================================================
   Nova Venturies — design system
   A company that captures, splits, and redirects light —
   so the recurring visual device is a spectrum: one beam,
   separated into violet -> blue -> cyan -> amber, and
   reassembled. Used once per page as a real diagram, and
   as a thin rule elsewhere. Everything around it stays quiet.
   ========================================================= */

:root {
	--void: #070b18;
	--void-soft: #0f1830;
	--paper: #f8f7f4;
	--paper-alt: #eeece4;
	--ink: #0e1016;
	--muted: #656b7a;
	--line: #e2ded3;
	--line-dark: rgba(255, 255, 255, 0.12);

	--violet: #7b5fff;
	--blue: #2e6bff;
	--cyan: #22d3ee;
	--amber: #f5a623;

	--spectrum: linear-gradient(90deg, var(--violet), var(--blue), var(--cyan), var(--amber));

	--font-head: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
	--font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

	--radius: 4px;
	--container: 1160px;
	--container-narrow: 720px;
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	font-family: var(--font-head);
	line-height: 1.1;
	margin: 0 0 0.5em;
	font-weight: 600;
	letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; max-width: 68ch; }

a { color: var(--blue); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

ul, ol { padding-left: 1.3em; max-width: 68ch; }

:focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	* { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.container.narrow { max-width: var(--container-narrow); }

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

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100000;
	background: var(--void);
	color: #fff;
	padding: 12px 18px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */
.site-header {
	background: var(--paper);
	border-bottom: 1px solid var(--line);
	position: sticky;
	top: 0;
	z-index: 50;
}
.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 0;
	gap: 20px;
}
.site-title {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--ink);
	text-decoration: none;
}
.main-navigation ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.main-navigation a {
	color: var(--ink);
	font-weight: 500;
	font-size: 0.96rem;
	position: relative;
	padding-bottom: 4px;
}
.main-navigation a:hover, .main-navigation a:focus {
	text-decoration: none;
	background-image: var(--spectrum);
	background-position: 0 100%;
	background-repeat: no-repeat;
	background-size: 100% 2px;
}

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.menu-toggle-bar { width: 24px; height: 2px; background: var(--ink); display: block; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-block;
	padding: 13px 28px;
	border-radius: var(--radius);
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: var(--blue); text-decoration: none; color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover, .btn-secondary:focus { border-color: var(--ink); text-decoration: none; }
.hero .btn-secondary, .product-hero .btn-secondary { color: #fff; border-color: var(--line-dark); }
.hero .btn-secondary:hover, .product-hero .btn-secondary:hover { border-color: #fff; }

/* ---------- Beam graphic (hero device) ---------- */
.beam-graphic { width: 100%; height: auto; display: block; }
.beam-graphic .beam-line { stroke-width: 2; fill: none; }
.beam-graphic .beam-source { fill: var(--paper); }
.beam-graphic .beam-dot { fill: var(--amber); }

/* ---------- Hero (homepage) ---------- */
.hero { background: var(--void); color: var(--paper); padding: 88px 0 0; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero-lede { color: #c7cbdc; font-size: 1.12rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.hero-visual { padding: 20px 0 0; }

/* ---------- Product page hero ---------- */
.product-hero { background: var(--void); color: var(--paper); padding: 76px 0 0; overflow: hidden; }
.product-hero h1 { color: #fff; max-width: 20ch; }
.product-hero .hero-lede { color: #c7cbdc; max-width: 58ch; }
.product-hero .status-line { color: var(--amber); font-weight: 600; font-size: 0.95rem; margin-bottom: 14px; }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--paper-alt); }
.section-title { margin-bottom: 10px; }
.section-lede { color: var(--muted); max-width: 62ch; margin-bottom: 44px; font-size: 1.05rem; }

/* ---------- Product grid / cards (homepage) ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.product-card {
	display: block;
	background: #fff;
	border-right: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	border-top: 3px solid var(--blue);
	padding: 34px 30px;
	color: var(--ink);
	text-decoration: none;
}
.product-card.band-violet { border-top-color: var(--violet); }
.product-card.band-blue   { border-top-color: var(--blue); }
.product-card.band-cyan   { border-top-color: var(--cyan); }
.product-card.band-amber  { border-top-color: var(--amber); }
.product-card:hover, .product-card:focus { background: var(--paper-alt); text-decoration: none; }
.product-card-title { margin-bottom: 10px; }
.product-card-blurb { color: var(--muted); font-size: 0.97rem; margin-bottom: 14px; }
.product-card-status { font-size: 0.88rem; font-weight: 600; color: var(--ink); margin: 0; }

/* ---------- Process diagram (how it works) ---------- */
.process-diagram {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0;
	margin: 36px 0 44px;
	position: relative;
}
.process-diagram::before {
	content: "";
	position: absolute;
	top: 7px;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--spectrum);
}
.process-diagram.band-violet::before { background: linear-gradient(90deg, var(--violet), var(--blue)); }
.process-diagram.band-cyan::before   { background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.process-diagram.band-amber::before  { background: linear-gradient(90deg, var(--cyan), var(--amber)); }
.process-step { position: relative; padding: 24px 18px 0 0; }
.process-step-dot {
	display: block;
	width: 16px; height: 16px;
	border-radius: 50%;
	background: var(--paper);
	border: 2px solid var(--ink);
	margin-bottom: 14px;
	position: relative;
	z-index: 1;
}
.process-step-label { font-size: 1.02rem; margin-bottom: 6px; }
.process-step-detail { font-size: 0.92rem; color: var(--muted); max-width: 26ch; }

/* ---------- Entry / page content ---------- */
.entry-content h2 { margin-top: 1.7em; }
.status-note { color: var(--muted); font-size: 0.92rem; }
.site-main.container.narrow { padding-top: 54px; padding-bottom: 64px; }

/* ---------- Post grid / blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; padding: 50px 0; }
.post-card { border: 1px solid var(--line); overflow: hidden; background: #fff; }
.post-card-thumb img { display: block; width: 100%; }
.post-card-body { padding: 22px; }
.entry-meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 10px; }

/* ---------- CTA block ---------- */
.cta-block { background: var(--void); color: #fff; padding: 68px 0; text-align: center; position: relative; }
.cta-block::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--spectrum); }
.cta-block h2 { color: #fff; }
.cta-block p { color: #c7cbdc; margin: 0 auto 26px; }

/* ---------- Forms ---------- */
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-row label { font-weight: 600; font-size: 0.92rem; }
.form-row input, .form-row textarea, .search-field {
	font-family: inherit;
	font-size: 1rem;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
}
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.nv-honeypot { position: absolute; left: -9999px; }

.form-notice { padding: 16px 18px; border-radius: var(--radius); margin-bottom: 24px; }
.form-notice-success { background: #e4f5ec; color: #1e6b3a; }
.form-notice-error { background: #fbeaea; color: #a33333; }

.search-form { display: flex; gap: 10px; max-width: 420px; }
.search-form .search-field { flex: 1; }

/* ---------- 404 ---------- */
.error-404 { text-align: center; padding: 90px 0; }
.error-404 h1 { font-size: 4rem; }
.error-404 h1 { background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Footer ---------- */
.site-footer { background: var(--void); color: #b9bdcc; padding: 56px 0 26px; margin-top: 0; position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--spectrum); }
.footer-columns { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 34px; align-items: start; }
.footer-about p { color: #9297a8; font-size: 0.92rem; }
.footer-widget-title { font-size: 0.95rem; color: #fff; margin-bottom: 10px; }
.footer-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-navigation a { color: #b9bdcc; }
.footer-bottom { border-top: 1px solid var(--line-dark); margin-top: 40px; padding-top: 20px; font-size: 0.85rem; color: #7d8296; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.hero-inner { grid-template-columns: 1fr; }
	.product-grid { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
	.menu-toggle { display: flex; }
	.main-navigation { display: none; width: 100%; }
	.main-navigation.is-open { display: block; }
	.main-navigation ul { flex-direction: column; gap: 4px; padding: 18px 0; }
	.main-navigation a { display: block; padding: 10px 0; }
	.site-header-inner { flex-wrap: wrap; }
	.footer-columns { grid-template-columns: 1fr 1fr; }
}
