/* ==========================================================================
   Kelbrix LUXURY COLOUR GRADE — WEBSITE  (v5.28)   "Obsidian & Champagne"
   Loaded LAST on the public site.  Colour only — no layout or script changes.
   Companion of app/kx-grade.css (same palette).  Delete the <link> to switch off.
   ========================================================================== */
:root{
  --kg-gold:linear-gradient(135deg,#f6e7b0 0%,#e3c566 28%,#c9a227 55%,#9a7416 100%);
  --kg-gold-soft:linear-gradient(135deg,#fbf3d6,#f1e0a3);
  --kg-obs:linear-gradient(160deg,#1c160c 0%,#0c0a07 70%);
  --kg-hair:rgba(184,144,42,.34);
  /* re-point every blue / teal token the site uses */
  --kx-blue:#8a6a16; --kx-blue2:#f6ecce; --kx-bg:#fffdf8; --kx-soft:#faf5e6; --kx-line:#e7dcc0; --kx-ink:#17120a; --kx-mute:#6b5d3d;
  --kxn-blue:#b8902a; --kxn-line:#e7dcc0; --kxn-ink:#17120a; --kxn-mut:#6b5d3d;
  --kg-navy:#0c0a07; --kg-blue1:#e3c566; --kg-blue2:#9a7416; --kg-cyan:#d4af37; --teal:#b8902a; --lux-teal:#d4af37; --lux-blue:#b8902a; --lux-blue-deep:#8a6a16;
  --kv2-cyan:#e3c566; --kv2-green:#d9b56b; --kd-emerald:#b8902a;
  --kx4-g1:#f6e7b0; --kx4-g2:#d4af37; --kx4-g3:#8a6a16;
}

/* ---------- page canvas: ivory + warm light instead of pale blue ---------- */
html{background:#fcfaf5 !important}
#kbPageBg{background:
  radial-gradient(1100px 520px at 88% -6%,rgba(212,175,55,.20),transparent 62%),
  radial-gradient(900px 480px at -8% 22%,rgba(246,231,176,.42),transparent 60%),
  linear-gradient(180deg,#fdfbf6 0%,#faf6ea 38%,#fffefb 100%) !important}
html body .section.alt{background:linear-gradient(180deg,#faf5e6,#f6eed6) !important}
::selection{background:#e9d48a;color:#1a1204}

/* hero artwork was shot in blue — warm it into the grade */
#kbHeroBg{filter:sepia(.5) saturate(1.35) hue-rotate(-12deg) brightness(1.02)}

/* ---------- headings: obsidian ink, gold-lit emphasis ---------- */
html body :is(h1,h2,h3,.section-head h2,.hero h1,.page-hero h1){color:#17120a !important;-webkit-text-fill-color:#17120a !important}
html body .hero h1 span,html body h1 span{
  background:var(--kg-gold) !important;-webkit-background-clip:text !important;background-clip:text !important;
  -webkit-text-fill-color:transparent !important;color:#b8902a !important}
html body :is(.kx-eyebrow,.eyebrow){background:#f6ecce !important;color:#7a5c10 !important;border:1px solid var(--kg-hair) !important;letter-spacing:.18em}
html body :is(.kx-more,.kx-link){color:#8a6a16 !important}

/* ---------- navigation ---------- */
html body .cta,html body a.cta,html body .navlink.cta{
  background:var(--kg-gold) !important;color:#1a1204 !important;-webkit-text-fill-color:#1a1204 !important;
  border:1px solid rgba(138,106,22,.55) !important;box-shadow:0 1px 0 rgba(255,255,255,.55) inset,0 12px 26px rgba(184,144,42,.38) !important;
  font-weight:700 !important;letter-spacing:.03em}
html body .nav-mod-icon{background:#f6ecce !important}
html body .nav-glider{border-color:#b8902a !important}

/* ---------- buttons ---------- */
html body .kx-btn:not(.ghost),html body .klf-promo-btn,html body .kx-shead{
  background:var(--kg-gold) !important;color:#1a1204 !important;-webkit-text-fill-color:#1a1204 !important;
  border:1px solid rgba(138,106,22,.55) !important;box-shadow:0 1px 0 rgba(255,255,255,.5) inset,0 10px 24px rgba(184,144,42,.34) !important}
html body .kx-btn.ghost{background:transparent !important;color:#6b5110 !important;-webkit-text-fill-color:#6b5110 !important;border:1px solid rgba(184,144,42,.7) !important}
html body .kx-btn.ghost:hover{background:var(--kg-gold-soft) !important}

/* ---------- cards & product windows: ivory, gold hairline ---------- */
html body :is(.kx-sapp,.kx-win,.klf-detail-panel,.kx-card,.card){border-color:var(--kg-hair) !important;
  box-shadow:0 1px 0 #fff inset,0 14px 36px rgba(60,42,8,.08) !important}
html body :is(.kxs-kpi,.kb-shot-body,.gd-side,.gd-chart,.kxs-bar){background:linear-gradient(180deg,#fffefb,#f8f1dc) !important;border-color:rgba(184,144,42,.22) !important}
html body .kxs-meter{background:#efe5c8 !important}
html body .kx-ic.soft{background:#f6ecce !important}

/* ---------- charts + meters: blue/teal → gold ---------- */
html body .kx-bars i,html body .kxbars i{background:linear-gradient(180deg,#e3c566,#a97f00) !important}
html body .kb-shot-bars i{background:linear-gradient(180deg,#f0d77a,#b8902a) !important}
html body .kxs-chart i,html body .gd-chart i{background:linear-gradient(180deg,#e8cd78,#a97f00) !important}
html body .kxs-meter u{background:linear-gradient(90deg,#d4af37,#8a6a16) !important}
html body .kb-node-orbit i,html body .kbx-orbs i{background:#d4af37 !important}
html body .ps-bars i:nth-child(n){background:linear-gradient(180deg,#e3c566,#a97f00) !important}
html body .gd-nav.active,html body .gd-m{background:#f6ecce !important;color:#6b5110 !important}
html body .gd-user{background:var(--kg-obs) !important}

/* ---------- dark "live" panels: pure obsidian, gold rules ---------- */
html body .erp-live{background:linear-gradient(165deg,#1a140a,#090705) !important;border:1px solid rgba(212,175,55,.35) !important}
html body .erp-panel{background:rgba(20,16,10,.94) !important;border-color:rgba(212,175,55,.28) !important}
html body :is(.kx-card-head,.kx-win-bar,.kxs-win-bar){background:linear-gradient(180deg,#2a2112,#16110a) !important;color:#f0dfa6 !important}

/* floating social dock + side rail */
html body :is(.social-dock,.kx-dock,#kxDock) a{border-color:var(--kg-hair) !important}
html body :is(#kxr,.site-rail,.kx-rail){background:linear-gradient(180deg,#fffdf6,#f6edd3) !important;border:1px solid var(--kg-hair) !important}
html body :is(#kxr,.site-rail,.kx-rail) .nv.on{background:var(--kg-obs) !important;color:#f6e7b0 !important}

/* scrollbar */
html{scrollbar-color:#cdb36a transparent}
::-webkit-scrollbar-thumb{background:linear-gradient(#e3c566,#b8902a);border-radius:99px}

/* ---------- second pass: specificity-heavy blue rules ---------- */
html body main#app#app#app .kx-sec.kx-sec.kx-sec.kx-sec.kx-sec.kx-sec.kx-sec .kx-bars i{background:linear-gradient(180deg,#e8cd78,#a97f00) !important;opacity:1}
html body .navlink.cta,html body a.navlink.cta{color:#1a1204 !important;-webkit-text-fill-color:#1a1204 !important}
html body .navlink.cta:hover{background:linear-gradient(135deg,#fbefc0,#e3c566) !important}
html body .kb-shot-top,html body .kb-shot-top *,html body article.kb-shot .kb-shot-top{background:linear-gradient(135deg,#0c0a07,#2a2010) !important;color:#f3e3a8 !important;-webkit-text-fill-color:#f3e3a8 !important}
html body .kb-ui-side .on{background:#3a2c0e !important;color:#f3d77a !important}
html body .klf-item.klf-cta{background:linear-gradient(135deg,#0c0a07,#2a2010) !important}
html body .kxs-pill{background:var(--kg-gold) !important;box-shadow:0 6px 16px rgba(184,144,42,.38) !important}
html body .kx-sic{background:var(--kg-obs) !important;color:#e8cd78 !important;box-shadow:0 0 0 1px rgba(212,175,55,.5)}
html body ::selection{background:#e9d48a !important;color:#1a1204 !important}
html body :is(.kxs-dot,.kx-dot,.dots i.on,.kx-dots .on){background:#b8902a !important}

/* ---------- third pass: header CTA, hover washes, ghost buttons ---------- */
html body .header .navlink.cta{background:var(--kg-gold) !important;box-shadow:0 1px 0 rgba(255,255,255,.55) inset,0 12px 26px rgba(184,144,42,.4) !important}
html body .header .navlink:hover,html body .header .navlink.active{background:linear-gradient(135deg,rgba(212,175,55,.20),rgba(246,231,176,.20)) !important;color:#6b5110 !important;-webkit-text-fill-color:#6b5110 !important}
html body .header .navlink.cta:hover{background:linear-gradient(135deg,#fbefc0,#e3c566) !important;color:#1a1204 !important;-webkit-text-fill-color:#1a1204 !important}
html body .btn.ghost,html body .btn.secondary,html body .btn.outline{background:linear-gradient(180deg,#fffefb,#f6edd3) !important;color:#3b3220 !important;-webkit-text-fill-color:#3b3220 !important;border:1px solid rgba(184,144,42,.55) !important;box-shadow:0 8px 22px rgba(184,144,42,.14) !important}
html body :is(.btn.primary,.btn.gold){background:var(--kg-gold) !important;color:#1a1204 !important;-webkit-text-fill-color:#1a1204 !important;border:1px solid rgba(138,106,22,.55) !important;box-shadow:0 12px 26px rgba(184,144,42,.38) !important}
html body .card,html body .pricing-card,html body .feature-card{box-shadow:0 1px 0 #fff inset,0 14px 38px rgba(60,42,8,.10) !important;border-color:rgba(184,144,42,.28) !important}
html body .kelbrix-left-fw .klf-item.active,html body #kelbrixLeftFramework .klf-dep.open>.klf-dep-head{background:linear-gradient(90deg,rgba(212,175,55,.22),rgba(246,231,176,.10)) !important;color:#5d4a14 !important}
html body #kbPageBg::after,html body #kelbrixSingleBg::after{background:radial-gradient(120% 90% at 50% 0%,rgba(212,175,55,.09),transparent 55%) !important}

/* ---------- fourth pass: beat the :not(#kxz) layer ---------- */
html:root body:not(#kxz) article.kb-shot .kb-shot-top,html:root body:not(#kxz) .kb-shot-top{background:linear-gradient(135deg,#0c0a07,#2a2010) !important}
html:root body:not(#kxz) #mainHeader .navlink.cta{background:var(--kg-gold) !important;color:#1a1204 !important;-webkit-text-fill-color:#1a1204 !important}
html:root body:not(#kxz) .mod-thumb{background-color:transparent}

/* ---------- last resort for rules that animate / out-rank everything: tint with a filter ---------- */
html body .kb-shot-top{filter:sepia(.85) saturate(1.6) hue-rotate(-14deg) brightness(.82)}
html body :is(.kxs-chart i,.kxs-meter u,.kxs-pill){filter:sepia(.95) saturate(2.4) hue-rotate(-10deg) brightness(1.05)}
html body :is(.kxs-av,.kxs-step,.kxs-dot,.kxs-arrow){filter:sepia(.9) saturate(2) hue-rotate(-10deg)}

/* ==========================================================================
   v5.29 — 8 animation types  (scripts: /kx-anim.js)
   1 fade-up  2 slide-left  3 slide-right  4 zoom-in  5 3D flip-up  6 gold underline draw
   7 number count-up (JS)  8 cursor tilt (JS)  + ambient: float, gold shimmer, glow pulse
   ========================================================================== */
.a-on{opacity:0;transition:opacity .8s cubic-bezier(.22,1,.36,1) var(--ad,0ms),transform .8s cubic-bezier(.22,1,.36,1) var(--ad,0ms)}
.a-up{transform:translateY(34px)}
.a-left{transform:translateX(-46px)}
.a-right{transform:translateX(46px)}
.a-zoom{transform:scale(.88)}
.a-flip{transform:perspective(800px) rotateX(-22deg) translateY(24px);transform-origin:50% 100%}
.a-on.a-in{opacity:1;transform:none}
.a-line{position:relative}
.a-line::after{content:"";display:block;height:3px;width:0;margin:14px auto 0;border-radius:3px;background:var(--kg-gold);transition:width 1s cubic-bezier(.22,1,.36,1) .25s}
.a-line.a-in::after{width:84px}
/* ambient: floating hero art + globe */
@keyframes kgFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}
#kbHeroBg,.globe360-wrap,.phone-frame{animation:kgFloat 7s ease-in-out infinite}
.phone-frame:nth-child(2){animation-delay:-2s}.phone-frame:nth-child(3){animation-delay:-4s}
/* ambient: gold shimmer sweep on buttons */
@keyframes kgShine{0%{background-position:-160% 0}60%,100%{background-position:260% 0}}
html body :is(.cta,.btn.primary,.kx-btn:not(.ghost)){position:relative;overflow:hidden}
html body :is(.cta,.btn.primary,.kx-btn:not(.ghost))::before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(100deg,transparent 30%,rgba(255,255,255,.65) 50%,transparent 70%);background-size:220% 100%;animation:kgShine 3.6s ease-in-out infinite}
/* ambient: soft gold glow pulse on the primary CTA */
@keyframes kgGlow{0%,100%{box-shadow:0 12px 26px rgba(184,144,42,.34)}50%{box-shadow:0 14px 38px rgba(212,175,55,.6)}}
html body .header .navlink.cta{animation:kgGlow 2.8s ease-in-out infinite}
.a-on:not(.a-in){will-change:transform,opacity}
@media(prefers-reduced-motion:reduce){.a-on{opacity:1 !important;transform:none !important}#kbHeroBg,.globe360-wrap,.phone-frame,html body .header .navlink.cta{animation:none !important}}
