/* ═══════════════════════════════════════════════════════
   JVISION — styles.css
   Mercury Design System · Warm JVISION palette
   rose #f43f5e · orange #f97316 · pink #ff6ec4
   ═══════════════════════════════════════════════════════ */

/* ── CSS Variables ─────────────────────────────────────── */
:root {
  /* Mercury Design System tokens */
  --m-abyss:    #171721;
  --m-surface:  #1e1e2a;
  --m-graphite: #272735;
  --m-lead:     #70707d;
  --m-starlight:#ededf3;
  --m-silver:   #c3c3cc;
  --m-white:    #ffffff;
  --m-blue:     #f97316;
  --m-ghost:    #ffd4a8;
  --m-max:      1200px;
  /* Legacy tokens */
  --bg-1: #171721;
  --bg-2: #1e1e2a;
  --bg-3: #272735;
  --accent-1: #f43f5e;
  --accent-2: #f97316;
  --accent-3: #ff6ec4;
  --text: #f3f4f8;
  --text-soft: rgba(243,244,248,.72);
  --text-muted: rgba(243,244,248,.55);
  --glass: rgba(255,255,255,.06);
  --glass-strong: rgba(255,255,255,.10);
  --border: rgba(255,255,255,.12);
  --border-soft: rgba(255,255,255,.07);
  --radius: 0px;
  --radius-lg: 0px;
  --shadow-glow: 0 30px 80px rgba(244,63,94,.22), 0 8px 30px rgba(0,0,0,.45);
  --input-bg: rgba(0,0,0,.25);
  --input-bg-focus: rgba(0,0,0,.35);
  --navbar-bg: rgba(23,23,33,.55);
  --footer-bg: rgba(14,14,20,.6);
  --mj-accent: #f97316;
  --mj-rose: #f43f5e;
  --mj-grad: linear-gradient(135deg, #f43f5e 0%, #f97316 100%);
}

/* ── Light mode via class ──────────────────────────────── */
body.light-mode {
  --m-abyss:    #f8f7f3;
  --m-surface:  #f0ede6;
  --m-graphite: #e4e0d6;
  --m-lead:     #7a7870;
  --m-starlight:#1a1814;
  --m-silver:   #4a4840;
  --m-white:    #1a1814;
  --bg-1: #f8f7f3;
  --bg-2: #f0ede6;
  --bg-3: #e4e0d6;
  --text: #1a1814;
  --text-soft: rgba(26,24,20,.72);
  --text-muted: rgba(26,24,20,.55);
  --glass: rgba(255,255,255,.65);
  --glass-strong: rgba(255,255,255,.85);
  --border: rgba(10,13,24,.12);
  --border-soft: rgba(10,13,24,.06);
  --shadow-glow: 0 30px 80px rgba(244,63,94,.18), 0 8px 30px rgba(0,0,0,.08);
  --input-bg: rgba(255,255,255,.85);
  --input-bg-focus: rgba(255,255,255,1);
  --navbar-bg: rgba(248,247,243,.82);
  --footer-bg: rgba(255,255,255,.5);
}

/* ── Light mode via OS preference ─────────────────────── */
@media (prefers-color-scheme: light) {
  :root {
    --m-abyss:    #f8f7f3;
    --m-surface:  #f0ede6;
    --m-graphite: #e4e0d6;
    --m-lead:     #7a7870;
    --m-starlight:#1a1814;
    --m-silver:   #4a4840;
    --m-white:    #1a1814;
    --bg-1: #f8f7f3;
    --bg-2: #f0ede6;
    --bg-3: #e4e0d6;
    --text: #1a1814;
    --text-soft: rgba(26,24,20,.72);
    --text-muted: rgba(26,24,20,.50);
    --glass: rgba(255,255,255,.70);
    --glass-strong: rgba(255,255,255,.88);
    --border: rgba(10,13,24,.11);
    --border-soft: rgba(10,13,24,.06);
    --shadow-glow: 0 30px 80px rgba(244,63,94,.14), 0 8px 30px rgba(0,0,0,.06);
    --input-bg: rgba(255,255,255,.88);
    --input-bg-focus: rgba(255,255,255,1);
    --navbar-bg: rgba(248,247,243,.82);
    --footer-bg: rgba(255,255,255,.55);
  }
  body:not(.dark-mode) {
    background: #f8f7f3;
    color: #1a1814;
  }
        body:not(.dark-mode) .nav-logo img  { content: url('/logo-nav-light.svg'); }
  body:not(.dark-mode) .navbar        { background: rgba(255,255,255,.72); }
  body:not(.dark-mode) .nav-links a   { color: rgba(10,13,24,.68); }
  body:not(.dark-mode) .nav-links a:hover,
  body:not(.dark-mode) .nav-links a.active { color: var(--text); background: rgba(10,13,24,.06); }
  body:not(.dark-mode) .mobile-menu   { background: #f4f4f0; }
  body:not(.dark-mode) .mobile-menu a { color: rgba(10,13,24,.75); }
  body:not(.dark-mode) .card          { background: rgba(255,255,255,.95); border-color: rgba(10,13,24,.16); }
  body:not(.dark-mode) .card:hover    { box-shadow: 0 6px 22px rgba(10,13,24,.11); }
  body:not(.dark-mode) .content-block { background: rgba(255,255,255,.80); border-color: rgba(10,13,24,.09); }
  body:not(.dark-mode) .cta-band      { background: linear-gradient(135deg,rgba(244,63,94,.10),rgba(249,115,22,.06)); }
  body:not(.dark-mode) .btn-primary   { color: #fff !important; }
  body:not(.dark-mode) .btn-ghost     { background: transparent; border-color: rgba(10,13,24,.18); color: rgba(10,13,24,.75); }
  body:not(.dark-mode) .btn-ghost:hover { background: rgba(10,13,24,.05); border-color: rgba(10,13,24,.28); color: #1a1d2e; }
  body:not(.dark-mode) .nav-cta       { color: #fff !important; }
  body:not(.dark-mode) footer         { color: #1a1d2e; }
  body:not(.dark-mode) .foot-brand p  { color: #3a3d50; }
  body:not(.dark-mode) .foot h4       { color: #1a1d2e; }
  body:not(.dark-mode) .foot ul a     { color: #3a3d50; }
  body:not(.dark-mode) .foot ul a:hover { color: #f97316; }
  body:not(.dark-mode) .copy          { color: #3a3d50; }
}

/* ── Light mode class — component overrides ───────────── */
body.light-mode .nav-logo img  { content: url('/logo-nav-light.svg'); filter: none; }
body.light-mode .navbar        { background: var(--navbar-bg); box-shadow: 0 2px 8px rgba(10,13,24,.04), inset 0 1px 0 rgba(255,255,255,.4); }
body.light-mode .nav-links a   { color: rgba(10,13,24,.7); }
body.light-mode .nav-links a:hover,
body.light-mode .nav-links a.active { color: var(--text); background: rgba(10,13,24,.07); }
body.light-mode .mobile-menu   { background: #f4f4f0; box-shadow: 0 30px 80px rgba(10,13,24,.2); }
body.light-mode .mobile-menu a { color: rgba(10,13,24,.78); }
body.light-mode .mobile-menu a:hover,
body.light-mode .mobile-menu a.active { color: var(--text); background: rgba(10,13,24,.06); }
body.light-mode .nav-logo:hover { background: rgba(10,13,24,.05); }
body.light-mode .nav-logo:hover img { filter: drop-shadow(0 4px 14px rgba(244,63,94,.4)) drop-shadow(0 2px 6px rgba(249,115,22,.3)); transform: scale(1.02); }
body.light-mode .nav-icon-btn:hover { background: rgba(10,13,24,.06); }
body.light-mode .nav-lang      { background: rgba(10,13,24,.04); }
body.light-mode .menu-backdrop { background: rgba(10,13,24,.35); }
body.light-mode .btn-primary   { color: #fff !important; }
body.light-mode .btn-ghost     { background: transparent; border-color: rgba(10,13,24,.18); color: rgba(10,13,24,.75); }
body.light-mode .btn-ghost:hover { background: rgba(10,13,24,.05); border-color: rgba(10,13,24,.28); color: #1a1d2e; }
body.light-mode .nav-cta       { color: #fff !important; }
body.light-mode .card          { background: rgba(255,255,255,.95); border-color: rgba(10,13,24,.18); box-shadow: 0 2px 12px rgba(10,13,24,.09), 0 0 0 1px rgba(10,13,24,.06); }
body.light-mode .card:hover    { background: rgba(255,255,255,.96); border-color: rgba(249,115,22,.4); box-shadow: 0 8px 32px rgba(10,13,24,.1); }
body.light-mode .card h3       { color: #0a0d18; }
body.light-mode .card p        { color: #3a3d50; }
body.light-mode .card .arrow   { color: #f97316; }
body.light-mode .content-block { border-top-color: rgba(10,13,24,.10) !important; }
body.light-mode .content-block:hover { box-shadow: 0 4px 14px rgba(10,13,24,.06); }
body.light-mode .tile          { border-color: rgba(10,13,24,.12); background: linear-gradient(135deg,rgba(244,63,94,.098),rgba(249,115,22,.056)); }
body.light-mode .tile:hover    { box-shadow: 0 4px 14px rgba(10,13,24,.07); }
body.light-mode .case-card     { border-bottom-color: rgba(10,13,24,.10) !important; }
body.light-mode .cta-band      { background: linear-gradient(135deg,rgba(244,63,94,.10),rgba(249,115,22,.06)); }
body.light-mode .card .icon    { background: linear-gradient(135deg,rgba(244,63,94,.14),rgba(249,115,22,.098)); }
body.light-mode .contact-item .icn { background: linear-gradient(135deg,rgba(244,63,94,.14),rgba(249,115,22,.098)); }
body.light-mode .suggest-card .sicn { background: linear-gradient(135deg,rgba(244,63,94,.14),rgba(249,115,22,.098)); }
body.light-mode .suggest-card:hover { box-shadow: 0 4px 14px rgba(10,13,24,.07); }
body.light-mode .post-nav a:hover { box-shadow: 0 4px 14px rgba(10,13,24,.07); }
body.light-mode .article-body blockquote { background: linear-gradient(135deg,rgba(244,63,94,.07),rgba(249,115,22,.042)); }
body.light-mode .article-body .key-takeaways { background: linear-gradient(135deg,rgba(244,63,94,.098),rgba(249,115,22,.045)); }
body.light-mode .article .services .card { background: rgba(10,13,24,.04); border-color: rgba(10,13,24,.1); }
body.light-mode .article .services .card:hover { background: rgba(10,13,24,.07); border-color: rgba(249,115,22,.4); }
body.light-mode .article .services .card h3 { color: #1a1d2e; }
body.light-mode .article .services .card p  { color: #3a3d50; }
body.light-mode .blog-card .meta { color: rgba(10,13,24,.5); }
body.light-mode .blog-card .tag  { color: #f97316; background: rgba(249,115,22,.08); border-color: rgba(249,115,22,.2); }
body.light-mode .related-head h3 { color: #1a1d2e; }
body.light-mode .related-head p  { color: #3a3d50; }
body.light-mode .field input,
body.light-mode .field textarea,
body.light-mode .field select    { background: var(--input-bg); color: var(--text); }
body.light-mode .field input:focus,
body.light-mode .field textarea:focus,
body.light-mode .field select:focus { background: var(--input-bg-focus); }
body.light-mode .scroll-progress { background: transparent; }
body.light-mode .back-to-top svg { color: #fff; }
body.light-mode .cookie-banner  { background: rgba(250,250,248,.96); border-top-color: rgba(10,13,24,.09); }
body.light-mode .cookie-banner::before { background: linear-gradient(90deg,transparent,rgba(249,115,22,.3) 30%,rgba(244,63,94,.3) 70%,transparent); }
body.light-mode .cookie-banner .ck-decline { background: transparent; border: 1px solid rgba(10,13,24,.15); color: rgba(10,13,24,.5); }
body.light-mode .cookie-banner .ck-decline:hover { background: rgba(10,13,24,.05); color: var(--text); }
body.light-mode footer::before  { background: linear-gradient(90deg,transparent,rgba(249,115,22,.25) 20%,rgba(244,63,94,.25) 50%,rgba(249,115,22,.25) 80%,transparent); }
body.light-mode .copy           { border-top-color: rgba(10,13,24,.07) !important; color: rgba(10,13,24,.4); }
body.light-mode .copy a         { color: rgba(10,13,24,.4) !important; }
body.light-mode footer          { color: #1a1d2e; }
body.light-mode .foot-brand p   { color: #3a3d50; }
body.light-mode .foot h4        { color: #1a1d2e; }
body.light-mode .foot ul a      { color: #3a3d50; }
body.light-mode .foot ul a:hover { color: #f97316; }
body.light-mode .pricing-card:hover { box-shadow: 0 6px 20px rgba(10,13,24,.08); }

/* ── Base reset & body ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Helvetica Neue', Helvetica, Arial, system-ui, -apple-system, sans-serif;
  background: var(--m-abyss);
  color: var(--text);
  font-size: 16.5px;
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  top: 0 !important;
  position: static !important;
}
.translated-ltr font, .translated-rtl font { background: transparent !important; box-shadow: none !important; }

/* ── Transitions ───────────────────────────────────────── */
body, .navbar, .mobile-menu, .cookie-banner,
.card, .feature, .step, footer,
.field input, .field textarea, .field select {
  transition: background .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease, opacity .35s ease;
}

@keyframes glowHue {
  0%   { filter: hue-rotate(0deg)   brightness(1); }
  33%  { filter: hue-rotate(28deg)  brightness(1.08); }
  66%  { filter: hue-rotate(-22deg) brightness(0.95); }
  100% { filter: hue-rotate(0deg)   brightness(1); }
}

/* ── Layout ────────────────────────────────────────────── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
section { padding: 160px 0; position: relative; }
@media (max-width: 768px) { section { padding: 110px 0; } }
section > .container { position: relative; z-index: 1; }

/* ── Scroll progress bar ───────────────────────────────── */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 101; pointer-events: none; background: transparent; }
.scroll-progress .fill { height: 100%; width: 0%; background: linear-gradient(90deg,#f43f5e,#f97316 50%,#ff6ec4); transition: width .08s linear; }
@media (prefers-reduced-motion: reduce) { .scroll-progress .fill { transition: none; } }

/* ── Back-to-top button ────────────────────────────────── */
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 99;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--border);
  background: linear-gradient(135deg,#f43f5e,#f97316 50%,#ff6ec4);
  color: #0a0d18; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(20px) scale(.85); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, box-shadow .25s ease;
}
.back-to-top.show  { opacity: .95; transform: translateY(0) scale(1); pointer-events: auto; }
.back-to-top:hover { opacity: 1; transform: translateY(-2px) scale(1.05); }
.back-to-top svg   { width: 20px; height: 20px; color: #fff; }
@media (max-width: 640px) { .back-to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { .back-to-top { transition: opacity .15s ease; } }

/* ── Navbar ────────────────────────────────────────────── */
.navbar-wrap { position: fixed; top: 18px; left: 0; right: 0; z-index: 1000; display: flex; justify-content: center; padding: 0 64px; pointer-events: none; transition: transform .3s ease, opacity .3s ease; }
.navbar-wrap.nav-hidden { transform: translateY(calc(-100% - 28px)); opacity: 0; pointer-events: none !important; }
.navbar {
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  padding: 10px 18px;
  background: var(--navbar-bg);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,.10), inset 0 1px 0 rgba(255,255,255,.05);
  max-width: 1200px;
  width: 100%;
}

/* Logo */
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); padding: 4px 10px 4px 4px; transition: background .2s ease; flex-shrink: 0; }
.nav-logo:hover { background: rgba(255,255,255,.05); }
.nav-logo img { height: 34px; width: auto; display: block; transition: transform .25s ease, filter .25s ease; }
.nav-logo:hover img { filter: drop-shadow(0 2px 8px rgba(244,63,94,.2)); transform: scale(1.02); }
body.light-mode .nav-logo:hover img { filter: drop-shadow(0 4px 14px rgba(244,63,94,.4)) drop-shadow(0 2px 6px rgba(249,115,22,.3)); transform: scale(1.02); }

/* Links — centred */
.nav-links { display: flex; align-items: center; justify-content: center; gap: 2px; list-style: none; min-width: 0; }
.nav-links a { color: var(--text-soft); text-decoration: none; font-size: 13px; font-weight: 400; padding: 9px 14px; transition: all .2s ease; white-space: nowrap; letter-spacing: .02em; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,.07); }

/* Right group — always right */
.nav-right { display: flex; align-items: center; gap: 8px; justify-content: flex-end; flex-shrink: 0; white-space: nowrap; pointer-events: auto; }

/* PL/EN */
.nav-lang { display: flex; align-items: center; gap: 0; }
.nav-lang-sep { font-size: 11px; color: var(--text-muted); opacity: .4; margin: 0 2px; }
.nav-lang-btn { background: transparent; border: 0; cursor: pointer; font-family: inherit; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--text-muted); padding: 5px 7px; transition: color .2s; }
.nav-lang-btn:hover { color: var(--text); }
.nav-lang-btn.active { color: var(--m-starlight, var(--text)); }

/* CTA button */
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px;
  background: linear-gradient(135deg,#f43f5e,#f97316);
  color: #fff !important; font-weight: 600 !important;
  text-decoration: none; font-size: 13px; letter-spacing: .02em;
  transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease;
  box-shadow: 0 4px 16px rgba(244,63,94,.35);
}
.nav-cta:hover { transform: translateY(-1px); opacity: .9; box-shadow: 0 8px 24px rgba(244,63,94,.5); }

/* Burger */
.nav-toggle { display: none; background: transparent; border: 0; color: var(--text); width: 40px; height: 40px; cursor: pointer; align-items: center; justify-content: center; transition: transform .25s ease, background .2s ease; flex-shrink: 0; pointer-events: auto; }
.nav-toggle svg { width: 22px; height: 22px; transition: opacity .2s ease, transform .25s ease; }
.nav-toggle:hover { background: rgba(255,255,255,.06); }
.nav-toggle .icon-close { display: none; }
.nav-toggle.is-open .icon-open { display: none; }
.nav-toggle.is-open .icon-close { display: block; }
.nav-toggle.is-open { transform: rotate(90deg); }

/* Dropdown */
.nav-has-dropdown { position: relative; }
.nav-dropdown-trigger { display: flex; align-items: center; gap: 4px; }
.nav-dropdown-trigger svg { transition: transform .2s ease; flex-shrink: 0; }
.nav-has-dropdown:hover .nav-dropdown-trigger svg { transform: rotate(180deg); }
.nav-has-dropdown::after { content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 12px; }
.nav-dropdown {
  position: absolute; top: calc(100% + 4px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 220px;
  background: var(--bg-2, #1e1e2a);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  padding: 6px;
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  transition-delay: 80ms;
  z-index: 200;
}
.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown:focus-within .nav-dropdown { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); transition-delay: 0ms; }
.nav-dropdown a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; color: var(--text-soft) !important; font-size: 13px; text-decoration: none; transition: background .15s, color .15s; white-space: nowrap; }
.nav-dropdown a:hover { background: rgba(255,255,255,.07); color: var(--text) !important; }
.nd-divider { height: 1px; background: var(--border-soft); margin: 4px 0; }
body.light-mode .nav-dropdown, body:not(.dark-mode) .nav-dropdown { background: #ffffff; border-color: rgba(10,13,24,.1); box-shadow: 0 12px 40px rgba(10,13,24,.12); }
body.light-mode .nav-dropdown a, body:not(.dark-mode) .nav-dropdown a { color: rgba(10,13,24,.65) !important; }
body.light-mode .nav-dropdown a:hover, body:not(.dark-mode) .nav-dropdown a:hover { background: rgba(249,115,22,.06); color: #1a1d2e !important; }
body.light-mode .nd-divider, body:not(.dark-mode) .nd-divider { background: rgba(10,13,24,.08); }

/* Backdrop */
.menu-backdrop { position: fixed; inset: 0; z-index: 998; background: rgba(5,6,10,.55); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.menu-backdrop.show { opacity: 1; pointer-events: auto; }

/* Mobile menu (hidden by default) */
.mobile-menu { display: none; }

/* Responsive */
@media (max-width: 1340px) { .navbar-wrap { padding: 0 24px; } }
@media (max-width: 1100px) { .nav-links a { padding: 9px 10px; font-size: 13px; } }
@media (max-width: 768px) {
  .navbar { padding: 8px 8px 8px 14px; grid-template-columns: auto auto; }
  .nav-links { display: none; }
  .nav-lang  { display: none; }
  .nav-cta   { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu {
    position: fixed; top: 80px; left: 16px; right: 16px;
    background: #1a1a28;
    border: 1px solid var(--border);
    padding: 14px;
    display: none; flex-direction: column;
    z-index: 9999; box-shadow: 0 30px 80px rgba(0,0,0,.7);
  }
  .mobile-menu.open { display: flex; }
  .mm-header { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
  .mm-logo img { height: 28px; width: auto; display: block; }
  .mm-close { background: rgba(255,255,255,.08); border: 1px solid var(--border); color: var(--text); width: 36px; height: 36px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; flex-shrink: 0; }
  .mm-close:hover { background: rgba(255,255,255,.16); }
  .mm-close svg { width: 18px; height: 18px; }
  body.light-mode .mm-close { background: rgba(0,0,0,.06); border-color: rgba(0,0,0,.12); color: #1a1a2e; }
  body.light-mode .mobile-menu { background: #f4f4f0; }
  body.light-mode .mobile-menu a { color: rgba(10,13,24,.75); }
  .mobile-menu a { display: block; color: var(--text-soft); text-decoration: none; padding: 12px 14px; font-size: 15px; font-weight: 500; }
  .mobile-menu a:hover, .mobile-menu a.active { background: rgba(255,255,255,.06); color: var(--text); }
  .mobile-menu .nav-cta { display: block; text-align: center; margin-top: 8px; }
}


/* ── Skip navigation (a11y) ──────────────────── */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  background: var(--btn-bg, #f43f5e);
  color: #fff;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 6px 6px;
  transition: top .15s ease;
}
.skip-nav:focus { top: 0; }

/* ── Buttons ────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; border: 0; transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease; letter-spacing: .01em; white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg,#f43f5e,#f97316); color: #fff !important; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,.18); box-shadow: 0 6px 24px rgba(244,63,94,.38); }
.btn-primary:hover { transform: translateY(-2px); opacity: .92; box-shadow: 0 12px 36px rgba(244,63,94,.55); }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text-soft); }
.btn-ghost:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.22); color: var(--text); transform: translateY(-1px); }

/* ── Hero ───────────────────────────────────────────────── */
.hero { display: block; position: relative; }
.hero h1 { font-size: clamp(2.8rem,7.5vw,5.6rem); line-height: 1.03; font-weight: 700; letter-spacing: -.035em; margin-bottom: 24px; max-width: 14ch; margin-left: auto; margin-right: auto; text-align: center; }
.hero h1 .grad, .page-hero h1 .grad, .page-hero h1 .m-grad, .about-text .grad, .section-head h2 .grad {
  background: linear-gradient(90deg, var(--m-blue, #f97316) 0%, #8b9ef5 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.hero p { font-size: clamp(1rem,1.6vw,1.125rem); color: var(--text-soft); max-width: 640px; margin: 0 auto 36px; line-height: 1.65; letter-spacing: .005em; }
.hero-sub { font-size: clamp(1rem,1.6vw,1.2rem); color: var(--text-soft); max-width: 520px; margin: 0 auto; line-height: 1.6; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats { margin-top: 64px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; max-width: 820px; margin-left: auto; margin-right: auto; }
@media (max-width: 640px) {
  .hero-stats { grid-template-columns: repeat(2,1fr); }
}

/* Hero animations */
@keyframes heroFadeIn { to { opacity: 1; } }
@keyframes heroFadeUp  { to { opacity: 1; transform: translateY(0); } }
@keyframes arrowBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(9px); } }

/* Pill / badge */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--glass); border: 1px solid var(--border); border-radius: 4px; font-size: 13px; color: var(--text-soft); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); margin-bottom: 28px; font-weight: 500; letter-spacing: .02em; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #f97316; box-shadow: 0 0 12px #f97316; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

/* Htags */

/* Stat */
.stat { padding: 18px 14px; background: var(--glass); border: 1px solid var(--border-soft); border-radius: 0; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.stat .n { font-size: 1.8rem; font-weight: 700; background: linear-gradient(135deg,#f43f5e,#f97316); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .l { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em; margin-top: 4px; }

/* Rotating word */
#rotatingWord { display: inline-block; transition: opacity .35s ease, filter .35s ease; will-change: opacity, filter; min-width: 5.5ch; text-align: center; }
#rotatingWord.fade-out { opacity: 0; filter: blur(8px); }
@media (prefers-reduced-motion: reduce) {
  #rotatingWord { transition: none; }
  #rotatingWord.fade-out { opacity: 1; filter: none; }
}

/* ── Section head ───────────────────────────────────────── */
.eyebrow { display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: #f97316; margin-bottom: 14px; }
.section-head { text-align: center; margin-bottom: 96px; }
.section-head h2 { font-size: clamp(2rem,4.5vw,3.4rem); font-weight: 300; letter-spacing: -.025em; line-height: 1.08; margin-bottom: 16px; }
.section-head p { color: var(--text-soft); max-width: 680px; margin: 0 auto; font-size: 18px; line-height: 1.65; }

/* ── Cards ──────────────────────────────────────────────── */
.card {
  position: relative; padding: 40px 36px;
  background: var(--glass); border: 1px solid var(--border); border-radius: 0;
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: transform .35s ease, border-color .25s ease, background .25s ease;
  overflow: hidden; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; min-height: 260px;
}
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg,rgba(244,63,94,.6),rgba(249,115,22,.4),rgba(255,110,196,.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s ease; pointer-events: none;
}
.card:hover { transform: translateY(-6px); background: var(--glass-strong); }
.card:hover::before { opacity: 1; }
.card .icon { width: 52px; height: 52px; border-radius: 8px; background: linear-gradient(135deg,rgba(244,63,94,.20),rgba(249,115,22,.14)); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: #f97316; margin-bottom: 18px; }
.card .icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; letter-spacing: -.01em; }
.card p  { color: var(--text-soft); font-size: 14.5px; flex: 1; }
.card .arrow { margin-top: 18px; display: inline-flex; align-items: center; gap: 6px; color: #f97316; font-size: 13.5px; font-weight: 600; letter-spacing: .02em; }
.card .arrow svg { width: 14px; height: 14px; transition: transform .25s ease; }
.card:hover .arrow svg { transform: translateX(4px); }

/* Service cards grid */
.services { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; }
@media (max-width: 980px) { .services { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }

/* ── Service category cards (scards) ───────────────────── */
.scat-num   { font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); opacity: .5; font-variant-numeric: tabular-nums; width: 100%; }
.scat-title { font-size: clamp(1.4rem,2.5vw,2rem); font-weight: 700; letter-spacing: -.02em; margin: 0; width: 100%; }
.scat-desc  { width: 100%; font-size: 15px; color: var(--text-muted); margin: 2px 0 0; }

/* ── About section ──────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: center; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-text h2 { font-size: clamp(2rem,4.5vw,3.2rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.08; margin-bottom: 20px; }
.about-text p  { color: var(--text-soft); margin-bottom: 16px; font-size: 16px; }
.skills { margin-top: 40px; display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.skill { padding: 12px 14px; background: var(--glass); border: 1px solid var(--border-soft); border-radius: 0; font-size: 13.5px; color: var(--text-soft); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; align-items: center; gap: 10px; }
.skill .b { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg,#f43f5e,#f97316); flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Contact ────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { padding: 48px; background: var(--glass); border: 1px solid var(--border); border-radius: 0; backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); }
.contact-card h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 20px; letter-spacing: -.01em; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .icn { width: 42px; height: 42px; border-radius: 8px; background: linear-gradient(135deg,rgba(244,63,94,.20),rgba(249,115,22,.14)); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: #f97316; flex-shrink: 0; }
.contact-item .icn svg { width: 18px; height: 18px; }
.contact-item .meta { flex: 1; }
.contact-item .l { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--text-muted); font-weight: 600; margin-bottom: 3px; }
.contact-item .v, .contact-item a { color: var(--text); text-decoration: none; font-size: 14.5px; line-height: 1.5; }
.contact-item a:hover { color: #f97316; }

/* ── Form fields ────────────────────────────────────────── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 8px; }
.field input, .field textarea, .field select { width: 100%; padding: 14px 16px; background: rgba(0,0,0,.25); border: 1px solid var(--border); border-radius: 14px; color: var(--text); font-family: inherit; font-size: 14.5px; transition: border-color .2s ease, background .2s ease; outline: none; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: rgba(244,63,94,.6); background: rgba(0,0,0,.35); box-shadow: 0 0 0 4px rgba(244,63,94,.12); }
.field textarea { resize: vertical; min-height: 130px; }

/* ── Gallery / Tiles ────────────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 20px; }
@media (max-width: 780px) { .gallery { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } }
.tile { aspect-ratio: 4/3; border-radius: 0; border: 1px solid var(--border); background: linear-gradient(135deg,rgba(244,63,94,.14),rgba(249,115,22,.08)); display: flex; align-items: flex-end; padding: 14px; position: relative; overflow: hidden; transition: transform .3s ease; }
.tile:hover { transform: translateY(-4px); }
.tile .tag  { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--text); background: rgba(0,0,0,.4); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); }
.tile .deco { position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%,rgba(255,255,255,.18),transparent 60%),radial-gradient(circle at 80% 80%,rgba(249,115,22,.25),transparent 50%); }

/* ── Subpage hero ───────────────────────────────────────── */
.page-hero { padding-top: 160px; padding-bottom: 100px; text-align: left; background: transparent; position: relative; overflow: hidden; }
body.light-mode @media (prefers-color-scheme: light) { body:not(.dark-mode)  }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .crumbs  { justify-content: flex-start; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 24px; opacity: .6; }
.page-hero .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--m-lead, var(--text-muted)); margin-bottom: 16px; display: block; }
.page-hero h1 { font-size: clamp(42px,5.5vw,70px); font-weight: 300; line-height: 1.1; letter-spacing: -.02em; margin-bottom: 22px; max-width: 820px; margin-left: 0; margin-right: 0; color: var(--m-starlight, var(--text)); }
.page-hero h1 strong { font-weight: 400; color: var(--m-starlight, var(--text)); }
.page-hero p  { font-size: clamp(16px,1.8vw,19px); color: var(--m-silver, var(--text-soft)); max-width: 540px; margin: 0 0 44px; line-height: 1.7; font-weight: 300; }
.page-hero .btn { display: inline-flex; }
.page-hero .hero-actions { justify-content: flex-start; }
@media (max-width: 768px) { .page-hero { padding-top: 120px; padding-bottom: 56px; } }

/* Page-hero badge */
.page-hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(112,112,125,.10); border: 1px solid rgba(112,112,125,.20); padding: 5px 16px 5px 8px; font-size: 12px; color: var(--m-silver, var(--text-soft)); margin-bottom: 20px; letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
.page-hero-badge .bdot { width: 6px; height: 6px; border-radius: 50%; background: var(--mj-accent); box-shadow: 0 0 8px var(--mj-accent); animation: bpulse 2s infinite; }
@keyframes bpulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* Breadcrumbs */
.crumbs { display: flex; gap: 8px; font-size: 12px; color: var(--text-muted); margin-bottom: 14px; letter-spacing: .02em; }
.crumbs a, .crumbs a:visited { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: #f97316; }

/* ── Content blocks (subpages) ──────────────────────────── */
.content-wrap { padding: 0; }
.content-block { background: transparent !important; border: none !important; border-top: 1px solid rgba(255,255,255,.09) !important; border-radius: 0 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; padding: 64px 0 !important; margin-bottom: 0 !important; }
.content-block:first-child { border-top: none !important; }
.content-block h2 { font-size: clamp(1.6rem,3vw,2.4rem); font-weight: 300; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 24px; }
.content-block h3 { font-size: 1.2rem; margin: 18px 0 10px; color: #f97316; letter-spacing: .01em; }
.content-block p  { color: var(--text-soft); margin-bottom: 14px; font-size: 15.5px; }
.content-block strong { color: var(--text); }
.content-block ul { list-style: none; padding: 0; margin: 10px 0 18px; }
.content-block ul li { padding: 10px 0 10px 28px; position: relative; color: var(--text-soft); font-size: 14.5px; border-bottom: 1px dashed var(--border-soft); }
.content-block ul li:last-child { border-bottom: 0; }
.content-block ul li::before { content: ""; position: absolute; left: 0; top: 16px; width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(135deg,#f43f5e,#f97316); box-shadow: 0 0 12px rgba(244,63,94,.5); }
section > .container > .content-wrap > .content-block + .content-block { border-top: 1px solid rgba(255,255,255,.08) !important; }
@media (max-width: 768px) { .content-block { padding: 36px 0 !important; } }

/* Split layout */
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Feature list */
.feature-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); margin: 24px 0; }
@media (max-width: 600px) { .feature-list { grid-template-columns: 1fr; } }
.feature { background: var(--bg-2, #0a0d18) !important; border: none !important; border-radius: 0 !important; padding: 28px 26px !important; transition: background .2s; }
.feature:hover { background: rgba(249,115,22,.06) !important; }
.feature h4 { font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.feature h4::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--mj-accent); flex-shrink: 0; }
.feature p { font-size: 14px; color: var(--text-soft); line-height: 1.65; margin: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); margin-top: 28px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--bg-2, #0a0d18) !important; border: none !important; border-radius: 0 !important; padding: 32px 24px !important; transition: background .2s; }
.step:hover { background: rgba(249,115,22,.06) !important; }
.step .num { font-size: 11px !important; font-weight: 700 !important; letter-spacing: .14em !important; color: var(--mj-accent) !important; background: none !important; -webkit-text-fill-color: unset !important; margin-bottom: 14px; }
.step h4 { font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.step p  { font-size: 13px; color: var(--text-soft); line-height: 1.6; }

/* Others / related */
.others      { margin-top: 100px; }
.others-head { text-align: center; margin-bottom: 48px; }
.others-head h3 { font-size: 1.4rem; margin-bottom: 6px; }
.others-head p  { color: var(--text-muted); font-size: 14px; }

/* CTA band */
.cta-band { margin-top: 64px; padding: 72px 56px; text-align: center; background: linear-gradient(135deg,rgba(244,63,94,.10) 0%,rgba(249,115,22,.06) 100%) !important; border: 1px solid rgba(244,63,94,.20) !important; border-radius: 0 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 100% at 50% 100%,rgba(249,115,22,.10) 0%,transparent 65%); pointer-events: none; }
.cta-band > * { position: relative; }
.cta-band h3 { font-size: clamp(1.5rem,3vw,2.2rem); font-weight: 300; letter-spacing: -.02em; margin-bottom: 14px; }
.cta-band p  { font-size: 16px; color: var(--text-soft); max-width: 520px; margin: 0 auto 32px; }
@media (max-width: 768px) { .cta-band { padding: 48px 24px; } }

/* ── Case studies ───────────────────────────────────────── */
.case-studies { display: flex; flex-direction: column; gap: 24px; margin-top: 28px; }
.case-card { border-radius: 0 !important; border-left: none !important; border-right: none !important; border-top: none !important; border-bottom: 1px solid rgba(255,255,255,.09) !important; background: transparent !important; backdrop-filter: none !important; padding: 32px 0 !important; }
.case-card:hover { border-bottom-color: rgba(249,115,22,.35) !important; }
.case-header  { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.case-badge   { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(249,115,22,.12); border: 1px solid rgba(249,115,22,.25); color: rgba(249,115,22,.9); }
.case-badge--motion { background: rgba(244,63,94,.1); border-color: rgba(244,63,94,.22); color: rgba(244,63,94,.9); }
.case-badge--audio  { background: rgba(244,63,94,.1); border-color: rgba(244,63,94,.22); color: rgba(255,110,196,.9); }
.case-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.case-card p, .case-challenge { color: var(--text-soft); font-size: 14px; line-height: 1.65; margin-bottom: 16px; }
.case-results { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border-soft); }
.case-result  { text-align: center; }
.case-n { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; background: linear-gradient(135deg,#f43f5e,#f97316); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.case-l { display: block; font-size: 11px; color: var(--text-muted); margin-top: 2px; line-height: 1.4; }
.tool-stack  { margin-top: 28px; }
.tool-chips  { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-chips span { font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 4px; background: var(--glass); border: 1px solid var(--border); color: var(--text-soft); }
@media (max-width: 640px) { .case-results { grid-template-columns: 1fr 1fr; } .case-card { padding: 20px 0 !important; } }

/* Section-head h2 override */
.section-head h2 { font-weight: 300 !important; }

/* ── Blog / Article ─────────────────────────────────────── */
.article { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; margin-bottom: 18px; color: var(--text-muted); font-size: 13px; }
.article-meta .tag { display: inline-block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: #f97316; background: rgba(249,115,22,.1); padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(249,115,22,.2); }
.article-meta .sep { opacity: .5; }
.article-body { padding: 36px 40px; background: var(--glass); border: 1px solid var(--border); border-radius: 0; backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); margin-bottom: 28px; }
@media (max-width: 640px) { .article-body { padding: 28px 22px; } }
.article-body p { color: var(--text-soft); font-size: 16px; line-height: 1.75; margin-bottom: 18px; }
.article-body p.lead { font-size: 18px; color: var(--text); font-weight: 400; margin-bottom: 24px; }
.article-body h2 { font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; margin: 34px 0 14px; color: var(--text); }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 1.2rem; font-weight: 600; margin: 24px 0 10px; color: #f97316; }
.article-body ul, .article-body ol { margin: 14px 0 22px 22px; color: var(--text-soft); font-size: 15.5px; }
.article-body li { padding: 6px 0; line-height: 1.6; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body em { color: var(--text); }
.article-body a { color: #f97316; text-decoration: none; border-bottom: 1px solid rgba(249,115,22,.4); transition: border-color .2s; }
.article-body a:hover { border-bottom-color: #f97316; }
.article-body blockquote { margin: 22px 0; padding: 18px 22px; background: linear-gradient(135deg,rgba(244,63,94,.1),rgba(249,115,22,.06)); border-left: 3px solid #f97316; border-radius: 0; color: var(--text); font-style: italic; font-size: 16px; }
.article-body .key-takeaways { margin: 30px 0; padding: 24px 26px; background: linear-gradient(135deg,rgba(244,63,94,.14),rgba(249,115,22,.064)); border: 1px solid rgba(244,63,94,.3); border-radius: 0; }
.article-body .key-takeaways h3 { margin-top: 0; color: var(--text); font-size: 1.1rem; }
.article-body .key-takeaways ul { margin: 8px 0 0; list-style: none; padding: 0; }
.article-body .key-takeaways li { padding: 8px 0 8px 26px; position: relative; color: var(--text-soft); font-size: 14.5px; line-height: 1.5; }
.article-body .key-takeaways li::before { content: ""; position: absolute; left: 0; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg,#f43f5e,#f97316); box-shadow: 0 0 10px rgba(244,63,94,.5); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 32px 0; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } }
.post-nav a { padding: 20px 22px; background: var(--glass); border: 1px solid var(--border-soft); border-radius: 0; text-decoration: none; color: var(--text); transition: all .25s ease; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.post-nav a:hover { background: var(--glass-strong); border-color: rgba(255,255,255,.2); transform: translateY(-2px); }
.post-nav a .nav-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 6px; display: block; }
.post-nav a .nav-title { font-size: 14.5px; line-height: 1.4; font-weight: 500; }
.post-nav a.disabled { opacity: .35; pointer-events: none; }
.post-nav a.next { text-align: right; }
.related-head { text-align: center; margin: 28px 0 20px; }
.related-head h3 { font-size: 1.4rem; margin-bottom: 6px; }
.related-head p  { color: var(--text-muted); font-size: 14px; }
.article .services { gap: 20px; }
.article .services .card { padding: 24px 22px; min-height: auto; }

/* Series progress */
.series-progress { display: flex; align-items: center; gap: 10px; margin: 14px auto 0; font-size: 12.5px; color: var(--text-muted); justify-content: center; flex-wrap: wrap; }
.series-progress .bar { position: relative; width: 200px; height: 2px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.series-progress .fill { position: absolute; left: 0; top: 0; height: 100%; background: linear-gradient(90deg,#f43f5e,#f97316 50%,#ff6ec4); border-radius: 99px; }

/* Akademia badge */
.akademia-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: linear-gradient(135deg,#FFCB20,#FF2277,#C62BF9); color: #0a0d18; box-shadow: 0 6px 22px rgba(198,43,249,.35); margin-bottom: 14px; }
.akademia-badge svg { width: 13px; height: 13px; }

/* PDF viewer */
.pdf-viewer { margin: 26px 0; border-radius: 0; overflow: hidden; border: 1px solid var(--border); background: rgba(0,0,0,.35); box-shadow: 0 30px 70px rgba(0,0,0,.45); position: relative; }
.pdf-viewer iframe, .pdf-viewer object, .pdf-viewer embed { display: block; width: 100%; height: 760px; border: 0; background: rgba(0,0,0,.4); }
@media (max-width: 700px) { .pdf-viewer iframe, .pdf-viewer object, .pdf-viewer embed { height: 560px; } }
.pdf-actions  { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; align-items: center; margin: 18px 0 6px; }

/* Comments */
.comments-section { padding: 0 !important; margin: 0 !important; min-height: 0; }
.comments-section section.comments,
.comments-section #disqus_thread section,
.disqus-frame section,
section.comments { margin: 0 !important; padding: 0 !important; background: none !important; border: none !important; border-radius: 0 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; box-shadow: none !important; min-height: 0 !important; display: block !important; }
.comment-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .comment-form .form-row { grid-template-columns: 1fr; } }
.comment-form .field { margin-bottom: 14px; }
.comment-form .helper { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 6px; }
.comment-form .submit-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.comment-form .form-msg { font-size: 13px; min-height: 16px; }
.comment-form { margin-bottom: 30px; }
.comment-list  { display: flex; flex-direction: column; gap: 14px; }
.comment-empty { text-align: center; padding: 24px; color: var(--text-muted); font-size: 14px; border: 1px dashed var(--border-soft); border-radius: 0; }
.comment-item  { padding: 18px 20px; background: rgba(0,0,0,.18); border: 1px solid var(--border-soft); border-radius: 0; position: relative; }
.comment-item .ch { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.comment-item .avatar { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg,#f43f5e,#f97316); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #0a0d18; font-size: 14px; }
.comment-item .info { display: flex; flex-direction: column; }
.comment-item .name { font-weight: 600; color: var(--text); font-size: 14px; line-height: 1.3; }
.comment-item .email { color: var(--text-muted); font-size: 11.5px; letter-spacing: .02em; }
.comment-item .when { margin-left: auto; color: var(--text-muted); font-size: 11.5px; }
.comment-item .body { color: var(--text-soft); font-size: 14.5px; line-height: 1.6; white-space: pre-wrap; }
.comment-item .pending { display: inline-block; font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: #FFCB20; background: rgba(255,203,32,.1); border: 1px solid rgba(255,203,32,.3); padding: 3px 8px; border-radius: 999px; margin-top: 6px; }

/* ── Error page ─────────────────────────────────────────── */
.error-hero { min-height: calc(100vh - 80px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 160px 24px 80px; position: relative; }
.error-code  { font-size: clamp(8rem,22vw,16rem); font-weight: 700; line-height: 1; letter-spacing: -.04em; background: linear-gradient(135deg,#f43f5e 0%,#f97316 50%,#ff6ec4 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 30px 80px rgba(244,63,94,.4)); margin-bottom: 24px; animation: err-float 6s ease-in-out infinite; }
@keyframes err-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.error-title { font-size: clamp(1.6rem,3.5vw,2.6rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: 14px; max-width: 18ch; }
.error-desc  { color: var(--text-soft); max-width: 560px; margin: 0 auto 32px; font-size: 16px; }
.error-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 50px; }
.error-suggest { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; width: 100%; max-width: 880px; margin-top: 8px; }
@media (max-width: 780px) { .error-suggest { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .error-suggest { grid-template-columns: 1fr; } }
.suggest-card { padding: 18px; text-align: left; background: var(--glass); border: 1px solid var(--border-soft); border-radius: 0; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); text-decoration: none; color: var(--text); transition: transform .25s ease, background .25s ease, border-color .25s ease; display: flex; align-items: center; gap: 12px; }
.suggest-card:hover { transform: translateY(-3px); background: var(--glass-strong); border-color: rgba(255,255,255,.2); }
.suggest-card .sicn { width: 36px; height: 36px; border-radius: 8px; background: linear-gradient(135deg,rgba(244,63,94,.20),rgba(249,115,22,.14)); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: #f97316; flex-shrink: 0; }
.suggest-card .sicn svg { width: 16px; height: 16px; }
.suggest-card .sttl { font-weight: 600; font-size: 14px; line-height: 1.3; }
.suggest-card .sdsc { color: var(--text-muted); font-size: 12.5px; margin-top: 2px; }

/* ── Cookie banner ──────────────────────────────────────── */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: space-between;
  padding: 16px 40px;
  background: rgba(10,11,18,.92);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-top: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 -10px 40px rgba(0,0,0,.4);
  transform: translateY(100%); transition: transform .45s cubic-bezier(.2,.9,.25,1);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg,transparent,rgba(249,115,22,.5) 30%,rgba(244,63,94,.5) 70%,transparent); }
.cookie-banner .ck-icon { display: none; }
.cookie-banner .ck-text { flex: 1; min-width: 200px; font-size: 13px; color: var(--text-muted); line-height: 1.55; font-weight: 300; }
.cookie-banner .ck-text strong { color: var(--text); display: inline; font-weight: 500; font-size: 13px; margin-right: 6px; }
.cookie-banner .ck-text a { color: #f97316; text-decoration: none; }
.cookie-banner .ck-text a:hover { text-decoration: underline; }
.cookie-banner .ck-actions { display: flex; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }
.cookie-banner .ck-btn { padding: 9px 20px; border-radius: 0; font-size: 12.5px; font-weight: 600; border: 0; cursor: pointer; font-family: inherit; letter-spacing: .03em; transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease; }
.cookie-banner .ck-accept { background: linear-gradient(135deg,#f43f5e,#f97316); color: #fff; box-shadow: 0 4px 14px rgba(244,63,94,.35); }
.cookie-banner .ck-accept:hover { transform: translateY(-1px); opacity: .92; box-shadow: 0 8px 22px rgba(244,63,94,.5); }
.cookie-banner .ck-decline { background: transparent; color: var(--text-muted); border: 1px solid rgba(255,255,255,.14); }
.cookie-banner .ck-decline:hover { background: rgba(255,255,255,.06); color: var(--text); transform: translateY(-1px); }
@media (max-width: 640px) { .cookie-banner { padding: 16px 20px; gap: 14px; } .cookie-banner .ck-actions { width: 100%; } .cookie-banner .ck-btn { flex: 1; text-align: center; } }

/* ── Footer ─────────────────────────────────────────────── */
footer { margin-top: 0; padding: 80px 0 32px; border-top: 0; background: transparent; position: relative; }
footer::before { content: ""; display: block; height: 1px; background: linear-gradient(90deg,transparent,rgba(249,115,22,.35) 20%,rgba(244,63,94,.35) 50%,rgba(249,115,22,.35) 80%,transparent); margin-bottom: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr 1fr; gap: 40px; margin-bottom: 72px; }
@media (max-width: 1100px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 28px; } }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.foot-brand img { height: 36px; margin-bottom: 0; display: block; filter: none; transition: transform .25s ease; }
.foot-brand img:hover { transform: scale(1.03); }
.foot-brand p { color: var(--text-muted); font-size: 13px; max-width: 280px; line-height: 1.65; font-weight: 300; margin-top: 14px; }
.foot h4 { font-size: 10.5px; text-transform: uppercase; letter-spacing: .22em; color: var(--text-muted); font-weight: 500; margin-bottom: 20px; }
.foot ul { list-style: none; }
.foot ul li { margin-bottom: 9px; }
.foot ul a { color: var(--text-soft); text-decoration: none; font-size: 13.5px; font-weight: 300; transition: color .2s ease; letter-spacing: .01em; }
.foot ul li { margin-bottom: 9px; }
/* Kolumna lokalne SEO — zwarta */
.foot-local ul li { margin-bottom: 5px; }
.foot-local ul a { font-size: 12.5px; }
.foot-local h4 { margin-bottom: 12px; }
.foot ul a:hover { color: #f97316; }
.foot .small { color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.socials { display: flex; gap: 8px; margin-top: 20px; }
.socials a { width: 36px; height: 36px; border-radius: 10px; background: transparent; border: 1px solid var(--border-soft); display: flex; align-items: center; justify-content: center; color: var(--text-muted); text-decoration: none; transition: all .2s ease; }
.socials a:hover { background: linear-gradient(135deg,#f43f5e,#f97316); color: #0a0d18; transform: translateY(-2px); border-color: transparent; }
.socials a svg { width: 16px; height: 16px; }
.copy { border-top: 1px solid rgba(255,255,255,.07); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--text-muted); font-size: 12px; letter-spacing: .02em; font-weight: 300; }
.copy-links { display: flex; gap: 16px; align-items: center; }
.copy-links a { color: inherit; text-decoration: none; opacity: .6; transition: opacity .2s; }
.copy-links a:hover { opacity: 1; }
.copy-links span { opacity: .3; }
/* Footer contact column */
.foot-contact ul li { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.foot-contact ul li svg { flex-shrink: 0; opacity: .5; }
.foot-contact ul li a, .foot-contact ul li span { color: var(--text-soft); text-decoration: none; font-size: 13px; }
.foot-contact ul li a:hover { color: #f97316; }
.foot-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; padding: 10px 20px; background: linear-gradient(135deg,#f43f5e,#f97316); color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; transition: opacity .2s, transform .2s; }
.foot-cta:hover { opacity: .88; transform: translateX(3px); }
/* Logo dark/light swap */
.foot-logo-light { display: none; }
body.light-mode .foot-logo-dark { display: none; }
body.light-mode .foot-logo-light { display: block; }

/* ── Scroll reveal ──────────────────────────────────────── */
.reveal { opacity: 0; transition: opacity .6s ease; }
.reveal.visible { opacity: 1; }
.reveal:nth-child(1) { transition-delay: .05s; }
.reveal:nth-child(2) { transition-delay: .13s; }
.reveal:nth-child(3) { transition-delay: .21s; }
.reveal:nth-child(4) { transition-delay: .29s; }
.reveal:nth-child(5) { transition-delay: .37s; }
.reveal:nth-child(6) { transition-delay: .45s; }
.reveal:nth-child(7) { transition-delay: .53s; }
.reveal:nth-child(8) { transition-delay: .61s; }
.reveal:nth-child(9) { transition-delay: .69s; }

/* ── Container responsive ───────────────────────────────── */
@media (max-width: 640px) { .container { padding: 0 20px; } }

/* ── Light-mode feature/step overrides — must be LAST to beat !important cascade ── */
body.light-mode .feature-list,
body.light-mode .steps                { background: rgba(10,13,24,.10) !important; border-color: rgba(10,13,24,.10) !important; }
body.light-mode .feature,
body.light-mode .step                 { background: #ffffff !important; border-color: rgba(10,13,24,.09) !important; }
body.light-mode .feature:hover,
body.light-mode .step:hover           { background: rgba(249,115,22,.05) !important; }

@media (prefers-color-scheme: light) {
  body:not(.dark-mode) .feature-list,
  body:not(.dark-mode) .steps         { background: rgba(10,13,24,.10) !important; border-color: rgba(10,13,24,.10) !important; }
  body:not(.dark-mode) .feature,
  body:not(.dark-mode) .step          { background: #ffffff !important; border-color: rgba(10,13,24,.09) !important; }
  body:not(.dark-mode) .feature:hover,
  body:not(.dark-mode) .step:hover    { background: rgba(249,115,22,.05) !important; }
}

/* stat-item light-mode — after base rule */
body.light-mode .stat-item { background: #ffffff !important; }
body.light-mode .stat-item:hover { background: rgba(249,115,22,.04) !important; }
@media (prefers-color-scheme: light) {
  body:not(.dark-mode) .stat-item { background: #ffffff !important; }
  body:not(.dark-mode) .stat-item:hover { background: rgba(249,115,22,.04) !important; }
}

/* ── Hero entrance animations ───────────────────────────────────────────────── */
@keyframes phFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes phFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes phSlideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {

  /* ─ Subpage .page-hero ─ */
  .page-hero .crumbs         { opacity: 0; animation: phFadeUp .5s  cubic-bezier(.22,1,.36,1) .05s  forwards; }
  .page-hero .page-hero-badge{ opacity: 0; animation: phFadeUp .5s  cubic-bezier(.22,1,.36,1) .12s  forwards; }
  .page-hero .eyebrow        { opacity: 0; animation: phFadeUp .55s cubic-bezier(.22,1,.36,1) .18s  forwards; }
  .page-hero h1              { opacity: 0; animation: phSlideUp .7s cubic-bezier(.22,1,.36,1) .24s  forwards; }
  .page-hero p               { opacity: 0; animation: phFadeUp .55s cubic-bezier(.22,1,.36,1) .38s  forwards; }
  .page-hero .hero-actions   { opacity: 0; animation: phFadeUp .55s cubic-bezier(.22,1,.36,1) .50s  forwards; }
  .page-hero .about-tags     { opacity: 0; animation: phFadeUp .5s  cubic-bezier(.22,1,.36,1) .58s  forwards; }
  .page-hero .stat-row       { opacity: 0; animation: phFadeUp .5s  cubic-bezier(.22,1,.36,1) .62s  forwards; }

  /* ─ Homepage Mercury #m-hero ─ */
  .m-hero-h1                 { opacity: 0; animation: phSlideUp .75s cubic-bezier(.22,1,.36,1) .05s  forwards; }
  .m-hero-sub                { opacity: 0; animation: phFadeUp .6s  cubic-bezier(.22,1,.36,1) .24s  forwards; }
  .m-hero-actions            { opacity: 0; animation: phFadeUp .55s cubic-bezier(.22,1,.36,1) .38s  forwards; }
  .m-hero-stats              { opacity: 0; animation: phFadeUp .5s  cubic-bezier(.22,1,.36,1) .52s  forwards; }
}

/* ═══════════════════════════════════════════════════════
   SHARED SERVICE PAGE COMPONENTS (ug-*)
   Used on: uslugi-graficzne, montaz-wideo, ai-content,
            animacje-2d, automatyzacje-ai, fotografia,
            fotografia-produktowa, retusz, projektowanie-stron
═══════════════════════════════════════════════════════ */

/* Services grid */
.ug-sections > * + * { margin-top: 72px; }
.ug-services {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(112,112,125,.18);
}
@media (max-width: 860px) { .ug-services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .ug-services { grid-template-columns: 1fr; } }
.ug-service {
  padding: 32px 28px;
  background: var(--m-abyss);
  border-right: 1px solid rgba(112,112,125,.18);
  border-bottom: 1px solid rgba(112,112,125,.18);
  transition: background .2s;
}
.ug-service:hover { background: rgba(249,115,22,.04); }
.ug-service-num { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--m-lead); margin-bottom: 16px; text-transform: uppercase; }
.ug-service h3 { font-size: 17px; font-weight: 500; color: var(--m-starlight); margin-bottom: 10px; line-height: 1.3; }
.ug-service p  { font-size: 14px; color: var(--m-lead); line-height: 1.7; }
.ug-service-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ug-service-tags span { font-size: 11px; font-weight: 600; letter-spacing: .06em; padding: 3px 9px; background: rgba(112,112,125,.10); border: 1px solid rgba(112,112,125,.20); color: var(--m-lead); }

/* Process steps */
.ug-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(112,112,125,.18); border: 1px solid rgba(112,112,125,.18); }
@media (max-width: 780px) { .ug-steps { grid-template-columns: repeat(2, 1fr); } }
.ug-step { background: var(--m-abyss); padding: 32px 26px; transition: background .2s; }
.ug-step:hover { background: var(--m-surface); }
.ug-step-n { font-size: 32px; font-weight: 200; color: rgba(112,112,125,.25); line-height: 1; margin-bottom: 16px; letter-spacing: -.02em; }
.ug-step h4 { font-size: 16px; font-weight: 500; color: var(--m-starlight); margin-bottom: 8px; }
.ug-step p  { font-size: 14px; color: var(--m-lead); line-height: 1.65; }

/* Tools */
.ug-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.ug-tool { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid rgba(112,112,125,.22); font-size: 13px; color: var(--m-silver); font-weight: 500; transition: border-color .2s, color .2s; }
.ug-tool:hover { border-color: rgba(249,115,22,.4); color: var(--m-starlight); }
.ug-tool-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--m-blue); flex-shrink: 0; }

/* Stats bar */
.ug-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(112,112,125,.18); border-bottom: 1px solid rgba(112,112,125,.18); margin: 80px 0; }
@media (max-width: 640px) { .ug-stats { grid-template-columns: repeat(2, 1fr); } }
.ug-stat { padding: 36px 28px; background: var(--m-abyss); border-right: 1px solid rgba(112,112,125,.18); }
.ug-stat:last-child { border-right: none; }
.ug-stat-n { font-size: 36px; font-weight: 300; color: var(--m-starlight); line-height: 1; letter-spacing: -.02em; margin-bottom: 6px; }
.ug-stat-l { font-size: 12px; color: var(--m-lead); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }

/* Section heading */
.ug-head { margin-bottom: 32px; }
.ug-head h2 { font-size: clamp(22px,3vw,30px); font-weight: 400; color: var(--m-starlight); margin-bottom: 10px; letter-spacing: -.02em; }
.ug-head p { font-size: 16px; color: var(--m-lead); line-height: 1.7; max-width: 640px; }
.ug-section { padding: 80px 0; border-bottom: 1px solid rgba(112,112,125,.12); }
.ug-section:last-child { border-bottom: none; }

/* FAQ */
.ug-faq { margin-top: 0; }
.ug-faq-item { border-top: 1px solid rgba(112,112,125,.18); padding: 24px 0; }
.ug-faq-item:last-child { border-bottom: 1px solid rgba(112,112,125,.18); }
.ug-faq-q { font-size: 17px; font-weight: 500; color: var(--m-starlight); margin-bottom: 10px; }
.ug-faq-a { font-size: 15px; color: var(--m-lead); line-height: 1.7; max-width: 680px; }


/* ── ug-h2 ───────────────────────────────────────────────── */
.ug-h2 { font-size: clamp(22px,3vw,30px); font-weight: 400; color: var(--m-starlight); margin-bottom: 10px; letter-spacing: -.02em; }

/* ── ug-cta-band ─────────────────────────────────────────── */
.ug-cta-band { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: 48px 52px; background: var(--m-surface); border: 1px solid rgba(112,112,125,.18); margin-top: 80px; }
.ug-cta-text h3 { font-size: clamp(18px,2.5vw,24px); font-weight: 400; color: var(--m-starlight); margin-bottom: 8px; letter-spacing: -.02em; }
.ug-cta-text p  { font-size: 15px; color: var(--m-lead); line-height: 1.6; max-width: 520px; }
@media (max-width: 680px) { .ug-cta-band { padding: 36px 28px; flex-direction: column; align-items: flex-start; } }

/* ── ug-related ──────────────────────────────────────────── */
.ug-related { margin-top: 64px; }
.ug-related-head { margin-bottom: 24px; }
.ug-related-head h3 { font-size: 18px; font-weight: 500; color: var(--m-starlight); margin-bottom: 6px; letter-spacing: -.01em; }
.ug-related-head p  { font-size: 14px; color: var(--m-lead); }
.ug-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(112,112,125,.18); border: 1px solid rgba(112,112,125,.18); }
@media (max-width: 720px) { .ug-related-grid { grid-template-columns: 1fr; } }
.ug-rel-card { display: flex; flex-direction: column; padding: 28px 28px 24px; background: var(--m-abyss); text-decoration: none; color: inherit; transition: background .2s; }
.ug-rel-card:hover { background: var(--m-surface); }
.ug-rel-tag { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #f97316; margin-bottom: 12px; }
.ug-rel-card h3 { font-size: 16px; font-weight: 500; color: var(--m-starlight); margin-bottom: 8px; line-height: 1.3; }
.ug-rel-card p  { font-size: 13px; color: var(--m-lead); line-height: 1.6; flex: 1; }
.ug-rel-arrow { display: inline-block; margin-top: 16px; font-size: 13px; font-weight: 600; color: #f97316; letter-spacing: .02em; }
/* ── ug-related light mode ──────────────────────────────── */
body.light-mode .ug-related-grid { background: rgba(10,13,24,.10); border-color: rgba(10,13,24,.10); }
body.light-mode .ug-rel-card { background: var(--m-abyss); }
body.light-mode .ug-rel-card:hover { background: var(--m-surface); }
body.light-mode .ug-rel-card h3 { color: var(--m-starlight); }
body.light-mode .ug-rel-card p { color: var(--m-lead); }
body:not(.dark-mode) .ug-related-grid { background: rgba(10,13,24,.10); border-color: rgba(10,13,24,.10); }
body:not(.dark-mode) .ug-rel-card { background: var(--m-abyss); }
body:not(.dark-mode) .ug-rel-card:hover { background: var(--m-surface); }
body:not(.dark-mode) .ug-rel-card h3 { color: var(--m-starlight); }
body:not(.dark-mode) .ug-rel-card p { color: var(--m-lead); }


/* ── Blog grid & cards ───────────────────────────────────── */
.ug-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(112,112,125,.18); border: 1px solid rgba(112,112,125,.18); }
@media (max-width: 900px) { .ug-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ug-blog-grid { grid-template-columns: 1fr; } }

.ug-blog-card { display: flex; flex-direction: column; padding: 28px 26px 24px; background: var(--m-abyss); text-decoration: none; transition: background .2s; }
.ug-blog-card:hover { background: var(--m-surface); }
.ug-blog-card .ug-bc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.ug-blog-card .ug-bc-tag { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #f97316; background: rgba(249,115,22,.08); padding: 3px 9px; border: 1px solid rgba(249,115,22,.18); }
.ug-blog-card h3 { font-size: 15px; font-weight: 500; color: var(--m-starlight); line-height: 1.4; margin-bottom: 10px; letter-spacing: -.01em; }
.ug-blog-card p  { font-size: 13px; color: var(--m-lead); line-height: 1.65; flex: 1; }
.ug-blog-card .ug-bc-meta { display: flex; gap: 12px; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(112,112,125,.14); font-size: 11.5px; color: var(--m-lead); }
.ug-blog-card .ug-bc-arrow { font-size: 12px; font-weight: 600; color: #f97316; margin-top: 14px; letter-spacing: .02em; }

/* Blog filter pills */
.ug-blog-filter { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.ug-blog-filter button { background: transparent; border: 1px solid rgba(112,112,125,.28); color: var(--m-lead); font-family: inherit; font-size: 12px; font-weight: 500; padding: 7px 16px; cursor: pointer; transition: all .18s ease; letter-spacing: .02em; }
.ug-blog-filter button:hover { border-color: rgba(112,112,125,.55); color: var(--m-starlight); }
.ug-blog-filter button.active { background: linear-gradient(135deg,#f43f5e,#f97316); color: #fff; border-color: transparent; font-weight: 600; }

/* Article related cards (replaces .services .card in articles) */
.ug-article-related { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: rgba(112,112,125,.18); border: 1px solid rgba(112,112,125,.18); margin-top: 24px; }
@media (max-width: 720px) { .ug-article-related { grid-template-columns: 1fr; } }
.ug-article-card { display: flex; flex-direction: column; padding: 22px 22px 18px; background: var(--m-abyss); text-decoration: none; transition: background .2s; }
.ug-article-card:hover { background: var(--m-surface); }
.ug-article-card .ug-ac-tag { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #f97316; margin-bottom: 10px; }
.ug-article-card h3 { font-size: 14px; font-weight: 500; color: var(--m-starlight); line-height: 1.4; margin-bottom: 8px; }
.ug-article-card p  { font-size: 12.5px; color: var(--m-lead); line-height: 1.6; flex: 1; }
.ug-article-card .ug-ac-arrow { font-size: 12px; font-weight: 600; color: #f97316; margin-top: 12px; }

/* Article CTA band */
.ug-article-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 36px 40px; background: var(--m-surface); border: 1px solid rgba(112,112,125,.18); margin-top: 40px; }
.ug-article-cta h3 { font-size: 18px; font-weight: 400; color: var(--m-starlight); margin-bottom: 6px; letter-spacing: -.01em; }
.ug-article-cta p  { font-size: 14px; color: var(--m-lead); line-height: 1.6; max-width: 460px; }
@media (max-width: 640px) { .ug-article-cta { padding: 28px 24px; flex-direction: column; align-items: flex-start; } }

/* Related section head (in articles) */
.ug-article-related-head { margin: 36px 0 0; padding-top: 32px; border-top: 1px solid rgba(112,112,125,.14); }
.ug-article-related-head h3 { font-size: 16px; font-weight: 500; color: var(--m-starlight); margin-bottom: 4px; }
.ug-article-related-head p  { font-size: 13px; color: var(--m-lead); }

/* ── Arrow SVG sizes ────────────────────────────────────── */
.ug-bc-arrow svg, .ug-rel-arrow svg, .ug-ac-arrow svg { width: 14px; height: 14px; vertical-align: middle; margin-left: 4px; }

/* --- Navbar right group --- */
.nav-right { display: flex; align-items: center; gap: 10px; justify-content: flex-end; white-space: nowrap; flex-shrink: 0; }
.nav-lang { display: flex; align-items: center; gap: 2px; }
.nav-lang-sep { font-size: 11px; color: var(--text-muted); opacity: .5; }
.nav-lang-btn { background: transparent; border: 0; cursor: pointer; font-family: inherit; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--text-muted); padding: 4px 6px; transition: color .2s; }
.nav-lang-btn:hover, .nav-lang-btn.active { color: var(--text); }
.nav-lang-btn.active { color: var(--m-starlight, var(--text)); }

/* ── Scroll animations (injected statically to prevent CLS) ── */
@media (prefers-reduced-motion: no-preference) {
  .sa-fade-up   { opacity: 0; transform: translateY(32px); transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1); }
  .sa-fade-up.sa-in   { opacity: 1; transform: translateY(0); }
  .sa-fade-in   { opacity: 0; transition: opacity .7s ease; }
  .sa-fade-in.sa-in   { opacity: 1; }
  .sa-slide-up  { opacity: 0; transform: translateY(48px); transition: opacity .65s cubic-bezier(.22,1,.36,1), transform .65s cubic-bezier(.22,1,.36,1); }
  .sa-slide-up.sa-in  { opacity: 1; transform: translateY(0); }
  .sa-delay-1 { transition-delay: .08s !important; }
  .sa-delay-2 { transition-delay: .16s !important; }
  .sa-delay-3 { transition-delay: .24s !important; }
  .sa-delay-4 { transition-delay: .32s !important; }
  .sa-delay-5 { transition-delay: .40s !important; }
  .sa-delay-6 { transition-delay: .48s !important; }
}
