/* ==========================================================================
   IT-Service Hanna - Design System
   Dark, modern engineering theme. Self-hosted fonts (GDPR-friendly).
   Built for clarity, depth and accessible interaction states.
   ========================================================================== */

/* ---------- Fonts (local, GDPR-compliant) ---------- */
/* Inter variable font: full 100-900 weight range in a single request */
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/inter-variable.woff2') format('woff2');
}

/* ---------- Design tokens ---------- */
:root {
	/* Surfaces & lines */
	--bg:          #08090a;
	--bg-soft:     #0e0f12;
	--surface:        rgba(255, 255, 255, 0.024);
	--surface-2:      rgba(255, 255, 255, 0.05);
	--surface-3:      rgba(255, 255, 255, 0.08);
	--surface-raised: #101113; /* solid elevated surface */
	--surface-raised-2: #16181b; /* card hover */
	--border:      rgba(255, 255, 255, 0.08);
	--border-soft: rgba(255, 255, 255, 0.05);

	/* Text */
	--text:        #f2f3f5;
	--muted:       #a0a4ad;
	--faint:       #7e828c;

	/* Brand & accent (near-monochrome: ONE accent) */
	--primary:        #6e79d6; /* the single accent: links, icons, lines */
	--primary-strong: #5b63c4; /* darker shade so white text passes on solid fills */
	--secondary:      #818cf8;
	--accent:         #6e79d6; /* alias of primary */
	--accent-2:       #818cf8;
	--accent-3:       #2dd4bf; /* teal – reserved for success only */
	--accent-quiet:   #4a4f5c; /* near-neutral decorative icons */
	--ink:            #ffffff; /* text on accent surfaces */
	--grad:           linear-gradient(135deg, #7c87e8, #5b63c4); /* brand mark only */
	--glow:           rgba(110, 121, 214, 0.22);

	/* Semantic */
	--success:     #2dd4bf;
	--warning:     #f5b740;
	--error:       #f87171;

	/* Radii */
	--radius-xs:   6px;
	--radius-sm:   10px;
	--radius-md:   14px;
	--radius-lg:   18px;
	--radius-xl:   24px;
	--radius:      var(--radius-lg); /* default */

	/* Elevation */
	--shadow-sm:   0 1px 2px rgba(0, 0, 0, 0.4);
	--shadow:      0 18px 50px -22px rgba(0, 0, 0, 0.75);
	--shadow-lg:   0 40px 90px -30px rgba(0, 0, 0, 0.85);
	--ring:        0 0 0 3px rgba(110, 121, 214, 0.4);

	/* Motion */
	--ease:        cubic-bezier(0.4, 0, 0.2, 1);
	--ease-out:    cubic-bezier(0.16, 1, 0.3, 1);

	/* Layout */
	--container:   1140px;
	--header-h:    72px;

	/* Spacing scale (4px base) */
	--space-1:     4px;
	--space-2:     8px;
	--space-3:     12px;
	--space-4:     16px;
	--space-5:     24px;
	--space-6:     32px;
	--space-7:     48px;
	--space-8:     64px;

	/* Section rhythm (on the 8px grid) */
	--section:     96px;
	--section-sm:  64px;

	/* Type scale (1.25 major third) */
	--fs-caption:  13px;
	--fs-sm:       14px;
	--fs-base:     16px;
	--fs-md:       20px;
	--fs-lg:       25px;
	--fs-xl:       31px;
	--fs-2xl:      39px;
	--fs-3xl:      49px;
	--fs-4xl:      61px;

	/* Type */
	--ff-body:     'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--ff-display:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--ff-mono:     ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, monospace;
	--tracking-tight: -0.022em; /* negative tracking for large display text */
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scrollbar-color: #233040 transparent; interpolate-size: allow-keywords; }

/* Smooth cross-document navigation where supported (progressive enhancement) */
@view-transition { navigation: auto; }

body {
	font-family: var(--ff-body);
	color: var(--text);
	background-color: var(--bg);
	line-height: 1.6;
	letter-spacing: -0.011em;
	font-feature-settings: "cv11" 1, "ss01" 1; /* Inter: single-story a, refined glyphs */
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
	min-height: 100vh;
	position: relative;
}

/* Ambient background: accent glow + faint dot grid, masked toward the top */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -2;
	background:
		radial-gradient(60vw 60vw at 80% -10%, rgba(110, 121, 214, 0.10), transparent 60%),
		radial-gradient(52vw 52vw at 0% 100%, rgba(129, 140, 248, 0.09), transparent 55%);
}
body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -2;
	background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 32px 32px;
	mask-image: radial-gradient(72% 70% at 50% 28%, #000 28%, transparent 100%);
	-webkit-mask-image: radial-gradient(72% 70% at 50% 28%, #000 28%, transparent 100%);
}

main { display: block; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: #aab2ee; }
ul { list-style: none; }

h1, h2, h3, h4 { line-height: 1.15; color: #fff; font-weight: 600; letter-spacing: var(--tracking-tight); text-wrap: balance; }
p { text-wrap: pretty; }

::selection { background: var(--accent); color: var(--ink); }

/* Custom scrollbar (WebKit) */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #233040; border-radius: 10px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #30445a; }

/* Accessible keyboard focus - visible only for keyboard users */
:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

/* Skip link for keyboard / screen-reader users */
.skip-link {
	position: fixed;
	top: 14px;
	left: 14px;
	z-index: 2000;
	background: var(--accent);
	color: var(--ink);
	font-weight: 700;
	padding: 10px 18px;
	border-radius: var(--radius-xs);
	transform: translateY(-160%);
	transition: transform .2s var(--ease-out);
}
.skip-link:focus { transform: none; color: var(--ink); }

/* Honor users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section) 0; }
.section-sm { padding: var(--section-sm) 0; }

/* Spacing utilities (drive vertical rhythm via the scale, not inline styles) */
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-family: var(--ff-mono);
	font-size: 12.5px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 18px;
}
.eyebrow::before {
	content: "";
	width: 24px;
	height: 1px;
	background: var(--faint);
}

.section-title {
	font-family: var(--ff-display);
	font-size: clamp(1.95rem, 4vw, 2.9rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.03em;
}
.section-lead {
	color: var(--muted);
	max-width: 60ch;
	margin-top: 18px;
	font-size: 1.06rem;
}

.gradient-text { color: var(--primary); }
@keyframes shimmer { to { background-position: 220% center; } }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 13px 26px;
	border-radius: 999px;
	font-weight: 600;
	font-size: .98rem;
	letter-spacing: -0.01em;
	cursor: pointer;
	border: 1px solid transparent;
	transition: transform .18s var(--ease-out), box-shadow .25s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
	white-space: nowrap;
	will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(0) scale(0.985); }

.btn-primary {
	background: var(--primary-strong);
	color: var(--ink);
	box-shadow: 0 10px 30px -12px var(--glow);
}
.btn-primary:hover { background: var(--primary); }
.btn-primary:hover {
	color: var(--ink);
	transform: translateY(-2px);
	box-shadow: 0 18px 42px -12px var(--glow);
}

.btn-ghost {
	background: var(--surface-2);
	border-color: var(--border);
	color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: #fff; transform: translateY(-2px); background: var(--surface-3); }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(9, 12, 17, 0.6);
	backdrop-filter: blur(16px) saturate(140%);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	border-bottom: 1px solid transparent;
	transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
/* Condensed/elevated state once the page is scrolled (toggled in main.js) */
.site-header.scrolled {
	background: rgba(9, 12, 17, 0.82);
	border-bottom-color: var(--border-soft);
	box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.9);
}
.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--header-h);
}
.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--ff-display);
	color: #fff;
	font-weight: 600;
	letter-spacing: -0.01em;
}
.brand:hover { color: #fff; }
.brand .mark {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 11px;
	background: var(--grad);
	color: var(--ink);
	font-size: 1.02rem;
	font-weight: 700;
	box-shadow: 0 8px 22px -8px var(--glow);
	transition: transform .25s var(--ease-out);
}
.brand:hover .mark { transform: rotate(-6deg) scale(1.05); }
.brand .brand-text { font-size: 1.12rem; font-weight: 600; }
.brand .brand-text b { color: #fff; }
.brand .brand-text span { color: var(--accent); }

.nav-links {
	display: flex;
	align-items: center;
	gap: 2px;
}
/* Muted default, brightening to white on hover/active (premium nav pattern) */
.nav-links a {
	position: relative;
	padding: 8px 14px;
	border-radius: 8px;
	font-size: .95rem;
	font-weight: 500;
	color: var(--muted);
	transition: color .2s var(--ease), background .2s var(--ease);
}
/* Animated underline indicator */
.nav-links a:not(.btn)::after {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 4px;
	height: 2px;
	border-radius: 2px;
	background: var(--grad);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s var(--ease-out);
}
.nav-links a:not(.btn):hover::after,
.nav-links a.active:not(.btn)::after { transform: scaleX(1); }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links .btn { margin-left: 12px; }

.nav-toggle {
	display: none;
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: 9px;
	padding: 9px;
	cursor: pointer;
	color: var(--text);
}
.nav-toggle svg { width: 22px; height: 22px; display: block; }

/* Dropdown ("Leistungen") */
.has-drop { position: relative; }
.drop-menu {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	min-width: 220px;
	background: #0d121a;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 8px;
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .18s var(--ease), transform .18s var(--ease-out), visibility .18s;
}
.has-drop:hover .drop-menu, .has-drop:focus-within .drop-menu {
	opacity: 1; visibility: visible; transform: translateY(0);
}
.drop-menu a { display: block; padding: 9px 12px; border-radius: var(--radius-xs); }
.drop-menu a::after { display: none; }
.drop-menu a:hover { background: var(--surface-2); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 112px 0 88px; isolation: isolate; }
/* Signature animated aurora behind the hero (disabled under reduced-motion) */
.hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	top: -160px; left: 50%;
	width: 900px; height: 560px;
	transform: translateX(-50%);
	background:
		radial-gradient(50% 55% at 55% 40%, rgba(110, 121, 214, 0.30), transparent 72%);
	filter: blur(80px);
	opacity: .32;
	animation: aurora 16s ease-in-out infinite alternate;
	pointer-events: none;
}
@keyframes aurora {
	0%   { transform: translateX(-50%) translateY(0)     scale(1);    }
	100% { transform: translateX(-46%) translateY(26px)  scale(1.18); }
}
.hero-grid {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 56px;
	align-items: center;
}
.hero h1 {
	font-family: var(--ff-display);
	font-size: clamp(2.9rem, 7vw, 5rem);
	font-weight: 700;
	line-height: 1.0;
	letter-spacing: -0.04em;
	margin: 22px 0 24px;
}
.hero p.lead {
	color: var(--muted);
	font-size: 1.06rem;
	max-width: 52ch;
	margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta {
	display: flex;
	gap: 0;
	margin-top: 44px;
	flex-wrap: wrap;
}
.hero-meta .stat { padding: 0 28px; position: relative; }
.hero-meta .stat:first-child { padding-left: 0; }
.hero-meta .stat:not(:last-child)::after {
	content: "";
	position: absolute;
	right: 0; top: 50%;
	transform: translateY(-50%);
	width: 1px; height: 32px;
	background: var(--border);
}
.hero-meta .stat b {
	display: block;
	font-family: var(--ff-display);
	font-size: 2.1rem;
	color: #fff;
	line-height: 1;
}
.hero-meta .stat span { color: var(--faint); font-size: .9rem; }
.hero-note { margin-top: 16px; color: var(--faint); font-size: .9rem; }

/* Trust / references strip */
.trust { padding: 32px 0; border-top: 1px solid var(--border-soft); }
.trust-label {
	text-align: center;
	font-family: var(--ff-mono);
	font-size: 12px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--faint);
	margin-bottom: 18px;
}
.trust-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 14px 38px;
}
.trust-row a {
	color: var(--muted);
	font-weight: 600;
	font-size: 1.02rem;
	letter-spacing: -0.01em;
	opacity: .82;
	transition: color .2s var(--ease), opacity .2s var(--ease);
}
.trust-row a:hover { color: #fff; opacity: 1; }
.trust-cta { text-align: center; margin-top: 18px; color: var(--muted); font-size: .95rem; }
.trust-cta a { font-weight: 600; }

/* Hero visual: code card */
.code-card {
	background: linear-gradient(160deg, rgba(22, 30, 43, 0.92), rgba(12, 16, 24, 0.92));
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	font-family: var(--ff-mono);
	font-size: .86rem;
}
.code-card .bar {
	display: flex;
	gap: 7px;
	padding: 14px 16px;
	border-bottom: 1px solid var(--border-soft);
	background: rgba(255, 255, 255, 0.02);
}
.code-card .bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3340; display: block; }
.code-card .bar i:nth-child(1) { background: #ff5f57; }
.code-card .bar i:nth-child(2) { background: #febc2e; }
.code-card .bar i:nth-child(3) { background: #28c840; }
.code-card pre { padding: 22px; color: #b6c2d2; overflow-x: auto; line-height: 1.85; }
.code-card .k { color: var(--accent-2); }
.code-card .s { color: var(--accent-3); }
.code-card .c { color: var(--faint); }
.code-card .f { color: var(--accent); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
	background: var(--surface-raised);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 32px;
	transition: transform .3s var(--ease-out), border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
	position: relative;
	overflow: hidden;
}
/* Gradient accent line that draws in on hover */
.card::after {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 2px;
	background: var(--primary);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .35s var(--ease-out);
}
.card:hover {
	transform: translateY(-6px);
	border-color: rgba(110, 121, 214, 0.35);
	background: var(--surface-raised-2);
	box-shadow: var(--shadow-lg);
}
.card:hover::after { transform: scaleX(1); }

.card .icon {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	border-radius: 14px;
	background: var(--surface-2);
	border: 1px solid var(--border);
	color: var(--accent-quiet);
	margin-bottom: 20px;
	transition: transform .3s var(--ease-out), color .3s var(--ease);
}
.card:hover .icon { transform: translateY(-2px) scale(1.04); color: var(--accent); }
.card .icon svg { width: 26px; height: 26px; }
.card h3 { font-size: var(--fs-md); margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; }
.card .card-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 16px;
	font-weight: 700;
	font-size: .92rem;
}
.card .card-link svg { width: 15px; height: 15px; transition: transform .2s var(--ease-out); }
.card:hover .card-link svg { transform: translateX(4px); }

a.card { color: inherit; }
a.card:hover { color: inherit; }

/* Feature list with check marks */
.checks { display: grid; gap: 13px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.checks li svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; margin-top: 3px; }
.checks li b { color: var(--text); font-weight: 700; }

/* ---------- Product showcase (eTime / FiMa24) ---------- */
.showcase {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}
.showcase.reverse .showcase-media { order: 2; }
.product-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--surface-2);
	border: 1px solid var(--border);
	font-family: var(--ff-display);
	font-size: 1.02rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	margin-bottom: 20px;
}
.product-badge svg { width: 20px; height: 20px; color: var(--accent-quiet); }

/* About portrait */
.portrait {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: center 20%;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	box-shadow: var(--shadow-lg);
}

/* Testimonial */
.quote { max-width: 760px; margin: 0 auto; text-align: center; }
.quote p {
	font-family: var(--ff-display);
	font-size: clamp(1.4rem, 3vw, 2rem);
	font-weight: 600;
	letter-spacing: -0.02em;
	color: #fff;
	line-height: 1.35;
}
.quote footer { margin-top: 18px; color: var(--muted); font-size: .95rem; }

/* Product mockup (CSS-drawn, abstract UI - deliberately not a real screenshot) */
.mockup {
	background: linear-gradient(160deg, rgba(22, 30, 43, 0.95), rgba(12, 16, 24, 0.95));
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
}
.mockup-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--border-soft); background: rgba(255, 255, 255, 0.02); }
.mockup-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3340; }
.mockup-bar i:nth-child(1) { background: #ff5f57; }
.mockup-bar i:nth-child(2) { background: #febc2e; }
.mockup-bar i:nth-child(3) { background: #28c840; }
.mockup-url { margin-left: 10px; font-family: var(--ff-mono); font-size: 11px; color: var(--faint); background: var(--bg); border: 1px solid var(--border-soft); border-radius: 6px; padding: 3px 10px; }
.mockup-body { padding: 18px; display: grid; gap: 16px; }
.mk-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mk-stat { height: 56px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border-soft); position: relative; }
.mk-stat::before { content: ""; position: absolute; left: 12px; top: 13px; width: 42%; height: 7px; border-radius: 4px; background: var(--surface-3); }
.mk-stat::after { content: ""; position: absolute; left: 12px; top: 28px; width: 64%; height: 12px; border-radius: 4px; background: var(--primary); opacity: .65; }
.mk-chart { display: flex; align-items: flex-end; gap: 10px; height: 120px; }
.mk-chart span { flex: 1; border-radius: 6px 6px 0 0; background: var(--primary); opacity: .8; }
.mk-list { display: grid; gap: 8px; }
.mk-li { height: 32px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border-soft); }
.mockup-shot { display: block; width: 100%; height: auto; border-top: 1px solid var(--border-soft); }

/* Testimonials (template - fill with real quotes before enabling) */
.testimonials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.testimonial { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.testimonial p { color: var(--text); font-size: 1.05rem; line-height: 1.6; }
.testimonial footer { margin-top: 18px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .92rem; }
.testimonial .ava { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); flex-shrink: 0; }

/* Pricing model tag + note */
.tag {
	display: inline-block;
	font-family: var(--ff-mono);
	font-size: 11px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--accent-3);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 3px 11px;
	margin-bottom: 14px;
}
.price-note { color: var(--faint); font-size: .95rem; text-align: center; margin-top: 24px; }

/* FAQ accordions (native <details>, no JS) */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details {
	background: var(--surface-raised);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: 0 20px;
	transition: border-color .2s var(--ease);
}
.faq details[open] { border-color: rgba(110, 121, 214, 0.3); }
.faq summary {
	list-style: none;
	cursor: pointer;
	padding: 18px 0;
	font-weight: 600;
	color: #fff;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: "+";
	font-size: 1.4rem;
	line-height: 1;
	color: var(--accent-quiet);
	transition: transform .25s var(--ease), color .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq details p { color: var(--muted); padding: 0 0 18px; margin: 0; max-width: 70ch; }
/* Smooth FAQ open/close (progressive: needs ::details-content support) */
.faq details::details-content { height: 0; overflow: clip; transition: height .25s var(--ease), content-visibility .25s allow-discrete; }
.faq details[open]::details-content { height: auto; }

/* ---------- Interaction polish ---------- */
/* Button loading spinner */
.btn.is-loading { color: transparent !important; pointer-events: none; position: relative; }
.btn.is-loading::after {
	content: "";
	position: absolute;
	top: 50%; left: 50%;
	width: 18px; height: 18px;
	margin: -9px 0 0 -9px;
	border: 2px solid rgba(6, 18, 27, 0.35);
	border-top-color: var(--ink);
	border-radius: 50%;
	animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Form message entrance + animated success check */
.form-msg.success, .form-msg.error { animation: msgIn .3s var(--ease-out); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.form-msg .check { width: 20px; height: 20px; vertical-align: -4px; margin-right: 8px; }
.form-msg .check path { stroke-dasharray: 26; stroke-dashoffset: 26; animation: draw .4s var(--ease-out) .1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Error shake on invalid fields */
.field.shake { animation: shake .32s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
@keyframes shake { 10%, 90% { transform: translateX(-2px); } 30%, 70% { transform: translateX(4px); } 50% { transform: translateX(-4px); } }

/* Skeleton loading utility */
.skeleton {
	background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%);
	background-size: 400% 100%;
	animation: skeleton 1.4s linear infinite;
	border-radius: var(--radius-sm);
}
@keyframes skeleton { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* Reveal stagger: grid & steps children fade in sequentially */
.reveal.grid, .reveal.steps { opacity: 1; transform: none; }
.reveal.grid > *, .reveal.steps > * { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal.grid.in > *, .reveal.steps.in > * { opacity: 1; transform: none; }
.reveal.grid.in > *:nth-child(2), .reveal.steps.in > *:nth-child(2) { transition-delay: .06s; }
.reveal.grid.in > *:nth-child(3), .reveal.steps.in > *:nth-child(3) { transition-delay: .12s; }
.reveal.grid.in > *:nth-child(4), .reveal.steps.in > *:nth-child(4) { transition-delay: .18s; }
.reveal.grid.in > *:nth-child(5) { transition-delay: .24s; }
.reveal.grid.in > *:nth-child(6) { transition-delay: .30s; }
@media (max-width: 640px) { .testimonials { grid-template-columns: 1fr; } }

/* Sticky mobile call-to-action (injected by main.js) */
.mobile-cta { display: none; }
@media (max-width: 640px) {
	.mobile-cta {
		display: flex;
		position: fixed;
		left: 0; right: 0; bottom: 0;
		z-index: 90;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
		background: rgba(9, 12, 17, 0.9);
		backdrop-filter: blur(12px);
		-webkit-backdrop-filter: blur(12px);
		border-top: 1px solid var(--border);
	}
	.mobile-cta .btn { width: 100%; }
	body.has-mobile-cta { padding-bottom: 78px; }
}

/* ---------- Gallery (kept for reuse) ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery figure {
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	overflow: hidden;
	cursor: zoom-in;
	background: var(--bg-soft);
	transition: transform .25s var(--ease-out), border-color .25s var(--ease);
}
.gallery figure:hover { transform: translateY(-4px); border-color: var(--accent); }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gallery figcaption {
	padding: 10px 12px;
	font-size: .85rem;
	color: var(--muted);
	border-top: 1px solid var(--border-soft);
}

/* ---------- Lightbox ---------- */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: rgba(5, 8, 12, 0.92);
	backdrop-filter: blur(6px);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox .lb-close, .lightbox .lb-nav {
	position: absolute;
	background: var(--surface-2);
	border: 1px solid var(--border);
	color: #fff;
	width: 48px; height: 48px;
	border-radius: 50%;
	cursor: pointer;
	display: grid; place-items: center;
}
.lightbox .lb-close { top: 24px; right: 24px; }
.lightbox .lb-nav { top: 50%; transform: translateY(-50%); }
.lightbox .lb-prev { left: 24px; }
.lightbox .lb-next { right: 24px; }
.lightbox .lb-cap { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: var(--muted); }
.lightbox svg { width: 22px; height: 22px; }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { padding: 96px 0 64px; border-bottom: 1px solid var(--border-soft); }
.page-hero .icon-lg {
	display: grid; place-items: center;
	width: 74px; height: 74px;
	border-radius: 19px;
	background: var(--surface-2);
	border: 1px solid var(--border);
	color: var(--accent-quiet);
	margin-bottom: 24px;
	box-shadow: var(--shadow);
}
.page-hero .icon-lg svg { width: 36px; height: 36px; }
.page-hero h1 { font-family: var(--ff-display); font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.032em; margin-bottom: 16px; }
.page-hero p { color: var(--muted); font-size: 1.13rem; max-width: 62ch; }

.breadcrumb { display: flex; gap: 8px; color: var(--faint); font-size: .9rem; margin-bottom: 24px; }
.breadcrumb a { color: var(--muted); }

/* Process steps */
.steps { counter-reset: step; display: grid; gap: 18px; }
.steps .card { display: flex; gap: 18px; align-items: flex-start; padding: 24px 28px; }
.steps .card::before {
	counter-increment: step;
	content: counter(step);
	font-family: var(--ff-display);
	font-size: 1.4rem;
	color: var(--ink);
	background: var(--primary-strong);
	width: 44px; height: 44px;
	border-radius: 12px;
	display: grid; place-items: center;
	flex-shrink: 0;
}

/* CTA band */
.cta {
	position: relative;
	background:
		radial-gradient(80% 120% at 50% -20%, rgba(110, 121, 214, 0.12), transparent 70%),
		var(--surface-raised);
	border: 1px solid var(--border);
	border-radius: 26px;
	padding: 60px;
	text-align: center;
	overflow: hidden;
}
.cta h2 { font-family: var(--ff-display); font-size: clamp(1.85rem, 4vw, 2.7rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 14px; }
.cta p { color: var(--muted); max-width: 52ch; margin: 0 auto 30px; }
.cta .hero-actions { justify-content: center; }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea {
	width: 100%;
	background: var(--bg-soft);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	color: var(--text);
	padding: 13px 15px;
	font-family: inherit;
	font-size: 1rem;
	transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: var(--ring);
}
.field textarea { resize: vertical; min-height: 140px; }
.field.invalid input, .field.invalid textarea { border-color: #f87171; }
.form-note { font-size: .85rem; color: var(--faint); margin: 4px 0 18px; }
/* Honeypot: visually and from AT hidden, but present for bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Select matches the input styling */
.field select {
	width: 100%;
	background: var(--bg-soft);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	color: var(--text);
	padding: 13px 15px;
	font-family: inherit;
	font-size: 1rem;
	cursor: pointer;
}
.field select:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }

/* Star rating (accessible radio group, reversed for CSS fill) */
.stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.stars input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.stars label { font-size: 30px; line-height: 1; color: var(--surface-3); cursor: pointer; transition: color .15s var(--ease), transform .15s var(--ease-out); }
.stars label:hover { transform: scale(1.1); }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: var(--warning); }
.stars input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.field.invalid .stars label { color: #7a4d4d; }
.form-msg { padding: 12px 16px; border-radius: var(--radius-sm); margin-top: 16px; display: none; }
.form-msg.error { display: block; background: rgba(248, 113, 113, 0.12); color: #fca5a5; border: 1px solid rgba(248, 113, 113, 0.3); }
.form-msg.success { display: block; background: rgba(45, 212, 191, 0.12); color: #5eead4; border: 1px solid rgba(45, 212, 191, 0.3); }

.contact-info .info-item {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 18px 0;
	border-bottom: 1px solid var(--border-soft);
}
.contact-info .info-item svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 4px; }
.contact-info .info-item b { display: block; color: #fff; }
.contact-info .info-item a, .contact-info .info-item span { color: var(--muted); }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; }
.legal h1 { font-family: var(--ff-display); font-size: 2.4rem; margin-bottom: 24px; }
.legal h3 { font-size: 1.6rem; margin: 0 0 18px; color: #fff; }
.legal h4 { font-size: 1.2rem; margin: 30px 0 10px; color: var(--accent); }
.legal p { color: var(--muted); margin-bottom: 14px; }
.legal b { color: var(--text); }
.legal a { word-break: break-word; }
.legal u { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer {
	border-top: 1px solid var(--border-soft);
	padding: 60px 0 32px;
	margin-top: 40px;
	background: rgba(0, 0, 0, 0.3);
}
.footer-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr;
	gap: 40px;
	margin-bottom: 40px;
}
.footer-grid h4 { font-size: .95rem; color: #fff; margin-bottom: 16px; letter-spacing: .04em; }
.footer-grid a { display: block; color: var(--muted); padding: 5px 0; font-size: .95rem; transition: color .2s var(--ease), transform .2s var(--ease-out); }
.footer-grid a:hover { color: #fff; transform: translateX(3px); }
.footer-grid p { color: var(--muted); font-size: .95rem; max-width: 34ch; }
.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	padding-top: 24px;
	border-top: 1px solid var(--border-soft);
	color: var(--faint);
	font-size: .9rem;
}
.footer-bottom a { color: var(--faint); }
.footer-bottom a:hover { color: var(--muted); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.hero-grid { grid-template-columns: 1fr; gap: 40px; }
	.showcase, .showcase.reverse { grid-template-columns: 1fr; gap: 30px; }
	.showcase.reverse .showcase-media { order: 0; }
	.contact-grid { grid-template-columns: 1fr; gap: 36px; }
	.grid-3 { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
	.section { padding: 64px 0; }
	.hero { padding: 84px 0 64px; }
	.nav-links {
		position: fixed;
		inset: var(--header-h) 0 auto 0;
		flex-direction: column;
		align-items: stretch;
		background: #0b0f16;
		border-bottom: 1px solid var(--border);
		padding: 14px;
		gap: 2px;
		display: none;
		box-shadow: var(--shadow);
	}
	.nav-links.open { display: flex; animation: navIn .25s var(--ease-out); }
	@keyframes navIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
	.nav-links a { padding: 12px 14px; }
	.nav-links a:not(.btn)::after { display: none; }
	.nav-links .btn { margin: 8px 0 0; }
	.has-drop .drop-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: none; padding: 0 0 0 14px; background: none;
	}
	.nav-toggle { display: block; }
	.grid-3, .grid-2 { grid-template-columns: 1fr; }
	.gallery { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr; }
	.cta { padding: 40px 24px; }
	.hero-meta .stat { padding: 0 18px; }
}
