/* ==========================================================================
   ZeroRisk — design system
   Dark is the default; [data-theme="light"] on <html> switches palettes.
   ========================================================================== */

:root {
	--font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

	--bg: #060714;
	--bg-2: #0a0c1e;
	--surface: #0e1227;
	--surface-2: #151a35;
	--surface-glass: rgba(14, 18, 39, .94);

	/* Accent palette — cycled across cards, icons and steps (see "Colour layer"). */
	--c1: #3b82f6;
	--c2: #8b5cf6;
	--c3: #06b6d4;
	--c4: #ec4899;
	--c5: #10b981;
	--c6: #f59e0b;
	--tile: var(--c1);
	--tile-2: var(--c2);
	--border: rgba(148, 163, 184, .12);
	--border-strong: rgba(148, 163, 184, .22);
	--text: #e8eef9;
	--text-2: #b4c0d4;
	--muted: #7d8aa3;
	--grid-line: rgba(148, 163, 184, .055);

	--accent: #2f7bff;
	--accent-hover: #4b8dff;
	--accent-2: #22d3ee;
	--accent-soft: rgba(47, 123, 255, .14);
	--accent-glow: rgba(47, 123, 255, .45);
	--grad: linear-gradient(100deg, #60a5fa 0%, #a78bfa 48%, #22d3ee 100%);

	--ok: #22c55e;
	--sev-critical: #ef4444;
	--sev-high: #f97316;
	--sev-medium: #eab308;
	--sev-low: #3b82f6;
	--sev-info: #94a3b8;

	--radius-sm: 10px;
	--radius: 16px;
	--radius-lg: 24px;
	--radius-xl: 32px;
	--shadow: 0 24px 60px -24px rgba(0, 0, 0, .65);
	--shadow-glow: 0 0 0 1px rgba(47, 123, 255, .35), 0 18px 50px -12px rgba(47, 123, 255, .45);

	--container: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--section-y: clamp(72px, 10vw, 128px);
	--header-h: 76px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	color-scheme: dark;
}

[data-theme="light"] {
	--bg: #f5f7fb;
	--bg-2: #eef2f8;
	--surface: #ffffff;
	--surface-2: #f3f6fb;
	--surface-glass: rgba(255, 255, 255, .95);
	--border: rgba(15, 23, 42, .09);
	--border-strong: rgba(15, 23, 42, .16);
	--text: #0a1222;
	--text-2: #334155;
	--muted: #64748b;
	--grid-line: rgba(15, 23, 42, .05);
	--accent: #1f66f2;
	--accent-hover: #1553d1;
	--accent-soft: rgba(31, 102, 242, .09);
	--accent-glow: rgba(31, 102, 242, .28);
	--grad: linear-gradient(100deg, #2563eb 0%, #7c3aed 50%, #0891b2 100%);
	--c1: #2563eb;
	--c2: #7c3aed;
	--c3: #0891b2;
	--c4: #db2777;
	--c5: #059669;
	--c6: #d97706;
	--shadow: 0 24px 60px -28px rgba(15, 23, 42, .25);
	--shadow-glow: 0 0 0 1px rgba(31, 102, 242, .25), 0 18px 44px -14px rgba(31, 102, 242, .35);
	color-scheme: light;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text-2);
	font: 400 16px/1.65 var(--font-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
	transition: background-color .3s var(--ease), color .3s var(--ease);
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .5em;
	color: var(--text);
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -.025em;
}
h1 { font-size: clamp(2.5rem, 6.2vw, 5rem); letter-spacing: -.04em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); letter-spacing: -.035em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p { margin: 0 0 1em; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000; top: 12px; left: 12px;
	padding: 10px 16px; background: var(--accent); color: #fff; border-radius: 8px;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * .6); }
.section--alt { background: var(--bg-2); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.bg-grid {
	background-image:
		linear-gradient(var(--grid-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
	background-size: 56px 56px;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	margin-bottom: 18px;
	color: var(--accent-2);
	font: 500 12px/1 var(--font-mono);
	letter-spacing: .16em; text-transform: uppercase;
}
[data-theme="light"] .eyebrow { color: var(--accent); }
.eyebrow::before {
	content: ""; width: 8px; height: 8px; border-radius: 2px;
	background: currentColor; box-shadow: 0 0 12px currentColor;
}
.text-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--text-2); max-width: 640px; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }

.section-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); }
.section-head--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.section-head--center p { max-width: 620px; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- Buttons ---------- */
.btn {
	--btn-bg: var(--accent);
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 0 22px;
	border: 1px solid transparent; border-radius: 999px;
	background: var(--btn-bg); color: #fff;
	font: 600 15px/1 var(--font-body);
	cursor: pointer; white-space: nowrap;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--accent-soft); border-color: var(--accent); box-shadow: none; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-2); font-weight: 600; font-size: 14px; }
[data-theme="light"] .link-arrow { color: var(--accent); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg, a:hover .link-arrow svg { transform: translateX(4px); }

.pill {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 6px 12px; border: 1px solid var(--border-strong); border-radius: 999px;
	background: var(--surface); color: var(--text-2);
	font-size: 13px; font-weight: 500;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } }

/* ---------- Header ---------- */
.site-header {
	position: fixed; inset: 0 0 auto; z-index: 100;
	padding-top: 14px;
	transition: transform .35s var(--ease);
}
.site-header__bar {
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
	height: 62px; padding: 0 10px 0 20px;
	border: 1px solid transparent; border-radius: 999px;
	transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
/* Solid (not backdrop-filter glass): blur over a scrolling page is costly on
   low-end GPUs and software compositing. */
.is-scrolled .site-header__bar {
	background: var(--surface-glass); border-color: var(--border);
	box-shadow: var(--shadow);
}
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo img { height: 34px; width: auto; }
.site-logo .logo-light { display: none; }
[data-theme="light"] .site-logo .logo-dark { display: none; }
[data-theme="light"] .site-logo .logo-light { display: block; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.main-nav a {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 9px 14px; border-radius: 999px;
	color: var(--text-2); font-size: 14.5px; font-weight: 500;
	transition: color .2s, background .2s;
}
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a { color: var(--text); background: var(--accent-soft); }
.main-nav .menu-item-has-children { position: relative; }
.main-nav .menu-item-has-children > a::after {
	content: ""; width: 7px; height: 7px; margin-top: -3px;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg); opacity: .6;
}
.main-nav .sub-menu {
	position: absolute; top: calc(100% + 12px); left: 50%;
	display: grid; gap: 2px; min-width: 300px; padding: 10px;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
	transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.main-nav .sub-menu::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.main-nav .menu-item-has-children:hover > .sub-menu,
.main-nav .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.main-nav .sub-menu a { display: flex; width: 100%; padding: 11px 14px; border-radius: 10px; }
.header-actions { display: flex; align-items: center; gap: 8px; }

.theme-toggle, .nav-toggle {
	display: inline-grid; place-items: center;
	width: 42px; height: 42px; border-radius: 50%;
	border: 1px solid var(--border-strong); background: transparent; color: var(--text); cursor: pointer;
	transition: background .2s, border-color .2s;
}
.theme-toggle:hover, .nav-toggle:hover { background: var(--accent-soft); border-color: var(--accent); }
.theme-toggle svg, .nav-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
[data-theme="light"] .theme-toggle .i-sun { display: block; }
[data-theme="light"] .theme-toggle .i-moon { display: none; }
.nav-toggle { display: none; }

@media (max-width: 1080px) {
	.main-nav, .header-actions .btn--portal { display: none; }
	.nav-toggle { display: inline-grid; }
}
@media (max-width: 480px) { .header-actions .btn--quote { display: none; } }

/* Mobile drawer */
.mobile-nav {
	position: fixed; inset: 0; z-index: 200;
	display: flex; flex-direction: column;
	padding: 20px var(--gutter) 32px;
	background: var(--bg);
	opacity: 0; visibility: hidden; transform: translateY(-12px);
	transition: opacity .3s, transform .3s var(--ease), visibility .3s;
	overflow-y: auto;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); color: var(--text); font: 500 20px/1.3 var(--font-display); }
.mobile-nav .sub-menu a { padding-left: 16px; font-size: 16px; color: var(--text-2); }
.mobile-nav__cta { display: grid; gap: 12px; margin-top: 28px; }
body.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden;
	padding: calc(var(--header-h) + clamp(56px, 9vw, 110px)) 0 clamp(64px, 8vw, 100px);
	isolation: isolate;
}
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -2;
	background:
		radial-gradient(60% 55% at 50% 0%, rgba(47, 123, 255, .28), transparent 70%),
		radial-gradient(40% 40% at 85% 30%, rgba(34, 211, 238, .12), transparent 70%);
}
/* Grid fades out via a colour overlay rather than mask-image — masks on large
   layers are very expensive under software compositing (low-end devices). */
.hero .bg-grid { position: absolute; inset: 0; z-index: -2; }
.hero .bg-grid::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 30%, transparent 30%, var(--bg) 80%); }
.hero__canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: .9; pointer-events: none; }
.hero__inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin: 22px 0 22px; }
.hero .lead { margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; color: var(--muted); font-size: 14px; }
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta svg { width: 18px; height: 18px; color: var(--ok); }
@media (max-width: 1000px) { .hero__inner { grid-template-columns: 1fr; } .hero__visual { max-width: 620px; } }

/* Terminal card */
.terminal {
	position: relative;
	border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
	background: linear-gradient(180deg, rgba(17, 26, 45, .92), rgba(8, 13, 24, .96));
	box-shadow: var(--shadow), 0 0 80px -30px var(--accent-glow);
	overflow: hidden;
}
[data-theme="light"] .terminal { background: linear-gradient(180deg, #0f172a, #0b1222); }
.terminal__bar {
	display: flex; align-items: center; gap: 8px;
	padding: 14px 18px; border-bottom: 1px solid rgba(148, 163, 184, .14);
	color: #7d8aa3; font: 12px/1 var(--font-mono);
}
.terminal__bar i { width: 11px; height: 11px; border-radius: 50%; background: #334155; }
.terminal__bar i:nth-child(1) { background: #ff5f57; }
.terminal__bar i:nth-child(2) { background: #febc2e; }
.terminal__bar i:nth-child(3) { background: #28c840; }
.terminal__bar span { margin-left: auto; }
.terminal__body { min-height: 330px; padding: 20px 22px 24px; color: #cbd5e1; font: 13px/1.85 var(--font-mono); }
.terminal__body .ln { display: block; white-space: pre-wrap; opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s; }
.terminal__body .ln.is-on { opacity: 1; transform: none; }
.t-prompt { color: #22d3ee; }
.t-ok { color: #4ade80; }
.t-warn { color: #fbbf24; }
.t-crit { color: #f87171; }
.t-dim { color: #64748b; }
.t-cursor { display: inline-block; width: 8px; height: 15px; margin-left: 2px; vertical-align: -2px; background: #22d3ee; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.terminal__score {
	position: absolute; right: 18px; bottom: 18px;
	display: flex; align-items: center; gap: 12px; padding: 10px 14px;
	border: 1px solid rgba(148, 163, 184, .18); border-radius: 14px;
	background: rgba(8, 13, 24, .94);
	color: #e8eef9; font-size: 13px;
}
.terminal__score strong { display: block; font: 600 20px/1 var(--font-display); color: #4ade80; }

/* ---------- Logo marquee ---------- */
.marquee { position: relative; overflow: hidden; padding: 28px 0; border-block: 1px solid var(--border); }
.marquee__label { text-align: center; margin-bottom: 18px; color: var(--muted); font: 500 12px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.marquee__track { display: flex; gap: 64px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: flex; align-items: center; gap: 12px; color: var(--muted); font: 600 18px/1 var(--font-display); white-space: nowrap; opacity: .8; transition: opacity .2s, color .2s; }
.marquee__item:hover { opacity: 1; color: var(--text); }
.marquee__item img { height: 40px; width: 40px; border-radius: 50%; object-fit: cover; filter: grayscale(1); transition: filter .2s; }
.marquee__item:hover img { filter: none; }
.marquee__item img.is-wordmark { width: auto; height: 32px; border-radius: 0; object-fit: contain; filter: brightness(0) invert(1); opacity: .75; }
.marquee__item:hover img.is-wordmark { filter: brightness(0) invert(1); opacity: 1; }
[data-theme="light"] .marquee__item img.is-wordmark { filter: grayscale(1); }
[data-theme="light"] .marquee__item:hover img.is-wordmark { filter: none; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards ---------- */
.card {
	position: relative; display: flex; flex-direction: column;
	padding: 30px; border: 1px solid var(--border); border-radius: var(--radius-lg);
	background: var(--surface); overflow: hidden;
	transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.card::before {
	/* mouse-follow spotlight, driven by --mx/--my from JS */
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
	background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 45%);
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card h3 { margin: 0 0 10px; }
.card p { color: var(--muted); font-size: 15px; }
.card .link-arrow { margin-top: auto; padding-top: 12px; }

.icon-tile {
	display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 24px;
	border: 1px solid rgba(47, 123, 255, .35); border-radius: 14px;
	background: linear-gradient(145deg, rgba(47, 123, 255, .22), rgba(34, 211, 238, .06));
	color: var(--accent-2);
}
[data-theme="light"] .icon-tile { color: var(--accent); }
.icon-tile svg { width: 26px; height: 26px; }
.card__num { position: absolute; top: 28px; right: 30px; color: var(--muted); font: 500 12px/1 var(--font-mono); letter-spacing: .1em; }

/* Service rows (list style) */
.service-list { border-top: 1px solid var(--border); }
.service-row {
	display: grid; grid-template-columns: 70px 1.1fr 1.4fr auto; gap: 24px; align-items: center;
	padding: 30px 8px; border-bottom: 1px solid var(--border);
	transition: background .3s var(--ease), padding .3s var(--ease);
}
.service-row:hover { background: linear-gradient(90deg, var(--accent-soft), transparent 70%); padding-left: 20px; }
.service-row .icon-tile { margin: 0; }
.service-row h3 { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
.service-row p { margin: 0; color: var(--muted); font-size: 15px; }
.service-row__code { display: block; margin-top: 8px; color: var(--muted); font: 500 11px/1 var(--font-mono); letter-spacing: .12em; }
@media (max-width: 860px) {
	.service-row { grid-template-columns: 56px 1fr; }
	.service-row p, .service-row .link-arrow { grid-column: 2; }
}

/* ---------- Process ---------- */
.process { counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.process::before { content: ""; position: absolute; top: 27px; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, transparent, var(--border-strong), transparent); }
.process__step { position: relative; text-align: center; padding: 0 8px; }
.process__step::before {
	counter-increment: step; content: "0" counter(step);
	display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 20px;
	border: 1px solid var(--border-strong); border-radius: 50%;
	background: var(--surface); color: var(--accent-2);
	font: 600 15px/1 var(--font-mono);
	box-shadow: 0 0 0 6px var(--bg);
	transition: background .3s, color .3s, box-shadow .3s;
}
.section--alt .process__step::before { box-shadow: 0 0 0 6px var(--bg-2); }
.process__step:hover::before { background: var(--accent); color: #fff; }
.process__step h4 { margin-bottom: 8px; }
.process__step p { margin: 0; color: var(--muted); font-size: 14px; }
@media (max-width: 960px) {
	.process { grid-template-columns: 1fr; gap: 0; }
	.process::before { top: 0; bottom: 0; left: 27px; right: auto; width: 1px; height: auto; background: var(--border-strong); }
	.process__step { display: grid; grid-template-columns: 56px 1fr; gap: 0 20px; text-align: left; padding: 0 0 28px; }
	.process__step::before { margin: 0; grid-row: span 2; }
}

/* ---------- Portal showcase (mock dashboard) ---------- */
.showcase { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 960px) { .showcase { grid-template-columns: 1fr; } }
.check-list { list-style: none; margin: 28px 0 32px; padding: 0; display: grid; gap: 14px; }
.check-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--text-2); }
.check-list svg { width: 22px; height: 22px; color: var(--accent-2); margin-top: 2px; }
[data-theme="light"] .check-list svg { color: var(--accent); }

.mock {
	border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
	background: var(--surface); box-shadow: var(--shadow), 0 0 100px -40px var(--accent-glow);
	overflow: hidden;
}
.mock__top { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--border); }
.mock__top strong { color: var(--text); font: 600 15px/1 var(--font-display); }
.mock__body { display: grid; grid-template-columns: 170px 1fr; gap: 22px; padding: 22px; }
@media (max-width: 560px) { .mock__body { grid-template-columns: 1fr; } }
.ring { position: relative; width: 150px; height: 150px; margin-inline: auto; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .ring__track { stroke: var(--surface-2); }
.ring .ring__bar { stroke: url(#ringGrad); stroke-linecap: round; transition: stroke-dashoffset 1.6s var(--ease); }
.ring__label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring__label strong { color: var(--text); font: 600 32px/1 var(--font-display); }
.ring__label span { color: var(--muted); font-size: 12px; }
.phase-list { display: grid; gap: 10px; }
.phase { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; font-size: 14px; color: var(--text-2); }
.phase i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-strong); }
.phase.is-done i { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.phase.is-active i { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); animation: pulse-accent 1.8s infinite; }
@keyframes pulse-accent { 50% { box-shadow: 0 0 0 7px transparent; } }
.phase em { font-style: normal; color: var(--muted); font: 12px var(--font-mono); }
.sev-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0 22px 22px; }
.sev { padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.sev strong { display: block; color: var(--text); font: 600 22px/1.1 var(--font-display); }
.sev span { font-size: 12px; color: var(--muted); }
.sev::before { content: ""; display: block; width: 24px; height: 3px; margin-bottom: 10px; border-radius: 3px; background: var(--c); }
@media (max-width: 480px) { .sev-bars { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--border); }
.stat { padding: 40px 28px; border-left: 1px solid var(--border); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; margin-bottom: 8px; color: var(--text); font: 600 clamp(2.4rem, 5vw, 3.8rem)/1 var(--font-display); letter-spacing: -.04em; }
.stat span { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) {
	.stats { grid-template-columns: repeat(2, 1fr); }
	.stat:nth-child(3) { border-left: 0; }
	.stat:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* ---------- Testimonials ---------- */
.quote-card { margin: 0; padding: 32px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); display: flex; flex-direction: column; gap: 24px; }
.quote-card blockquote { margin: 0; color: var(--text-2); font-size: 16px; line-height: 1.7; }
.quote-card blockquote::before { content: "“"; display: block; height: 36px; color: var(--accent); font: 700 60px/1 var(--font-display); }
.quote-card figcaption { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; font: 600 15px/1 var(--font-display); flex-shrink: 0; }
.quote-card cite { font-style: normal; color: var(--text); font-weight: 600; display: block; }
.quote-card small { color: var(--muted); font-size: 13px; }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.post-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__media--empty {
	position: relative; display: grid; place-items: center;
	background:
		radial-gradient(70% 90% at 80% 10%, rgba(34, 211, 238, .22), transparent 60%),
		radial-gradient(70% 90% at 10% 100%, rgba(47, 123, 255, .3), transparent 60%),
		var(--surface-2);
	color: var(--accent-2);
}
.post-card__media--empty::before {
	content: ""; position: absolute; inset: 0;
	background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
	background-size: 28px 28px;
}
.post-card__media--empty svg { position: relative; width: 56px; height: 56px; opacity: .85; transition: transform .6s var(--ease); }
.post-card:hover .post-card__media--empty svg { transform: scale(1.1) rotate(-4deg); }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.post-card__meta { display: flex; gap: 10px; margin-bottom: 12px; color: var(--muted); font: 12px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.post-card h3 { font-size: 1.2rem; line-height: 1.3; margin-bottom: 10px; }
.post-card p { color: var(--muted); font-size: 15px; }
.post-card .link-arrow { margin-top: auto; }

/* ---------- CTA ---------- */
.cta {
	position: relative; overflow: hidden;
	display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
	padding: clamp(36px, 5vw, 64px);
	border: 1px solid rgba(47, 123, 255, .35); border-radius: var(--radius-xl);
	background:
		radial-gradient(60% 120% at 100% 0%, rgba(34, 211, 238, .18), transparent 60%),
		radial-gradient(60% 120% at 0% 100%, rgba(47, 123, 255, .25), transparent 60%),
		var(--surface);
}
.cta h2 { margin: 0 0 10px; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.cta p { margin: 0; color: var(--text-2); max-width: 560px; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + 80px) 0 64px; border-bottom: 1px solid var(--border); isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 50% 0%, rgba(47, 123, 255, .2), transparent 70%); }
.page-hero .bg-grid { position: absolute; inset: 0; z-index: -1; }
.page-hero .bg-grid::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent, var(--bg)); }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); max-width: 900px; }
.page-hero .lead { margin: 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; color: var(--muted); font: 12px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.breadcrumbs a:hover { color: var(--text); }

/* ---------- Prose ---------- */
.prose { color: var(--text-2); font-size: 17px; line-height: 1.8; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 2em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.8em; }
.prose a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
[data-theme="light"] .prose a { color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--accent); }
.prose img { border-radius: var(--radius); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent); color: var(--text); font-size: 1.1em; }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--surface-2); font: .9em var(--font-mono); }
.prose pre { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); overflow-x: auto; }
.prose pre code { padding: 0; background: none; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 12px; border-bottom: 1px solid var(--border); text-align: left; }
.prose strong { color: var(--text); }

/* ---------- Service single ---------- */
.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; }
@media (max-width: 1000px) { .service-layout { grid-template-columns: 1fr; } }
.sticky-card { position: sticky; top: calc(var(--header-h) + 24px); padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.sticky-card h3 { font-size: 1.2rem; }
.sticky-card ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.sticky-card li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 15px; }
.sticky-card li svg { width: 18px; height: 18px; color: var(--ok); margin-top: 3px; }
.sticky-card .btn + .btn { margin-top: 10px; }
.deliverables { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
@media (max-width: 640px) { .deliverables { grid-template-columns: 1fr; } }
.deliverable { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.deliverable strong { display: block; color: var(--text); margin-bottom: 4px; }
.deliverable span { color: var(--muted); font-size: 14px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color .2s; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; color: var(--text); font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-2); font: 400 24px/1 var(--font-mono); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 24px 22px; color: var(--muted); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; margin-bottom: 8px; color: var(--text); font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea {
	width: 100%; min-height: 50px; padding: 12px 16px;
	border: 1px solid var(--border-strong); border-radius: 12px;
	background: var(--surface-2); color: var(--text);
	transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--surface); }
.field--hp { position: absolute; left: -9999px; }
.form-note { margin-top: 14px; color: var(--muted); font-size: 13px; }
.notice { padding: 14px 18px; border-radius: 12px; font-size: 14px; border: 1px solid; }
.notice--ok { color: #4ade80; border-color: rgba(34, 197, 94, .35); background: rgba(34, 197, 94, .08); }
.notice--err { color: #f87171; border-color: rgba(239, 68, 68, .35); background: rgba(239, 68, 68, .08); }
[data-theme="light"] .notice--ok { color: #15803d; }
[data-theme="light"] .notice--err { color: #b91c1c; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { display: grid; grid-template-columns: 54px 1fr; gap: 16px; align-items: center; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.contact-item .icon-tile { margin: 0; }
.contact-item small { display: block; color: var(--muted); font-size: 13px; }
.contact-item a, .contact-item strong { color: var(--text); font-weight: 600; }
.form-card { padding: clamp(24px, 4vw, 40px); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: var(--section-y); padding: 72px 0 32px; border-top: 1px solid var(--border); background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 36px; width: auto; margin-bottom: 20px; }
.footer-brand p { color: var(--muted); font-size: 15px; max-width: 340px; }
.footer-col h4 { margin-bottom: 18px; color: var(--text); font: 500 12px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-col a { color: var(--text-2); font-size: 15px; transition: color .2s; }
.footer-col a:hover { color: var(--accent-2); }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border-strong); border-radius: 12px; color: var(--text-2); transition: all .2s; }
.socials a:hover { color: #fff; background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.footer-bottom a:hover { color: var(--text); }

/* ---------- Pagination / misc ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 56px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: 12px; color: var(--text-2); }
.pagination .current, .pagination a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.tag { display: inline-block; padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-2); font: 500 12px/1.2 var(--font-mono); }
[data-theme="light"] .tag { color: var(--accent); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 20px; color: var(--muted); font-size: 14px; }
.featured-media { margin: 0 0 48px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.error-404 { text-align: center; padding: calc(var(--header-h) + 120px) 0 80px; }
.error-404 .code { font: 700 clamp(6rem, 22vw, 14rem)/1 var(--font-display); letter-spacing: -.06em; }

/* ---------- Service capabilities (block content) ---------- */
.service-content .cap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0; }
.service-content .cap-grid > .wp-block-group__inner-container { display: contents; }
@media (max-width: 720px) { .service-content .cap-grid { grid-template-columns: 1fr; } }
.service-content .cap { margin: 0; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); transition: border-color .3s, transform .3s var(--ease); }
.service-content .cap:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.service-content .cap h3 { margin: 0 0 10px; font-size: 1.15rem; }
.service-content .cap h3::before { content: ""; display: block; width: 28px; height: 3px; margin-bottom: 16px; border-radius: 3px; background: var(--grad); }
.service-content .cap p { margin: 0 0 12px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.service-content .cap ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.service-content .cap li { position: relative; padding-left: 22px; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.service-content .cap li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.service-content .cap li + li { margin: 0; }

/* ---------- Team ---------- */
.team-card { align-items: flex-start; }
.avatar--lg { width: 64px; height: 64px; margin-bottom: 20px; font-size: 20px; border-radius: 18px; }
.team-card h3 { margin-bottom: 4px; }
.team-card__role { margin: 0 0 16px; color: var(--accent-2) !important; font-weight: 500; font-size: 14px !important; }
[data-theme="light"] .team-card__role { color: var(--accent) !important; }
.team-card__creds { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--border); display: grid; gap: 6px; width: 100%; }
.team-card__creds li { color: var(--muted); font-size: 13.5px; }
.team-card__more { margin-top: auto; padding-top: 20px; }
.member-card .team-card__role { margin-bottom: 20px; }
.member-contact { display: grid; gap: 10px; padding-top: 20px; border-top: 1px solid var(--border); }
.member-contact small { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.member-contact a { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: center; color: var(--text); font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.member-contact a:hover { color: var(--accent-2); }
.member-contact svg { width: 18px; height: 18px; color: var(--accent-2); }

/* ==========================================================================
   Colour layer — each repeated item gets its own hue pair (--tile/--tile-2).
   ========================================================================== */
:where(.grid > *, .service-row, .process__step, .stat, .cap, .deliverable, .contact-item, .faq details):nth-child(6n+1) { --tile: var(--c1); --tile-2: var(--c2); }
:where(.grid > *, .service-row, .process__step, .stat, .cap, .deliverable, .contact-item, .faq details):nth-child(6n+2) { --tile: var(--c2); --tile-2: var(--c4); }
:where(.grid > *, .service-row, .process__step, .stat, .cap, .deliverable, .contact-item, .faq details):nth-child(6n+3) { --tile: var(--c3); --tile-2: var(--c1); }
:where(.grid > *, .service-row, .process__step, .stat, .cap, .deliverable, .contact-item, .faq details):nth-child(6n+4) { --tile: var(--c4); --tile-2: var(--c6); }
:where(.grid > *, .service-row, .process__step, .stat, .cap, .deliverable, .contact-item, .faq details):nth-child(6n+5) { --tile: var(--c5); --tile-2: var(--c3); }
:where(.grid > *, .service-row, .process__step, .stat, .cap, .deliverable, .contact-item, .faq details):nth-child(6n+6) { --tile: var(--c6); --tile-2: var(--c4); }

/* Buttons */
.btn { background: linear-gradient(100deg, var(--c1), var(--c2)); }
.btn:hover { background: linear-gradient(100deg, var(--c2), var(--c1)); box-shadow: 0 14px 40px -12px rgba(139, 92, 246, .65); }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--accent-soft); box-shadow: none; }

/* Icon tiles */
.icon-tile,
[data-theme="light"] .icon-tile {
	color: var(--tile);
	border-color: color-mix(in srgb, var(--tile) 45%, transparent);
	background: linear-gradient(145deg, color-mix(in srgb, var(--tile) 28%, transparent), color-mix(in srgb, var(--tile-2) 8%, transparent));
	box-shadow: 0 10px 28px -12px color-mix(in srgb, var(--tile) 70%, transparent);
}

/* Cards: coloured top edge, tinted spotlight and glow */
.card { border-color: color-mix(in srgb, var(--tile) 16%, var(--border)); }
.card::after {
	content: ""; position: absolute; top: 0; left: 28px; right: 28px; height: 2px;
	background: linear-gradient(90deg, transparent, var(--tile), var(--tile-2), transparent);
	opacity: .7;
}
.card::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--tile) 18%, transparent), transparent 45%); }
.card:hover { border-color: color-mix(in srgb, var(--tile) 55%, transparent); box-shadow: 0 28px 60px -30px color-mix(in srgb, var(--tile) 70%, transparent); }
.card .check-list svg { color: var(--tile); }
.card__num { color: var(--tile); opacity: .8; }

/* Service rows */
.service-row:hover { background: linear-gradient(90deg, color-mix(in srgb, var(--tile) 16%, transparent), transparent 70%); }
.service-row:hover h3 { color: var(--tile); transition: color .3s; }
.service-row .link-arrow { color: var(--tile); }

/* Process */
.process::before { background: linear-gradient(90deg, transparent, var(--c1), var(--c2), var(--c3), var(--c4), var(--c5), transparent); opacity: .55; }
.process__step::before { color: var(--tile); border-color: color-mix(in srgb, var(--tile) 55%, transparent); box-shadow: 0 0 0 6px var(--bg), 0 0 24px -6px color-mix(in srgb, var(--tile) 80%, transparent); }
.section--alt .process__step::before { box-shadow: 0 0 0 6px var(--bg-2), 0 0 24px -6px color-mix(in srgb, var(--tile) 80%, transparent); }
.process__step:hover::before { background: linear-gradient(135deg, var(--tile), var(--tile-2)); color: #fff; }

/* Stats: gradient numbers */
.stat strong { background: linear-gradient(120deg, var(--tile), var(--tile-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Testimonials & team */
.quote-card { border-color: color-mix(in srgb, var(--tile) 18%, var(--border)); }
.quote-card blockquote::before { background: linear-gradient(135deg, var(--tile), var(--tile-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.avatar { background: linear-gradient(135deg, var(--tile), var(--tile-2)); }
.team-card__role, [data-theme="light"] .team-card__role { color: var(--tile) !important; }

/* Service detail */
.service-content .cap { border-color: color-mix(in srgb, var(--tile) 18%, var(--border)); }
.service-content .cap:hover { border-color: color-mix(in srgb, var(--tile) 50%, transparent); }
.service-content .cap h3::before { background: linear-gradient(90deg, var(--tile), var(--tile-2)); }
.service-content .cap li::before { background: var(--tile); }
.deliverable { border-left: 3px solid var(--tile); }
.faq summary::after { color: var(--tile); }
.post-card__media--empty {
	color: var(--tile);
	background:
		radial-gradient(70% 90% at 85% 10%, color-mix(in srgb, var(--tile-2) 35%, transparent), transparent 60%),
		radial-gradient(70% 90% at 10% 100%, color-mix(in srgb, var(--tile) 45%, transparent), transparent 60%),
		var(--surface-2);
}

/* Atmosphere: multi-colour aurora glows */
.hero::before {
	background:
		radial-gradient(45% 55% at 18% 8%, rgba(59, 130, 246, .34), transparent 70%),
		radial-gradient(40% 50% at 78% 18%, rgba(139, 92, 246, .34), transparent 70%),
		radial-gradient(34% 40% at 58% 85%, rgba(236, 72, 153, .16), transparent 70%),
		radial-gradient(30% 40% at 98% 62%, rgba(6, 182, 212, .2), transparent 70%);
}
.page-hero::before {
	background:
		radial-gradient(45% 90% at 25% 0%, rgba(59, 130, 246, .26), transparent 70%),
		radial-gradient(40% 90% at 80% 0%, rgba(139, 92, 246, .24), transparent 70%);
}
.section--alt {
	background:
		radial-gradient(45% 60% at 0% 0%, rgba(139, 92, 246, .1), transparent 65%),
		radial-gradient(45% 60% at 100% 100%, rgba(6, 182, 212, .08), transparent 65%),
		var(--bg-2);
}
[data-theme="light"] .hero::before {
	background:
		radial-gradient(45% 55% at 18% 8%, rgba(37, 99, 235, .16), transparent 70%),
		radial-gradient(40% 50% at 78% 18%, rgba(124, 58, 237, .16), transparent 70%),
		radial-gradient(34% 40% at 58% 85%, rgba(219, 39, 119, .08), transparent 70%),
		radial-gradient(30% 40% at 98% 62%, rgba(8, 145, 178, .1), transparent 70%);
}
[data-theme="light"] .page-hero::before {
	background:
		radial-gradient(45% 90% at 25% 0%, rgba(37, 99, 235, .12), transparent 70%),
		radial-gradient(40% 90% at 80% 0%, rgba(124, 58, 237, .12), transparent 70%);
}
.cta {
	border-color: rgba(139, 92, 246, .4);
	background:
		radial-gradient(55% 120% at 100% 0%, rgba(236, 72, 153, .22), transparent 60%),
		radial-gradient(55% 120% at 0% 100%, rgba(59, 130, 246, .3), transparent 60%),
		radial-gradient(40% 90% at 60% 50%, rgba(139, 92, 246, .2), transparent 70%),
		var(--surface);
}
.eyebrow::before { background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 0 12px rgba(139, 92, 246, .7); }
.socials a:hover { background: linear-gradient(135deg, var(--c1), var(--c2)); border-color: transparent; }
.footer-col a:hover { color: var(--c3); }
.mock { box-shadow: var(--shadow), 0 0 110px -40px rgba(139, 92, 246, .55); }
.terminal { box-shadow: var(--shadow), 0 0 90px -30px rgba(139, 92, 246, .5); }

/* ---------- Protection package ---------- */
.pkg-trust { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: center; }
.pkg-trust__head p { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.pkg-stats { grid-template-columns: repeat(3, 1fr); }
.pkg-stats .stat svg { width: .8em; height: .8em; color: var(--c3); }
@media (max-width: 960px) { .pkg-trust { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
	.pkg-stats { grid-template-columns: 1fr; }
	.pkg-stats .stat { border-left: 0; padding: 28px 0; }
	.pkg-stats .stat + .stat { border-top: 1px solid var(--border); }
}
.pkg-list { margin: 20px 0 0; gap: 10px; }
.pkg-list li { font-size: 14.5px; }
.pkg-list svg { width: 18px; height: 18px; }
.pkg-note { margin: auto 0 0; padding-top: 20px; font-style: italic; }
.pkg-note::before { content: ""; display: block; margin-bottom: 16px; border-top: 1px solid var(--border); }
.pkg-report { list-style: none; margin: 0; padding: 10px 22px 18px; }
.pkg-report li { display: grid; grid-template-columns: 34px 1fr 20px; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--border); color: var(--text-2); font-size: 15px; }
.pkg-report li:last-child { border-bottom: 0; }
.pkg-report span { color: var(--c2); font: 500 12px/1 var(--font-mono); }
.pkg-report svg { width: 18px; height: 18px; color: var(--ok); }
.pkg-why { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.pkg-why > * { grid-column: span 2; }
.pkg-why > :nth-child(4) { grid-column: 2 / span 2; }
@media (max-width: 960px) {
	.pkg-why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pkg-why > *, .pkg-why > :nth-child(4) { grid-column: auto; }
	.pkg-why > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .pkg-why { grid-template-columns: 1fr; } }
.pkg-callout { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; padding: 28px; border: 1px solid color-mix(in srgb, var(--c6) 40%, var(--border)); border-radius: var(--radius-lg); background: linear-gradient(135deg, color-mix(in srgb, var(--c6) 10%, var(--surface)), var(--surface)); }
.pkg-callout .icon-tile { margin: 0; --tile: var(--c6); --tile-2: var(--c4); }
.pkg-callout h3 { margin: 0 0 8px; font-size: 1.2rem; }
.pkg-callout p { margin: 0; color: var(--text-2); }
@media (max-width: 480px) { .pkg-callout { grid-template-columns: 1fr; } }
.pkg-callout-wrap { padding-top: 0; }
.pkg-terms > :first-child { margin-top: 12px; }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* Above-the-fold content animates on load with CSS alone — never waits for JS/observers. */
.js .hero [data-reveal], .js .page-hero [data-reveal] { opacity: 1; transform: none; transition: none; animation: rise .9s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.js [data-reveal] { opacity: 1; transform: none; }
}
