/* IllusionDB Marketing-Onepager
   Farbtoken 1:1 aus der App (frontend/src/app.css) übernommen, damit die
   Webseite optisch zur echten Anwendung passt. */

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

:root {
	--font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

	/* Lila (Brand) */
	--purple-50: oklch(0.97 0.014 285);
	--purple-100: oklch(0.93 0.031 285);
	--purple-200: oklch(0.87 0.06 285);
	--purple-300: oklch(0.79 0.098 285);
	--purple-400: oklch(0.68 0.15 285);
	--purple-500: oklch(0.6 0.19 285);
	--purple-600: oklch(0.53 0.21 285);
	--purple-700: oklch(0.46 0.19 285);
	--purple-800: oklch(0.39 0.15 285);
	--purple-900: oklch(0.33 0.12 285);

	/* Anthrazit (Ink) */
	--ink-50: oklch(0.985 0.002 265);
	--ink-100: oklch(0.968 0.004 265);
	--ink-200: oklch(0.925 0.006 265);
	--ink-300: oklch(0.86 0.008 265);
	--ink-400: oklch(0.7 0.012 265);
	--ink-500: oklch(0.57 0.014 265);
	--ink-600: oklch(0.46 0.016 265);
	--ink-700: oklch(0.37 0.018 265);
	--ink-800: oklch(0.27 0.02 265);
	--ink-900: oklch(0.21 0.022 265);
	--ink-950: oklch(0.16 0.022 265);

	--surface: #ffffff;
	--shadow-color: 265deg 20% 20%;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	color: var(--ink-800);
	background: var(--surface);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

a {
	color: inherit;
}

.wrap {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 24px;
}

h1,
h2,
h3 {
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0;
	color: var(--ink-950);
}

h2 {
	font-size: clamp(1.6rem, 3.2vw, 2.4rem);
}

h3 {
	font-size: 1.05rem;
}

p {
	margin: 0;
	line-height: 1.6;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--purple-300);
}

.eyebrow.on-light {
	color: var(--purple-700);
}

.eyebrow .dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--purple-400);
	box-shadow: 0 0 0 4px color-mix(in oklab, var(--purple-400) 25%, transparent);
}

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

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition:
		transform 0.15s ease,
		background-color 0.15s ease,
		box-shadow 0.15s ease,
		border-color 0.15s ease;
	white-space: nowrap;
}

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

.btn-primary {
	background: linear-gradient(135deg, var(--purple-500), var(--purple-700));
	color: #fff;
	box-shadow: 0 8px 24px -8px color-mix(in oklab, var(--purple-600) 70%, transparent);
}

.btn-primary:hover {
	box-shadow: 0 12px 28px -8px color-mix(in oklab, var(--purple-600) 80%, transparent);
}

.btn-ghost-light {
	background: color-mix(in oklab, white 8%, transparent);
	color: #fff;
	border-color: color-mix(in oklab, white 22%, transparent);
	backdrop-filter: blur(6px);
}

.btn-ghost-light:hover {
	background: color-mix(in oklab, white 14%, transparent);
}

.btn-ghost-dark {
	background: transparent;
	color: var(--ink-800);
	border-color: var(--ink-300);
}

.btn-ghost-dark:hover {
	background: var(--ink-100);
}

/* ---------- Nav ---------- */

.nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	padding: 14px 0;
	background: color-mix(in oklab, var(--ink-950) 78%, transparent);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid color-mix(in oklab, white 8%, transparent);
	transition: padding 0.2s ease;
}

.nav .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: #fff;
	font-weight: 800;
	font-size: 1.05rem;
	letter-spacing: -0.01em;
}

.brand .cube {
	width: 26px;
	height: 26px;
}

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

.nav-links a {
	color: color-mix(in oklab, white 78%, transparent);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
	transition: color 0.15s ease;
}

.nav-links a:hover {
	color: #fff;
}

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 8px;
	border: 1px solid color-mix(in oklab, white 20%, transparent);
	background: color-mix(in oklab, white 8%, transparent);
	color: #fff;
	cursor: pointer;
	flex: none;
}

.nav-toggle svg {
	width: 20px;
	height: 20px;
}

.nav-toggle:hover {
	background: color-mix(in oklab, white 14%, transparent);
}

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

.hero {
	position: relative;
	padding: 168px 0 120px;
	background: linear-gradient(180deg, var(--ink-950), var(--ink-900) 60%, var(--ink-950));
	color: #fff;
	overflow: hidden;
	isolation: isolate;
}

.hero-glow {
	position: absolute;
	inset: -20% -10% auto -10%;
	height: 720px;
	background:
		radial-gradient(
			480px 380px at 18% 20%,
			color-mix(in oklab, var(--purple-600) 55%, transparent),
			transparent 70%
		),
		radial-gradient(
			560px 420px at 85% 10%,
			color-mix(in oklab, var(--purple-400) 35%, transparent),
			transparent 70%
		);
	filter: blur(10px);
	z-index: -1;
	pointer-events: none;
}

.hero-grid-lines {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(color-mix(in oklab, white 4%, transparent) 1px, transparent 1px),
		linear-gradient(90deg, color-mix(in oklab, white 4%, transparent) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse 60% 60% at 50% 0%, black, transparent 75%);
	z-index: -1;
	pointer-events: none;
}

.hero .wrap {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 56px;
	align-items: center;
}

.hero-copy h1 {
	color: #fff;
	font-size: clamp(2.2rem, 4.4vw, 3.4rem);
	line-height: 1.08;
	margin: 18px 0 20px;
}

.hero-copy h1 em {
	font-style: normal;
	background: linear-gradient(135deg, var(--purple-300), var(--purple-500));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero-copy p.lead {
	color: color-mix(in oklab, white 72%, transparent);
	font-size: 1.08rem;
	max-width: 52ch;
}

.hero-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 30px;
	flex-wrap: wrap;
}

.hero-trust {
	margin-top: 28px;
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
	color: color-mix(in oklab, white 55%, transparent);
	font-size: 0.82rem;
}

.hero-trust span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.hero-trust svg {
	width: 14px;
	height: 14px;
	flex: none;
	color: var(--purple-300);
}

.hero-art {
	position: relative;
}

.hero-art .float {
	position: absolute;
}

/* ---------- Freeware strip ---------- */

.freeware {
	position: relative;
	margin-top: -64px;
	z-index: 2;
}

.freeware-card {
	background: var(--surface);
	border-radius: 20px;
	box-shadow:
		0 1px 2px color-mix(in oklab, var(--shadow-color) 8%, transparent),
		0 24px 48px -16px rgba(20, 16, 40, 0.18);
	border: 1px solid var(--ink-200);
	padding: 36px 40px;
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 32px;
	align-items: center;
}

.freeware-text h2 {
	font-size: clamp(1.4rem, 2.6vw, 1.9rem);
	margin: 10px 0 10px;
}

.freeware-text p {
	color: var(--ink-600);
	max-width: 56ch;
}

.freeware-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

.stat {
	text-align: center;
	padding: 16px 10px;
	border-radius: 14px;
	background: var(--purple-50);
	border: 1px solid var(--purple-100);
}

.stat .num {
	display: block;
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--purple-700);
	letter-spacing: -0.02em;
}

.stat .label {
	display: block;
	margin-top: 4px;
	font-size: 0.76rem;
	color: var(--ink-600);
	font-weight: 500;
}

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

section {
	position: relative;
}

.section-pad {
	padding: 120px 0 40px;
}

/* Any section holding a [data-parallax] element that isn't already
   isolated (.hero, .features-band) needs its own overflow containment --
   a translated element's "ink overflow" still inflates the document's
   scrollable height unless something clips it locally. */
#deployment {
	overflow: hidden;
}

.section-head {
	max-width: 640px;
	margin: 0 auto 56px;
	text-align: center;
}

.section-head p {
	margin-top: 14px;
	color: var(--ink-600);
	font-size: 1.02rem;
}

.section-head .eyebrow {
	justify-content: center;
	display: flex;
}

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

.why-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.why-card {
	padding: 28px 24px;
	border-radius: 16px;
	background: var(--ink-50);
	border: 1px solid var(--ink-200);
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		border-color 0.2s ease;
}

.why-card:hover {
	transform: translateY(-4px);
	border-color: var(--purple-200);
	box-shadow: 0 20px 32px -20px color-mix(in oklab, var(--purple-600) 40%, transparent);
}

.icon-badge {
	width: 46px;
	height: 46px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--purple-500), var(--purple-700));
	color: #fff;
	margin-bottom: 16px;
	box-shadow: 0 10px 20px -10px color-mix(in oklab, var(--purple-600) 70%, transparent);
}

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

.why-card h3 {
	margin-bottom: 8px;
}

.why-card p {
	color: var(--ink-600);
	font-size: 0.92rem;
}

/* ---------- Features ---------- */

.features-band {
	background: var(--ink-950);
	color: #fff;
	padding: 120px 0;
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.features-band .hero-grid-lines {
	mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black, transparent 80%);
}

.features-band .section-head h2 {
	color: #fff;
}

.features-band .section-head p {
	color: color-mix(in oklab, white 65%, transparent);
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: color-mix(in oklab, white 10%, transparent);
	border: 1px solid color-mix(in oklab, white 10%, transparent);
	border-radius: 20px;
	overflow: hidden;
}

.feature-cell {
	background: color-mix(in oklab, var(--ink-950) 40%, var(--ink-900));
	padding: 32px 28px;
	transition: background 0.2s ease;
}

.feature-cell:hover {
	background: color-mix(in oklab, var(--purple-900) 45%, var(--ink-900));
}

.feature-cell .icon-badge {
	background: color-mix(in oklab, white 10%, transparent);
	box-shadow: none;
	color: var(--purple-300);
}

.feature-cell h3 {
	color: #fff;
}

.feature-cell p {
	color: color-mix(in oklab, white 60%, transparent);
	font-size: 0.9rem;
	margin-top: 6px;
}

/* ---------- Vergleich ---------- */

.compare-wrap {
	overflow-x: auto;
	border-radius: 18px;
	border: 1px solid var(--ink-200);
	box-shadow: 0 1px 2px color-mix(in oklab, var(--shadow-color) 6%, transparent);
}

table.compare {
	width: 100%;
	border-collapse: collapse;
	min-width: 760px;
	font-size: 0.9rem;
}

table.compare caption {
	caption-side: top;
	text-align: left;
	padding: 4px 0 16px;
	color: var(--ink-500);
	font-size: 0.85rem;
}

table.compare th,
table.compare td {
	padding: 14px 18px;
	text-align: left;
	border-bottom: 1px solid var(--ink-200);
	white-space: nowrap;
}

table.compare thead th {
	background: var(--ink-50);
	font-size: 0.82rem;
	color: var(--ink-600);
	font-weight: 700;
	position: sticky;
	top: 0;
}

table.compare tbody th {
	font-weight: 600;
	color: var(--ink-800);
	background: var(--ink-50);
	white-space: normal;
}

table.compare tbody tr:last-child td,
table.compare tbody tr:last-child th {
	border-bottom: none;
}

table.compare td.win {
	color: var(--purple-700);
	font-weight: 700;
}

table.compare .col-illusiondb {
	background: var(--purple-50);
}

table.compare thead .col-illusiondb {
	background: linear-gradient(135deg, var(--purple-600), var(--purple-700));
	color: #fff;
}

table.compare .x {
	color: var(--ink-400);
}

.compare-note {
	margin-top: 16px;
	font-size: 0.86rem;
	color: var(--ink-500);
}

/* ---------- Browser-chrome screenshot frame ---------- */

.browser-frame {
	border-radius: 14px;
	overflow: hidden;
	background: var(--ink-50);
	border: 1px solid var(--ink-200);
	box-shadow:
		0 1px 2px color-mix(in oklab, var(--shadow-color) 8%, transparent),
		0 30px 60px -24px rgba(20, 16, 40, 0.35);
}

.browser-frame .chrome-bar {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	background: var(--ink-100);
	border-bottom: 1px solid var(--ink-200);
}

.browser-frame .chrome-bar span {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--ink-300);
}

.browser-frame .chrome-bar span:nth-child(1) {
	background: oklch(0.7 0.15 25);
}
.browser-frame .chrome-bar span:nth-child(2) {
	background: oklch(0.8 0.13 85);
}
.browser-frame .chrome-bar span:nth-child(3) {
	background: oklch(0.72 0.15 145);
}

.browser-frame img {
	width: 100%;
	height: auto;
	display: block;
	background: var(--ink-100);
}

/* ---------- Screenshot showcase grid ---------- */

.showcase-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.showcase-card figcaption {
	margin-top: 12px;
	font-size: 0.86rem;
	color: var(--ink-600);
	text-align: center;
}

.showcase-card figcaption strong {
	display: block;
	color: var(--ink-900);
	font-size: 0.92rem;
	margin-bottom: 2px;
}

.showcase-card .browser-frame {
	cursor: zoom-in;
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.showcase-card .browser-frame:hover {
	transform: translateY(-3px);
	box-shadow:
		0 1px 2px color-mix(in oklab, var(--shadow-color) 8%, transparent),
		0 36px 64px -20px rgba(20, 16, 40, 0.4);
}

.showcase-card .browser-frame:focus-visible {
	outline: 2px solid var(--purple-500);
	outline-offset: 3px;
}

@media (max-width: 980px) {
	.showcase-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

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

/* ---------- Lightbox ---------- */

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 40px;
	background: color-mix(in oklab, var(--ink-950) 88%, transparent);
	backdrop-filter: blur(4px);
}

.lightbox.is-open {
	display: flex;
}

.lightbox-inner {
	position: relative;
	max-width: min(1200px, 100%);
	max-height: 100%;
	width: 100%;
}

.lightbox-inner img {
	width: 100%;
	height: auto;
	max-height: 82vh;
	object-fit: contain;
	border-radius: 12px;
	box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
	background: var(--ink-100);
}

.lightbox-caption {
	margin-top: 16px;
	text-align: center;
	color: color-mix(in oklab, white 85%, transparent);
	font-size: 0.92rem;
}

.lightbox-caption strong {
	color: #fff;
	margin-right: 6px;
}

.lightbox-close {
	position: absolute;
	top: -18px;
	right: -18px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--surface);
	border: 1px solid var(--ink-200);
	color: var(--ink-700);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.4);
}

.lightbox-close:hover {
	background: var(--ink-100);
}

.lightbox-close svg {
	width: 18px;
	height: 18px;
}

.lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: color-mix(in oklab, white 12%, transparent);
	border: 1px solid color-mix(in oklab, white 25%, transparent);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.lightbox-nav:hover {
	background: color-mix(in oklab, white 22%, transparent);
}

.lightbox-nav svg {
	width: 20px;
	height: 20px;
}

.lightbox-prev {
	left: -60px;
}

.lightbox-next {
	right: -60px;
}

@media (max-width: 900px) {
	.lightbox {
		padding: 20px;
	}

	.lightbox-close {
		top: -14px;
		right: 0;
	}

	.lightbox-prev {
		left: 4px;
	}

	.lightbox-next {
		right: 4px;
	}
}

/* ---------- Dokumenten-Generator section ---------- */

.docgen-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: center;
}

.docgen-copy p.lead {
	color: var(--ink-600);
	margin: 14px 0 22px;
	max-width: 48ch;
}

.docgen-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
}

.docgen-list li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	font-size: 0.94rem;
	color: var(--ink-700);
}

.docgen-list svg {
	width: 18px;
	height: 18px;
	flex: none;
	margin-top: 2px;
	color: var(--purple-600);
}

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

	.docgen-art {
		order: -1;
	}
}

/* ---------- Download ---------- */

.download-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.download-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 32px 22px;
	border-radius: 16px;
	background: var(--ink-50);
	border: 1px solid var(--ink-200);
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		border-color 0.2s ease;
}

.download-card:hover {
	transform: translateY(-4px);
	border-color: var(--purple-200);
	box-shadow: 0 20px 32px -20px color-mix(in oklab, var(--purple-600) 40%, transparent);
}

.download-card .icon-badge {
	margin-bottom: 18px;
}

.download-card h3 {
	margin-bottom: 4px;
}

.download-card .download-meta {
	color: var(--ink-500);
	font-size: 0.84rem;
	margin-bottom: 18px;
}

.download-card .btn {
	width: 100%;
}

.download-note {
	margin-top: 20px;
	text-align: center;
	font-size: 0.86rem;
	color: var(--ink-500);
}

.download-note a {
	color: var(--purple-700);
	text-decoration: underline;
}

@media (max-width: 980px) {
	.download-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

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

/* ---------- Kontakt ---------- */

.contact-form {
	max-width: 640px;
	margin: 0 auto;
	display: grid;
	gap: 18px;
}

/* `.contact-form { display: grid }` above and the UA stylesheet's
   `[hidden] { display: none }` have equal specificity (one class, one
   attribute selector) -- on a tie the later/author rule wins, so the
   `hidden` attribute alone silently failed to hide the form. This
   compound selector outranks the plain class rule. */
.contact-form[hidden] {
	display: none;
}

.contact-form .field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.contact-form .field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 0.86rem;
	font-weight: 600;
	color: var(--ink-700);
}

.contact-form .req {
	color: var(--purple-600);
	font-weight: 700;
}

.contact-required-note {
	margin: -6px 0 0;
	font-size: 0.78rem;
	color: var(--ink-500);
}

.contact-form input,
.contact-form textarea {
	font: inherit;
	font-weight: 400;
	width: 100%;
	padding: 11px 14px;
	border-radius: 10px;
	border: 1px solid var(--ink-300);
	background: var(--surface);
	color: var(--ink-900);
	resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
	outline: 2px solid var(--purple-500);
	outline-offset: 1px;
	border-color: var(--purple-400);
}

.contact-form .hp-field {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.contact-form-footer {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.contact-status {
	margin: 0;
	font-size: 0.88rem;
	color: var(--ink-600);
}

.contact-status.is-success {
	color: oklch(0.5 0.14 155);
}

.contact-status.is-error {
	color: var(--danger-text, oklch(0.55 0.2 25));
}

.contact-privacy {
	margin: 4px 0 0;
	font-size: 0.78rem;
	color: var(--ink-500);
	text-align: center;
}

.contact-success {
	max-width: 480px;
	margin: 0 auto;
	padding: 48px 24px;
	text-align: center;
}

.contact-success[hidden] {
	display: none;
}

.contact-success-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 20px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: oklch(0.93 0.06 155);
	color: oklch(0.4 0.14 155);
}

.contact-success-icon svg {
	width: 30px;
	height: 30px;
}

.contact-success h3 {
	font-size: 1.4rem;
	margin-bottom: 10px;
}

.contact-success p {
	color: var(--ink-600);
}

@media (max-width: 600px) {
	.contact-form .field-row {
		grid-template-columns: 1fr;
	}
}

/* ---------- Deployment ---------- */

.deploy-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: center;
}

.deploy-copy p.lead {
	color: var(--ink-600);
	margin: 14px 0 22px;
	max-width: 48ch;
}

.deploy-list {
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
	display: grid;
	gap: 12px;
}

.deploy-list li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	font-size: 0.94rem;
	color: var(--ink-700);
}

.deploy-list svg {
	width: 18px;
	height: 18px;
	flex: none;
	margin-top: 2px;
	color: var(--purple-600);
}

.code-pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--ink-950);
	color: #a7f3d0;
	font-family: 'JetBrains Mono', Consolas, Menlo, monospace;
	font-size: 0.85rem;
	padding: 12px 18px;
	border-radius: 10px;
}

.code-pill .prompt {
	color: var(--purple-300);
}

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

.cta-band {
	margin: 40px auto 0;
	max-width: 1120px;
	padding: 64px 48px;
	border-radius: 28px;
	background: linear-gradient(135deg, var(--purple-700), var(--purple-900) 65%, var(--ink-950));
	color: #fff;
	text-align: center;
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.cta-band::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(400px 220px at 50% 0%, color-mix(in oklab, white 18%, transparent), transparent 70%);
	z-index: -1;
}

.cta-band h2 {
	color: #fff;
}

.cta-band p {
	color: color-mix(in oklab, white 78%, transparent);
	margin: 14px 0 30px;
	max-width: 50ch;
	margin-left: auto;
	margin-right: auto;
}

.cta-band .hero-actions {
	justify-content: center;
	margin-top: 0;
}

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

footer {
	padding: 56px 0 40px;
	color: var(--ink-500);
}

.footer-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	border-top: 1px solid var(--ink-200);
	padding-top: 28px;
}

.footer-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	color: var(--ink-800);
}

.footer-brand .cube {
	width: 20px;
	height: 20px;
	color: var(--purple-600);
}

.footer-links {
	display: flex;
	gap: 20px;
	list-style: none;
	padding: 0;
	margin: 0;
	font-size: 0.86rem;
}

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

.footer-links a:hover {
	color: var(--purple-600);
}

/* ---------- Parallax decor ---------- */

[data-parallax] {
	will-change: transform;
}

.blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(2px);
	opacity: 0.5;
	pointer-events: none;
}

/* ---------- Responsive ---------- */

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

	.hero-art {
		order: -1;
		max-width: 420px;
		margin: 0 auto;
	}

	.freeware-card {
		grid-template-columns: 1fr;
	}

	.why-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.features-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.deploy-grid {
		grid-template-columns: 1fr;
	}

	.deploy-art {
		order: -1;
	}
}

@media (max-width: 900px) {
	.docs-shell {
		grid-template-columns: 1fr;
	}

	.docs-sidebar {
		position: static;
		max-height: none;
		border-right: none;
		border-bottom: 1px solid var(--ink-200);
	}
}

/* Nav gets its own breakpoint, wider than the content grids below --
   7 links plus the brand mark run out of room well before 720px. */
@media (max-width: 900px) {
	.nav-toggle {
		display: flex;
	}

	.nav-links {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px 0;
		background: var(--ink-950);
		border-bottom: 1px solid color-mix(in oklab, white 10%, transparent);
		max-height: calc(100vh - 60px);
		overflow-y: auto;
	}

	.nav-links.is-open {
		display: flex;
	}

	/* `<a>` defaults to display:inline, whose vertical padding doesn't
	   reserve real layout space -- rows collapsed to the text's own
	   line-height (~20px) regardless of the padding set below, nowhere near
	   a usable thumb target. display:block makes the padding real. */
	.nav-links a {
		display: block;
		padding: 18px 24px;
		font-size: 1.05rem;
		border-bottom: 1px solid color-mix(in oklab, white 6%, transparent);
	}

	.nav-links li:last-child a {
		border-bottom: none;
	}

	.nav-links a:hover {
		background: color-mix(in oklab, white 8%, transparent);
	}
}

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

	.features-grid {
		grid-template-columns: 1fr;
	}

	.section-pad {
		padding: 88px 0 32px;
	}

	.cta-band {
		padding: 48px 24px;
	}

	.freeware-card {
		padding: 28px 22px;
	}
}

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

	[data-parallax] {
		transform: none !important;
	}
}

/* ================= Dokumentation (Handbuch) ================= */

.docs-topbar {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--ink-950);
	color: #fff;
	padding: 12px 0;
	border-bottom: 1px solid color-mix(in oklab, white 10%, transparent);
}

.docs-topbar .wrap {
	max-width: 1280px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.docs-topbar .brand .cube {
	width: 22px;
	height: 22px;
}

.docs-back {
	font-size: 0.85rem;
	color: color-mix(in oklab, white 75%, transparent);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.docs-back:hover {
	color: #fff;
}

.docs-search {
	flex: 1;
	max-width: 320px;
}

.docs-search input {
	width: 100%;
	padding: 8px 12px;
	border-radius: 8px;
	border: 1px solid color-mix(in oklab, white 18%, transparent);
	background: color-mix(in oklab, white 8%, transparent);
	color: #fff;
	font-size: 0.85rem;
}

.docs-search input::placeholder {
	color: color-mix(in oklab, white 50%, transparent);
}

.docs-shell {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 40px;
	align-items: start;
}

.docs-sidebar {
	position: sticky;
	top: 64px;
	max-height: calc(100vh - 64px);
	overflow-y: auto;
	padding: 28px 18px 60px 0;
	border-right: 1px solid var(--ink-200);
}

.docs-tree {
	list-style: none;
	margin: 0;
	padding: 0;
}

.docs-tree .chapter {
	margin-bottom: 6px;
}

.docs-tree .chapter-title {
	display: block;
	padding: 8px 10px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 0.88rem;
	color: var(--ink-900);
	text-decoration: none;
}

.docs-tree .chapter-title:hover {
	background: var(--ink-100);
}

.docs-tree .chapter-title.active {
	background: var(--purple-50);
	color: var(--purple-700);
}

.docs-tree .children {
	list-style: none;
	margin: 2px 0 10px;
	padding: 0 0 0 14px;
	border-left: 1px solid var(--ink-200);
}

.docs-tree .children a {
	display: block;
	padding: 6px 10px;
	border-radius: 8px;
	font-size: 0.84rem;
	color: var(--ink-600);
	text-decoration: none;
}

.docs-tree .children a:hover {
	background: var(--ink-100);
	color: var(--ink-900);
}

.docs-tree .children a.active {
	background: var(--purple-50);
	color: var(--purple-700);
	font-weight: 600;
}

.docs-content {
	padding: 32px 0 100px;
	min-width: 0;
}

.docs-crumbs {
	font-size: 0.82rem;
	color: var(--ink-500);
	margin-bottom: 14px;
}

.docs-article {
	max-width: 72ch;
}

.docs-article h1 {
	font-size: 1.9rem;
	margin-bottom: 18px;
}

.docs-article h2 {
	font-size: 1.3rem;
	margin: 32px 0 12px;
	color: var(--ink-900);
}

.docs-article h3 {
	font-size: 1.05rem;
	margin: 24px 0 8px;
	color: var(--ink-900);
}

.docs-article p {
	margin: 12px 0;
	color: var(--ink-700);
}

.docs-article ul,
.docs-article ol {
	margin: 12px 0;
	padding-left: 22px;
	color: var(--ink-700);
}

.docs-article li {
	margin: 4px 0;
}

.docs-article a {
	color: var(--purple-700);
	text-decoration: underline;
	text-decoration-color: var(--purple-200);
	text-underline-offset: 2px;
}

.docs-article code {
	background: var(--ink-100);
	padding: 2px 6px;
	border-radius: 5px;
	font-size: 0.85em;
	font-family: 'JetBrains Mono', Consolas, Menlo, monospace;
}

.docs-article pre {
	background: var(--ink-950);
	color: var(--ink-100);
	padding: 16px 18px;
	border-radius: 12px;
	overflow-x: auto;
	margin: 16px 0;
}

.docs-article pre code {
	background: none;
	padding: 0;
	color: inherit;
}

.docs-article blockquote {
	margin: 16px 0;
	padding: 4px 16px;
	border-left: 3px solid var(--purple-300);
	color: var(--ink-600);
	background: var(--purple-50);
	border-radius: 0 8px 8px 0;
}

.docs-article table {
	border-collapse: collapse;
	margin: 16px 0;
	font-size: 0.9rem;
}

.docs-article th,
.docs-article td {
	border: 1px solid var(--ink-200);
	padding: 8px 12px;
	text-align: left;
}

.docs-pager {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 48px;
	padding-top: 20px;
	border-top: 1px solid var(--ink-200);
}

.docs-pager a {
	flex: 1;
	max-width: 48%;
	padding: 14px 16px;
	border-radius: 12px;
	border: 1px solid var(--ink-200);
	text-decoration: none;
	color: var(--ink-700);
	font-size: 0.86rem;
}

.docs-pager a:hover {
	border-color: var(--purple-300);
	background: var(--purple-50);
}

.docs-pager .dir {
	display: block;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--ink-400);
	margin-bottom: 4px;
}

.docs-pager .next {
	text-align: right;
	margin-left: auto;
}

.docs-loading,
.docs-empty {
	color: var(--ink-500);
	font-size: 0.9rem;
	padding: 40px 0;
}

.docs-tree mark,
.docs-article mark {
	background: var(--purple-100);
	color: var(--purple-800);
	border-radius: 3px;
	padding: 0 2px;
}
