/* ==========================================================================
   ArthoNetwork — feuille de style principale
   Design : surfaces translucides (verre dépoli), typographie système,
   thèmes clair / sombre, animations respectueuses de prefers-reduced-motion.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
	--font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;

	--radius-xs: 10px;
	--radius-sm: 14px;
	--radius: 22px;
	--radius-lg: 30px;
	--container: 1180px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 72px;
	--ease: cubic-bezier(.22, 1, .36, 1);
	--ease-spring: cubic-bezier(.34, 1.56, .64, 1);

	/* Thème clair */
	--bg: #f4f6f5;
	--bg-2: #eaeeec;
	--surface: rgba(255, 255, 255, .62);
	--surface-strong: rgba(255, 255, 255, .86);
	--surface-solid: #ffffff;
	--border: rgba(15, 23, 20, .09);
	--border-strong: rgba(15, 23, 20, .16);
	--text: #0c1110;
	--text-2: #2b3431;
	--muted: #5b6763;
	--accent: #08a356;
	--accent-strong: #067d42;
	--accent-soft: rgba(8, 163, 86, .1);
	--accent-contrast: #ffffff;
	--cyan: #0891b2;
	--violet: #7c3aed;
	--amber: #b45309;
	--shadow-sm: 0 1px 2px rgba(10, 20, 15, .05), 0 2px 8px rgba(10, 20, 15, .04);
	--shadow: 0 1px 2px rgba(10, 20, 15, .04), 0 12px 32px -8px rgba(10, 20, 15, .12);
	--shadow-lg: 0 2px 4px rgba(10, 20, 15, .04), 0 30px 60px -20px rgba(10, 20, 15, .22);
	--blob-1: rgba(16, 217, 122, .30);
	--blob-2: rgba(34, 211, 238, .22);
	--blob-3: rgba(139, 92, 246, .16);
	--grid: rgba(15, 23, 20, .045);
	--highlight: rgba(255, 255, 255, .9);
}

:root[data-theme="dark"] {
	--bg: #060808;
	--bg-2: #0b0f0e;
	--surface: rgba(22, 28, 26, .55);
	--surface-strong: rgba(24, 30, 28, .82);
	--surface-solid: #111614;
	--border: rgba(255, 255, 255, .08);
	--border-strong: rgba(255, 255, 255, .15);
	--text: #eef3f1;
	--text-2: #c9d3cf;
	--muted: #8d9a95;
	--accent: #22e584;
	--accent-strong: #5cf0a6;
	--accent-soft: rgba(34, 229, 132, .12);
	--accent-contrast: #03140b;
	--cyan: #22d3ee;
	--violet: #a78bfa;
	--amber: #fbbf24;
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
	--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -12px rgba(0, 0, 0, .6);
	--shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 40px 80px -24px rgba(0, 0, 0, .75);
	--blob-1: rgba(16, 217, 122, .20);
	--blob-2: rgba(34, 211, 238, .13);
	--blob-3: rgba(139, 92, 246, .15);
	--grid: rgba(255, 255, 255, .035);
	--highlight: rgba(255, 255, 255, .08);
}

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

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

body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--font);
	font-size: 16.5px;
	line-height: 1.65;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
	transition: background-color .5s var(--ease), color .5s var(--ease);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.12; letter-spacing: -.025em; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.6rem); letter-spacing: -.04em; line-height: 1.02; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.9rem); letter-spacing: -.035em; }
h3 { font-size: 1.22rem; letter-spacing: -.015em; }
ul { padding-left: 1.2em; }
strong { font-weight: 650; color: var(--text); }
::selection { background: var(--accent); color: var(--accent-contrast); }

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

.skip-link {
	position: absolute; left: 16px; top: -60px; z-index: 100;
	padding: 10px 16px; border-radius: 12px;
	background: var(--accent); color: var(--accent-contrast); font-weight: 600; text-decoration: none;
	transition: top .2s;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Icônes ---------- */
.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Fond animé ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob {
	position: absolute; border-radius: 50%; filter: blur(80px);
	will-change: transform;
	animation: drift 26s var(--ease) infinite alternate;
}
.blob-1 { width: 55vw; height: 55vw; max-width: 760px; max-height: 760px; top: -18vw; left: -12vw; background: var(--blob-1); }
.blob-2 { width: 45vw; height: 45vw; max-width: 620px; max-height: 620px; top: 10vh; right: -14vw; background: var(--blob-2); animation-duration: 32s; animation-delay: -8s; }
.blob-3 { width: 40vw; height: 40vw; max-width: 560px; max-height: 560px; bottom: -20vh; left: 30vw; background: var(--blob-3); animation-duration: 38s; animation-delay: -16s; }
.grid-lines {
	position: absolute; inset: 0;
	background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
@keyframes drift {
	0% { transform: translate3d(0, 0, 0) scale(1); }
	50% { transform: translate3d(6vw, 4vh, 0) scale(1.08); }
	100% { transform: translate3d(-4vw, 8vh, 0) scale(.95); }
}

/* Halo qui suit le curseur */
.cursor-glow {
	position: fixed; left: 0; top: 0; z-index: -1; pointer-events: none;
	width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%;
	background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), color-mix(in srgb, var(--cyan) 7%, transparent) 55%, transparent);
	opacity: 0; transition: opacity .6s var(--ease);
	will-change: transform;
}
.cursor-glow.is-on { opacity: 1; }

/* ---------- Verre ---------- */
.glass {
	background: var(--surface);
	border: 1px solid var(--border);
	-webkit-backdrop-filter: saturate(180%) blur(22px);
	backdrop-filter: saturate(180%) blur(22px);
	box-shadow: var(--shadow), inset 0 1px 0 var(--highlight);
}

/* ---------- En-tête ---------- */
.site-header {
	position: fixed; inset: 12px 0 auto; z-index: 50;
	padding-inline: var(--gutter);
	transition: transform .45s var(--ease);
}
.site-header.is-hidden { transform: translateY(-120%); }
.nav-shell {
	max-width: var(--container); margin-inline: auto;
	height: 60px; padding: 0 10px 0 18px;
	display: flex; align-items: center; gap: 16px;
	border-radius: 20px;
	transition: box-shadow .3s, background-color .3s;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.brand-mark {
	display: grid; place-items: center;
	width: 38px; height: 38px; border-radius: 12px;
	background: var(--surface-solid); color: var(--text);
	border: 1px solid var(--border);
	box-shadow: var(--shadow-sm), inset 0 1px 0 var(--highlight);
	transition: transform .5s var(--ease-spring);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); }
.logo-mark {
	width: 28px; height: 28px; background: currentColor;
	-webkit-mask: url("/assets/img/logo-256.png") center / contain no-repeat;
	mask: url("/assets/img/logo-256.png") center / contain no-repeat;
}
.brand-name { font-size: 1.05rem; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a {
	display: block; padding: 8px 13px; border-radius: 12px;
	font-size: .93rem; font-weight: 500; color: var(--text-2); text-decoration: none;
	transition: background-color .2s, color .2s;
}
.nav a:hover { background: var(--accent-soft); color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-strong); box-shadow: var(--shadow-sm); }
.nav .nav-cta-mobile { display: none; }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
	display: inline-grid; place-items: center;
	width: 42px; height: 42px; border-radius: 13px;
	border: 1px solid var(--border); background: var(--surface-strong); color: var(--text);
	cursor: pointer; transition: transform .25s var(--ease-spring), background-color .2s, color .2s;
}
.icon-btn:hover { transform: translateY(-2px); color: var(--accent); }
.icon-btn:active { transform: scale(.94); }
.icon-btn .icon { width: 20px; height: 20px; }

.theme-toggle { position: relative; overflow: hidden; }
.theme-toggle .icon { position: absolute; inset: 0; margin: auto; transition: transform .5s var(--ease-spring), opacity .3s; }
:root[data-theme="light"] .theme-toggle .i-moon,
:root[data-theme="dark"] .theme-toggle .i-sun { transform: translateY(140%) rotate(90deg); opacity: 0; }

.menu-toggle { display: none; }
.burger { position: relative; width: 18px; height: 12px; }
.burger span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 1px; }
.burger span:last-child { top: 9px; }
.menu-open .burger span:first-child { top: 5px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 5px; transform: rotate(-45deg); }

/* ---------- Boutons ---------- */
.btn {
	--btn-bg: var(--surface-strong);
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	min-height: 48px; padding: 0 22px; border-radius: 15px;
	font: 600 .97rem/1 var(--font); letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
	color: var(--text); background: var(--btn-bg); border: 1px solid var(--border);
	cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
	transition: transform .3s var(--ease-spring), box-shadow .3s var(--ease), background-color .2s, color .2s;
}
.btn { transform: translate3d(var(--bx, 0px), var(--by, 0px), 0); }
.btn:hover { transform: translate3d(var(--bx, 0px), calc(var(--by, 0px) - 2px), 0); color: var(--text); box-shadow: var(--shadow); }
.btn:active { transform: translate3d(var(--bx, 0px), var(--by, 0px), 0) scale(.98); }
.btn-sm { min-height: 40px; padding: 0 16px; border-radius: 12px; font-size: .9rem; }
.btn-primary {
	color: var(--accent-contrast); border-color: transparent;
	background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, var(--cyan)));
	box-shadow: 0 8px 24px -10px color-mix(in srgb, var(--accent) 80%, transparent), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary:hover { color: var(--accent-contrast); box-shadow: 0 14px 32px -10px color-mix(in srgb, var(--accent) 85%, transparent), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
	transform: translateX(-100%); transition: transform .8s var(--ease);
}
.btn-primary:hover::after { transform: translateX(100%); }
.btn-ghost { --btn-bg: transparent; }
.btn-ghost:hover { background: var(--surface-strong); }
.btn .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 11vw, 140px); position: relative; }
.section-tight { padding-block: clamp(48px, 7vw, 88px); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.12rem; color: var(--muted); }
.eyebrow {
	display: inline-flex; align-items: center; gap: 9px;
	margin-bottom: 18px; padding: 6px 13px 6px 11px; border-radius: 999px;
	font-size: .8rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase;
	color: var(--accent-strong); background: var(--accent-soft);
	border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
}
.section-head p.eyebrow, .phase p.eyebrow, .panel p.eyebrow { font-size: .8rem; color: var(--accent-strong); }
.eyebrow .icon { width: 15px; height: 15px; }
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: inherit; animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3); opacity: 0; } }

.rotator.gradient-text { background: none; animation: none; color: inherit; -webkit-background-clip: border-box; background-clip: border-box; }
.rotator.gradient-text > span {
	background: linear-gradient(100deg, var(--accent) 0%, var(--cyan) 45%, var(--violet) 90%);
	background-size: 200% auto;
	-webkit-background-clip: text; background-clip: text; color: transparent;
	-webkit-text-fill-color: transparent;
	animation: shine 8s linear infinite;
	visibility: hidden;
}
.rotator.gradient-text > span.is-active, .rotator.gradient-text > span.is-leaving { visibility: visible; }
html:not(.js) .rotator.gradient-text > span:first-child { visibility: visible; }

.gradient-text {
	background: linear-gradient(100deg, var(--accent) 0%, var(--cyan) 45%, var(--violet) 90%);
	background-size: 200% auto;
	-webkit-background-clip: text; background-clip: text; color: transparent;
	animation: shine 8s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--header-h) + clamp(56px, 10vw, 120px)); padding-bottom: clamp(56px, 8vw, 100px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 580px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; font-size: .92rem; color: var(--muted); }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .icon { color: var(--accent); width: 17px; height: 17px; }
.rotator { display: inline-grid; vertical-align: bottom; }
.rotator > span { grid-area: 1 / 1; opacity: 0; transform: translateY(40%); filter: blur(6px); transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s var(--ease); white-space: nowrap; }
.rotator > span.is-active { opacity: 1; transform: none; filter: none; }
.rotator > span.is-leaving { opacity: 0; transform: translateY(-40%); filter: blur(6px); }
html:not(.js) .rotator > span:first-child { opacity: 1; transform: none; filter: none; }

/* Scène du hero : pile de cartes de verre */
.hero-stage { position: relative; aspect-ratio: 1 / 1.02; max-width: 520px; width: 100%; justify-self: center; perspective: 1400px; }
.stage-inner { position: absolute; inset: 0; transition: transform .6s var(--ease); }
.float-card { transition: transform .6s var(--ease); transform: translate3d(calc(var(--px, 0) * var(--depth, 10px)), calc(var(--py, 0) * var(--depth, 10px)), 0); }
.card-browser { --depth: 10px; } .card-print { --depth: 26px; } .card-term { --depth: 18px; }
.float-card { position: absolute; border-radius: var(--radius); padding: 18px; }
.float-card .fc-title { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: .95rem; margin-bottom: 12px; }
.fc-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #fff; flex: none; }
.fc-icon .icon { width: 18px; height: 18px; }
.fc-green { background: linear-gradient(135deg, #10b981, #22e584); }
.fc-cyan { background: linear-gradient(135deg, #0891b2, #22d3ee); }
.fc-violet { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.fc-amber { background: linear-gradient(135deg, #d97706, #fbbf24); }

.card-browser { top: 4%; left: 0; width: 74%; animation: bob 7s var(--ease) infinite alternate; }
.card-print { top: 40%; right: 0; width: 58%; animation: bob 8s var(--ease) infinite alternate-reverse; z-index: 1; }
.card-term { z-index: 2; bottom: 2%; left: 6%; width: 62%; animation: bob 9s var(--ease) infinite alternate; }
@keyframes bob { from { translate: 0 0; } to { translate: 0 -14px; } }

.browser-bar { display: flex; align-items: center; gap: 6px; margin: -4px -4px 12px; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.browser-bar i:nth-child(1) { background: #ff5f57; } .browser-bar i:nth-child(2) { background: #febc2e; } .browser-bar i:nth-child(3) { background: #28c840; }
.browser-bar .url { flex: 1; margin-left: 8px; height: 22px; border-radius: 7px; background: var(--bg-2); font: 500 11px/22px var(--mono); color: var(--muted); padding-left: 10px; overflow: hidden; white-space: nowrap; }
.mock-hero { height: 70px; border-radius: 12px; background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 35%, transparent), color-mix(in srgb, var(--cyan) 30%, transparent), color-mix(in srgb, var(--violet) 25%, transparent)); background-size: 200% 200%; animation: shine 6s linear infinite; margin-bottom: 10px; }
.mock-lines { display: grid; gap: 7px; }
.mock-lines span { height: 8px; border-radius: 4px; background: var(--border-strong); }
.mock-lines span:nth-child(1) { width: 80%; } .mock-lines span:nth-child(2) { width: 60%; } .mock-lines span:nth-child(3) { width: 70%; }
.mock-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.mock-cols span { height: 36px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--border); }

.print-scene { position: relative; height: 120px; display: grid; place-items: end center; overflow: hidden; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--border); }
.print-head { position: absolute; top: 10px; left: 0; width: 28px; height: 16px; border-radius: 4px; background: var(--text-2); animation: head 2.4s ease-in-out infinite alternate; }
.print-head::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 4px; height: 6px; margin-left: -2px; background: var(--amber); border-radius: 0 0 2px 2px; }
.print-rail { position: absolute; top: 17px; left: 8px; right: 8px; height: 2px; background: var(--border-strong); }
@keyframes head { from { transform: translateX(14px); } to { transform: translateX(calc(var(--w, 200px) - 42px)); } }
.print-object { position: relative; width: 74px; margin-bottom: 10px; display: flex; flex-direction: column-reverse; gap: 2px; }
.print-object span { height: 6px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--cyan)); opacity: 0; transform: scaleX(.7); animation: layer 6s var(--ease) infinite; }
.print-object span:nth-child(1) { animation-delay: 0s; width: 100%; }
.print-object span:nth-child(2) { animation-delay: .5s; width: 96%; margin-inline: auto; }
.print-object span:nth-child(3) { animation-delay: 1s; width: 90%; margin-inline: auto; }
.print-object span:nth-child(4) { animation-delay: 1.5s; width: 80%; margin-inline: auto; }
.print-object span:nth-child(5) { animation-delay: 2s; width: 66%; margin-inline: auto; }
.print-object span:nth-child(6) { animation-delay: 2.5s; width: 48%; margin-inline: auto; }
.print-object span:nth-child(7) { animation-delay: 3s; width: 30%; margin-inline: auto; }
@keyframes layer { 0% { opacity: 0; transform: scaleX(.6); } 8%, 80% { opacity: 1; transform: scaleX(1); } 95%, 100% { opacity: 0; transform: scaleX(1); } }
.fc-meta { display: flex; justify-content: space-between; margin-top: 10px; font: 500 12px/1.3 var(--mono); color: var(--muted); }

.terminal { font: 500 12.5px/1.75 var(--mono); color: var(--text-2); }
.terminal .ok { color: var(--accent); }
.terminal .dim { color: var(--muted); }
.terminal .cursor { display: inline-block; width: 7px; height: 14px; vertical-align: -2px; background: var(--accent); animation: blink 1s steps(1) infinite; }

/* ---------- Bandeau de confiance ---------- */
.marquee { position: relative; overflow: hidden; padding-block: 22px; border-block: 1px solid var(--border); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: scroll 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--muted); white-space: nowrap; font-size: .98rem; }
.marquee-track .icon { color: var(--accent); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Statut / phase ---------- */
.phase { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); }
.phase h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.phase-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; position: relative; }
.phase-steps::before { content: ""; position: absolute; left: 17px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(var(--accent), var(--border-strong) 45%); border-radius: 2px; }
.phase-steps li { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 10px 0; }
.phase-steps .dot { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-solid); border: 2px solid var(--border-strong); color: var(--muted); }
.phase-steps .dot .icon { width: 16px; height: 16px; }
.phase-steps .done .dot { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.phase-steps .current .dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.phase-steps .current .dot::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--accent); animation: ping 2s var(--ease) infinite; }
.phase-steps strong { display: block; line-height: 1.3; }
.phase-steps span.small { font-size: .92rem; color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 650; letter-spacing: .02em; vertical-align: 2px; margin-left: 6px; }
.tag-live { color: var(--accent-strong); background: var(--accent-soft); }
.tag-open { color: var(--cyan); background: color-mix(in srgb, var(--cyan) 12%, transparent); }
.tag-soon { color: var(--violet); background: color-mix(in srgb, var(--violet) 13%, transparent); }
.tag-wip { color: var(--amber); background: color-mix(in srgb, var(--amber) 13%, transparent); }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card {
	position: relative; display: flex; flex-direction: column;
	padding: clamp(22px, 3vw, 32px); border-radius: var(--radius);
	background: var(--surface); border: 1px solid var(--border);
	-webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
	box-shadow: var(--shadow-sm), inset 0 1px 0 var(--highlight);
	overflow: hidden; isolation: isolate;
	transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
	transition: transform .6s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.card.is-tilting { transition: transform .12s linear, box-shadow .5s var(--ease), border-color .3s; }
.card::after {
	content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
	border-radius: inherit; padding: 1px; opacity: 0; transition: opacity .4s;
	background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 85%, transparent), transparent 70%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.card:hover::after { opacity: 1; }
.card .card-icon, .card .fi, .material .swatch { transition: transform .5s var(--ease-spring); }
.card:hover .card-icon { transform: scale(1.08) rotate(-6deg); }
.card:hover .fi { transform: scale(1.1) rotate(6deg); }
.material:hover .swatch { transform: scale(1.12) rotate(8deg); }
.card::before {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
	background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%);
}
.card:hover::before { opacity: 1; }
.card:hover { box-shadow: var(--shadow-lg), inset 0 1px 0 var(--highlight); border-color: var(--border-strong); }
.card-link { text-decoration: none; color: inherit; }
.card-link:hover { color: inherit; --ty: -4px; }
.card h3 { margin-top: 18px; }
.card p { color: var(--muted); }
.card .more { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent-strong); font-size: .95rem; }
.card .more .icon { transition: transform .3s var(--ease); }
.card-link:hover .more .icon { transform: translateX(4px); }
.card-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #fff; box-shadow: 0 10px 24px -10px currentColor; }
.card-icon .icon { width: 26px; height: 26px; color: #fff; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-6 { grid-column: span 6; }
.check-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.check-list li { position: relative; padding-left: 32px; color: var(--text-2); font-size: .97rem; }
.check-list .icon { position: absolute; left: 0; top: 4px; width: 18px; height: 18px; color: var(--accent); }

/* Combinaison (exemple restaurant) */
.combo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.combo-item { position: relative; padding: 26px; text-align: center; }
.combo-item:not(:last-child)::after { content: "+"; position: absolute; right: -16px; top: 50%; z-index: 2; translate: 0 -50%; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-contrast); font-weight: 800; box-shadow: 0 0 0 6px var(--bg); }
.combo-item .card-icon { margin: 0 auto 14px; }
.combo-item p { color: var(--muted); font-size: .95rem; margin: 0; }

/* QR mock */
.qr-mock { width: 132px; height: 132px; flex: none; padding: 9px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(9, 1fr); gap: 2px; }
.qr-mock i { border-radius: 2px; background: #0c1110; }
.qr-mock i.o { background: transparent; }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step { position: relative; padding: 26px; border-radius: var(--radius); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font: 700 .85rem/1 var(--mono); color: var(--accent); margin-bottom: 18px; letter-spacing: .05em; }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- Chiffres ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { padding: 26px; border-radius: var(--radius); text-align: left; }
.stat b { display: block; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.04em; line-height: 1; margin-bottom: 8px; }
.stat span { color: var(--muted); font-size: .95rem; }

/* ---------- Valeurs / engagements ---------- */
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 24px; border-radius: var(--radius); }
.feature .fi { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-strong); }
.feature .fi .icon { width: 22px; height: 22px; }
.feature h3 { font-size: 1.05rem; margin: 2px 0 6px; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details { border-radius: 18px; padding: 0; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-weight: 600; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 20px; height: 20px; color: var(--accent); transition: transform .35s var(--ease); flex: none; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq .answer { padding: 0 24px 22px; color: var(--muted); }
.faq .answer p:last-child { margin: 0; }

/* ---------- Page intérieure ---------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(48px, 8vw, 96px)); padding-bottom: clamp(36px, 5vw, 64px); }
.page-hero .lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--muted); max-width: 720px; }
.page-hero h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); max-width: 900px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; font-size: .88rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.breadcrumb a { text-decoration: none; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.panel { padding: clamp(24px, 3.5vw, 40px); border-radius: var(--radius-lg); }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.pill-list li { padding: 7px 14px; border-radius: 999px; font-size: .9rem; font-weight: 550; background: var(--surface-strong); border: 1px solid var(--border); color: var(--text-2); }
.notice { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 18px 20px; border-radius: 16px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); color: var(--text-2); font-size: .97rem; }
.notice .icon { width: 22px; height: 22px; color: var(--accent-strong); margin-top: 2px; }
.notice p { margin: 0; }
.notice.warn { background: color-mix(in srgb, var(--amber) 10%, transparent); border-color: color-mix(in srgb, var(--amber) 25%, transparent); }
.notice.warn .icon { color: var(--amber); }

/* Matériaux */
.materials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.material { padding: 20px; border-radius: 18px; }
.material .swatch { width: 38px; height: 38px; border-radius: 12px; margin-bottom: 14px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 6px 14px -6px rgba(0, 0, 0, .3); }
.material h3 { font-size: 1.02rem; margin-bottom: 4px; }
.material p { font-size: .9rem; color: var(--muted); margin: 0; }

/* Offres serveurs */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan { padding: 28px; border-radius: var(--radius); display: flex; flex-direction: column; }
.plan.featured { border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: var(--shadow-lg), 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); }
.plan h3 { margin: 12px 0 4px; font-size: 1.3rem; }
.plan .price { font-size: 1rem; color: var(--muted); margin-bottom: 18px; }
.plan .price b { font-size: 1.5rem; color: var(--text); letter-spacing: -.02em; }
.plan .btn { margin-top: auto; }

/* ---------- Formulaire ---------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.contact-aside { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 32px); }
.contact-line { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 18px; border-radius: 18px; text-decoration: none; }
.contact-line .fi { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-strong); }
.contact-line small { display: block; color: var(--muted); font-size: .82rem; }
.contact-line strong { word-break: break-word; }
a.contact-line:hover { color: inherit; transform: translateY(-2px); }
a.contact-line { transition: transform .3s var(--ease); }

.form { padding: clamp(22px, 3.5vw, 40px); border-radius: var(--radius-lg); display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label, .field legend { font-weight: 600; font-size: .93rem; }
.field .hint { font-size: .84rem; color: var(--muted); }
.req { color: var(--accent-strong); }
input, select, textarea {
	width: 100%; font: inherit; font-size: 1rem; color: var(--text);
	padding: 13px 15px; border-radius: 14px;
	background: var(--surface-strong); border: 1px solid var(--border-strong);
	transition: border-color .2s, box-shadow .2s, background-color .2s;
	-webkit-appearance: none; appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23888' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
textarea { min-height: 160px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input:user-invalid, textarea:user-invalid, select:user-invalid { border-color: #e5484d; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.chips legend { margin-bottom: 8px; padding: 0; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; font-size: .92rem; font-weight: 550; border: 1px solid var(--border-strong); background: var(--surface-strong); cursor: pointer; transition: all .25s var(--ease); user-select: none; }
.chip span .icon { width: 16px; height: 16px; }
.chip input:checked + span { background: var(--accent); color: var(--accent-contrast); border-color: transparent; box-shadow: 0 6px 16px -8px var(--accent); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .9rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; padding: 0; margin-top: 2px; border-radius: 6px; cursor: pointer; display: grid; place-items: center; }
.consent input:checked { background: var(--accent); border-color: var(--accent); }
.consent input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--accent-contrast); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; padding: 14px 16px; border-radius: 14px; font-weight: 550; }
.form-status.is-ok { display: block; background: var(--accent-soft); color: var(--accent-strong); }
.form-status.is-error { display: block; background: rgba(229, 72, 77, .12); color: #e5484d; }
.btn[disabled] { opacity: .7; pointer-events: none; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; display: none; }
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Contenu légal ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-top: 2.2em; padding-top: .2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--text-2); }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: .94rem; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { font-weight: 650; color: var(--text); background: var(--surface-strong); }
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--border); }
.table-wrap table { margin: 0; }
.legal-layout > * { min-width: 0; }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 32px); padding: 20px; border-radius: 18px; font-size: .9rem; }
.toc strong { display: block; margin-bottom: 10px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.toc a { text-decoration: none; color: var(--text-2); }
.toc a:hover { color: var(--accent); }
.updated { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }

/* ---------- Pied de page ---------- */
.site-footer { padding: 40px 0 28px; margin-top: 40px; }
.footer-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); margin-bottom: 56px; position: relative; overflow: hidden; }
.footer-cta::after { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -180px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%); pointer-events: none; }
.footer-cta h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 8px; }
.footer-cta p:last-child { margin: 0; }
.footer-cta .eyebrow { margin-bottom: 14px; }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--border); }
.footer-grid h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-grid nav a { text-decoration: none; color: var(--text-2); font-size: .95rem; }
.footer-grid nav a:hover { color: var(--accent); }
.footer-about p { margin: 16px 0; max-width: 340px; font-size: .95rem; }
.socials { display: flex !important; gap: 10px !important; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; padding-top: 24px; font-size: .87rem; color: var(--muted); }
.footer-bottom p { margin: 0; }
.to-top { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; text-decoration: none; }
.to-top .icon { width: 14px; height: 14px; }

/* ---------- Animations d'apparition ---------- */
.js .reveal { opacity: 0; translate: 0 28px; scale: .985; filter: blur(4px); transition: opacity .9s var(--ease), translate .9s var(--ease), scale .9s var(--ease), filter .9s var(--ease), transform .6s var(--ease), box-shadow .5s var(--ease), border-color .3s; transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; translate: 0 0; scale: 1; filter: none; }
.js .reveal.card.is-tilting { transition: opacity .9s var(--ease), translate .9s var(--ease), scale .9s var(--ease), filter .9s var(--ease), transform .12s linear, box-shadow .5s var(--ease); }
.js .hero .reveal { transition-duration: 1.1s; }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) var(--gutter) 40px; }
.notfound .code { font: 800 clamp(6rem, 22vw, 13rem)/1 var(--mono); letter-spacing: -.06em; }


/* Cube 3D (page impression) */
.cube-scene { position: relative; height: 260px; display: grid; place-items: center; perspective: 900px; }
.cube { position: relative; width: 120px; height: 120px; transform-style: preserve-3d; animation: turn 14s linear infinite; }
.cube .f { position: absolute; inset: 0; border-radius: 14px; border: 1.5px solid color-mix(in srgb, var(--accent) 70%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, transparent), color-mix(in srgb, var(--cyan) 14%, transparent)); box-shadow: inset 0 0 30px color-mix(in srgb, var(--accent) 25%, transparent); }
.cube .f::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background-image: repeating-linear-gradient(0deg, transparent 0 9px, color-mix(in srgb, var(--accent) 35%, transparent) 9px 10px); opacity: .55; }
.cube .f1 { z-index: 1; } .cube .f2 { transform: rotateY(180deg) translateZ(60px); }
.cube .f3 { transform: rotateY(90deg) translateZ(60px); } .cube .f4 { transform: rotateY(-90deg) translateZ(60px); }
.cube .f5 { transform: rotateX(90deg) translateZ(60px); } .cube .f6 { transform: rotateX(-90deg) translateZ(60px); }
.cube-shadow { position: absolute; bottom: 18px; width: 140px; height: 18px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.28), transparent); animation: shadow 14s linear infinite; }
@keyframes turn { from { transform: rotateX(-22deg) rotateY(0); } to { transform: rotateX(-22deg) rotateY(360deg); } }
@keyframes shadow { 50% { transform: scaleX(.85); } }

/* Maquette téléphone (menu QR) */
.phone { width: 230px; margin-inline: auto; padding: 12px; border-radius: 36px; background: var(--surface-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); }
.phone-screen { border-radius: 26px; overflow: hidden; background: var(--bg-2); padding: 16px 14px 20px; min-height: 380px; }
.phone-notch { width: 70px; height: 18px; border-radius: 10px; background: var(--text); opacity: .85; margin: 0 auto 16px; }
.menu-title { font-weight: 750; font-size: 1.1rem; letter-spacing: -.02em; margin-bottom: 2px; }
.menu-sub { font-size: .75rem; color: var(--muted); margin-bottom: 14px; }
.menu-cat { display: flex; gap: 6px; margin-bottom: 12px; overflow: hidden; }
.menu-cat span { flex: none; }
.menu-cat span { padding: 4px 10px; border-radius: 999px; font-size: .7rem; font-weight: 600; background: var(--surface-strong); border: 1px solid var(--border); }
.menu-cat span:first-child { background: var(--accent); color: var(--accent-contrast); border-color: transparent; }
.menu-item { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--border-strong); font-size: .82rem; }
.menu-item b { font-weight: 650; }
.menu-item > b { white-space: nowrap; }
.menu-item small { display: block; color: var(--muted); font-size: .7rem; }
.qr-duo { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.nav a { padding: 8px 9px; font-size: .9rem; }
	.nav-cta { display: none !important; }
}

@media (max-width: 980px) {
	.hero-grid, .split, .phase, .contact-grid { grid-template-columns: 1fr; }
	.split.reverse > :first-child { order: 0; }
	.hero-stage { max-width: 440px; }
	.bento { grid-template-columns: repeat(2, 1fr); }
	.span-2, .span-3, .span-4 { grid-column: span 1; }
	.span-6, .bento .span-wide { grid-column: span 2; }
	.steps, .stats, .materials { grid-template-columns: repeat(2, 1fr); }
	.feature-row, .plans { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-about { grid-column: span 2; }
	.legal-layout { grid-template-columns: 1fr; }
	.toc { position: static; }
	.contact-aside { position: static; order: 2; }

	.menu-toggle { display: inline-grid; }
	.nav-actions { margin-left: auto; }
	.nav {
		position: fixed; left: var(--gutter); right: var(--gutter); top: 84px;
		margin: 0; padding: 10px; border-radius: 22px;
		background: var(--surface-solid); border: 1px solid var(--border);
		-webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
		box-shadow: var(--shadow-lg);
		opacity: 0; transform: translateY(-12px) scale(.98); pointer-events: none; visibility: hidden;
		transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s;
	}
	.menu-open .nav { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
	.nav ul { flex-direction: column; gap: 2px; }
	.nav a { padding: 14px 16px; font-size: 1.05rem; border-radius: 14px; }
	.nav .nav-cta-mobile { display: block; margin-top: 8px; }
	.nav .nav-cta-mobile .btn { display: flex; width: 100%; justify-content: center; color: var(--accent-contrast); background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, var(--cyan))); }
}

@media (max-width: 640px) {
	body { font-size: 16px; }
	.site-header { inset: 8px 0 auto; padding-inline: 10px; }
	.nav-shell { height: 58px; padding: 0 8px 0 12px; }
	.nav { left: 10px; right: 10px; top: 76px; }
	.brand-name { font-size: 1rem; }
	.bento, .steps, .stats, .materials, .combo { grid-template-columns: 1fr; }
	.span-6, .bento .span-wide { grid-column: span 1; }
	.combo-item:not(:last-child)::after { right: 50%; top: auto; bottom: -16px; translate: 50% 0; }
	.form-row { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.hero-actions .btn { flex: 1 1 auto; }
	.footer-cta-actions, .footer-cta-actions .btn { width: 100%; }
	.footer-cta-actions .btn { white-space: normal; text-align: center; }
	.hero-stage { aspect-ratio: 1 / 1.1; }
	.float-card { padding: 14px; }
	.card-browser { width: 84%; }
	.card-print { width: 66%; }
	.card-term { width: 74%; left: 0; }
	.terminal { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; translate: none; scale: none; filter: none; }
}

@media print {
	.backdrop, .site-header, .footer-cta, .theme-toggle { display: none !important; }
	body { background: #fff; color: #000; }
	.glass, .card { box-shadow: none; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
