/* ==========================================================================
   Modus — Data & AI · 2026
   Tokens are documented in /brand26/README.md
   ========================================================================== */

@font-face {
	font-family: "Montserrat";
	src: url("../fonts/montserrat-latin-wght.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-latin-wght.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
	/* Brand */
	--ink-950: #070e15;
	--ink-900: #0b1620;
	--ink-800: #13212e;
	--ink-700: #1c2e3e;
	--slate-600: #2f404c; /* 2019 heritage colour */
	--slate-400: #5b6f7d;
	--slate-300: #9fb0be;
	--mist-200: #dde3ea;
	--mist-100: #eef1f6;
	--cloud-50: #f7f8fb;
	--violet-600: #5546e4;
	--violet-500: #6d5efc;
	--violet-300: #a99eff;
	--coral-500: #ff706c;
	--cyan-400: #2dd4e0;
	--coral-700: #cf3f66;
	--gradient-dawn: linear-gradient(45deg, var(--violet-500), var(--coral-500));
	/* deeper stops, for white text on top (4.5:1 or better along the whole gradient) */
	--gradient-dawn-strong: linear-gradient(45deg, var(--violet-600), var(--coral-700));

	/* Semantic — light */
	--bg: var(--cloud-50);
	--surface: #ffffff;
	--surface-2: var(--mist-100);
	--text: var(--ink-900);
	--muted: #4d5e6b;
	--border: var(--mist-200);
	--accent: var(--violet-600);
	--accent-soft: rgba(109, 94, 252, 0.1);
	--gradient-text: var(--gradient-dawn-strong);
	--header-bg: rgba(247, 248, 251, 0.78);
	--glow-1: rgba(109, 94, 252, 0.22);
	--glow-2: rgba(255, 112, 108, 0.18);
	--shadow: 0 1px 2px rgba(11, 22, 32, 0.04), 0 12px 32px -12px rgba(11, 22, 32, 0.14);

	/* Type & layout */
	--font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
	--font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
	--radius: 20px;
	--radius-sm: 12px;
	--container: 1120px;
	--gutter: clamp(20px, 5vw, 40px);
	--header-h: 68px;

	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: var(--ink-900);
		--surface: var(--ink-800);
		--surface-2: var(--ink-700);
		--text: #eef2f6;
		--muted: var(--slate-300);
		--border: #24384a;
		--accent: var(--violet-300);
		--accent-soft: rgba(169, 158, 255, 0.14);
		--gradient-text: linear-gradient(45deg, var(--violet-300), var(--coral-500));
		--header-bg: rgba(11, 22, 32, 0.72);
		--glow-1: rgba(109, 94, 252, 0.34);
		--glow-2: rgba(255, 112, 108, 0.2);
		--shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
		color-scheme: dark;
	}
}

:root[data-theme="dark"] {
	--bg: var(--ink-900);
	--surface: var(--ink-800);
	--surface-2: var(--ink-700);
	--text: #eef2f6;
	--muted: var(--slate-300);
	--border: #24384a;
	--accent: var(--violet-300);
	--accent-soft: rgba(169, 158, 255, 0.14);
	--gradient-text: linear-gradient(45deg, var(--violet-300), var(--coral-500));
	--header-bg: rgba(11, 22, 32, 0.72);
	--glow-1: rgba(109, 94, 252, 0.34);
	--glow-2: rgba(255, 112, 108, 0.2);
	--shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
	color-scheme: dark;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

main {
	flex: 1;
}

h1,
h2,
h3 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.02em;
	margin: 0;
	text-wrap: balance;
}

h1 {
	font-size: clamp(2.4rem, 6.2vw, 4.4rem);
	font-weight: 800;
	letter-spacing: -0.035em;
}

h2 {
	font-size: clamp(1.7rem, 3.6vw, 2.5rem);
}

h3 {
	font-size: 1.2rem;
	letter-spacing: -0.01em;
}

p {
	margin: 0 0 1em;
	text-wrap: pretty;
}

a {
	color: var(--accent);
	text-underline-offset: 0.18em;
}

a:hover {
	text-decoration-thickness: 2px;
}

img,
svg {
	max-width: 100%;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 6px;
}

::selection {
	background: var(--violet-500);
	color: #fff;
}

.container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 100;
	padding: 10px 16px;
	border-radius: 10px;
	background: var(--text);
	color: var(--bg);
	font-weight: 600;
	text-decoration: none;
}

.skip-link:focus {
	top: 12px;
}

.gradient-text {
	background: var(--gradient-text);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* ---------- Header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--header-bg);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid var(--border);
}

.site-header .container {
	display: flex;
	align-items: center;
	gap: 16px;
	height: var(--header-h);
}

.brand {
	display: inline-flex;
	align-items: center;
	color: var(--text);
	margin-right: auto;
	flex-shrink: 0;
}

.brand svg {
	display: block;
	height: 30px;
	width: auto;
}

.nav {
	display: flex;
	align-items: center;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav a {
	display: block;
	padding: 8px 13px;
	border-radius: 999px;
	color: var(--muted);
	font-size: 0.95rem;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.15s, background-color 0.15s;
}

.nav a:hover {
	color: var(--text);
	background: var(--surface-2);
}

.nav a[aria-current="page"] {
	color: var(--text);
	background: var(--accent-soft);
}

.icon-btn {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	flex-shrink: 0;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
	color: var(--text);
	cursor: pointer;
	transition: border-color 0.15s, transform 0.15s;
}

.icon-btn:hover {
	border-color: var(--accent);
}

.icon-btn svg {
	width: 19px;
	height: 19px;
}

/* The toggle shows the theme you would switch to. */
.theme-toggle .icon-sun {
	display: none;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme-toggle .icon-sun {
		display: block;
	}

	:root:not([data-theme="light"]) .theme-toggle .icon-moon {
		display: none;
	}
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
	display: block;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
	display: none;
}

.nav-toggle {
	display: none;
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-menu {
	display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
	display: block;
}

@media (max-width: 860px) {
	.nav-toggle {
		display: inline-grid;
	}

	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--bg);
		border-bottom: 1px solid var(--border);
		box-shadow: var(--shadow);
		padding: 10px var(--gutter) 20px;
		max-height: calc(100dvh - var(--header-h));
		overflow-y: auto;
	}

	/* Without JS the menu simply stays open below the header. */
	.js .site-nav:not(.is-open) {
		display: none;
	}

	.nav {
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
	}

	.nav a {
		padding: 13px 16px;
		border-radius: var(--radius-sm);
		font-size: 1.05rem;
	}
}

@media (max-width: 420px) {
	.brand svg {
		height: 24px;
	}

	.site-header .container {
		gap: 10px;
	}
}

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 24px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: var(--font-display);
	font-size: 0.98rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn-primary {
	background: var(--gradient-dawn-strong);
	color: #fff;
	box-shadow: 0 10px 28px -10px rgba(109, 94, 252, 0.7);
}

.btn-ghost {
	background: var(--surface);
	border-color: var(--border);
	color: var(--text);
}

.btn-ghost:hover {
	border-color: var(--accent);
}

.btn .arrow {
	transition: transform 0.15s;
}

.btn:hover .arrow {
	transform: translateX(3px);
}

/* ---------- Hero ---------- */

.hero {
	position: relative;
	isolation: isolate;
	padding-block: clamp(56px, 10vw, 120px) clamp(48px, 8vw, 96px);
}

.hero::before,
.page-hero::before {
	content: "";
	position: absolute;
	/* Never wider than the page: anything sticking out sideways makes phones scroll horizontally. */
	inset: -40% 0 0;
	z-index: -1;
	background:
		radial-gradient(58.8% 46% at 89.2% 34%, var(--glow-1), transparent 70%),
		radial-gradient(47.6% 40% at 111.6% 70%, var(--glow-2), transparent 70%);
	pointer-events: none;
}

.hero .container {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	align-items: center;
	gap: clamp(24px, 5vw, 64px);
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
	color: var(--accent);
	font-family: var(--font-display);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.eyebrow::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--gradient-dawn);
}

.lead {
	max-width: 36em;
	margin-top: 24px;
	color: var(--muted);
	font-size: clamp(1.08rem, 1.7vw, 1.28rem);
	line-height: 1.6;
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
}

.hero-art {
	justify-self: center;
	width: min(100%, 440px);
	aspect-ratio: 1;
}

.hero-art svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.hero-art .ring {
	fill: none;
	stroke: var(--text);
}

.hero-art .dot {
	fill: var(--text);
}

.hero-art .orbit {
	transform-origin: 200px 200px;
	animation: orbit 48s linear infinite;
}

.hero-art .orbit.reverse {
	animation-duration: 72s;
	animation-direction: reverse;
}

.hero-art .core {
	transform-origin: 200px 200px;
	animation: breathe 7s ease-in-out infinite;
}

@keyframes orbit {
	to {
		transform: rotate(360deg);
	}
}

@keyframes breathe {
	50% {
		transform: scale(1.06);
	}
}

@media (max-width: 860px) {
	.hero .container {
		grid-template-columns: 1fr;
	}

	.hero-art {
		order: -1;
		width: min(64vw, 280px);
		justify-self: start;
		margin-left: -8px;
	}
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
	position: relative;
	isolation: isolate;
	padding-block: clamp(48px, 8vw, 96px) clamp(24px, 4vw, 40px);
}

.page-hero h1 {
	font-size: clamp(2.2rem, 5.4vw, 3.6rem);
}

/* ---------- Sections ---------- */

.section {
	padding-block: clamp(48px, 8vw, 96px);
}

.section.tight {
	padding-top: 0;
}

.section-head {
	max-width: 44em;
	margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head p:not(.eyebrow) {
	margin: 16px 0 0;
	color: var(--muted);
	font-size: 1.1rem;
}

.prose {
	max-width: 42em;
	font-size: 1.1rem;
}

.prose p:last-child {
	margin-bottom: 0;
}

.split {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: clamp(24px, 5vw, 72px);
	align-items: start;
}

@media (max-width: 860px) {
	.split {
		grid-template-columns: 1fr;
	}
}

.motto {
	margin-top: 28px;
	padding-left: 18px;
	border-left: 3px solid transparent;
	border-image: var(--gradient-dawn) 1;
	font-family: var(--font-display);
	font-size: 1.15rem;
	font-weight: 600;
}

/* ---------- Cards ---------- */

.grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: clamp(22px, 3vw, 30px);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
}

.card p {
	margin: 10px 0 0;
	color: var(--muted);
	font-size: 1rem;
}

.card-icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin-bottom: 20px;
	border-radius: 14px;
	background: var(--accent-soft);
	color: var(--accent);
}

.card-icon svg {
	width: 22px;
	height: 22px;
}

.card-num {
	margin-bottom: 18px;
	font-family: var(--font-display);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.14em;
}

a.card {
	color: inherit;
	text-decoration: none;
	transition: transform 0.18s, border-color 0.18s;
}

a.card:hover {
	transform: translateY(-3px);
	border-color: var(--accent);
}

.card .more {
	margin-top: auto;
	padding-top: 20px;
	color: var(--accent);
	font-family: var(--font-display);
	font-size: 0.92rem;
	font-weight: 600;
}

.card .handle {
	color: var(--muted);
	font-size: 0.95rem;
	overflow-wrap: anywhere;
}

.profile-card {
	max-width: 460px;
}

.profile-head {
	display: flex;
	align-items: center;
	gap: 18px;
}

.avatar {
	display: grid;
	place-items: center;
	width: 68px;
	height: 68px;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--gradient-dawn-strong);
	color: #fff;
	font-family: var(--font-display);
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.card .profile-role {
	margin-top: 4px;
}

.profile-card .actions {
	margin-top: 24px;
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 18px 0 0;
	padding: 0;
}

.chips li {
	padding: 6px 13px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--bg);
	font-size: 0.9rem;
	font-weight: 500;
}

/* ---------- CTA band ---------- */

.cta {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: clamp(32px, 6vw, 64px);
	border-radius: calc(var(--radius) + 8px);
	background: var(--ink-900);
	color: #fff;
}

:root[data-theme="dark"] .cta {
	background: var(--ink-800);
	border: 1px solid var(--border);
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .cta {
		background: var(--ink-800);
		border: 1px solid var(--border);
	}
}

.cta::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(50% 90% at 100% 0%, rgba(255, 112, 108, 0.32), transparent 70%),
		radial-gradient(50% 90% at 0% 100%, rgba(109, 94, 252, 0.42), transparent 70%);
}

.cta p {
	max-width: 34em;
	margin: 14px 0 0;
	color: #c9d3dc;
	font-size: 1.1rem;
}

.cta .btn-ghost {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.24);
	color: #fff;
}

.cta a:not(.btn) {
	color: #fff;
}

.cta :focus-visible {
	outline-color: #fff;
}

.cta .email {
	display: inline-block;
	margin-top: 8px;
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 5.5vw, 3rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.16em;
	overflow-wrap: anywhere;
}

/* ---------- Third-party embeds (Sessionize) ----------
   This brings its own light styling, so it always sits on a light card. */

.embed {
	padding: clamp(16px, 3vw, 28px);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: #fff;
	color: #0b1620;
	box-shadow: var(--shadow);
	overflow-x: auto;
}

.embed a {
	color: #5546e4;
}

/* ---------- Footer ---------- */

.site-footer {
	margin-top: clamp(32px, 6vw, 64px);
	border-top: 1px solid var(--border);
	padding-block: 40px;
	color: var(--muted);
	font-size: 0.95rem;
}

.site-footer .container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 32px;
}

.site-footer .brand {
	margin: 0;
}

.site-footer .brand svg {
	height: 22px;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-links a {
	color: var(--muted);
	text-decoration: none;
}

.footer-links a:hover {
	color: var(--text);
	text-decoration: underline;
}

.site-footer small {
	flex-basis: 100%;
	font-size: 0.88rem;
}

/* ---------- Motion ---------- */

.js .reveal {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}

	.js .reveal {
		opacity: 1;
		transform: none;
	}
}

@media print {
	.site-header,
	.site-footer,
	.hero-art,
	.actions {
		display: none;
	}
}

/* ---------- Utilities ---------- */

.h3 {
	font-size: 1.2rem;
	letter-spacing: -0.01em;
}

.cta .eyebrow {
	color: #fff;
}

.actions.flush {
	margin-top: 0;
}

/* ---------- Home sections ---------- */

.band {
	background: var(--surface);
	border-block: 1px solid var(--border);
}

.band .card {
	background: var(--bg);
}

.band .chips li {
	background: var(--surface);
}

.grid-2 {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}

.grid-4 {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
}

.card-feature {
	overflow: hidden;
	padding: clamp(26px, 4vw, 40px);
}

.card-feature::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 4px;
	background: var(--gradient-dawn);
}

.card-feature h3 {
	font-size: clamp(1.4rem, 2.4vw, 1.75rem);
}

.card-feature p {
	font-size: 1.05rem;
}

.ticks {
	display: grid;
	gap: 10px;
	list-style: none;
	margin: 22px 0 0;
	padding: 0;
	font-weight: 500;
}

.ticks li {
	position: relative;
	padding-left: 30px;
}

.ticks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.28em;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--accent-soft);
}

.ticks li::after {
	content: "";
	position: absolute;
	left: 6px;
	top: calc(0.28em + 4px);
	width: 5px;
	height: 8px;
	border: solid var(--accent);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
	gap: 28px 32px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.steps li {
	padding-top: 20px;
	border-top: 2px solid var(--border);
}

.steps .card-num {
	display: inline-block;
	margin-bottom: 10px;
}

.steps p {
	margin: 8px 0 0;
	color: var(--muted);
	font-size: 1rem;
}

.modus-cards {
	margin-top: clamp(32px, 5vw, 56px);
}
