@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/inter-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/inter-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/inter-500-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/inter-500-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/inter-600-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/inter-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/inter-700-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/inter-700-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
/* ==========================================================================
   JiraSoft design system v2
   Jasny, spokojny styl premium. Wszystkie wartości pochodzą z tokenów.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* colour */
  --ink: #0b1220;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e5e8ee;
  --line-strong: #d3d9e2;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-tint: #f0f6fb;
  --brand: #006eac;
  --brand-hover: #005a8e;
  --brand-soft: #e6f2fa;
  --brand-bright: #3fb5e8;
  --ok: #0f8a5f;
  --ok-soft: #e7f6ef;
  --err: #b42318;
  --err-soft: #fdecea;
  --on-dark: #e6ebf2;
  --on-dark-muted: #9aa7b8;

  /* type */
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fs-xs: 0.8125rem;   /* 13 */
  --fs-sm: 0.9375rem;   /* 15 */
  --fs-base: 1rem;      /* 16 */
  --fs-md: 1.125rem;    /* 18 */
  --fs-lg: 1.25rem;     /* 20 */
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
  --fs-h1: clamp(2rem, 1.4rem + 2.8vw, 3.5rem);
  --fs-display: clamp(2.375rem, 1.3rem + 3.4vw, 3.75rem);

  /* space */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --section: clamp(64px, 5vw + 32px, 112px);
  --gutter: clamp(16px, 4vw, 32px);
  --max: 1200px;
  --max-text: 720px;

  /* shape */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.06);
  --shadow-md: 0 1px 2px rgba(11, 18, 32, 0.04), 0 8px 24px rgba(11, 18, 32, 0.07);
  --shadow-lg: 0 2px 4px rgba(11, 18, 32, 0.04), 0 24px 56px rgba(11, 18, 32, 0.12);
  --ring: 0 0 0 3px rgba(0, 110, 172, 0.25);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -0.01em; }
h4 { font-size: var(--fs-base); }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brand-soft); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; color: #fff; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: calc(880px + 2 * var(--gutter)); }
.sec { padding-block: var(--section); }
.sec:not(.sec-soft) + .sec:not(.sec-soft) { padding-top: 0; }
.sec-soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.sec-soft + .sec-soft { border-top: 0; padding-top: 0; }
.sec-tight { padding-block: var(--s-8); }

.sec-head { max-width: 760px; margin-bottom: var(--s-7); }
.sec-head h2 { margin-top: var(--s-3); }
.sec-head .lead { margin-top: var(--s-4); }
.sec-head-center { margin-inline: auto; text-align: center; }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-5); max-width: none; }
.sec-head-row > div { max-width: 760px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: currentColor; opacity: 0.7; }
.eyebrow-plain::before { display: none; }
.lead { font-size: var(--fs-md); line-height: 1.65; color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }

.grid { display: grid; gap: var(--s-5); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-2 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.cols-3 > :last-child:nth-child(3n+1) { grid-column: 1 / -1; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); align-items: start; }
.split-wide { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split-side { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-7); }
.split-center { align-items: center; }
.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-6); }
@media (max-width: 1024px) {
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split-wide, .split-side { grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }
  .sec-head-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: minmax(0, 1fr); }
  .sec-head { margin-bottom: var(--s-6); }
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  font-size: var(--fs-sm); font-weight: 600; line-height: 1; white-space: nowrap; cursor: pointer;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease);
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(0, 60, 100, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1c2638; color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--bg-tint); color: var(--ink); }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.btn-ghost-light:hover { border-color: #fff; color: #fff; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: var(--fs-xs); border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: var(--fs-sm); color: var(--brand); }
.link-arrow::after { content: '→'; transition: transform .15s var(--ease); }
a:hover .link-arrow::after, .link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Chips / tags ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chip {
  display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: #fff;
  font-size: var(--fs-xs); font-weight: 500; color: var(--ink-2); line-height: 1.2;
}
a.chip { color: var(--ink-2); transition: border-color .15s, color .15s; }
a.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip-brand { background: var(--brand-soft); border-color: transparent; color: var(--brand); font-weight: 600; }
.tag { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.02em; color: var(--brand); }

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-5); background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  color: var(--ink-2);
}
.card h2, .card h3 { font-size: var(--fs-lg); line-height: 1.3; letter-spacing: -0.01em; }
.card p { font-size: var(--fs-sm); line-height: 1.6; color: var(--ink-2); }
.card .card-foot { margin-top: auto; padding-top: var(--s-2); }
.card-num { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.card-link { transition: border-color .15s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); color: inherit; }
.card-link:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); color: inherit; }
.card-soft { background: var(--bg-soft); }
.card p strong { color: var(--ink); font-weight: 600; }
.card .impact { font-size: var(--fs-xs); font-weight: 600; color: var(--ok); }
.card > .shot:first-child { margin-bottom: var(--s-2); }
.card-sm { padding: var(--s-4) var(--s-5); gap: 6px; }
.card-sm h3 { font-size: var(--fs-base); }
.label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.card-plain { border: 0; padding: 0; background: none; }
.card-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-soft); color: var(--brand); }
.card-icon svg { width: 20px; height: 20px; }
.card-lg { padding: var(--s-6); border-radius: var(--r-lg); }

/* feature list separated by lines (for "who / why" sections) */
.rows { display: grid; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--s-4); padding-block: var(--s-5); border-bottom: 1px solid var(--line); }
.row .card-num { padding-top: 4px; }
.row h3 { font-size: var(--fs-md); }
.row p { margin-top: 6px; font-size: var(--fs-sm); }

/* ---------- Screenshot frame ---------- */
.shot {
  position: relative; overflow: hidden; border-radius: 12px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.shot::before {
  content: ''; display: block; height: 26px; border-bottom: 1px solid var(--line);
  background: #f8f9fb radial-gradient(circle at 14px 13px, #e3e6ec 4px, transparent 4.5px), radial-gradient(circle at 28px 13px, #e3e6ec 4px, transparent 4.5px), radial-gradient(circle at 42px 13px, #e3e6ec 4px, transparent 4.5px);
  background-color: #f8f9fb;
}
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.shot-flat { box-shadow: none; }

/* case / product card with image */
.case { display: flex; flex-direction: column; gap: var(--s-4); color: inherit; }
.case .shot { box-shadow: var(--shadow-sm); transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.case:hover .shot { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.case h2, .case h3 { font-size: var(--fs-lg); line-height: 1.3; letter-spacing: -0.01em; }
.grid-loose { row-gap: var(--s-8); }
.case p { font-size: var(--fs-sm); color: var(--ink-2); }
.case:hover { color: inherit; }
.case-body { display: grid; gap: 6px; }

/* ---------- Header ---------- */
.site-hdr { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-hdr.is-scrolled, .site-hdr.is-open { border-bottom-color: var(--line); }
.hdr-row { display: flex; align-items: center; gap: var(--s-6); height: 68px; }
.hdr-logo { flex: none; display: inline-flex; }
.hdr-logo img { width: 116px; height: auto; }
.nav { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.nav a { position: relative; padding: 8px 12px; border-radius: 8px; font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); }
.nav a:hover { color: var(--ink); background: var(--bg-soft); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav a[aria-current="page"]::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--brand); }
.hdr-right { display: flex; align-items: center; gap: var(--s-3); }
.lang { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; }
.lang a { padding: 4px 8px; border-radius: 6px; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.lang a:hover { color: var(--ink); }
.lang a.is-active { background: var(--ink); color: #fff; }
.burger { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; }
.burger svg { width: 20px; height: 20px; }
.mob-menu { border-top: 1px solid var(--line); background: #fff; }
.mob-nav { display: grid; gap: 2px; padding: var(--s-4) var(--gutter) var(--s-5); }
.mob-nav > a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: var(--fs-md); font-weight: 500; color: var(--ink); }
.mob-nav > a[aria-current="page"] { color: var(--brand); }
.mob-nav .lang { justify-self: start; margin-block: var(--s-4); }
@media (max-width: 1080px) {
  .nav, .hdr-cta { display: none; }
  .burger { display: inline-flex; }
  .hdr-row { justify-content: space-between; }
}
@media (max-width: 480px) { .hdr-right .lang { display: none; } }

/* ---------- Home hero ---------- */
.hero { position: relative; padding-block: clamp(48px, 6vw, 96px) var(--section); overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 620px; z-index: -1;
  background:
    radial-gradient(60% 70% at 85% 0%, rgba(63, 181, 232, 0.14), transparent 70%),
    radial-gradient(50% 60% at 0% 10%, rgba(0, 110, 172, 0.07), transparent 70%),
    linear-gradient(180deg, var(--bg-tint), #fff 90%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: var(--fs-display); margin-top: var(--s-4); }
.hero h1 .accent { color: var(--brand); }
.hero .lead { margin-top: var(--s-5); max-width: 560px; }
.hero .actions { margin-top: var(--s-6); }
.hero-visual { position: relative; min-height: 420px; }
.hero-visual .shot { position: absolute; }
.hero-visual .shot:nth-child(1) { width: 88%; right: 0; top: 0; z-index: 2; }
.hero-visual .shot:nth-child(2) { width: 58%; left: 0; bottom: 0; z-index: 3; }
.hero-visual .shot:nth-child(3) { width: 46%; right: 4%; bottom: -6%; z-index: 1; opacity: .9; }
.hero-badge {
  position: absolute; z-index: 4; left: 4%; top: 12%;
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md);
  font-size: var(--fs-xs); color: var(--ink-2);
}
.hero-badge strong { display: block; color: var(--ink); font-size: var(--fs-sm); }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { min-height: 0; aspect-ratio: 16 / 11; }
}
@media (max-width: 640px) {
  .hero-visual .shot:nth-child(3), .hero-badge { display: none; }
  .hero-visual .shot:nth-child(1) { width: 92%; }
  .hero-visual .shot:nth-child(2) { width: 62%; }
}

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.stat strong { display: block; font-size: clamp(1.5rem, 1rem + 1.4vw, 2rem); font-weight: 650; letter-spacing: -0.02em; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 4px; font-size: var(--fs-xs); color: var(--muted); }
.stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats-sm { margin-top: var(--s-5); gap: var(--s-3); }
.stats-sm .stat strong { font-size: var(--fs-lg); }
@media (max-width: 640px) { .stats, .stats-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* references strip */
.refs { display: grid; grid-template-columns: auto repeat(5, minmax(0, 1fr)); align-items: center; gap: var(--s-4) var(--s-5); }
@media (max-width: 1024px) { .refs { grid-template-columns: repeat(3, minmax(0, 1fr)); } .refs-label { grid-column: 1 / -1; } }
@media (max-width: 520px) { .refs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.refs-label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-right: var(--s-2); }
.ref { display: flex; flex-direction: column; }
.ref b { font-size: var(--fs-md); font-weight: 650; color: var(--ink); letter-spacing: -0.01em; }
.ref small { font-size: var(--fs-xs); color: var(--muted); }
.refs-bar { padding-block: var(--s-6); border-block: 1px solid var(--line); }

/* ---------- Subpage hero ---------- */
.phero { position: relative; padding-block: clamp(40px, 5vw, 80px) clamp(48px, 5vw, 80px); background: linear-gradient(180deg, var(--bg-tint), #fff); border-bottom: 1px solid var(--line); }
.phero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 5vw, 72px); align-items: center; }
.phero-grid-solo { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.phero h1 { margin-top: var(--s-4); }
.phero .lead { margin-top: var(--s-5); max-width: 680px; }
.phero .actions { margin-top: var(--s-6); }
.phero .chips { margin-top: var(--s-5); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font-size: var(--fs-xs); color: var(--muted); margin-bottom: var(--s-5); }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
@media (max-width: 1024px) { .phero-grid { grid-template-columns: minmax(0, 1fr); } }

/* side panel (hero aside, sticky sidebar) */
.panel { padding: var(--s-5); background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-md); }
.panel-soft { background: var(--bg-soft); box-shadow: none; }
.panel-title { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-4); }
.panel h2, .panel h3 { font-size: var(--fs-lg); }
.panel p { font-size: var(--fs-sm); margin-top: var(--s-2); }
.panel .btn { margin-top: var(--s-4); }
.sticky { position: sticky; top: 92px; }
@media (max-width: 1024px) { .sticky { position: static; } }
.panel + .panel { margin-top: var(--s-4); }

.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-size: var(--fs-sm); color: var(--ink); font-weight: 500; line-height: 1.45; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006eac' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.ticks-lg li { font-size: var(--fs-base); }
.ticks-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px var(--s-5); }
@media (max-width: 640px) { .ticks-cols { grid-template-columns: minmax(0, 1fr); } }

.facts { list-style: none; display: grid; }
.facts li { display: grid; gap: 2px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.facts li:first-child { padding-top: 0; }
.facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.facts strong { font-size: var(--fs-sm); color: var(--ink); font-weight: 650; }
.facts span { font-size: var(--fs-xs); color: var(--muted); line-height: 1.45; }
.kv { display: grid; gap: 0; }
.kv > div { display: flex; justify-content: space-between; gap: var(--s-4); padding-block: 10px; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.kv > div:last-child { border-bottom: 0; }
.kv dt, .kv .k { color: var(--muted); }
.kv dd, .kv .v { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }

/* ---------- Content sections ---------- */
.block + .block { margin-top: var(--s-8); }
.block > h2 { font-size: clamp(1.5rem, 1.15rem + 1.1vw, 2rem); }
.block > p { margin-top: var(--s-4); font-size: var(--fs-md); line-height: 1.7; }
.block .grid, .block .steps, .block .faq, .block .ticks, .block .rows { margin-top: var(--s-6); }
.block > .grid:first-child { margin-top: 0; }

.steps { display: grid; gap: var(--s-5); counter-reset: step; }
.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps-auto { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.step { position: relative; padding-top: var(--s-5); border-top: 2px solid var(--line); }
.step::before { content: ''; position: absolute; top: -2px; left: 0; width: 40px; height: 2px; background: var(--brand); }
.step .card-num { display: block; margin-bottom: var(--s-3); color: var(--brand); }
.step h3 { font-size: var(--fs-md); }
.step p { margin-top: var(--s-2); font-size: var(--fs-sm); }
@media (max-width: 1024px) { .steps-3, .steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .steps-3, .steps-4 { grid-template-columns: minmax(0, 1fr); } }
.steps-list .step { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s-4); padding-top: var(--s-5); }
.steps-list .step .card-num { margin: 0; padding-top: 3px; }

/* FAQ */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; display: block; padding: var(--s-5) 48px var(--s-5) 0; cursor: pointer; list-style: none;
  font-size: var(--fs-md); font-weight: 600; color: var(--ink); line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 4px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1220' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: var(--s-5); max-width: 760px; font-size: var(--fs-base); color: var(--ink-2); line-height: 1.7; }

/* CTA band (light, brand tint) */
.cta {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-6); align-items: center;
  padding: clamp(32px, 5vw, 56px); border-radius: var(--r-lg); background: var(--bg-tint); border: 1px solid #d7e8f4; color: var(--ink-2);
}
.cta::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 120% at 100% 0%, rgba(63, 181, 232, 0.16), transparent 60%);
}
.cta > * { position: relative; }
.cta h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); }
.cta p { margin-top: var(--s-3); font-size: var(--fs-md); max-width: 640px; }
.cta .actions { justify-content: flex-end; }
.cta-meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--muted); }
.cta-meta span::before { content: '✓'; margin-right: 8px; color: var(--brand); font-weight: 700; }
@media (max-width: 860px) { .cta { grid-template-columns: minmax(0, 1fr); } .cta .actions { justify-content: flex-start; } }

/* callout (light) */
.callout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-5); align-items: center; padding: var(--s-6); border-radius: var(--r-md); background: var(--bg-tint); border: 1px solid #d7e8f4; }
a.callout { color: inherit; transition: border-color .15s, box-shadow .2s; }
a.callout:hover { color: inherit; border-color: #bcd8ec; box-shadow: var(--shadow-md); }
.callout h2, .callout h3 { font-size: var(--fs-lg); }
.callout p { margin-top: 6px; font-size: var(--fs-sm); }
@media (max-width: 760px) { .callout { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Article / prose ---------- */
.article-head { max-width: 780px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: var(--s-5); font-size: var(--fs-sm); color: var(--muted); }
.article-meta span + span::before { content: '·'; margin-right: 16px; color: var(--line-strong); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s-8); align-items: start; }
@media (max-width: 1024px) { .article-layout { grid-template-columns: minmax(0, 1fr); } }
.prose { max-width: var(--max-text); font-size: 1.0625rem; line-height: 1.78; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose > :first-child { margin-top: 0; }
.card.prose { max-width: none; font-size: var(--fs-base); }
.card.prose h2 { font-size: var(--fs-lg); }
.prose h2 { margin-top: 2em; font-size: 1.625rem; line-height: 1.25; }
.prose h3 { margin-top: 1.6em; font-size: 1.25rem; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose a { text-decoration: underline; text-decoration-color: rgba(0, 110, 172, 0.35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--brand); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose blockquote { margin-inline: 0; padding: var(--s-4) var(--s-5); border-left: 3px solid var(--brand); background: var(--bg-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink); }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 0.9em; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.prose pre { overflow-x: auto; padding: var(--s-5); border-radius: var(--r-md); background: var(--ink); color: var(--on-dark); font-size: var(--fs-sm); }
.prose pre code { padding: 0; background: none; border: 0; color: inherit; }
.prose img { border-radius: var(--r-md); border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; background: var(--bg-soft); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.toc { list-style: none; display: grid; gap: 2px; font-size: var(--fs-sm); }
.toc a { display: block; padding: 6px 0 6px 12px; border-left: 2px solid var(--line); color: var(--ink-2); line-height: 1.4; }
.toc a:hover { border-left-color: var(--brand); color: var(--ink); }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--s-4); }
.field { display: grid; gap: 6px; }
.field > span { font-size: var(--fs-xs); font-weight: 600; color: var(--ink); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
@media (max-width: 640px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.form input, .form select, .form textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff;
  font-size: var(--fs-sm); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.form textarea { min-height: 132px; resize: vertical; line-height: 1.5; }
.form select { appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat; }
.form input::placeholder, .form textarea::placeholder { color: #98a2b3; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.form-note { font-size: var(--fs-xs); color: var(--muted); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.flash { padding: 12px 14px; border-radius: 10px; font-size: var(--fs-sm); font-weight: 500; }
.flash-success { background: var(--ok-soft); color: var(--ok); }
.flash-error { background: var(--err-soft); color: var(--err); }
.contact-submit.is-sending { opacity: .75; }
.contact-submit.is-sent { background: var(--ok); }
.form-card { padding: clamp(24px, 3vw, 36px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.form-card h2, .form-card h3 { font-size: var(--fs-lg); }
.form-card > p { margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--muted); }
.form-card .form { margin-top: var(--s-5); }

/* contact details list */
.contact-list { list-style: none; display: grid; gap: var(--s-4); }
.contact-list a, .contact-list strong { font-size: var(--fs-md); font-weight: 600; color: var(--ink); }
.contact-list span { display: block; font-size: var(--fs-xs); color: var(--muted); }

/* ---------- Pagination ---------- */
.pager { display: flex; justify-content: center; gap: var(--s-2); margin-top: var(--s-7); }
.pager a, .pager span { display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.pager .is-current { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Filters (blog categories) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s-6); }
.filters a { padding: 7px 14px; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); background: #fff; }
.filters a:hover { border-color: var(--ink); color: var(--ink); }
.filters a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* post card */
.post-card { display: flex; flex-direction: column; gap: var(--s-3); height: 100%; padding: var(--s-5); background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); color: inherit; transition: border-color .15s, box-shadow .2s, transform .2s; }
.post-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); color: inherit; }
.post-card h2, .post-card h3 { font-size: var(--fs-md); line-height: 1.35; letter-spacing: -0.01em; }
.post-card p { font-size: var(--fs-sm); color: var(--ink-2); }
.post-card .post-meta { display: flex; gap: 12px; font-size: var(--fs-xs); color: var(--muted); }
.post-card .post-meta .tag { color: var(--brand); }
.post-card .link-arrow { margin-top: auto; }

/* ---------- Media (about images etc.) ---------- */
.media { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media-hero { aspect-ratio: 4 / 3; margin: 0; box-shadow: var(--shadow-lg); }

/* embedded demo iframe */
.frame { width: 100%; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); background: #fff; }
.frame iframe { display: block; width: 100%; height: min(78vh, 820px); border: 0; border-radius: inherit; }


/* ---------- Lead dock (quick contact) ---------- */
.dock {
  position: fixed; z-index: 40; left: 50%; bottom: 20px; transform: translate(-50%, 120%); opacity: 0;
  display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 14px;
  background: rgba(11, 18, 32, 0.94); box-shadow: var(--shadow-lg); backdrop-filter: blur(10px);
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.dock.is-visible { transform: translate(-50%, 0); opacity: 1; }
.dock a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px; font-size: var(--fs-sm); font-weight: 600; color: #fff; white-space: nowrap; }
.dock .dock-primary { background: var(--brand); }
.dock .dock-primary:hover { background: var(--brand-hover); color: #fff; }
.dock .dock-phone { color: var(--on-dark); }
.dock .dock-phone:hover { color: #fff; }
@media (max-width: 640px) {
  .dock { left: 12px; right: 88px; bottom: 16px; transform: translateY(120%); }
  .dock.is-visible { transform: translateY(0); }
  .dock .dock-phone { display: none; }
  .dock .dock-primary { flex: 1; justify-content: center; }
}

/* ---------- Cookie consent ---------- */
.cookie { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: flex-start; pointer-events: none; }
.cookie[hidden] { display: none; }
.cookie-card { pointer-events: auto; width: min(460px, 100%); padding: var(--s-5); background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg); }
.cookie-card h2 { font-size: var(--fs-md); }
.cookie-card > p { margin-top: 6px; font-size: var(--fs-xs); line-height: 1.55; }
.cookie-opts { display: grid; gap: 8px; margin-top: var(--s-4); }
.cookie-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.cookie-opt input { margin-top: 3px; accent-color: var(--brand); }
.cookie-opt strong { display: block; font-size: var(--fs-xs); color: var(--ink); }
.cookie-opt small { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; }
.cookie-opt.is-disabled { opacity: .75; cursor: default; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-4); }
.cookie-actions .btn { flex: 1 1 auto; }

/* ---------- 404 ---------- */
.nf { padding-block: var(--s-9); text-align: center; }
.nf .code { font-size: clamp(4rem, 10vw, 7rem); font-weight: 700; letter-spacing: -0.04em; color: var(--brand-soft); -webkit-text-stroke: 1px var(--brand); line-height: 1; }
.nf h1 { margin-top: var(--s-5); font-size: var(--fs-h2); }
.nf p { margin: var(--s-4) auto 0; max-width: 520px; }
.nf .actions { justify-content: center; margin-top: var(--s-6); }

/* ---------- Utilities ---------- */
.mt-2 { margin-top: var(--s-2); } .mt-3 { margin-top: var(--s-3); } .mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); } .mt-7 { margin-top: var(--s-7); } .mt-8 { margin-top: var(--s-8); }
.center { text-align: center; }
.maxw-text { max-width: var(--max-text); }
.fade-up { }

/* ==========================================================================
   Details & motion (v2.1)
   ========================================================================== */

/* Scroll reveal: only when JS is running and motion is allowed */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0ms); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* Hero: live terminal card + floating */
.hero-term {
  position: absolute; z-index: 5; right: -2%; bottom: 4%; width: min(300px, 62%);
  border-radius: 12px; background: #0b1220; color: #cbd5e1; box-shadow: var(--shadow-lg);
  font: 500 12px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow: hidden;
}
.hero-term-top { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid rgba(255,255,255,.08); color: #64748b; font-size: 11px; }
.hero-term-top i { width: 8px; height: 8px; border-radius: 50%; background: #334155; }
.hero-term-top span { margin-left: auto; }
.hero-term-body { padding: 10px 12px 12px; min-height: 124px; }
.hero-term-body p { margin: 0; white-space: nowrap; overflow: hidden; }
.hero-term-body .ok { color: #34d399; }
.hero-term-body .dim { color: #64748b; }
.hero-term-body .cmd { color: #e2e8f0; }
.hero-term-body .cursor { display: inline-block; width: 7px; height: 13px; margin-left: 2px; vertical-align: -2px; background: var(--brand-bright); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: no-preference) {
  .hero-badge { animation: float 6s ease-in-out infinite; }
  .hero-term { animation: float 7s ease-in-out infinite; animation-delay: -2s; }
}
@media (max-width: 640px) { .hero-term { right: 0; bottom: -4%; width: 70%; font-size: 11px; } .hero-term-body { min-height: 104px; } }

/* Tech marquee */
.marquee { position: relative; overflow: hidden; padding-block: var(--s-5); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: var(--s-6); width: max-content; }
.marquee-track span { font-size: var(--fs-md); font-weight: 600; color: #94a3b8; letter-spacing: -0.01em; white-space: nowrap; transition: color .2s; }
.marquee-track span:hover { color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 38s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Flow chain (Strategy → UX → Web → ...) */
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; }
.flow li { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); }
.flow li span { padding: 6px 12px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); }
.flow li + li::before { content: ''; width: 18px; height: 1px; background: var(--line-strong); }
.flow-dark li span { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: var(--on-dark); }
.flow-dark li + li::before { background: rgba(255,255,255,.22); }

/* Service cards with icons */
.svc-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand); transition: transform .2s var(--ease), background-color .2s; }
.svc-icon svg { width: 22px; height: 22px; }
.card-link:hover .svc-icon { transform: scale(1.06) rotate(-3deg); background: var(--brand); color: #fff; }

/* Dark section */
.sec-dark { position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark); }
.sec-dark::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 80% at 100% 0%, rgba(63,181,232,.18), transparent 60%), radial-gradient(40% 70% at 0% 100%, rgba(0,110,172,.28), transparent 70%); }
.sec-dark > * { position: relative; }
.sec-dark h2, .sec-dark h3 { color: #fff; }
.sec-dark .lead, .sec-dark p { color: var(--on-dark-muted); }
.sec-dark .eyebrow { color: var(--brand-bright); }
.sec-dark .step { border-top-color: rgba(255,255,255,.14); }
.sec-dark .step::before { background: var(--brand-bright); }
.sec-dark .step .card-num { color: var(--brand-bright); }
.sec + .sec-dark, .sec-dark + .sec { padding-top: var(--section); }

/* Context callout with side list */
.context { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s-6); padding: var(--s-6); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.context h3 { font-size: var(--fs-lg); margin-top: var(--s-2); }
.context p { margin-top: var(--s-3); font-size: var(--fs-sm); }
.context-list { display: grid; gap: 10px; }
.context-list div { display: flex; align-items: baseline; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); }
.context-list strong { font-size: var(--fs-sm); color: var(--ink); min-width: 78px; }
.context-list span { font-size: var(--fs-xs); color: var(--muted); }
@media (max-width: 860px) { .context { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Closing statement: revealed under the footer ---------- */
/* "Finale": AI core rising over an infinite grid horizon, decoded hashtag. */
:root { --closing-h: 600px; }
.page-layer { position: relative; z-index: 1; min-height: 100vh; margin-bottom: var(--closing-h); background: var(--bg); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.closing {
  --cl-horizon: 70%;
  position: relative; min-height: var(--closing-h);
  display: flex; align-items: flex-start; padding-top: clamp(48px, 7vh, 72px); overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 70% at 50% var(--cl-horizon), #06223a 0%, #030913 45%, #010204 100%);
  color: #f5f7fa;
}
.page-layer ~ .closing { position: fixed; left: 0; right: 0; bottom: 0; z-index: 0; height: var(--closing-h); min-height: 0; }

/* sky + AI core */
.cl-sky { position: absolute; inset: 0; z-index: -3; pointer-events: none; }
.cl-sky::before { /* stars */
  content: ''; position: absolute; inset: 0 0 calc(100% - var(--cl-horizon)); opacity: .55;
  background-image: radial-gradient(1px 1px at 12% 22%, #fff, transparent), radial-gradient(1px 1px at 28% 64%, #9ddcf8, transparent), radial-gradient(1.5px 1.5px at 44% 18%, #fff, transparent), radial-gradient(1px 1px at 63% 42%, #fff, transparent), radial-gradient(1px 1px at 78% 16%, #9ddcf8, transparent), radial-gradient(1.5px 1.5px at 88% 58%, #fff, transparent), radial-gradient(1px 1px at 6% 78%, #fff, transparent), radial-gradient(1px 1px at 55% 80%, #34d399, transparent);
  background-size: 520px 300px;
}
.cl-sky::after { /* horizon line */
  content: ''; position: absolute; left: 0; right: 0; top: var(--cl-horizon); height: 2px; transform: translateY(-1px);
  background: linear-gradient(90deg, transparent, rgba(131, 208, 245, .9) 30%, #fff 50%, rgba(52, 211, 153, .9) 70%, transparent);
  box-shadow: 0 0 24px 4px rgba(63, 181, 232, .55), 0 0 80px 10px rgba(0, 110, 172, .35);
}
.cl-orb {
  position: absolute; left: 50%; top: var(--cl-horizon); width: min(760px, 110vw); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(157, 220, 248, .55) 0%, rgba(63, 181, 232, .28) 22%, rgba(0, 110, 172, .14) 42%, transparent 66%);
  -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 50.5%); mask-image: linear-gradient(180deg, #000 50%, transparent 50.5%);
}
.cl-orb::before { /* rotating ring */
  content: ''; position: absolute; inset: 17%; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 20%, rgba(131, 208, 245, .9) 32%, transparent 44% 60%, rgba(52, 211, 153, .85) 72%, transparent 84%);
  -webkit-mask-image: radial-gradient(circle, transparent 69%, #000 70%, #000 71%, transparent 72%); mask-image: radial-gradient(circle, transparent 69%, #000 70%, #000 71%, transparent 72%);
  filter: drop-shadow(0 0 8px rgba(131, 208, 245, .8));
}
.cl-orb::after { /* dashed inner orbit */
  content: ''; position: absolute; inset: 30%; border-radius: 50%; border: 1px dashed rgba(157, 220, 248, .28);
}

/* infinite grid floor */
.cl-floor { position: absolute; left: 0; right: 0; bottom: 0; top: var(--cl-horizon); z-index: -2; overflow: hidden; perspective: 320px; perspective-origin: 50% 0; pointer-events: none; }
.cl-floor i {
  position: absolute; left: -60%; right: -60%; top: 0; height: 260%; transform-origin: 50% 0; transform: rotateX(72deg);
  background-image: linear-gradient(rgba(131, 208, 245, .5) 1px, transparent 1px), linear-gradient(90deg, rgba(131, 208, 245, .42) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 60%); mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 60%);
}
.cl-spot { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 40%), rgba(131, 208, 245, .13), transparent 62%); }

/* content */
.closing > .wrap { width: 100%; }
.cl-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cl-prompt {
  display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 12px; padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-pill); background: rgba(8, 12, 22, .6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: 500 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #9aa7b8;
}
.cl-path { color: #83d0f5; }
.cl-cmd::before { content: '$ '; color: #64748b; }
.cl-ok { color: #34d399; }
.cl-title {
  margin-top: clamp(18px, 2.4vw, 28px); max-width: 100%;
  font-size: clamp(2.5rem, .6rem + 7.6vw, 8.25rem); font-weight: 700; line-height: .95; letter-spacing: -0.055em;
  color: #fff; filter: drop-shadow(0 0 40px rgba(63, 181, 232, .35));
}
.cl-hash { background: linear-gradient(135deg, #83d0f5, #34d399); -webkit-background-clip: text; background-clip: text; color: transparent; margin-right: .02em; }
.cl-word { background: linear-gradient(180deg, #fff 35%, #9ddcf8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cl-word .sc { color: #34d399; -webkit-text-fill-color: #34d399; }
.cl-lead { max-width: 640px; margin-top: clamp(18px, 2vw, 26px); font-size: clamp(1rem, .92rem + .3vw, 1.1875rem); line-height: 1.6; color: #b4c2d3; }
.cl-cta { margin-top: clamp(22px, 2.6vw, 32px); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }

/* giant outlined ribbon */
.cl-ribbon { position: absolute; left: 0; right: 0; bottom: 14px; z-index: -1; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.cl-ribbon-track { display: flex; width: max-content; gap: clamp(28px, 4vw, 56px); }
.cl-ribbon span { font-size: clamp(2.5rem, 1.4rem + 4vw, 5.5rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(157, 220, 248, .16); }

/* decode-in sequence (JS adds .is-live when the section is revealed) */
.js .closing .cl-ok { opacity: 0; transform: translateY(4px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.js .closing.is-live .cl-ok { opacity: 1; transform: none; }
.js .closing.is-live .cl-ok:nth-last-child(3) { transition-delay: .5s; }
.js .closing.is-live .cl-ok:nth-last-child(2) { transition-delay: .9s; }
.js .closing.is-live .cl-ok:nth-last-child(1) { transition-delay: 1.3s; }

@media (prefers-reduced-motion: no-preference) {
  .cl-floor i { animation: clFloor 2.4s linear infinite; }
  .cl-orb::before { animation: clSpin 14s linear infinite; }
  .cl-orb::after { animation: clSpin 40s linear infinite reverse; }
  .cl-ribbon-track { animation: marquee 60s linear infinite; }
  .cl-sky::after { animation: clHorizon 5s ease-in-out infinite; }
}
@keyframes clFloor { to { background-position: 0 56px, 0 0; } }
@keyframes clSpin { to { transform: rotate(1turn); } }
@keyframes clHorizon { 0%, 100% { opacity: .8; } 50% { opacity: 1; } }
@keyframes dash { to { stroke-dashoffset: -320; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.35); opacity: 1; } }
@media (max-width: 560px) {
  :root { --closing-h: 540px; }
  .closing { --cl-horizon: 74%; }
  .cl-title { font-size: clamp(2.25rem, 10.5vw, 3.75rem); }
  .cl-path { display: none; }
  .cl-cta { width: 100%; }
  .cl-prompt { font-size: 11px; }
}
@media (max-height: 560px) { .page-layer ~ .closing { position: relative; height: auto; min-height: var(--closing-h); padding-block: 48px; } .page-layer { margin-bottom: 0; } }
@media print { .closing { display: none; } .page-layer { margin-bottom: 0; box-shadow: none; } }


/* Company card (contact page) */
.company-card { display: grid; gap: 4px; padding: var(--s-5); border: 1px solid var(--line); border-radius: 16px; background: var(--surface, #fff); font-style: normal; font-size: var(--fs-sm); color: var(--muted); }
.company-card strong { color: var(--ink); font-size: var(--fs-base); font-weight: 600; }
.company-card dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); margin: var(--s-4) 0 var(--s-3); }
.company-card dt { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.company-card dd { margin: 2px 0 0; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.company-card small { font-size: var(--fs-xs); }
@media (max-width: 560px) { .company-card dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ==========================================================================
   Cinematic hero (home, about): dark, AI-driven, Apple-like
   ========================================================================== */
.xhero {
  --x-bg: #030509; --x-ink: #f5f7fa; --x-muted: #9aa7b8; --x-line: rgba(255, 255, 255, .1);
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(56px, 7vw, 104px) 0 clamp(72px, 8vw, 120px);
  background: var(--x-bg); color: var(--x-ink);
}
.xhero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%);
}
.xhero-net { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: .7; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 80%); mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 80%); }
.xhero-aurora { position: absolute; inset: -10% -10% 30%; z-index: -2; pointer-events: none; filter: blur(70px); }
.xhero-aurora i { position: absolute; border-radius: 50%; }
.xhero-aurora i:nth-child(1) { width: 55vw; height: 55vw; left: -12vw; top: -18vw; background: radial-gradient(circle, rgba(0, 110, 172, .55), transparent 65%); }
.xhero-aurora i:nth-child(2) { width: 48vw; height: 48vw; right: -10vw; top: -8vw; background: radial-gradient(circle, rgba(63, 181, 232, .42), transparent 65%); }
.xhero-aurora i:nth-child(3) { width: 40vw; height: 40vw; left: 30vw; top: 22vw; background: radial-gradient(circle, rgba(52, 211, 153, .22), transparent 65%); }

.xhero-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.xhero-pill {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 5px 14px 5px 5px;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-pill); background: rgba(255, 255, 255, .05);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: var(--fs-xs); font-weight: 500; color: rgba(245, 247, 250, .82); text-align: left;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.xhero-pill:hover { color: #fff; border-color: rgba(131, 208, 245, .5); background: rgba(131, 208, 245, .08); }
.xhero-pill svg { width: 14px; height: 14px; flex: none; opacity: .7; }
.xhero-pill-tag { flex: none; padding: 3px 9px; border-radius: var(--r-pill); background: linear-gradient(90deg, #83d0f5, #34d399); color: #03131f; font-weight: 700; letter-spacing: .04em; }

.xhero-display {
  margin: clamp(22px, 3vw, 34px) 0 0; max-width: 15ch;
  font-size: clamp(2.75rem, 1rem + 7.4vw, 7.25rem); font-weight: 700; line-height: .98; letter-spacing: -0.05em;
  color: var(--x-ink); text-wrap: balance;
}
.xgrad {
  display: block; padding-bottom: .06em;
  background: linear-gradient(90deg, #83d0f5 0%, #3fb5e8 25%, #34d399 50%, #3fb5e8 75%, #83d0f5 100%); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.xhero-title {
  margin: clamp(22px, 2.6vw, 32px) auto 0; max-width: 32ch;
  font-size: clamp(1.1875rem, .95rem + 1vw, 1.75rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; color: rgba(245, 247, 250, .94);
}
.xhero-title .accent { color: #83d0f5; }
.xhero-lead { margin: 16px auto 0; max-width: 660px; font-size: var(--fs-md); line-height: 1.6; color: var(--x-muted); }
.xhero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(26px, 3vw, 36px); }
.btn-glow { min-height: 50px; padding: 0 26px; border-radius: var(--r-pill); background: #fff; color: #05070b; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 12px 40px rgba(63, 181, 232, .35); }
.btn-glow:hover { background: #fff; color: #05070b; transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .4), 0 16px 56px rgba(63, 181, 232, .55); }
.xhero .btn-ghost-light { min-height: 50px; padding: 0 24px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .04); }
.xhero .btn-ghost-light:hover { background: rgba(255, 255, 255, .1); }

/* stage: product window with floating glass cards */
.xhero-stage { position: relative; margin-top: clamp(56px, 7vw, 96px); }
.xhero-device { position: relative; max-width: 1020px; margin: 0 auto; transform-origin: 50% 0; }
.xhero-device::before {
  content: ''; position: absolute; inset: 8% 4% -10%; z-index: -1; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(63, 181, 232, .5), rgba(0, 110, 172, .18) 45%, transparent 70%); filter: blur(50px);
}
.xhero-window {
  overflow: hidden; border-radius: 18px; background: #0b1020; border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 50px 120px -30px rgba(0, 0, 0, .9);
}
.xhero-window-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-bottom: 1px solid var(--x-line); background: rgba(255, 255, 255, .035); }
.xhero-window-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.xhero-window-bar span { margin: 0 auto; padding: 3px 36px; border-radius: 7px; background: rgba(255, 255, 255, .05); font-size: 12px; color: var(--x-muted); }
.xhero-window img { display: block; width: 100%; height: auto; }

.xhero-float {
  position: absolute; z-index: 2; border-radius: 16px;
  background: rgba(12, 18, 32, .74); border: 1px solid rgba(255, 255, 255, .13);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
}
.xhero-agent.hero-term { right: auto; left: -5%; bottom: -9%; top: auto; width: min(410px, 46%); background: rgba(8, 12, 22, .82); color: #cbd5e1; }
.xhero-agent .hero-term-top { border-bottom-color: var(--x-line); }
.xhero-agent .hero-term-top span { color: #83d0f5; }
.xhero-agent .hero-term-body { min-height: 138px; }
.xhero-chip { right: -4%; top: 12%; display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: var(--fs-xs); color: var(--x-muted); text-align: left; }
.xhero-chip strong { display: block; color: #fff; font-size: var(--fs-sm); font-weight: 600; }
.xhero-chip .dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .18), 0 0 18px rgba(52, 211, 153, .8); }
.xhero-shot { right: -6%; bottom: -12%; width: 30%; padding: 6px; }
.xhero-shot img { display: block; width: 100%; height: auto; border-radius: 11px; }

.xhero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); margin-top: clamp(80px, 10vw, 140px); padding-top: var(--s-6); border-top: 1px solid var(--x-line); text-align: center; }
.xstat strong {
  display: block; font-size: clamp(2rem, 1.1rem + 2.6vw, 3.5rem); font-weight: 700; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 30%, #9ddcf8); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.xstat span { display: block; margin-top: 10px; font-size: var(--fs-sm); color: var(--x-muted); }

/* about variant: bento of glass tiles */
.xhero-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.xtile {
  position: relative; overflow: hidden; padding: 22px; border-radius: 20px; text-align: left;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)); border: 1px solid rgba(255, 255, 255, .11);
}
.xtile strong { display: block; font-size: clamp(1.75rem, 1rem + 2vw, 2.75rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1;
  background: linear-gradient(180deg, #fff 30%, #9ddcf8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.xtile span { display: block; margin-top: 10px; font-size: var(--fs-sm); color: var(--x-muted); }
.xtile-media { grid-column: 1 / -1; padding: 0; min-height: 0; aspect-ratio: 21 / 8; }
.xtile-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.xtile-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3, 5, 9, .92) 0%, rgba(3, 5, 9, .35) 55%, rgba(3, 5, 9, .1)); }
.xtile-media figcaption { position: absolute; z-index: 1; left: clamp(20px, 3vw, 40px); bottom: clamp(20px, 3vw, 36px); max-width: 520px; }
.xtile-media figcaption b { display: block; font-size: clamp(1.25rem, .9rem + 1.2vw, 2rem); font-weight: 650; letter-spacing: -0.03em; color: #fff; line-height: 1.15; }
.xtile-media .chips { margin-top: 14px; }
.xhero .chip { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: rgba(245, 247, 250, .85); }

/* header over a dark hero */
.site-hdr { transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.has-dark-hero:not(.past-hero) .site-hdr:not(.is-open) { background: rgba(3, 5, 9, .72); border-bottom-color: rgba(255, 255, 255, .08); }
.has-dark-hero:not(.past-hero) .site-hdr:not(.is-open) .hdr-logo img { filter: brightness(0) invert(1); }
.has-dark-hero:not(.past-hero) .site-hdr:not(.is-open) .nav a { color: rgba(245, 247, 250, .72); }
.has-dark-hero:not(.past-hero) .site-hdr:not(.is-open) .nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.has-dark-hero:not(.past-hero) .site-hdr:not(.is-open) .nav a[aria-current="page"] { color: #fff; }
.has-dark-hero:not(.past-hero) .site-hdr:not(.is-open) .nav a[aria-current="page"]::after { background: #83d0f5; }
.has-dark-hero:not(.past-hero) .site-hdr:not(.is-open) .lang { border-color: rgba(255, 255, 255, .16); }
.has-dark-hero:not(.past-hero) .site-hdr:not(.is-open) .lang a { color: rgba(245, 247, 250, .6); }
.has-dark-hero:not(.past-hero) .site-hdr:not(.is-open) .lang a.is-active { background: #fff; color: #05070b; }
.has-dark-hero:not(.past-hero) .site-hdr:not(.is-open) .hdr-cta { background: #fff; color: #05070b; border-radius: var(--r-pill); }
.has-dark-hero:not(.past-hero) .site-hdr:not(.is-open) .burger { background: transparent; border-color: rgba(255, 255, 255, .2); color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .xhero-aurora i:nth-child(1) { animation: aurA 18s ease-in-out infinite alternate; }
  .xhero-aurora i:nth-child(2) { animation: aurB 22s ease-in-out infinite alternate; }
  .xhero-aurora i:nth-child(3) { animation: aurA 26s ease-in-out infinite alternate-reverse; }
  .xgrad { animation: xshine 9s linear infinite; }
  .xhero-inner > * { animation: xin 1s var(--ease) both; }
  .xhero-inner > :nth-child(2) { animation-delay: .08s; }
  .xhero-inner > :nth-child(3) { animation-delay: .16s; }
  .xhero-inner > :nth-child(4) { animation-delay: .22s; }
  .xhero-inner > :nth-child(5) { animation-delay: .28s; }
  .xhero-chip { animation: float 6s ease-in-out infinite; }
  .xhero-shot { animation: float 7s ease-in-out infinite -2s; }
  .xhero-chip .dot { animation: pulse 2.4s ease-in-out infinite; }
  @supports (animation-timeline: view()) {
    @media (min-width: 901px) {
      .xhero-device, .xhero-bento { animation: xtilt linear both; animation-timeline: view(); animation-range: entry 0% cover 42%; }
    }
  }
}
@keyframes xin { from { transform: translateY(22px); filter: blur(10px); } to { transform: none; filter: none; } }
@keyframes xshine { to { background-position: -200% 0; } }
@keyframes xtilt { from { transform: perspective(1600px) rotateX(22deg) scale(.9) translateY(24px); } to { transform: perspective(1600px) rotateX(0) scale(1) translateY(0); } }
@keyframes aurA { from { transform: translate(0, 0) scale(1); } to { transform: translate(6vw, 4vw) scale(1.15); } }
@keyframes aurB { from { transform: translate(0, 0) scale(1.1); } to { transform: translate(-7vw, 5vw) scale(.95); } }

@media (max-width: 900px) {
  .xhero-agent.hero-term { position: relative; left: auto; bottom: auto; width: 100%; margin-top: 14px; }
  .xhero-shot { display: none; }
  .xhero-chip { right: 10px; top: 48px; padding: 9px 12px; }
  .xhero-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xtile-media { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  .xhero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-6); }
  .xhero-actions { width: 100%; }
  .xhero-actions .btn { width: 100%; }
  .xhero-pill { font-size: 12px; }
  .xhero-chip { display: none; }
  .xhero-window-bar span { padding: 3px 14px; }
}
/* hero runs under the translucent header */
.has-dark-hero .xhero { margin-top: -68px; padding-top: calc(68px + clamp(48px, 6vw, 96px)); }

/* Post cover (CMS image): used as a card cover and as og:image, not above the article (it repeats the H1) */
.card-cover { display: block; width: calc(100% + 2 * var(--s-5)); max-width: none; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; margin: calc(-1 * var(--s-5)) calc(-1 * var(--s-5)) var(--s-4); border-bottom: 1px solid var(--line); border-radius: var(--r-md) var(--r-md) 0 0; }

/* ==========================================================================
   Regions: focus voivodeships, network map with Wrocław HQ
   ========================================================================== */
.sec-region { position: relative; isolation: isolate; overflow: hidden; background: #030509; color: #f5f7fa; }
.sec-region::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 60% at 75% 40%, rgba(0, 110, 172, .35), transparent 70%), radial-gradient(40% 50% at 10% 90%, rgba(52, 211, 153, .12), transparent 70%);
}
.sec-region h2 { color: #fff; }
.sec-region .lead { color: #b4c2d3; }
.sec-region .eyebrow { color: #83d0f5; }
.sec-region .link-arrow { color: #83d0f5; }
.region-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.region-cities { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: var(--s-6) 0 0; padding: 0; }
.region-cities li { padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; background: rgba(255, 255, 255, .03); transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.region-cities li:hover { border-color: rgba(131, 208, 245, .45); background: rgba(131, 208, 245, .06); }
.region-cities li > a { display: block; color: #fff; }
.region-cities strong { display: block; font-weight: 600; }
.region-cities span { display: block; margin-top: 2px; font-size: var(--fs-xs); color: #9aa7b8; }
.region-cities small { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; font-size: 12px; }
.region-cities small a { color: #83d0f5; }
.region-cities small a:hover { color: #fff; }

.rmap { position: relative; margin: 0; padding: clamp(16px, 2vw, 24px); border: 1px solid rgba(255, 255, 255, .1); border-radius: 24px; background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); }
.rmap svg { display: block; width: 100%; height: auto; max-height: 560px; overflow: visible; }
.rmap-link { fill: none; stroke: url(#rmapLine); stroke-width: 1.2; stroke-dasharray: 4 6; opacity: .45; }
.rmap-city circle { fill: #9ddcf8; stroke: rgba(3, 5, 9, .9); stroke-width: 2; transition: r .2s var(--ease), fill .2s var(--ease); }
.rmap-city.is-capital circle { fill: #fff; }
.rmap-city text, .rmap-hq text { fill: #e6ebf2; font: 600 13px/1 var(--font); }
.rmap-city:hover circle { fill: #34d399; r: 8; }
.rmap-city:hover text { fill: #fff; }
.rmap.has-active .rmap-region:not(.is-active) { opacity: .35; }
.rmap-region.is-active .rmap-link { opacity: .9; stroke-width: 1.6; }
.rmap-region.is-active .rmap-city circle { fill: #34d399; }
.rmap-region.is-active .rmap-city.is-capital circle { fill: #fff; }
.rmap-hq circle { fill: #34d399; }
.rmap-hq .rmap-hq-ring { fill: none; stroke: #34d399; stroke-width: 1.5; opacity: .6; }
.rmap-hq text { fill: #34d399; font-size: 11px; letter-spacing: .08em; }
.rmap figcaption { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.rmap-legend { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 600; color: #cbd5e1; }
.rmap-legend i { width: 7px; height: 7px; border-radius: 50%; background: #9ddcf8; }
.rmap-legend:hover, .rmap-legend.is-active { color: #fff; border-color: rgba(52, 211, 153, .6); }
.rmap-legend.is-active i { background: #34d399; box-shadow: 0 0 10px #34d399; }
@media (prefers-reduced-motion: no-preference) {
  .rmap-link { animation: dash 30s linear infinite; }
  .rmap-hq-ring { animation: pulse 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
}
@media (max-width: 900px) {
  .region-grid { grid-template-columns: minmax(0, 1fr); }
  .rmap { max-width: 460px; }
}
@media (max-width: 480px) { .region-cities { grid-template-columns: minmax(0, 1fr); } }
.sec + .sec-region, .sec-region + .sec { padding-top: var(--section); }
.rmap svg { max-height: 470px; }
.rmap-rlabel { fill: rgba(157, 220, 248, .38); font: 700 12px/1 var(--font); letter-spacing: .18em; }
.rmap-region.is-active .rmap-rlabel { fill: #34d399; }


/* ==========================================================================
   Footer v3: compact, scannable
   ========================================================================== */
.site-ftr { background: var(--bg-soft); border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.ftr-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5) var(--s-7); padding-block: var(--s-6); border-bottom: 1px solid var(--line); }
.ftr-brand { display: flex; align-items: center; gap: var(--s-5); max-width: 560px; }
.ftr-brand img { width: 116px; flex: none; }
.ftr-brand p { margin: 0; padding-left: var(--s-5); border-left: 1px solid var(--line-strong); font-size: var(--fs-sm); line-height: 1.5; color: var(--muted); }
.ftr-reach { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.ftr-reach-link { display: grid; line-height: 1.25; font-weight: 600; color: var(--ink); }
.ftr-reach-link small { font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ftr-reach-link:hover { color: var(--brand); }
.ftr-cta-btn { min-height: 42px; border-radius: var(--r-pill); }
.ftr-status { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-xs); font-weight: 600; color: var(--ok); }
.ftr-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
@media (prefers-reduced-motion: no-preference) { .ftr-status::before { animation: pulse 2.4s ease-in-out infinite; } }

.ftr-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); padding-block: var(--s-6); }
.ftr-col h3 { margin: 0 0 var(--s-3); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.ftr-col ul { list-style: none; display: grid; gap: 2px; margin: 0; padding: 0; }
.ftr-col li { line-height: 1.35; }
.ftr-col a, .ftr-col li > span { display: inline-block; padding: 3px 0; font-size: var(--fs-sm); color: var(--ink-2); }
.ftr-col a:hover { color: var(--brand); }
.ftr-col .ftr-more { font-weight: 600; color: var(--brand); }
.ftr-cities { display: flex; flex-wrap: wrap; gap: 0 10px; margin: 6px 0 0; }
.ftr-cities a { padding: 1px 0; font-size: var(--fs-xs); color: var(--muted); }

.ftr-bottom { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-3) var(--s-6); padding-block: var(--s-5); border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--muted); }
.ftr-bottom .company { display: block; margin: 0; max-width: 980px; font-style: normal; line-height: 1.6; }
.ftr-bottom .company strong { color: var(--ink-2); font-weight: 600; }
.ftr-bottom .company span { display: block; }
.ftr-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.ftr-legal a, .ftr-legal button { font: inherit; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; }
.ftr-legal a:hover, .ftr-legal button:hover { color: var(--ink); }

@media (max-width: 960px) { .ftr-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-6); } }
@media (max-width: 640px) {
  .ftr-brand { flex-direction: column; align-items: flex-start; gap: var(--s-3); }
  .ftr-brand p { padding-left: 0; border-left: 0; }
  .ftr-reach { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .ftr-cta-btn, .ftr-status { grid-column: 1 / -1; }
  .ftr-cta-btn { width: 100%; }
  .ftr-nav { column-gap: var(--s-5); }
}
.ftr-brand > a { flex: none; }
.ftr-brand { max-width: 470px; }
@media (min-width: 1100px) { .ftr-top { flex-wrap: nowrap; } .ftr-reach { flex: none; } }
.ftr-col .ftr-h-gap { margin-top: var(--s-5); }

/* related location links */
.related-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); }
.related-links .chips { margin-top: var(--s-3); }
.related-links a.chip:hover { border-color: var(--brand); color: var(--brand); }
@media (max-width: 760px) { .related-links { grid-template-columns: minmax(0, 1fr); } }

/* topic cluster links */
.sec-tight { padding-block: var(--s-6); }
.sec + .sec-tight, .sec-tight + .sec { padding-top: var(--s-6); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); padding: var(--s-5) var(--s-6); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-tint); }
.cluster-title { margin: 0; font-weight: 700; color: var(--ink); }
.cluster ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; }
.cluster a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: var(--fs-sm); color: var(--ink-2); }
.cluster a svg { width: 14px; height: 14px; }
.cluster a.is-main { color: var(--brand); }
.cluster a:hover { color: var(--brand); }
