/* ==========================================================================
   VedaCLOUD.AI design system
   Mobile-first. Tokens → base → layout → components → templates.
   ========================================================================== */

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

:root {
	/* Colour */
	--bg: #070d18;
	--bg-2: #0a1222;
	--surface: #0e1829;
	--surface-2: #132036;
	--surface-3: #1a2a45;
	--line: rgba(148, 170, 200, .16);
	--line-strong: rgba(148, 170, 200, .28);
	--text: #e8eef7;
	--text-2: #c3cfdf;
	--muted: #95a6bd;
	--accent: #22d3ee;
	--accent-2: #3b82f6;
	--accent-ink: #04121a;
	--warn: #fbbf24;
	--danger: #f87171;
	--ok: #34d399;
	--pa: var(--accent); /* product accent, overridden per product */

	/* Type */
	--font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--fs-xs: .8125rem;
	--fs-sm: .9rem;
	--fs-base: 1rem;
	--fs-md: clamp(1.05rem, 1rem + .25vw, 1.15rem);
	--fs-lg: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
	--fs-xl: clamp(1.6rem, 1.3rem + 1.4vw, 2.25rem);
	--fs-2xl: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
	--fs-3xl: clamp(2.35rem, 1.5rem + 3.8vw, 4.1rem);

	/* Space & shape */
	--gutter: clamp(1rem, .6rem + 2vw, 2rem);
	--section: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 18px 48px rgba(0, 0, 0, .35);
	--max: 1200px;
	--narrow: 780px;
	--header-h: 68px;

	color-scheme: dark;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: var(--fs-base);
	line-height: 1.65;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .6em; font-weight: 600; color: #fff; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: #67e8f9; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(34, 211, 238, .3); color: #fff; }
button { font: inherit; }
code, kbd, pre, samp { font-family: var(--mono); font-size: .92em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.visually-hidden, .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 1rem; top: -100px; z-index: 1000; padding: .6rem 1rem;
	background: var(--accent); color: var(--accent-ink); border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 1rem; }
main:focus { outline: none; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); }
.section-title { font-size: var(--fs-xl); }
.section-lede, .page-lede { color: var(--text-2); font-size: var(--fs-md); max-width: 68ch; }
.section-more { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.75rem; }
.section-more a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; text-decoration: none; }
.subsection-title { font-size: var(--fs-lg); margin-top: 2.5rem; }
.eyebrow { color: var(--accent); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .75rem; }
.muted { color: var(--muted); }
.fineprint { color: var(--muted); font-size: var(--fs-xs); margin: 2rem 0; }

/* --------------------------------------------------------------------------
   Buttons, chips, inputs
   -------------------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 46px; padding: .7rem 1.25rem; border-radius: 999px; border: 1px solid transparent;
	font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn .icon { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #67e8f9; color: var(--accent-ink); }
.btn--ghost { background: rgba(255, 255, 255, .03); border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: #fff; }
.btn--small { min-height: 38px; padding: .45rem .9rem; font-size: .875rem; }
.link-btn { display: inline-flex; align-items: center; gap: .35rem; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; font-size: var(--fs-sm); }
.link-btn:hover { color: var(--accent); }
.link-btn .icon { width: 16px; height: 16px; }

.chip {
	display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .7rem; border-radius: 999px;
	border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03);
	color: var(--text-2); font-size: var(--fs-xs); font-weight: 500; text-decoration: none; white-space: nowrap;
}
a.chip:hover { border-color: var(--accent); color: #fff; }
.chip-group, .chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 0; }
.chip--toggle { cursor: pointer; min-height: 36px; padding-inline: .9rem; font-size: var(--fs-sm); }
.chip--toggle[aria-pressed="true"], .chip--toggle[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.badge { display: inline-block; padding: .05rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 600; background: var(--surface-3); color: var(--text-2); }
.badge--warn { background: rgba(251, 191, 36, .14); color: var(--warn); }
.claim {
	display: inline-block; margin-left: .35rem; padding: .05rem .45rem; border-radius: 4px; vertical-align: .1em;
	border: 1px dashed rgba(251, 191, 36, .55); color: var(--warn); font-size: .68rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
}

.input, .doc-search input, .doc-search select, .nav-search input {
	width: 100%; min-height: 46px; padding: .65rem .9rem; border-radius: var(--radius-sm);
	border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit;
}
.input:focus, .doc-search input:focus, .doc-search select:focus, .nav-search input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
select.input, .doc-search select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.25rem; }
textarea.input { min-height: 140px; resize: vertical; }
::placeholder { color: #7d8ea6; opacity: 1; }

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */
.announcement { background: linear-gradient(90deg, #0e7490, #1d4ed8); color: #fff; font-size: var(--fs-sm); text-align: center; padding: .45rem 0; }
.site-header {
	position: sticky; top: 0; z-index: 100; height: var(--header-h);
	background: rgba(7, 13, 24, .82); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
	border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; flex: none; }
.brand:hover { color: #fff; }
.brand__name span { color: var(--accent); }
.brand__logo { display: block; height: 40px; width: auto; }
.site-footer .brand__logo { height: 44px; }

.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); border-radius: 10px; cursor: pointer; }
.nav-toggle__close, .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline; }

.site-nav {
	position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; overflow-y: auto; overscroll-behavior: contain;
	background: var(--bg); padding: 1rem var(--gutter) 2rem; display: none;
}
.site-nav.is-open { display: block; }
.site-nav__list { list-style: none; margin: 0; padding: 0; }
.site-nav__item { border-bottom: 1px solid var(--line); }
.site-nav__link {
	display: flex; align-items: center; justify-content: space-between; width: 100%; padding: .95rem .25rem;
	color: var(--text); text-decoration: none; font-weight: 500; font-size: 1.05rem; background: none; border: 0; cursor: pointer; text-align: left;
}
.site-nav__link .icon { width: 18px; height: 18px; transition: transform .2s; }
.site-nav__link[aria-expanded="true"] .icon { transform: rotate(180deg); }
.site-nav__link.is-active { color: var(--accent); }
.mega { padding: 0 0 1rem; }
.mega__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.mega__item { display: flex; gap: .75rem; align-items: center; padding: .6rem .5rem; border-radius: 10px; color: var(--text); text-decoration: none; }
.mega__item:hover { background: var(--surface-2); color: #fff; }
.mega__item strong { display: block; font-weight: 600; }
.mega__item small { display: block; color: var(--muted); font-size: var(--fs-xs); line-height: 1.4; }
.mega__all { display: inline-flex; gap: .4rem; align-items: center; margin: .5rem .5rem 0; font-weight: 500; text-decoration: none; }
.mega__all .icon { width: 16px; }
.site-nav__tools { display: grid; gap: .75rem; margin-top: 1.25rem; }
.nav-search { position: relative; }
.nav-search input { padding-right: 2.75rem; }
.nav-search button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.staff-link { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); text-decoration: none; font-size: var(--fs-sm); padding: .4rem 0; }
.staff-link .icon { width: 16px; height: 16px; }
.staff-link:hover { color: var(--accent); }

@media (min-width: 1100px) {
	.nav-toggle { display: none; }
	.site-nav { position: static; display: flex !important; align-items: center; gap: 1rem; padding: 0; background: none; overflow: visible; flex: 1; justify-content: flex-end; }
	.site-nav__list { display: flex; align-items: center; gap: .15rem; }
	.site-nav__item { border: 0; position: relative; }
	.site-nav__link { padding: .5rem .7rem; font-size: .93rem; border-radius: 8px; color: var(--text-2); width: auto; gap: .25rem; }
	.site-nav__link:hover, .site-nav__link[aria-expanded="true"] { color: #fff; background: rgba(255, 255, 255, .04); }
	.site-nav__link.is-active { color: #fff; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
	.mega {
		position: absolute; top: calc(100% + 12px); left: -1rem; width: min(640px, 80vw); padding: .9rem;
		background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow);
	}
	.mega__grid { grid-template-columns: 1fr 1fr; }
	.site-nav__tools { display: flex; align-items: center; margin: 0; gap: .5rem; }
	.nav-search input { width: 210px; min-height: 40px; font-size: .9rem; background: var(--bg-2); }
	.staff-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.staff-link { width: 40px; height: 40px; justify-content: center; border: 1px solid var(--line); border-radius: 10px; }
}

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(3rem, 2rem + 4vw, 5.5rem); }
.hero__bg {
	position: absolute; inset: 0; pointer-events: none;
	background:
		radial-gradient(60% 55% at 85% 20%, rgba(34, 211, 238, .14), transparent 70%),
		radial-gradient(50% 50% at 10% 90%, rgba(59, 130, 246, .12), transparent 70%),
		linear-gradient(rgba(148, 170, 200, .05) 1px, transparent 1px) 0 0 / 48px 48px,
		linear-gradient(90deg, rgba(148, 170, 200, .05) 1px, transparent 1px) 0 0 / 48px 48px;
	mask-image: radial-gradient(80% 80% at 60% 40%, #000 30%, transparent 85%);
	-webkit-mask-image: radial-gradient(80% 80% at 60% 40%, #000 30%, transparent 85%);
}
.hero__inner { position: relative; display: grid; gap: 2.5rem; align-items: center; }
.hero__title { font-size: var(--fs-3xl); font-weight: 600; letter-spacing: -.025em; max-width: 16ch; }
.hero__text { color: var(--text-2); font-size: var(--fs-md); max-width: 58ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero__docs { margin-top: 1.5rem; }
.hero__docs a { color: var(--muted); text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; font-size: var(--fs-sm); }
.hero__docs a:hover { color: var(--accent); }
.hero__docs .icon { width: 16px; }
.hero__visual { max-width: 520px; width: 100%; margin-inline: auto; }
@media (min-width: 960px) {
	.hero__inner { grid-template-columns: 1.1fr .9fr; }
}

/* Ecosystem diagram */
.ecosystem { width: 100%; height: auto; overflow: visible; }
.eco-orbit { fill: none; stroke: rgba(148, 170, 200, .18); stroke-dasharray: 2 6; }
.eco-orbit--inner { stroke: rgba(148, 170, 200, .1); }
.eco-link { stroke: rgba(34, 211, 238, .35); stroke-width: 1.2; stroke-dasharray: 4 6; }
.eco-core { fill: #0b1526; stroke: var(--accent); stroke-width: 1.5; }
.eco-core-label { fill: #fff; font: 600 15px var(--font); }
.eco-core-sub { fill: var(--accent); font: 600 13px var(--font); }
.eco-node text { fill: var(--text-2); font: 600 14px var(--font); letter-spacing: .01em; }
@media (prefers-reduced-motion: no-preference) {
	.eco-link { animation: eco-flow 3.2s linear infinite; animation-delay: var(--d, 0s); }
	@keyframes eco-flow { to { stroke-dashoffset: -40; } }
}

/* --------------------------------------------------------------------------
   Cards & grids
   -------------------------------------------------------------------------- */
.product-grid, .post-grid, .space-grid { display: grid; gap: clamp(.9rem, .6rem + 1vw, 1.25rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.product-card, .post-card, .space-card, .mini-card, .feature, .doc-section-card, .contact-card, .enquiry, .integration, .pillar {
	position: relative; background: linear-gradient(180deg, var(--surface), var(--bg-2));
	border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.15rem, 1rem + .6vw, 1.6rem);
}
.product-card, .post-card, .space-card { display: flex; flex-direction: column; transition: border-color .25s, transform .25s, box-shadow .25s; }
.product-card:hover, .post-card:hover, .space-card:hover { border-color: color-mix(in srgb, var(--pa) 55%, transparent); box-shadow: 0 10px 40px -12px color-mix(in srgb, var(--pa) 35%, transparent); }
@media (prefers-reduced-motion: no-preference) {
	.product-card:hover, .post-card:hover, .space-card:hover { transform: translateY(-2px); }
}
.product-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(90deg, var(--pa), transparent); opacity: .8; }
.product-card__top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.1rem; }
.product-card__title { font-size: 1.35rem; margin-bottom: .25rem; }
.product-card__title a, .post-card__title a, .space-card h3 a { color: #fff; text-decoration: none; }
.product-card__tagline { color: var(--pa); font-weight: 500; font-size: var(--fs-sm); line-height: 1.45; margin-bottom: .75rem; }
.product-card__summary { color: var(--text-2); font-size: var(--fs-sm); }
.product-card__meta { color: var(--muted); font-size: var(--fs-xs); margin-top: auto; padding-top: .5rem; }
.product-card__cta { display: inline-flex; align-items: center; gap: .35rem; color: var(--pa); font-weight: 600; font-size: var(--fs-sm); margin-top: .75rem; }
.product-card__cta .icon { width: 16px; transition: transform .2s; }
.product-card:hover .product-card__cta .icon { transform: translateX(3px); }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.stretched:focus-visible { outline: none; }
.stretched:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 2px; }

.product-mark {
	--size: 44px; width: var(--size); height: var(--size); flex: none; border-radius: calc(var(--size) * .26);
	display: inline-grid; place-items: center; position: relative; overflow: hidden;
	background: color-mix(in srgb, var(--pa) 14%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--pa) 45%, transparent);
	color: var(--pa); font-weight: 700; font-size: calc(var(--size) * .36); letter-spacing: -.02em; line-height: 1;
}
.product-mark::after { content: ""; position: absolute; width: 60%; height: 60%; right: -20%; bottom: -20%; border-radius: 50%; background: color-mix(in srgb, var(--pa) 30%, transparent); filter: blur(6px); }
.product-mark span { position: relative; z-index: 1; }
img.product-mark--img { border: 0; background: none; padding: 0; object-fit: cover; border-radius: calc(var(--size) * .23); }

.post-card__eyebrow { color: var(--accent); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .6rem; }
.post-card__title { font-size: 1.15rem; }
.post-card__excerpt { color: var(--text-2); font-size: var(--fs-sm); }
.post-card__meta { color: var(--muted); font-size: var(--fs-xs); margin: auto 0 0; }

.pillars { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.pillar h3 { font-size: 1.15rem; }
.pillar p { color: var(--text-2); font-size: var(--fs-sm); margin: 0; }
.pillar__icon, .feature__icon, .mini-card__icon, .integration__icon {
	display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; margin-bottom: 1rem;
	background: color-mix(in srgb, var(--pa) 12%, transparent); color: var(--pa); border: 1px solid color-mix(in srgb, var(--pa) 30%, transparent);
}

.industry-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.industry-list a { display: flex; flex-direction: column; gap: .25rem; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); text-decoration: none; height: 100%; transition: border-color .2s, background-color .2s; }
.industry-list a:hover { border-color: var(--accent); background: var(--surface); }
.industry-list span { color: var(--muted); font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   Page hero & breadcrumbs
   -------------------------------------------------------------------------- */
.page-hero { position: relative; padding-block: clamp(2rem, 1.5rem + 3vw, 4rem) clamp(1.5rem, 1rem + 2vw, 2.5rem); border-bottom: 1px solid var(--line); background: radial-gradient(70% 120% at 100% 0%, rgba(34, 211, 238, .08), transparent 60%); }
.page-hero--center { text-align: center; border: 0; padding-block: 5rem; }
.page-hero--center .doc-search { margin-inline: auto; }
.page-hero--center .chip-row { justify-content: center; }
.page-title { font-size: var(--fs-2xl); letter-spacing: -.02em; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 1.25rem; padding: 0; font-size: var(--fs-xs); color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .4rem; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current] { color: var(--text-2); }

/* --------------------------------------------------------------------------
   Product page
   -------------------------------------------------------------------------- */
.product-hero { position: relative; overflow: hidden; padding-block: clamp(2rem, 1.5rem + 3vw, 4.5rem); border-bottom: 1px solid var(--line); }
.product-hero__bg { position: absolute; inset: 0; background: radial-gradient(60% 90% at 90% 10%, color-mix(in srgb, var(--pa) 18%, transparent), transparent 65%), radial-gradient(40% 60% at 0% 100%, rgba(59, 130, 246, .08), transparent 70%); pointer-events: none; }
.product-hero__inner { position: relative; display: grid; gap: 2rem; align-items: center; }
.product-hero__id { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.product-hero__title { font-size: var(--fs-3xl); margin-bottom: .35rem; }
.product-hero__tagline { color: var(--pa); font-size: var(--fs-lg); font-weight: 500; line-height: 1.35; max-width: 34ch; }
.product-hero__summary { color: var(--text-2); font-size: var(--fs-md); max-width: 60ch; }
.product-hero__media img { border-radius: var(--radius); border: 1px solid var(--line); }
@media (min-width: 1024px) { .product-hero__inner:has(.product-hero__media) { grid-template-columns: 1.1fr .9fr; } }
.ticks { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .5rem; }
.ticks li { display: flex; gap: .6rem; align-items: flex-start; color: var(--text-2); }
.ticks .icon { color: var(--pa); width: 18px; height: 18px; flex: none; margin-top: .25rem; }

.subnav { position: sticky; top: var(--header-h); z-index: 50; background: rgba(7, 13, 24, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: .8rem .75rem; color: var(--muted); text-decoration: none; font-size: var(--fs-sm); white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a:hover, .subnav a.is-active { color: #fff; border-bottom-color: var(--pa); }
.product-section { scroll-margin-top: calc(var(--header-h) + 56px); }

.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.feature h3, .mini-card h3, .integration h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.feature p, .mini-card p, .integration p { color: var(--text-2); font-size: var(--fs-sm); margin: 0 0 .5rem; }
.feature-grid--compact .feature { padding: 1.1rem 1.25rem; }
.card-row { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.integration-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.integration { display: flex; gap: 1rem; align-items: flex-start; }
.integration__icon { margin: 0; flex: none; }
.integration__cat { color: var(--muted) !important; font-size: var(--fs-xs) !important; text-transform: uppercase; letter-spacing: .08em; }

/* Layered architecture diagram */
.layers { margin: 2rem 0 0; }
.layers > ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.layer {
	display: grid; gap: .75rem; align-items: center; padding: 1rem 1.15rem; border-radius: var(--radius-sm);
	border: 1px solid color-mix(in srgb, var(--pa) 30%, var(--line)); background: linear-gradient(90deg, color-mix(in srgb, var(--pa) 10%, var(--surface)), var(--surface));
}
.layer__name { font-weight: 600; color: #fff; }
.layer__items { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.layer__items li { padding: .3rem .65rem; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); font-size: var(--fs-sm); color: var(--text-2); }
@media (min-width: 760px) { .layer { grid-template-columns: 220px 1fr; } }
.diagram { margin: 2rem 0 0; }
.diagram img { border-radius: var(--radius); border: 1px solid var(--line); background: #fff; width: 100%; }
.diagram figcaption, .gallery figcaption { color: var(--muted); font-size: var(--fs-sm); margin-top: .75rem; }
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.gallery figure { margin: 0; }
.gallery img { border-radius: var(--radius-sm); border: 1px solid var(--line); }

/* Tables */
.table-scroll { overflow-x: auto; margin: 0 0 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-sm); -webkit-overflow-scrolling: touch; }
.table-scroll:focus-visible { outline-offset: 2px; }
.spec-table, .prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.spec-table caption { text-align: left; padding: .8rem 1rem; font-weight: 600; color: #fff; background: var(--surface-2); }
.spec-table th, .spec-table td, .prose th, .prose td { padding: .75rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { width: 38%; color: var(--text-2); font-weight: 500; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.prose thead th { background: var(--surface-2); color: #fff; font-weight: 600; white-space: nowrap; }

/* Timeline, FAQ */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; display: grid; gap: .1rem .9rem; grid-template-columns: auto 1fr auto; align-items: baseline; padding: .75rem 0 .75rem 1.25rem; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 1.2rem; width: 10px; height: 10px; border-radius: 50%; background: var(--pa); box-shadow: 0 0 0 4px var(--bg); }
.timeline__version { font-family: var(--mono); color: var(--pa); font-size: var(--fs-sm); }
.timeline time { color: var(--muted); font-size: var(--fs-xs); }
.timeline--full li { grid-template-columns: 90px 1fr; }
.timeline--full h2 { font-size: 1.1rem; margin: 0; }
.timeline--full h2 a { color: #fff; text-decoration: none; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 1.4rem; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq__a { color: var(--text-2); padding-bottom: 1rem; }

/* Downloads */
.downloads { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .75rem; }
.download { position: relative; display: flex; gap: 1rem; align-items: center; padding: 1rem 1.15rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); transition: border-color .2s; }
.download:hover { border-color: var(--accent); }
.download__icon { color: var(--accent); flex: none; }
.download__body { flex: 1; min-width: 0; }
.download__title { color: #fff; font-weight: 600; text-decoration: none; }
.download__desc { color: var(--text-2); font-size: var(--fs-sm); margin: .2rem 0 0; }
.download__meta { color: var(--muted); font-size: var(--fs-xs); margin: .2rem 0 0; }
.download__action { color: var(--muted); }

/* --------------------------------------------------------------------------
   Documentation
   -------------------------------------------------------------------------- */
.doc-search { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; position: relative; max-width: 760px; margin-top: 1.5rem; }
.doc-search > .icon { position: absolute; left: .9rem; top: 23px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.doc-search input[type=search] { flex: 1 1 260px; padding-left: 2.6rem; }
.doc-search select { flex: 0 1 190px; }
.doc-search .btn { flex: none; border-radius: var(--radius-sm); }
.doc-search--inline { margin: 1rem 0 2rem; }

.space-card__head { display: flex; gap: .9rem; align-items: flex-start; }
.space-card__head h3 { font-size: 1.2rem; margin-bottom: .15rem; }
.space-card__head p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.space-card__sections { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 1rem 0; padding: 0; }
.space-card__sections li { font-size: var(--fs-xs); color: var(--text-2); padding: .15rem .55rem; border-radius: 999px; background: var(--surface-2); }
.space-card__count { color: var(--pa); font-size: var(--fs-sm); font-weight: 500; margin: auto 0 0; }

.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.doc-list a { color: #fff; font-weight: 500; text-decoration: none; }
.doc-list a:hover { color: var(--accent); }
.doc-list__meta { color: var(--muted); font-size: var(--fs-xs); }

.doc-sections { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); margin-top: 1.5rem; }
.doc-section-card h2, .doc-section-card h3 { font-size: 1.05rem; }
.doc-section-card ul { list-style: none; margin: 0; padding: 0; }
.doc-section-card li { padding: .3rem 0; font-size: var(--fs-sm); }
.doc-section-card a { color: var(--text-2); text-decoration: none; }
.doc-section-card a:hover { color: var(--accent); }

.docs-layout { display: grid; gap: 2rem; padding-block: 2rem 4rem; align-items: start; }
.docs-main { min-width: 0; }
.doc-sidebar__toggle {
	display: flex; width: 100%; justify-content: space-between; align-items: center; padding: .8rem 1rem;
	border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); cursor: pointer; font-weight: 500;
}
.doc-sidebar__toggle .icon { transition: transform .2s; }
.doc-sidebar__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.doc-nav { display: none; margin-top: .75rem; }
.doc-nav.is-open { display: block; }
.doc-nav__product { display: flex; align-items: center; gap: .6rem; font-weight: 600; margin-bottom: 1rem; }
.doc-nav__product a { color: #fff; text-decoration: none; }
.doc-nav__section { margin-bottom: .25rem; }
.doc-nav__section summary { cursor: pointer; padding: .4rem 0; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); list-style: none; }
.doc-nav__section summary::-webkit-details-marker { display: none; }
.doc-nav__section summary::before { content: ""; display: inline-block; width: 0; height: 0; margin: 0 .5rem .1rem 0; border-block: 4px solid transparent; border-left: 5px solid currentColor; transition: transform .15s; }
.doc-nav__section[open] summary::before { transform: rotate(90deg); }
.doc-nav__section ul { list-style: none; margin: 0 0 .75rem; padding: 0 0 0 .2rem; border-left: 1px solid var(--line); }
.doc-nav__section li a { display: block; padding: .32rem .75rem; color: var(--text-2); text-decoration: none; font-size: var(--fs-sm); border-left: 2px solid transparent; margin-left: -1px; line-height: 1.45; }
.doc-nav__section li a:hover { color: #fff; }
.doc-nav__section li a[aria-current="page"] { color: var(--pa); border-left-color: var(--pa); font-weight: 500; }
.doc-nav__back { margin-top: 1.25rem; font-size: var(--fs-sm); }
.doc-nav__back a { color: var(--muted); text-decoration: none; }

@media (min-width: 900px) {
	.docs-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 3rem; padding-top: 2.5rem; }
	.doc-sidebar { position: sticky; top: calc(var(--header-h) + 1.5rem); max-height: calc(100vh - var(--header-h) - 3rem); overflow-y: auto; scrollbar-width: thin; }
	.doc-sidebar__toggle { display: none; }
	.doc-nav { display: block !important; margin: 0; }
}
@media (min-width: 1240px) {
	.docs-layout--article { grid-template-columns: 240px minmax(0, 1fr) 220px; }
}

.doc__title { font-size: var(--fs-2xl); }
.doc__lede { color: var(--text-2); font-size: var(--fs-md); }
.doc__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; color: var(--muted); font-size: var(--fs-sm); padding-bottom: 1.25rem; margin-bottom: 1.75rem; border-bottom: 1px solid var(--line); }
.version-switch select { min-height: 32px; padding: .2rem 2rem .2rem .7rem; border-radius: 999px; border: 1px solid var(--line-strong); background-color: var(--surface); color: var(--text); font-size: var(--fs-xs); }

.toc__title { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.toc__list { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc__item a { display: block; padding: .28rem .8rem; font-size: var(--fs-sm); color: var(--muted); text-decoration: none; border-left: 2px solid transparent; margin-left: -1px; line-height: 1.45; }
.toc__item--h3 a { padding-left: 1.6rem; font-size: var(--fs-xs); }
.toc__item a:hover { color: #fff; }
.toc__item a.is-active { color: var(--pa); border-left-color: var(--pa); }
.toc--desktop { display: none; }
.toc--mobile, .toc--inline { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .75rem 1rem; margin-bottom: 1.75rem; background: var(--surface); }
.toc--mobile summary, .toc--inline summary { cursor: pointer; font-weight: 600; }
.toc--mobile .toc__list, .toc--inline .toc__list { margin-top: .75rem; }
@media (min-width: 1240px) {
	.toc--desktop { display: block; position: sticky; top: calc(var(--header-h) + 1.5rem); max-height: calc(100vh - var(--header-h) - 3rem); overflow-y: auto; }
	.docs-layout--article .toc--mobile { display: none; }
}

.notice { padding: .9rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; border: 1px solid; font-size: var(--fs-sm); }
.notice--superseded { border-color: rgba(59, 130, 246, .5); background: rgba(59, 130, 246, .08); }
.notice--deprecated { border-color: rgba(251, 191, 36, .5); background: rgba(251, 191, 36, .08); }
.notice--archived { border-color: var(--line-strong); background: var(--surface); }

.doc__footer { margin-top: 3rem; display: grid; gap: 2rem; }
.feedback { padding: 1.25rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); margin-top: 2rem; }
.feedback__q { font-weight: 600; margin-bottom: .75rem; }
.feedback__actions { display: flex; gap: .5rem; }
.feedback__thanks { margin: .75rem 0 0; color: var(--ok); font-size: var(--fs-sm); }
.feedback__thanks:empty { display: none; }
.feedback__more { margin: .75rem 0 0; color: var(--muted); font-size: var(--fs-sm); }
.prevnext { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.prevnext__link { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: var(--radius-sm); color: #fff; text-decoration: none; font-weight: 500; }
.prevnext__link span { color: var(--muted); font-size: var(--fs-xs); font-weight: 400; }
.prevnext__link--next { text-align: right; grid-column: -2; }
.prevnext__link:hover { border-color: var(--accent); color: #fff; }
.related h2 { font-size: 1.1rem; }
.related ul { margin: 0; padding-left: 1.1rem; }

/* --------------------------------------------------------------------------
   Prose (post / doc content from the block editor)
   -------------------------------------------------------------------------- */
.prose { color: var(--text-2); font-size: 1.04rem; line-height: 1.75; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: 1.55rem; margin-top: 2.3em; padding-top: .2em; color: #fff; }
.prose h3 { font-size: 1.2rem; margin-top: 1.8em; color: #fff; }
.prose h4 { font-size: 1.05rem; margin-top: 1.6em; color: #fff; }
.prose :is(h2, h3) { position: relative; }
.heading-anchor { margin-left: .4rem; color: var(--line-strong); text-decoration: none; opacity: 0; transition: opacity .15s; font-weight: 400; }
.prose :is(h2, h3):hover .heading-anchor, .heading-anchor:focus { opacity: 1; color: var(--accent); }
.prose strong { color: #fff; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: .35em; }
.prose blockquote { margin: 1.5em 0; padding: .25em 1.25em; border-left: 3px solid var(--accent); color: var(--text); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose img { border-radius: var(--radius-sm); }
.prose figure { margin-inline: 0; }
.prose figcaption { color: var(--muted); font-size: var(--fs-sm); text-align: center; margin-top: .6rem; }
.prose :not(pre) > code { padding: .12em .4em; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); color: #a5f3fc; font-size: .88em; }
.prose pre, .wp-block-code {
	position: relative; margin: 1.5em 0; padding: 1.1rem 1.2rem; overflow-x: auto; border-radius: var(--radius-sm);
	background: #050a14; border: 1px solid var(--line); color: #dbe6f5; font-size: .88rem; line-height: 1.65; tab-size: 2;
}
.prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; white-space: pre; }
.code-copy {
	position: absolute; top: .5rem; right: .5rem; padding: .3rem .6rem; border-radius: 6px; border: 1px solid var(--line-strong);
	background: var(--surface-2); color: var(--text-2); font-size: var(--fs-xs); cursor: pointer; opacity: .85;
}
@media (max-width: 640px) { .prose pre { padding-top: 2.75rem; } }
.code-copy:hover, .code-copy:focus-visible { opacity: 1; color: #fff; border-color: var(--accent); }
.wp-block-table { overflow-x: auto; margin: 1.5em 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.wp-block-table table { margin: 0; }
.wp-block-table td, .wp-block-table th { border-color: var(--line) !important; }
.wp-block-table figcaption { text-align: left; padding: 0 1rem .75rem; }
.wp-block-image img { height: auto; }
.wp-block-file { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.wp-block-file .wp-block-file__button { background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: .4rem 1rem; text-decoration: none; font-weight: 600; }
.wp-block-separator { border-color: var(--line); }

/* Prism tokens (VedaCloud palette) */
.token.comment, .token.prolog, .token.doctype, .token.cdata { color: #6b7d96; font-style: italic; }
.token.punctuation { color: #9fb0c8; }
.token.property, .token.tag, .token.constant, .token.symbol, .token.deleted { color: #f9a8d4; }
.token.boolean, .token.number { color: #fcd34d; }
.token.selector, .token.attr-name, .token.string, .token.char, .token.builtin, .token.inserted { color: #86efac; }
.token.operator, .token.entity, .token.url { color: #a5f3fc; }
.token.atrule, .token.attr-value, .token.keyword { color: #93c5fd; }
.token.function, .token.class-name { color: #67e8f9; }
.token.regex, .token.important, .token.variable { color: #fdba74; }

/* --------------------------------------------------------------------------
   Article, search, contact, industries
   -------------------------------------------------------------------------- */
.article__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; color: var(--muted); font-size: var(--fs-sm); margin-top: 1rem; }
.article__image { margin-block: 2rem 0; }
.article__image img { border-radius: var(--radius); border: 1px solid var(--line); }
.article .prose { padding-block: 2.5rem 1rem; }

.tabs { display: flex; gap: .25rem; margin-top: 1.75rem; overflow-x: auto; border-bottom: 1px solid var(--line); }
.tabs__tab { padding: .7rem 1rem; color: var(--muted); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; font-size: var(--fs-sm); }
.tabs__tab:hover { color: #fff; }
.tabs__tab[aria-current="page"] { color: #fff; border-bottom-color: var(--accent); }
.results-count { color: var(--muted); font-size: var(--fs-sm); }
.results { list-style: none; margin: 0; padding: 0; }
.result { padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.result__type { color: var(--accent); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-bottom: .3rem; }
.result__title { font-size: 1.2rem; margin-bottom: .35rem; }
.result__title a { color: #fff; text-decoration: none; }
.result__title a:hover { color: var(--accent); }
.result__excerpt { color: var(--text-2); font-size: var(--fs-sm); margin-bottom: .25rem; }
.result__url { color: var(--muted); font-family: var(--mono); font-size: .75rem; margin: 0; }

.contact-grid { display: grid; gap: 1.25rem; align-items: start; }
.contact-grid > *, .enquiry > *, .docs-main, .product-grid > *, .post-grid > * { min-width: 0; }
.input { max-width: 100%; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .8fr 1.2fr; } }
.contact-card__email { font-size: var(--fs-lg); font-weight: 600; overflow-wrap: anywhere; }
.contact-card__email a { color: #fff; text-decoration: none; }
.contact-card__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.enquiry { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.enquiry h2 { margin: 0; font-size: var(--fs-lg); }
.enquiry__note { overflow-wrap: anywhere; display: flex; gap: .65rem; padding: .85rem 1rem; margin: 0; border-radius: var(--radius-sm); background: rgba(34, 211, 238, .07); border: 1px solid rgba(34, 211, 238, .25); color: var(--text-2); font-size: var(--fs-sm); }
.enquiry__note .icon { flex: none; color: var(--accent); margin-top: .15rem; }
.field label { display: block; font-weight: 500; font-size: var(--fs-sm); margin-bottom: .35rem; }
@media (min-width: 640px) {
	.enquiry { grid-template-columns: 1fr 1fr; }
	.enquiry h2, .enquiry__note, .field--full { grid-column: 1 / -1; }
}

.industry-blocks { display: grid; gap: 1rem; }
.industry-block { display: grid; gap: 1rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.industry-block h2 { font-size: 1.25rem; margin-bottom: .35rem; }
.industry-block h2 a { color: #fff; text-decoration: none; }
.industry-block p { color: var(--text-2); margin: 0; font-size: var(--fs-sm); }
.industry-block__items { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; align-content: start; }
.industry-block__items a { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem .35rem .4rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); text-decoration: none; font-size: var(--fs-sm); }
.industry-block__items a:hover { border-color: var(--pa, var(--accent)); }
@media (min-width: 860px) { .industry-block { grid-template-columns: 1fr 1fr; align-items: start; } }

.directory-tools { display: grid; gap: .9rem; margin-bottom: 1.75rem; }
.directory-tools .chip-group { margin: 0; }
.directory-count { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.empty-state { color: var(--muted); }
.empty-state--panel { padding: 2rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.empty-state--panel h2 { font-size: 1.2rem; color: #fff; }

.pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 2.5rem 0 0; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .8rem; border-radius: var(--radius-sm); border: 1px solid var(--line); color: var(--text-2); text-decoration: none; }
.pagination .current { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.pagination a:hover { border-color: var(--accent); color: #fff; }

/* --------------------------------------------------------------------------
   Contact band & footer
   -------------------------------------------------------------------------- */
.contact-band { padding-block: clamp(3rem, 2rem + 3vw, 5rem); background: radial-gradient(60% 120% at 100% 50%, rgba(34, 211, 238, .12), transparent 70%), linear-gradient(135deg, #0b1628, #0a1020); border-top: 1px solid var(--line); }
.contact-band__inner { display: grid; gap: 1.5rem; align-items: center; }
.contact-band h2 { font-size: var(--fs-xl); }
.contact-band p { color: var(--text-2); max-width: 56ch; margin: 0; }
.contact-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.contact-band__actions .btn--primary { overflow-wrap: anywhere; text-align: left; }
.contact-band__note { flex-basis: 100%; color: var(--muted) !important; font-size: var(--fs-xs); }
@media (min-width: 960px) { .contact-band__inner { grid-template-columns: 1fr auto; } .contact-band__actions { justify-content: flex-end; max-width: 520px; } .contact-band__note { text-align: right; } }

.site-footer { border-top: 1px solid var(--line); padding-block: 3.5rem 2rem; background: #050a14; color: var(--muted); font-size: var(--fs-sm); }
.site-footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.site-footer__brand { grid-column: 1 / -1; max-width: 360px; }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 1.6fr repeat(3, 1fr); } .site-footer__brand { grid-column: auto; } }
.site-footer__brand p { margin: 1rem 0 0; }
.site-footer__email a { display: inline-flex; gap: .5rem; align-items: center; color: var(--text); text-decoration: none; }
.site-footer__email a:hover { color: var(--accent); }
.site-footer__title { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .12em; color: var(--text); margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer nav a { color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--accent); }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: var(--fs-xs); }
.site-footer__base p { margin: 0; }
.site-footer__note { max-width: 60ch; }

/* Subtle reveal on scroll (opt-in via JS; disabled for reduced motion). */
@media (prefers-reduced-motion: no-preference) {
	.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
	.js .reveal.is-visible { opacity: 1; transform: none; }
}

/* Forced colours / high contrast */
@media (forced-colors: active) {
	.btn, .chip, .product-card, .post-card { border: 1px solid CanvasText; }
	.product-mark { forced-color-adjust: none; }
}

/* Print */
@media print {
	.site-header, .site-footer, .contact-band, .doc-sidebar, .toc, .feedback, .subnav, .prevnext { display: none !important; }
	body { background: #fff; color: #000; }
	.prose, .prose h2, .prose h3, h1 { color: #000; }
}
