/* =====================================================================================
   AdvEntInn PMS - product website
   Design system: tokens, layout, components, product mock screens, motion.
   Modern CSS only (custom properties, grid, clamp, :has, color-mix, container queries).
   ===================================================================================== */

/* ---------------------------------------------------------------- tokens */
:root {
  --navy-950: #050f1c;
  --navy-900: #0a1c30;
  --navy-800: #102b45;
  --navy-700: #17395a;
  --brand: #1f5468;
  --brand-500: #1d7391;
  --sky: #38bdf8;
  --teal: #14b8a6;
  --orange: #f7941d;
  --orange-600: #e27b06;
  --mint: #34d399;
  --rose: #f43f5e;
  --violet: #8b5cf6;
  --amber: #fbbf24;

  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #eef3f9;
  --surface-3: #e3eaf3;
  --text: #0e1a2b;
  --text-2: #33445a;
  --muted: #5d6e84;
  --line: #dbe3ee;
  --ring: color-mix(in srgb, var(--sky) 55%, transparent);

  --grad-hero: radial-gradient(1200px 600px at 10% -10%, #1d7391 0%, transparent 60%),
               radial-gradient(900px 500px at 100% 0%, #3b2a8f 0%, transparent 55%),
               radial-gradient(800px 600px at 60% 120%, #0f766e 0%, transparent 60%),
               linear-gradient(180deg, #071426 0%, #0a1c30 100%);
  --grad-accent: linear-gradient(135deg, #f7941d 0%, #ff6a3d 100%);
  --grad-cool: linear-gradient(135deg, #38bdf8 0%, #14b8a6 100%);
  --grad-text: linear-gradient(90deg, #7dd3fc 0%, #5eead4 45%, #fcd34d 100%);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgb(10 28 48 / .06), 0 1px 1px rgb(10 28 48 / .04);
  --shadow: 0 10px 30px -12px rgb(10 28 48 / .22), 0 2px 6px rgb(10 28 48 / .06);
  --shadow-lg: 0 40px 80px -30px rgb(5 15 28 / .55), 0 12px 24px -12px rgb(5 15 28 / .25);

  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #071222;
    --surface: #0d1d31;
    --surface-2: #11253d;
    --surface-3: #183150;
    --text: #e8eef7;
    --text-2: #c3cfdf;
    --muted: #93a4ba;
    --line: #1f3653;
    --shadow: 0 10px 30px -12px rgb(0 0 0 / .6), 0 2px 6px rgb(0 0 0 / .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #071222;
  --surface: #0d1d31;
  --surface-2: #11253d;
  --surface-3: #183150;
  --text: #e8eef7;
  --text-2: #c3cfdf;
  --muted: #93a4ba;
  --line: #1f3653;
  --shadow: 0 10px 30px -12px rgb(0 0 0 / .6), 0 2px 6px rgb(0 0 0 / .3);
  color-scheme: dark;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-500); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:root[data-theme="dark"] a, :root:not([data-theme="light"]) a { }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--text); }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 800; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-weight: 700; }
h4 { font-size: 1.02rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--text-2); }
ul, ol { color: var(--text-2); }
strong { color: var(--text); }
code, kbd { font-family: var(--font-mono); font-size: .88em; background: var(--surface-2); border: 1px solid var(--line); padding: .1em .4em; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--sky) 35%, transparent); }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--orange); color: #111; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { left: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--wide { width: min(100% - 2 * var(--gutter), 1360px); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--alt { background: var(--surface-2); }
.section--dark { position: relative; background: var(--grad-hero); color: #e8eef7; isolation: isolate; overflow: hidden; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4, .section--dark strong { color: #fff; }
.section--dark p, .section--dark li { color: #b9c7da; }
.section--dark a:not(.btn) { color: #7dd3fc; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 .78rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-500); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad-accent); }
.section--dark .eyebrow { color: #7dd3fc; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--muted); max-width: 64ch; }
.section--dark .lead { color: #b9c7da; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.gradient-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* ---------------------------------------------------------------- buttons, chips */
.btn {
  --b: var(--surface); --c: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 .98rem/1 var(--font-display); letter-spacing: .01em;
  padding: 15px 24px; border-radius: 999px; border: 1px solid transparent;
  background: var(--b); color: var(--c); cursor: pointer; text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--grad-accent); color: #fff; box-shadow: 0 12px 28px -10px rgb(247 148 29 / .7); }
.btn--primary:hover { box-shadow: 0 18px 36px -12px rgb(247 148 29 / .85); }
.btn--ghost { background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 28%, transparent); }
.btn--ghost:hover { border-color: currentColor; }
.btn--light { background: #fff; color: var(--navy-900); }
.btn--sm { padding: 10px 16px; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); font-size: .82rem; font-weight: 600;
}
.chip--glass { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .16); color: #dbe7f5; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mint) 25%, transparent); }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font: 700 .7rem/1.4 var(--font-display); letter-spacing: .04em; text-transform: uppercase; }
.badge--new { background: color-mix(in srgb, var(--orange) 18%, transparent); color: var(--orange-600); }
.badge--soon { background: color-mix(in srgb, var(--violet) 16%, transparent); color: var(--violet); }
.badge--live { background: color-mix(in srgb, var(--mint) 18%, transparent); color: #0f8a62; }

/* ---------------------------------------------------------------- header / navigation */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: color-mix(in srgb, var(--navy-950) 72%, transparent);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgb(255 255 255 / .08);
  transition: background .25s, box-shadow .25s;
}
.site-header.is-scrolled { background: color-mix(in srgb, var(--navy-950) 90%, transparent); box-shadow: 0 10px 30px -18px rgb(0 0 0 / .8); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff !important; text-decoration: none !important; flex-shrink: 0; }
.brand img { width: 38px; height: 38px; }
.brand-name { font: 800 1.25rem/1 var(--font-display); letter-spacing: -.02em; }
.brand-name span { color: var(--orange); }
.brand-sub { display: block; font: 600 .62rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: #8fb3cf; margin-top: 4px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav > a, .nav-item > button {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 10px;
  color: #d6e2f0; font: 600 .93rem/1 var(--font-display); background: none; border: 0; cursor: pointer; text-decoration: none !important;
}
.nav > a:hover, .nav-item > button:hover, .nav > a[aria-current="page"], .nav-item.is-current > button { color: #fff; background: rgb(255 255 255 / .08); }
.nav-item { position: relative; }
.nav-item > button svg { width: 14px; height: 14px; transition: transform .2s; }
.nav-item.is-open > button svg { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 12px); left: 50%; translate: -50% 0; width: min(880px, 92vw);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.nav-item.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.mega a { display: flex; gap: 12px; padding: 12px; border-radius: 14px; color: var(--text); text-decoration: none !important; }
.mega a:hover { background: var(--surface-2); }
.mega .ico { flex: 0 0 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.mega .ico svg { width: 20px; height: 20px; }
.mega b { display: block; font: 700 .95rem/1.2 var(--font-display); margin-bottom: 3px; }
.mega small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.mega-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 12px 4px; margin-top: 6px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; cursor: pointer;
  background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12); color: #dbe7f5;
}
.icon-btn:hover { background: rgb(255 255 255 / .12); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
.menu-toggle { display: none; }

.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--grad-accent); z-index: 200; }

@media (max-width: 520px) {
  .brand-sub { display: none; }
  .header-inner { gap: 12px; }
  .brand img { width: 34px; height: 34px; }
}
@media (max-width: 1080px) {
  .menu-toggle { display: grid; }
  .header-actions { margin-left: auto; }
  .header-actions .btn { display: none; }
  .nav {
    /* the header's backdrop-filter makes it the containing block: size the panel explicitly to the viewport */
    position: fixed; top: var(--header-h); left: 0; right: 0; height: calc(100dvh - var(--header-h));
    background: var(--navy-950); flex-direction: column; align-items: stretch;
    padding: 16px var(--gutter) 40px; gap: 2px; overflow-y: auto; transform: translateX(100%); visibility: hidden;
    transition: transform .3s ease, visibility 0s linear .3s;
  }
  .nav.is-open { transform: none; visibility: visible; transition: transform .3s ease; }
  .nav > a, .nav-item > button { width: 100%; justify-content: space-between; padding: 16px 12px; font-size: 1.05rem; }
  .mega { position: static; translate: none; width: 100%; grid-template-columns: 1fr; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; margin: 4px 0 10px; }
  .nav-item.is-open .mega { display: grid; }
  .nav .nav-cta { display: inline-flex !important; margin-top: 16px; }
}
.nav .nav-cta { display: none; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(64px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero .lead { color: #c3d2e4; margin-bottom: 30px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 38px; color: #9fb3cb; font-size: .9rem; }
.hero-proof b { display: block; color: #fff; font: 800 1.5rem/1.1 var(--font-display); }
.hero-visual { position: relative; perspective: 1600px; }
.hero-visual .mock { transform: rotateY(-9deg) rotateX(4deg); transition: transform .6s ease; }
.hero-visual:hover .mock { transform: rotateY(-3deg) rotateX(1deg); }
.floating {
  position: absolute; background: rgb(13 29 49 / .82); border: 1px solid rgb(255 255 255 / .14); backdrop-filter: blur(12px);
  border-radius: 16px; padding: 12px 14px; color: #e6eef8; box-shadow: var(--shadow-lg); font-size: .82rem; animation: float 6s ease-in-out infinite;
}
.floating b { font-family: var(--font-display); display: block; font-size: 1.05rem; color: #fff; }
.floating .ok { color: var(--mint); font-weight: 700; }
.floating--a { left: -28px; bottom: 54px; }
.floating--b { right: -18px; top: -22px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }
.glow { position: absolute; inset: auto; width: 520px; height: 520px; border-radius: 50%; filter: blur(80px); opacity: .35; z-index: -1; pointer-events: none; }
.grid-lines { position: absolute; inset: 0; z-index: -1; opacity: .35; pointer-events: none;
  background-image: linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual .mock { transform: none; }
  .floating--a { left: 8px; bottom: -24px; }
  .floating--b { right: 8px; top: -18px; }
}

/* page hero (inner pages) */
.page-hero { padding-block: clamp(56px, 8vw, 96px) clamp(48px, 6vw, 80px); }
.page-hero .hero-grid { grid-template-columns: 1.1fr 1fr; }
.breadcrumbs { font-size: .85rem; color: #8fb3cf; margin-bottom: 18px; }
.breadcrumbs a { color: #b9d6ee; }

/* ---------------------------------------------------------------- strips, stats */
.trust { padding-block: 28px; border-bottom: 1px solid var(--line); background: var(--surface); }
.trust-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 34px; color: var(--muted); font: 700 .95rem/1 var(--font-display); }
.trust-inner span { display: inline-flex; align-items: center; gap: 10px; }
.trust-inner svg { width: 22px; height: 22px; color: var(--brand-500); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.stat b { display: block; font: 800 clamp(2rem, 3.6vw, 2.8rem)/1 var(--font-display); letter-spacing: -.03em; margin-bottom: 8px;
  background: var(--grad-cool); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: .92rem; }
.section--dark .stat { background: rgb(255 255 255 / .05); border-color: rgb(255 255 255 / .1); }
.section--dark .stat span { color: #a9bbd1; }

/* ---------------------------------------------------------------- cards / grids */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--sky) 40%, var(--line)); }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card .ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; margin-bottom: 18px; box-shadow: 0 12px 24px -12px currentColor; }
.card .ico svg { width: 26px; height: 26px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font: 700 .92rem/1 var(--font-display); }
.card-link::after { content: "→"; transition: transform .2s; }
.card:hover .card-link::after { transform: translateX(4px); }
a.card { color: inherit; text-decoration: none !important; display: block; }
.card ul { padding-left: 1.1em; margin: 10px 0 0; }
.card li { margin: 4px 0; }
.section--dark .card { background: rgb(255 255 255 / .045); border-color: rgb(255 255 255 / .1); box-shadow: none; }
.section--dark .card:hover { border-color: rgb(125 211 252 / .45); }

.g-blue { background: linear-gradient(135deg, #0ea5e9, #2563eb); color: #2563eb; }
.g-teal { background: linear-gradient(135deg, #14b8a6, #0d9488); color: #0d9488; }
.g-orange { background: linear-gradient(135deg, #f7941d, #ea580c); color: #ea580c; }
.g-violet { background: linear-gradient(135deg, #a78bfa, #7c3aed); color: #7c3aed; }
.g-rose { background: linear-gradient(135deg, #fb7185, #e11d48); color: #e11d48; }
.g-mint { background: linear-gradient(135deg, #34d399, #059669); color: #059669; }
.g-amber { background: linear-gradient(135deg, #fbbf24, #d97706); color: #d97706; }
.g-navy { background: linear-gradient(135deg, #1d7391, #17395a); color: #17395a; }
.g-sky { background: linear-gradient(135deg, #7dd3fc, #0284c7); color: #0284c7; }
.g-slate { background: linear-gradient(135deg, #94a3b8, #475569); color: #475569; }
.card .ico.g-blue, .card .ico.g-teal, .card .ico.g-orange, .card .ico.g-violet, .card .ico.g-rose, .card .ico.g-mint,
.card .ico.g-amber, .card .ico.g-navy, .card .ico.g-sky, .card .ico.g-slate, .mega .ico { color: #fff; }

/* module card with feature tags */
.module-card { display: flex; flex-direction: column; }
.module-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.module-card .tags span { font-size: .74rem; font-weight: 600; padding: 4px 9px; border-radius: 8px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }
.module-card .card-link { margin-top: auto; padding-top: 18px; }

/* ---------------------------------------------------------------- split feature rows */
.split { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split + .split { margin-top: clamp(64px, 9vw, 120px); }
.split--rev > :first-child { order: 2; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 6px;
  background: color-mix(in srgb, var(--teal) 16%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d9488' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checks.two { grid-template-columns: 1fr 1fr; gap: 10px 24px; }
@media (max-width: 680px) { .checks.two { grid-template-columns: 1fr; } }
.section--dark .checks li::before { background-color: rgb(20 184 166 / .2); }

/* ---------------------------------------------------------------- module page layout with sticky TOC */
.doc-layout { display: grid; grid-template-columns: 250px 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; padding-right: 6px; }
.toc h4 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc a { display: block; padding: 8px 12px; border-left: 2px solid var(--line); color: var(--text-2); font-size: .9rem; text-decoration: none !important; }
.toc a:hover { color: var(--brand-500); border-color: var(--sky); }
.toc a.is-active { color: var(--brand-500); border-color: var(--orange); font-weight: 700; background: linear-gradient(90deg, color-mix(in srgb, var(--orange) 10%, transparent), transparent); }
@media (max-width: 1024px) { .doc-layout { grid-template-columns: 1fr; } .toc { position: static; max-height: none; display: flex; flex-wrap: wrap; gap: 6px; } .toc h4 { width: 100%; } .toc a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; } }
.doc-section { padding-bottom: clamp(48px, 6vw, 80px); margin-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.doc-section:last-child { border-bottom: 0; margin-bottom: 0; }
.doc-section > h2 { display: flex; align-items: center; gap: 14px; }
.doc-section > h2 .num { font: 800 .9rem/1 var(--font-display); color: var(--orange-600); background: color-mix(in srgb, var(--orange) 14%, transparent); padding: 8px 10px; border-radius: 10px; }
.fn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 26px; }
.fn {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px;
  transition: border-color .2s, transform .2s;
}
.fn:hover { border-color: color-mix(in srgb, var(--sky) 50%, var(--line)); transform: translateY(-2px); }
.fn h4 { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.fn h4::before { content: ""; flex: 0 0 8px; height: 8px; border-radius: 3px; background: var(--grad-accent); }
.fn p { font-size: .9rem; margin: 0; color: var(--muted); }

.callout { display: flex; gap: 16px; padding: 20px 22px; border-radius: var(--radius); background: color-mix(in srgb, var(--sky) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--sky) 30%, var(--line)); margin-top: 26px; }
.callout svg { flex: 0 0 24px; height: 24px; color: var(--brand-500); margin-top: 2px; }
.callout p { margin: 0; }
.callout--warm { background: color-mix(in srgb, var(--orange) 9%, var(--surface)); border-color: color-mix(in srgb, var(--orange) 30%, var(--line)); }
.callout--warm svg { color: var(--orange-600); }

/* ---------------------------------------------------------------- tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; width: fit-content; margin: 0 auto 36px; box-shadow: var(--shadow-sm); }
.tabs button { border: 0; background: none; padding: 11px 20px; border-radius: 999px; font: 700 .9rem/1 var(--font-display); color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--navy-900); color: #fff; }
:root[data-theme="dark"] .tabs button[aria-selected="true"] { background: var(--brand-500); }
.tab-panel[hidden] { display: none; }
.tab-panel { animation: fadeUp .45s ease both; }
@media (max-width: 680px) { .tabs { border-radius: 18px; } }

/* ---------------------------------------------------------------- timeline (day in the life) */
.timeline { position: relative; display: grid; gap: 22px; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--sky), var(--orange)); opacity: .5; }
.tl-item { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 20px; }
.tl-time { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font: 800 .8rem/1.1 var(--font-display); color: #fff; text-align: center; box-shadow: var(--shadow); }
.tl-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.tl-body h4 { margin-bottom: 4px; }
.tl-body p { margin: 0; font-size: .94rem; }
.section--dark .tl-body { background: rgb(255 255 255 / .05); border-color: rgb(255 255 255 / .1); }

/* ---------------------------------------------------------------- pipeline (pricing engine, audit steps) */
.pipeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; counter-reset: step; }
.pipe { position: relative; padding: 18px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); counter-increment: step; }
.pipe::before { content: counter(step, decimal-leading-zero); display: block; font: 800 .8rem/1 var(--font-display); color: var(--orange-600); margin-bottom: 10px; }
.pipe h4 { font-size: .95rem; margin-bottom: 4px; }
.pipe p { font-size: .82rem; margin: 0; color: var(--muted); }
.section--dark .pipe { background: rgb(255 255 255 / .05); border-color: rgb(255 255 255 / .1); }
.section--dark .pipe p { color: #9fb3cb; }

/* ---------------------------------------------------------------- FAQ */
.faq { display: grid; gap: 12px; max-width: 900px; margin-inline: auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--sky) 45%, var(--line)); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative; font: 700 1.03rem/1.4 var(--font-display); color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--brand-500); font-size: 1.2rem; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-bottom: 20px; color: var(--text-2); }

/* ---------------------------------------------------------------- CTA band */
.cta-band { position: relative; border-radius: 32px; padding: clamp(36px, 6vw, 72px); background: var(--grad-hero); color: #fff; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c3d2e4; }
.cta-band .btn-row { justify-content: flex-end; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } .cta-band .btn-row { justify-content: flex-start; } }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--navy-950); color: #9fb3cb; padding-top: 72px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #b9cde3; display: block; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.site-footer p { color: #9fb3cb; }
.footer-contact { display: grid; gap: 10px; margin-top: 18px; }
.footer-contact div { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { flex: 0 0 18px; height: 18px; color: var(--orange); margin-top: 3px; }
.footer-contact a { display: inline; padding: 0; }
.footer-bottom { margin-top: 56px; padding-block: 24px; border-top: 1px solid rgb(255 255 255 / .08); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .85rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; border-radius: 14px; border: 0; cursor: pointer; background: var(--grad-accent); color: #fff; box-shadow: var(--shadow); display: grid; place-items: center; opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s; }
.to-top.is-visible { opacity: 1; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- reveal animation */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =====================================================================================
   PRODUCT MOCK SCREENS (HTML/CSS illustrations of the real application UI)
   ===================================================================================== */
.mock {
  --m-bg: #f4f7fb; --m-side: #0f2338; --m-line: #e1e8f1; --m-text: #1b2a3b; --m-muted: #6a7b90;
  position: relative; border-radius: 18px; overflow: hidden; background: var(--m-bg); color: var(--m-text);
  box-shadow: var(--shadow-lg); border: 1px solid rgb(255 255 255 / .14); font-family: "Roboto", var(--font-body); font-size: 11px; line-height: 1.35;
  container-type: inline-size;
}
.mock-chrome { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; background: #e9eef5; border-bottom: 1px solid var(--m-line); }
.mock-chrome i { width: 11px; height: 11px; border-radius: 50%; background: #fe5f57; }
.mock-chrome i:nth-child(2) { background: #febc2e; }
.mock-chrome i:nth-child(3) { background: #28c840; }
.mock-url { flex: 1; margin-left: 10px; height: 20px; border-radius: 7px; background: #fff; border: 1px solid var(--m-line); color: #7b8ba0; font-size: 10px; display: flex; align-items: center; padding: 0 10px; gap: 6px; }
.mock-url::before { content: "🔒"; font-size: 9px; }
.mock-top { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; background: linear-gradient(90deg, #0b2a4a, #12406b); color: #fff; }
.mock-top b { font-size: 13px; letter-spacing: -.01em; }
.mock-top .prop { font-size: 10px; opacity: .85; }
.mock-top .bd { margin-left: 6px; background: #f7941d; color: #fff; font-weight: 700; font-size: 9.5px; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.mock-top .prop { white-space: nowrap; }
.mpanel { overflow: hidden; }
.mock-top .srch { margin-left: auto; width: 34%; height: 20px; border-radius: 6px; background: rgb(255 255 255 / .92); }
.mock-top .av { width: 20px; height: 20px; border-radius: 50%; background: #f6c453; }
.mock-body { display: grid; grid-template-columns: 132px 1fr; min-height: 300px; }
.mock-side { background: var(--m-side); padding: 12px 8px; display: grid; align-content: start; gap: 4px; }
.mock-side span { display: flex; align-items: center; gap: 7px; height: 22px; padding: 0 8px; border-radius: 7px; color: #9fb5cc; font-size: 9.5px; white-space: nowrap; overflow: hidden; }
.mock-side span::before { content: ""; flex: 0 0 12px; height: 12px; border-radius: 4px; background: rgb(255 255 255 / .16); }
.mock-side span.on { background: rgb(56 189 248 / .16); color: #fff; }
.mock-side span.on::before { background: #38bdf8; }
.mock-side em { font-style: normal; font-size: 8px; letter-spacing: .14em; color: #5f7a96; padding: 8px 8px 2px; }
.mock-main { padding: 14px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.mock-h { display: flex; align-items: center; gap: 8px; }
.mock-h b { font-size: 14px; font-weight: 700; }
.mock-h .sp { margin-left: auto; }
.mbtn { display: inline-block; padding: 4px 9px; border-radius: 6px; background: #1f5468; color: #fff; font-size: 9.5px; font-weight: 700; }
.mbtn.o { background: #f7941d; }
.mbtn.l { background: #fff; color: #1f5468; border: 1px solid #b9cbdc; }
.mpanel { background: #fff; border: 1px solid var(--m-line); border-radius: 10px; padding: 10px; min-width: 0; }
.mpanel h5 { margin: 0 0 8px; font-size: 10.5px; font-weight: 700; color: var(--m-text); display: flex; justify-content: space-between; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kpi { background: #fff; border: 1px solid var(--m-line); border-radius: 10px; padding: 9px 10px; }
.kpi small { display: block; color: var(--m-muted); font-size: 8.5px; text-transform: uppercase; letter-spacing: .06em; }
.kpi b { display: block; font-size: 17px; font-weight: 800; margin-top: 3px; }
.kpi i { font-style: normal; font-size: 9px; color: #059669; font-weight: 700; }
.kpi i.dn { color: #e11d48; }
.mt { width: 100%; border-collapse: collapse; font-size: 9.5px; }
.mt th { text-align: left; font-weight: 700; color: #fff; background: #1d2b3c; padding: 5px 6px; white-space: nowrap; }
.mt th:first-child { border-radius: 6px 0 0 6px; } .mt th:last-child { border-radius: 0 6px 6px 0; }
.mt td { padding: 5px 6px; border-bottom: 1px solid #eef2f7; white-space: nowrap; }
.mt td.r, .mt th.r { text-align: right; }
.mt tr.sel td { background: #e8f4fd; }
.st { display: inline-block; padding: 1px 6px; border-radius: 999px; font-size: 8px; font-weight: 700; }
.st.in { background: #dcfce7; color: #047857; } .st.ar { background: #dbeafe; color: #1d4ed8; } .st.out { background: #f1f5f9; color: #475569; }
.st.due { background: #ffedd5; color: #c2410c; } .st.vip { background: #fef3c7; color: #b45309; } .st.cx { background: #ffe4e6; color: #be123c; }
.rooms { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
.room { height: 30px; border-radius: 7px; display: grid; place-items: center; font-weight: 700; font-size: 9.5px; color: #fff; }
.room.vc { background: #10b981; } .room.oc { background: #2563eb; } .room.dt { background: #f59e0b; } .room.oo { background: #64748b; }
.room.ip { background: #8b5cf6; } .room.ar { background: #0ea5e9; } .room.do { background: #ef4444; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 8.5px; color: var(--m-muted); }
.legend span { display: inline-flex; align-items: center; gap: 4px; }
.legend span::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.heat { display: grid; grid-template-columns: 44px repeat(14, 1fr); gap: 3px; font-size: 8.5px; align-items: center; }
.heat b { font-weight: 700; color: var(--m-muted); }
.heat i { height: 18px; border-radius: 4px; display: grid; place-items: center; font-style: normal; font-weight: 700; color: #0f2338; font-size: 8px; }
.h1 { background: #d1fae5; } .h2 { background: #a7f3d0; } .h3 { background: #fde68a; } .h4 { background: #fdba74; } .h5 { background: #fca5a5; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 90px; padding-top: 6px; }
.bars span { flex: 1; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #38bdf8, #1d7391); height: var(--h); position: relative; }
.bars span.o { background: linear-gradient(180deg, #fdba74, #f7941d); }
.steps { display: grid; gap: 5px; }
.stepr { display: grid; grid-template-columns: 16px 1fr auto; gap: 8px; align-items: center; padding: 5px 8px; border-radius: 7px; background: #f8fafc; border: 1px solid #eef2f7; font-size: 9.5px; }
.stepr i { width: 14px; height: 14px; border-radius: 50%; background: #10b981; display: grid; place-items: center; color: #fff; font-style: normal; font-size: 8px; }
.stepr.run i { background: #f7941d; animation: pulse 1.4s infinite; }
.stepr.wait i { background: #cbd5e1; }
.stepr small { color: var(--m-muted); }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgb(247 148 29 / .25); } }
.progress { height: 7px; border-radius: 99px; background: #e2e8f0; overflow: hidden; }
.progress span { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, #38bdf8, #14b8a6); border-radius: 99px; }
.mform { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.mfield { border: 1px solid #c9d6e4; border-radius: 6px; padding: 4px 7px 5px; background: #fff; }
.mfield small { display: block; font-size: 7.5px; color: var(--m-muted); }
.mfield b { font-size: 10px; font-weight: 600; }
.chipsm { display: inline-block; padding: 2px 7px; border-radius: 99px; background: #eef2f7; font-size: 8.5px; font-weight: 600; margin: 0 3px 3px 0; }
.mgrid2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.mgrid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sum { display: grid; gap: 3px; font-size: 9.5px; }
.sum div { display: flex; justify-content: space-between; }
.sum .t { border-top: 1px solid #e2e8f0; padding-top: 4px; margin-top: 3px; font-weight: 800; font-size: 11px; }
.price { font-weight: 800; font-size: 11px; }
.cell-sel { outline: 2px solid #f7941d; border-radius: 4px; background: #fff7ed; }
.flowline { display: flex; align-items: center; gap: 6px; font-size: 9px; }
.flowline span { padding: 4px 8px; border-radius: 6px; background: #eef2f7; font-weight: 700; }
.flowline em { color: #94a3b8; font-style: normal; }
@container (max-width: 560px) {
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .mgrid2, .mgrid3 { grid-template-columns: 1fr; }
  .rooms { grid-template-columns: repeat(6, 1fr); }
  .mform { grid-template-columns: repeat(2, 1fr); }
  .heat { grid-template-columns: 40px repeat(7, 1fr); }
  .heat i:nth-of-type(n+8) { display: none; }
}
.mock-wrap { position: relative; }
.mock-caption { margin-top: 14px; font-size: .85rem; color: var(--muted); text-align: center; }

/* ---------------------------------------------------------------- video gallery */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 24px; }
.video-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.video-thumb { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; color: #fff; border: 0; cursor: pointer; width: 100%; padding: 0; font: inherit; }
.video-thumb::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 220px at 20% 0%, rgb(255 255 255 / .22), transparent 60%), linear-gradient(0deg, rgb(5 15 28 / .55), transparent 60%); }
.video-thumb .play { position: relative; width: 70px; height: 70px; border-radius: 50%; background: rgb(255 255 255 / .18); border: 1px solid rgb(255 255 255 / .4); backdrop-filter: blur(6px); display: grid; place-items: center; transition: transform .25s, background .25s; }
.video-thumb .play svg { width: 28px; height: 28px; margin-left: 4px; }
.video-card:hover .play { transform: scale(1.08); background: rgb(247 148 29 / .85); }
.video-thumb .vt-label { position: absolute; left: 16px; bottom: 14px; right: 16px; text-align: left; font: 800 1.08rem/1.25 var(--font-display); text-shadow: 0 2px 10px rgb(0 0 0 / .4); }
.video-thumb .vt-len { position: absolute; top: 12px; right: 12px; font: 700 .72rem/1 var(--font-display); background: rgb(0 0 0 / .45); padding: 6px 8px; border-radius: 8px; }
.video-thumb .vt-status { position: absolute; top: 12px; left: 12px; }
.video-thumb .vt-status .badge { background: rgb(255 255 255 / .94); color: #6d28d9; box-shadow: 0 4px 12px rgb(0 0 0 / .2); }
.video-thumb .vt-status .badge--live { color: #047857; }
.video-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.video-body h3 { font-size: 1.12rem; margin-bottom: 8px; }
.video-body p { font-size: .92rem; }
.video-body .chapters { margin: 6px 0 14px; padding: 0; list-style: none; display: grid; gap: 4px; font-size: .84rem; color: var(--muted); }
.video-body .chapters li { display: grid; grid-template-columns: 48px 1fr; gap: 6px; }
.video-body .chapters b { font-family: var(--font-mono); font-weight: 600; color: var(--brand-500); font-size: .8rem; }
.video-body .meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.video-link-slot { margin-top: 14px; padding: 10px 12px; border: 1px dashed color-mix(in srgb, var(--orange) 55%, var(--line)); border-radius: 12px; font-size: .8rem; color: var(--muted); background: color-mix(in srgb, var(--orange) 6%, transparent); }
.video-link-slot code { font-size: .78rem; }
.video-link-slot.has-link { border-style: solid; border-color: color-mix(in srgb, var(--mint) 50%, var(--line)); background: color-mix(in srgb, var(--mint) 8%, transparent); }

.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; background: rgb(3 9 18 / .78); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal-box { width: min(1040px, 100%); background: var(--navy-900); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgb(255 255 255 / .1); transform: scale(.96); transition: transform .25s; }
.modal.is-open .modal-box { transform: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; color: #fff; font: 700 1rem/1.3 var(--font-display); }
.modal-head button { background: rgb(255 255 255 / .1); border: 0; color: #fff; width: 38px; height: 38px; border-radius: 10px; cursor: pointer; font-size: 1.3rem; }
.modal-media { aspect-ratio: 16 / 9; background: #000; display: grid; place-items: center; }
.modal-media iframe, .modal-media video { width: 100%; height: 100%; border: 0; display: block; }
.modal-empty { text-align: center; color: #c3d2e4; padding: 30px; max-width: 560px; }
.modal-empty h3 { color: #fff; }

/* ---------------------------------------------------------------- feature catalog */
.catalog-tools { position: sticky; top: var(--header-h); z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); padding-block: 16px; border-bottom: 1px solid var(--line); }
.search-box { position: relative; max-width: 640px; }
.search-box svg { position: absolute; left: 18px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; color: var(--muted); }
.search-box input { width: 100%; padding: 16px 18px 16px 52px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 500 1rem var(--font-body); box-shadow: var(--shadow-sm); }
.search-box input:focus { outline: 3px solid var(--ring); border-color: transparent; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.filter-chips button { border: 1px solid var(--line); background: var(--surface); color: var(--text-2); padding: 7px 13px; border-radius: 999px; font: 600 .82rem/1 var(--font-body); cursor: pointer; }
.filter-chips button[aria-pressed="true"] { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
:root[data-theme="dark"] .filter-chips button[aria-pressed="true"] { background: var(--brand-500); border-color: var(--brand-500); }
.catalog-count { margin-top: 12px; font-size: .88rem; color: var(--muted); }
.cat-group { margin-top: 48px; }
.cat-group[hidden] { display: none; }
.cat-group > header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.cat-group > header .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.cat-group > header .ico svg { width: 22px; height: 22px; }
.cat-group > header h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin: 0; }
.cat-group > header a { margin-left: auto; font: 700 .88rem var(--font-display); }
.cat-sub { margin-top: 22px; }
.cat-sub h3 { font-size: 1rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.cat-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.cat-item { padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.cat-item[hidden] { display: none; }
.cat-item b { display: block; font: 700 .95rem/1.3 var(--font-display); color: var(--text); margin-bottom: 3px; }
.cat-item span { font-size: .86rem; color: var(--muted); }
mark { background: color-mix(in srgb, var(--amber) 45%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }
.no-results { text-align: center; padding: 60px 20px; color: var(--muted); }

/* ---------------------------------------------------------------- comparison / tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
.table th, .table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font: 700 .78rem/1.2 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { font-weight: 600; color: var(--text); }

/* ---------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { display: flex; gap: 16px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.contact-card .ico { flex: 0 0 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.contact-card .ico svg { width: 22px; height: 22px; }
.contact-card h4 { margin-bottom: 2px; }
.contact-card p { margin: 0; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font: 700 .84rem/1.3 var(--font-display); margin-bottom: 6px; color: var(--text); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 500 .95rem var(--font-body); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--ring); border-color: transparent; }
.field .err { display: none; color: var(--rose); font-size: .8rem; margin-top: 4px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--rose); }
.field.invalid .err { display: block; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.check-list label { display: flex; gap: 8px; align-items: center; font: 500 .9rem var(--font-body); }
@media (max-width: 600px) { .check-list { grid-template-columns: 1fr; } }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 14px; }
.form-success { display: none; padding: 18px; border-radius: 14px; background: color-mix(in srgb, var(--mint) 14%, transparent); border: 1px solid color-mix(in srgb, var(--mint) 40%, transparent); margin-top: 16px; }
.form-success.is-shown { display: block; }

/* ---------------------------------------------------------------- misc */
.arch { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 860px) { .arch { grid-template-columns: repeat(2, 1fr); } }
.arch-layer { padding: 20px; border-radius: var(--radius); border: 1px solid rgb(255 255 255 / .12); background: rgb(255 255 255 / .05); }
.arch-layer h4 { color: #fff; margin-bottom: 6px; }
.arch-layer p { font-size: .86rem; margin: 0; }
.arch-layer .tagline { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.roadmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.roadmap .card { padding: 22px; }
.roadmap .card h4 { margin: 10px 0 6px; }
.roadmap .card p { font-size: .9rem; }
.quote-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .quote-strip { grid-template-columns: 1fr; } }
.persona { padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.persona .who { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.persona .who .av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 800 1rem var(--font-display); }
.persona .who b { display: block; font-family: var(--font-display); }
.persona .who small { color: var(--muted); }
.kbd-list { display: flex; flex-wrap: wrap; gap: 8px; }
.anchor-offset { scroll-margin-top: calc(var(--header-h) + 20px); }
