@font-face {
	font-family: 'IBM Plex Sans';
	font-weight: 100 700;
	font-display: swap;
	src: url('fonts/ibm-plex-sans-latin-wght-normal.woff2') format('woff2');
}
@font-face {
	font-family: 'IBM Plex Mono';
	font-weight: 400;
	font-display: swap;
	src: url('fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
}

/* Two themes from the colours of the logo (brand/BRAND.md): dark by default,
   cream when the visitor presses the theme switch (theme.js). Each colour
   token has a value in both blocks (tools/check-site.mjs). --weave-* are
   "r g b" for weave.js. */
:root {
	color-scheme: dark;
	--sans: 'IBM Plex Sans', 'Helvetica Neue', sans-serif;
	--mono: 'IBM Plex Mono', ui-monospace, monospace;

	--bg: #000000;
	--bg-2: #12171c;
	--bg-top: #000000;
	--panel: rgb(251 251 251 / 0.04);
	--panel-strong: rgb(251 251 251 / 0.08);
	--line: rgb(251 251 251 / 0.12);
	--line-strong: rgb(251 251 251 / 0.24);
	--text: #fbfbfb;
	--text-2: #d3d8dc;
	--muted: #a2aab1;
	--accent: #f53066;
	--accent-strong: #f53066;
	--on-accent: #000000;
	--accent-glow: rgb(245 48 102 / 0.4);
	--glow-1: rgb(245 48 102 / 0.14);
	--glow-2: rgb(251 251 251 / 0.04);
	--glass: rgb(0 0 0 / 0.45);
	--shade: rgb(0 0 0 / 0.88);
	--shade-soft: rgb(0 0 0 / 0.4);
	--shadow: rgb(245 48 102 / 0.18);
	--weave-line: 150 160 170;
	--weave-ink: 251 251 251;
	--weave-node: 0 0 0;
	--weave-threat: 245 48 102;
}
:root[data-theme="cream"] {
	color-scheme: light;
	--bg: #fbfbf6;
	--bg-2: #f0efe6;
	--bg-top: #fffffb;
	--panel: rgb(26 34 42 / 0.035);
	--panel-strong: rgb(26 34 42 / 0.07);
	--line: rgb(26 34 42 / 0.12);
	--line-strong: rgb(26 34 42 / 0.24);
	--text: #1a222a;
	--text-2: #3a434c;
	--muted: #59626b;
	--accent: #ed2147;
	--accent-strong: #c8193b;
	--on-accent: #ffffff;
	--accent-glow: rgb(237 33 71 / 0.35);
	--glow-1: rgb(237 33 71 / 0.07);
	--glow-2: rgb(26 34 42 / 0.05);
	--glass: rgb(251 251 246 / 0.75);
	--shade: rgb(251 251 246 / 0.92);
	--shade-soft: rgb(251 251 246 / 0.45);
	--shadow: rgb(26 34 42 / 0.16);
	--weave-line: 26 34 42;
	--weave-ink: 26 34 42;
	--weave-node: 251 251 246;
	--weave-threat: 237 33 71;
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }

body {
	min-height: 100vh;
	font: 400 1.0625rem/1.6 var(--sans);
	color: var(--text);
	background:
		radial-gradient(70rem 45rem at 50% 30rem, var(--glow-1), transparent 65%),
		radial-gradient(40rem 30rem at 95% 0, var(--glow-2), transparent 60%),
		linear-gradient(180deg, var(--bg-top) 0, var(--bg) 40rem, var(--bg-2) 100%);
	overflow-x: hidden;
}

a { color: var(--accent-strong); }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }

/* Header: over the hero */
.site-header { position: absolute; inset: 0 0 auto; z-index: 2; }
.site-header .wrap {
	display: flex;
	gap: 1rem;
	align-items: center;
	justify-content: space-between;
	padding-block: 1.25rem;
}
.brand {
	display: flex;
	gap: 0.7rem;
	align-items: center;
	text-decoration: none;
}
.brand img { display: block; width: auto; }
/* Both logo variants are in the page; the theme shows one. */
:root[data-theme="cream"] .on-dark,
:root:not([data-theme="cream"]) .on-cream { display: none; }
.header-actions { display: flex; gap: 0.6rem; align-items: center; }
.theme-switch {
	display: inline-grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	color: var(--text);
	background: var(--glass);
	cursor: pointer;
}
.theme-switch[hidden] { display: none; }
.theme-switch:hover { background: var(--panel-strong); }
.theme-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.theme-switch svg { width: 1.1rem; height: 1.1rem; }
.brand-icon { height: 32px; }
.brand-wordmark { height: 14px; }
.nav {
	display: flex;
	gap: 0.25rem;
	padding: 0.35rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--glass);
	backdrop-filter: blur(10px);
}
.nav a {
	padding: 0.45rem 1rem;
	border-radius: 999px;
	color: var(--text);
	text-decoration: none;
	font-size: 0.95rem;
}
.nav a:hover { background: var(--panel-strong); }

.button {
	display: inline-flex;
	gap: 0.5rem;
	align-items: center;
	padding: 0.8rem 1.6rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font-weight: 500;
	letter-spacing: 0.005em;
	text-decoration: none;
	white-space: nowrap;
	transition: transform 0.15s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.button .arrow { transition: transform 0.2s; }
.button:hover .arrow { transform: translateX(3px); }
.button.primary {
	color: var(--on-accent);
	background: var(--accent-strong);
	box-shadow: 0 10px 30px -10px var(--accent-glow);
}
.button.primary:hover { box-shadow: 0 14px 40px -10px var(--accent-glow); }
/* Quieter than primary: one main action per view. */
.button.ghost {
	color: var(--text);
	background: var(--panel);
	border-color: var(--line-strong);
	backdrop-filter: blur(8px);
}
.button.ghost:hover { background: var(--panel-strong); }
/* The colours of the page, inverted: the header action. */
.button.invert { color: var(--bg); background: var(--text); }
.button.invert:hover { background: var(--text-2); }
.button.small { padding: 0.55rem 1.15rem; font-size: 0.95rem; }

/* Hero: the weave scene, with the copy at the bottom left */
.hero {
	position: relative;
	isolation: isolate;
	min-height: max(40rem, 100svh);
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}
#weave { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-shade {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(ellipse at 0% 85%, var(--shade), var(--shade-soft) 45%, transparent 70%),
		linear-gradient(0deg, var(--bg), transparent 35%);
}
.hero-copy { width: 100%; padding-top: 9rem; padding-bottom: clamp(5rem, 12svh, 9rem); }
.eyebrow {
	display: inline-block;
	padding: 0.3rem 0.8rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--glass);
	font: 0.75rem/1.4 var(--mono);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--muted);
}
h1 {
	max-width: 13ch;
	margin-top: 1.25rem;
	font-size: clamp(2.6rem, 6.2vw, 5.75rem);
	font-weight: 300;
	line-height: 1.04;
	letter-spacing: -0.04em;
	margin-inline-start: -0.04em;
}
h1 em { font-style: normal; font-weight: 500; color: var(--accent); }
.lead {
	max-width: 34rem;
	margin-top: 1.5rem;
	font-size: clamp(1rem, 1.35vw, 1.2rem);
	color: var(--text-2);
}
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }

/* Product screenshots */
.shot {
	position: relative;
	max-width: 64rem;
	margin: 0 auto 5rem;
	padding: 0.5rem;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: var(--panel);
	box-shadow: 0 40px 120px -20px var(--shadow), 0 0 0 1px var(--line);
}
.shot img,
.shot video {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
}

.standards {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 2rem;
	padding-block: 1.5rem;
	border-block: 1px solid var(--line);
	font: 0.85rem/1.4 var(--mono);
	color: var(--muted);
}

/* Sections */
.section { padding-block: 5rem 1rem; }
.section-head { max-width: 40rem; margin: 0 auto 2.5rem; text-align: center; }
h2 {
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	font-weight: 300;
	line-height: 1.15;
	letter-spacing: -0.02em;
}
.section-head p { margin-top: 0.75rem; color: var(--muted); }

.features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	gap: 1rem;
}
.features article {
	padding: 1.75rem;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: linear-gradient(180deg, var(--panel-strong), var(--panel));
}
.features .n { font: 0.8rem var(--mono); color: var(--accent-strong); }
.features h3 { margin-block: 0.5rem; font-size: 1.1rem; font-weight: 500; }
.features p { color: var(--muted); font-size: 1rem; }

.split {
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: 3rem;
	align-items: center;
}
.split p { margin-top: 1rem; color: var(--muted); }
.split .shot { margin: 0; box-shadow: 0 30px 90px -30px var(--shadow); }

.contact {
	margin-block: 6rem 4rem;
	padding: 3.5rem 1.5rem;
	border: 1px solid var(--line);
	border-radius: 24px;
	text-align: center;
	background:
		radial-gradient(30rem 15rem at 50% 0, var(--glow-1), transparent 70%),
		var(--panel);
}
.contact p { max-width: 34rem; margin: 0.75rem auto 2rem; color: var(--muted); }

footer { border-top: 1px solid var(--line); }
footer .wrap { padding-block: 1.5rem; font: 0.8rem var(--mono); color: var(--muted); }
footer p + p { margin-top: 0.6rem; }
.legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.legal a { color: var(--muted); }
.legal a:hover { color: var(--text); }

/* Text pages: imprint and privacy */
.page { padding-block: 7rem 4rem; }
.prose > * { max-width: 44rem; }
.prose h1 { max-width: none; margin: 0; font-size: clamp(2rem, 4vw, 3rem); }
.prose h2 { margin-top: 2.5rem; font-size: 1.3rem; font-weight: 500; letter-spacing: 0; }
.prose p,
.prose ul,
.prose address { margin-top: 0.9rem; color: var(--muted); }
.prose address { font-style: normal; color: var(--text); }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.35rem; }

/* The navigation needs about 58 rem on one line. */
@media (max-width: 60rem) {
	.nav { display: none; }
}
@media (max-width: 52rem) {
	.split { grid-template-columns: 1fr; gap: 2rem; }
}
/* No room for the header action on a phone: the hero has the same button. */
@media (max-width: 30rem) {
	.header-actions .button { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
	.hero-copy > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: 0.5s; }
	.hero-copy > :nth-child(2) { animation-delay: 0.6s; }
	.hero-copy > :nth-child(3) { animation-delay: 0.7s; }
	.hero-copy > :nth-child(4) { animation-delay: 0.8s; }
}
@keyframes rise {
	from { opacity: 0; transform: translateY(16px); }
}
