/* AgAu.ai Quantum Monogram identity — web-first, lightweight, shared across the full site. */
:root{
  --quantum-black:#020304;
  --quantum-ink:#050709;
  --quantum-panel:#090c0f;
  --quantum-panel-2:#0d1115;
  --quantum-line:rgba(217,166,46,.22);
  --quantum-line-soft:rgba(255,255,255,.085);
  --quantum-gold:#d9a62e;
  --quantum-gold-bright:#f4d272;
  --quantum-gold-deep:#8d5209;
  --quantum-silver:#d8dde3;
  --quantum-muted:#9aa3ad;
  --quantum-green:#66df89;
  --quantum-red:#ff6f7d;
  --quantum-amber:#f2bd4d;
  --quantum-radius:16px;
  --quantum-radius-lg:24px;
  --quantum-shadow:0 24px 70px rgba(0,0,0,.42);
  --shell-gold:var(--quantum-gold)!important;
  --shell-gold2:var(--quantum-gold-bright)!important;
  --shell-bg:var(--quantum-black)!important;
}
html{background:var(--quantum-black)}
html[data-theme="dark"]{color-scheme:dark}
body.agau-exact-shell-page,
body.agau-unified-page{
  background:
    radial-gradient(circle at 83% 5%,rgba(202,143,27,.115),transparent 29%),
    radial-gradient(circle at 13% 72%,rgba(154,93,13,.07),transparent 35%),
    linear-gradient(180deg,#020304 0%,#05070a 52%,#020304 100%)!important;
  color:#f3f2ee!important;
}
body.agau-exact-shell-page::after{
  content:"";position:fixed;inset:0;z-index:-3;pointer-events:none;opacity:.32;
  background-image:linear-gradient(rgba(255,255,255,.017) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.017) 1px,transparent 1px);
  background-size:48px 48px;
  mask-image:linear-gradient(to bottom,black,transparent 78%);
}
body.agau-exact-shell-page:not(.agau-exact-shell-home)::before{
  background:radial-gradient(circle at 82% 8%,rgba(214,151,35,.10),transparent 29%),radial-gradient(circle at 15% 78%,rgba(145,101,26,.065),transparent 33%),#040608!important;
}
::selection{background:rgba(217,166,46,.34);color:#fff}
:focus-visible{outline:2px solid var(--quantum-gold-bright)!important;outline-offset:3px!important}

/* Shared shell */
.agau-shell-header{
  top:14px!important;height:76px!important;width:min(1420px,calc(100% - 28px))!important;
  padding:0 15px 0 17px!important;border-radius:18px!important;
  border:1px solid rgba(255,255,255,.105)!important;
  border-bottom-color:rgba(217,166,46,.27)!important;
  background:linear-gradient(180deg,rgba(8,10,12,.94),rgba(3,5,7,.90))!important;
  box-shadow:0 23px 80px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.04)!important;
}
.agau-shell-header::before{
  content:"";position:absolute;left:17px;right:17px;bottom:-1px;height:1px;pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(217,166,46,.78) 14%,rgba(217,166,46,.18) 52%,transparent 88%);
}
.agau-shell-header.is-scrolled{background:rgba(3,5,7,.98)!important;border-color:rgba(217,166,46,.30)!important}
.agau-shell-brand{gap:10px!important;min-width:222px!important}
.agau-shell-app-icon{width:40px!important;height:40px!important;border-radius:0!important;object-fit:contain!important;filter:drop-shadow(0 4px 12px rgba(217,166,46,.18))!important}
.agau-shell-wordmark{height:29px!important;max-width:142px!important}
.agau-shell-nav-group>button{font-weight:650!important;letter-spacing:.01em!important;color:#cfd3d7!important}
.agau-shell-dropdown,.agau-shell-menu{
  border-color:rgba(217,166,46,.24)!important;
  background:linear-gradient(180deg,rgba(9,12,15,.99),rgba(3,5,7,.99))!important;
  box-shadow:0 30px 95px rgba(0,0,0,.68),inset 0 1px 0 rgba(255,255,255,.035)!important;
}
.agau-shell-dropdown a:hover,.agau-shell-dropdown a[aria-current="page"],
.agau-shell-menu-grid a:hover,.agau-shell-menu-grid a[aria-current="page"]{
  background:linear-gradient(90deg,rgba(217,166,46,.12),rgba(217,166,46,.035))!important;
  border-color:rgba(217,166,46,.27)!important;
}
.agau-shell-gold,.gold-button,.button.primary,.primary.button,.btn-primary{
  color:#130d03!important;border:1px solid rgba(255,235,166,.55)!important;
  background:linear-gradient(135deg,#fff0a8 0%,#e0aa31 32%,#9e6010 68%,#efc65c 100%)!important;
  box-shadow:0 12px 28px rgba(177,111,13,.20),inset 0 1px 0 rgba(255,255,255,.48)!important;
}
.agau-shell-gold:hover,.gold-button:hover,.button.primary:hover,.primary.button:hover,.btn-primary:hover{
  transform:translateY(-1px);filter:brightness(1.08);box-shadow:0 16px 34px rgba(177,111,13,.27),inset 0 1px 0 rgba(255,255,255,.52)!important;
}
.agau-shell-ghost,.ghost-button,.button.ghost,.ghost.button,.btn-secondary{
  color:#eceff1!important;background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.018))!important;
  border:1px solid rgba(216,221,227,.17)!important;
}
.agau-shell-footer{
  border-radius:20px!important;border-color:rgba(217,166,46,.17)!important;
  background:linear-gradient(145deg,rgba(11,14,17,.94),rgba(4,6,8,.97))!important;
  box-shadow:0 30px 90px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.025)!important;
}
.agau-shell-footer::before{content:"";position:absolute;left:34px;right:34px;top:-1px;height:1px;background:linear-gradient(90deg,transparent,var(--quantum-gold),transparent);opacity:.58}
.agau-shell-footer-brand img{height:52px!important;max-width:245px!important}
.agau-shell-footer nav a{color:#c8cdd2!important}.agau-shell-footer nav a:hover{color:var(--quantum-gold-bright)!important}

/* Typography and universal surfaces */
h1,h2,h3,h4,.section-title h1,.section-title h2{letter-spacing:-.025em}
.eyebrow,.section-label,.kicker,.live-page-kicker,.agau-eyebrow{
  color:var(--quantum-gold-bright)!important;letter-spacing:.15em!important;
}
:is(.signal-card,.driver-card,.mini-card,.premium-card,.story-card,.platform-overview-card,.platform-feature-card,.macro-preview-card,.insight-card,.metric-card,.market-card,.info-card,.holder-card,.xaut-card,.rates-card,.note-card,.source-card,.research-card,.agau-card,.stat-card,.plain-card,.locked-card,.heat-panel,.live-panel,.live-metric,.agau-page-ai-card){
  border-color:rgba(255,255,255,.09)!important;
  background:linear-gradient(145deg,rgba(14,18,22,.91),rgba(6,8,10,.94))!important;
  box-shadow:0 18px 55px rgba(0,0,0,.27),inset 0 1px 0 rgba(255,255,255,.025)!important;
}
:is(.signal-card,.driver-card,.mini-card,.premium-card,.story-card,.platform-feature-card,.insight-card,.metric-card,.market-card,.research-card,.live-panel,.live-metric){position:relative;overflow:hidden}
:is(.signal-card,.driver-card,.mini-card,.premium-card,.story-card,.platform-feature-card,.insight-card,.metric-card,.market-card,.research-card,.live-panel,.live-metric)::before{
  content:"";position:absolute;left:0;top:0;width:58px;height:1px;background:linear-gradient(90deg,var(--quantum-gold),transparent);opacity:.75;pointer-events:none;
}
:is(a.signal-card,a.driver-card,a.mini-card,a.story-card,a.research-card,.tile-link-card){transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease!important}
:is(a.signal-card,a.driver-card,a.mini-card,a.story-card,a.research-card,.tile-link-card):hover{
  transform:translateY(-3px)!important;border-color:rgba(217,166,46,.30)!important;box-shadow:0 24px 65px rgba(0,0,0,.38),0 0 0 1px rgba(217,166,46,.05)!important;
}
.pos,.tone-positive,.bullish{color:var(--quantum-green)!important}.neg,.tone-negative,.bearish{color:var(--quantum-red)!important}.amberv,.tone-neutral{color:var(--quantum-amber)!important}

/* Homepage hero and dashboard canvas */
body.agau-exact-shell-home .agau-shell-header{top:14px!important}
body.agau-exact-shell-home main{overflow:hidden}
body.agau-exact-shell-home .hero{
  min-height:850px!important;padding-top:136px!important;
  background:
    radial-gradient(circle at 69% 35%,rgba(194,132,18,.13),transparent 32%),
    linear-gradient(180deg,#020304 0%,#05070a 76%,#040608 100%)!important;
}
body.agau-exact-shell-home .hero::before{
  content:"";position:absolute;inset:55px -35px auto 43%;height:690px;pointer-events:none;
  background:url("brand/quantum-hero.svg") center/contain no-repeat;opacity:.80;
  filter:drop-shadow(0 30px 65px rgba(0,0,0,.5));
  animation:quantum-float 12s ease-in-out infinite;
}
body.agau-exact-shell-home .hero-bg{opacity:.22!important}
body.agau-exact-shell-home .hero-bg .hero-luxury-main,
body.agau-exact-shell-home .hero-bg .hero-landscape-art{display:none!important}
body.agau-exact-shell-home .hero-bg::before{
  content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(217,166,46,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(217,166,46,.035) 1px,transparent 1px);background-size:54px 54px;mask-image:linear-gradient(to bottom,black,transparent 92%);
}
body.agau-exact-shell-home .hero-copy{position:relative;z-index:3;max-width:675px!important}
body.agau-exact-shell-home .hero-copy h1{
  max-width:650px!important;font-size:clamp(48px,5.4vw,82px)!important;line-height:1.00!important;
  color:#f5f4ef!important;text-shadow:0 12px 36px rgba(0,0,0,.5);
}
body.agau-exact-shell-home .hero-copy h1 strong{
  color:transparent!important;background:linear-gradient(90deg,#fff0a8,#d9a62e 45%,#f4d272)!important;background-clip:text!important;-webkit-background-clip:text!important;
}
body.agau-exact-shell-home .hero-copy .lead{max-width:610px!important;color:#bcc3cb!important;font-size:17px!important;line-height:1.72!important}
body.agau-exact-shell-home .hero-pills span{border-color:rgba(217,166,46,.16)!important;background:rgba(6,9,11,.76)!important}
body.agau-exact-shell-home .hero-pills img{filter:grayscale(1) sepia(.45) brightness(1.5)!important}
body.agau-exact-shell-home .engine-trust-row{border-left:2px solid var(--quantum-gold)!important;padding-left:13px!important}
body.agau-exact-shell-home .hero-desk{
  position:relative;z-index:4!important;border-color:rgba(217,166,46,.15)!important;
  background:linear-gradient(145deg,rgba(10,13,16,.88),rgba(3,5,7,.92))!important;
  box-shadow:0 35px 100px rgba(0,0,0,.52),inset 0 1px 0 rgba(255,255,255,.025)!important;
  backdrop-filter:blur(16px);
}
body.agau-exact-shell-home .hero-desk::after{
  content:"AI SIGNAL MATRIX";position:absolute;right:18px;top:13px;color:rgba(217,166,46,.52);font:700 9px/1 Montserrat,sans-serif;letter-spacing:.17em;pointer-events:none;
}
body.agau-exact-shell-home .section{position:relative}
body.agau-exact-shell-home .section::before{content:"";position:absolute;left:50%;top:0;width:min(1320px,calc(100% - 36px));height:1px;transform:translateX(-50%);background:linear-gradient(90deg,transparent,rgba(217,166,46,.20),transparent)}
body.agau-exact-shell-home .section-title h2{font-size:clamp(34px,4vw,58px)!important}
body.agau-exact-shell-home .join-card{border-color:rgba(217,166,46,.19)!important;background:linear-gradient(115deg,rgba(12,15,18,.97),rgba(4,6,8,.93))!important}

/* Operational live pages */
.live-page-main{padding-top:128px!important}
.live-page-main::before{
  background:radial-gradient(circle at 78% 12%,rgba(217,166,46,.105),transparent 28%),url("brand/quantum-hero.svg") right -90px top -45px/720px auto no-repeat!important;
  opacity:.32!important;
}
.live-page-hero{
  min-height:330px;border-radius:24px!important;border-color:rgba(217,166,46,.18)!important;
  background:linear-gradient(102deg,rgba(7,10,12,.985),rgba(7,10,12,.78)),url("brand/quantum-hero.svg") right -110px center/650px auto no-repeat!important;
  box-shadow:var(--quantum-shadow)!important;
}
.live-page-hero::after{right:-180px!important;top:-180px!important;background:radial-gradient(circle,rgba(217,166,46,.13),transparent 69%)!important}
.live-page-hero h1{font-size:clamp(40px,5vw,70px)!important;max-width:760px!important}
.live-page-hero p{color:#b5bdc6!important}
.live-score-badge{border-radius:16px!important;border-color:rgba(217,166,46,.20)!important;background:linear-gradient(145deg,rgba(15,19,23,.82),rgba(5,7,9,.88))!important}
.live-score-badge strong{color:var(--quantum-gold-bright)!important}
.live-status-line i{background:var(--quantum-green)!important}
.live-metrics{gap:12px!important}.live-metric{border-radius:15px!important}.live-panel{border-radius:18px!important}
.sparkline-wrap polyline{stroke:var(--quantum-gold)!important}

/* Standardised legacy pages */
.agau-standardized-page{--page-accent:var(--quantum-gold-bright)!important;--page-accent-soft:rgba(217,166,46,.12)!important;--page-art:url("brand/quantum-hero.svg")!important}
.agau-standardized-page .agau-standard-main{max-width:1260px!important}
.agau-standardized-page .agau-standard-hero{
  min-height:350px!important;border-radius:24px!important;border-color:rgba(217,166,46,.18)!important;
  background:linear-gradient(102deg,rgba(7,10,12,.99),rgba(7,10,12,.76)),url("brand/quantum-hero.svg") right -110px center/690px auto no-repeat!important;
  box-shadow:var(--quantum-shadow)!important;
}
.agau-standardized-page .agau-standard-hero::before{background:linear-gradient(90deg,rgba(217,166,46,.52),rgba(217,166,46,0))!important}
.agau-standardized-page .agau-standard-hero h1{font-size:clamp(42px,5vw,72px)!important}
.agau-standardized-page .agau-standard-main>section:not(.agau-standard-hero),
.agau-standardized-page .agau-standard-main>.core-grid,
.agau-standardized-page .agau-standard-main>.agau-shell,
.agau-standardized-page .agau-standard-main>.macro-preview-card{
  border-color:rgba(255,255,255,.085)!important;border-radius:20px!important;background:linear-gradient(145deg,rgba(12,16,19,.91),rgba(5,7,9,.94))!important;
}
.page-privacy .section-title.compact{background:linear-gradient(100deg,rgba(7,10,12,.99),rgba(7,10,12,.78)),url("brand/quantum-hero.svg") right -120px center/680px auto no-repeat!important;border-color:rgba(217,166,46,.18)!important}

/* Daily AI Brief and AI panels */
body.page-dashboard .page-subnav-label{background:linear-gradient(135deg,#fff0a8,#d9a62e 50%,#9e6010)!important}
body.page-dashboard.agau-legacy-page .page-subnav{border-color:rgba(217,166,46,.16)!important;background:linear-gradient(180deg,rgba(11,14,17,.94),rgba(4,6,8,.96))!important}
.agau-page-ai-card{border-radius:20px!important;border-color:rgba(217,166,46,.22)!important;position:relative;overflow:hidden}
.agau-page-ai-card::after{content:"";position:absolute;right:-100px;top:-135px;width:330px;height:330px;background:url("brand/quantum-mark.svg") center/contain no-repeat;opacity:.035;pointer-events:none}
.agau-page-ai-eyebrow,.agau-page-ai-head h2{position:relative;z-index:1}
.agau-page-ai-pill.is-signal{border-color:rgba(217,166,46,.30)!important;background:rgba(217,166,46,.10)!important;color:var(--quantum-gold-bright)!important}

/* Heat map, data tables and calculators */
.heat-panel,.heat-footer-card{border-color:rgba(255,255,255,.085)!important;background:linear-gradient(145deg,rgba(12,16,19,.92),rgba(5,7,9,.95))!important}
:is(table,.holders-table,.data-method-table){border-color:rgba(255,255,255,.09)!important}
:is(table,.holders-table,.data-method-table) th{background:rgba(217,166,46,.07)!important;color:#e7c66f!important;border-color:rgba(217,166,46,.14)!important}
:is(table,.holders-table,.data-method-table) td{border-color:rgba(255,255,255,.065)!important}
:is(input,select,textarea){border-color:rgba(255,255,255,.13)!important;background:#070a0d!important;color:#f1f2f3!important;border-radius:10px!important}
:is(input,select,textarea):focus{border-color:rgba(217,166,46,.56)!important;box-shadow:0 0 0 3px rgba(217,166,46,.10)!important}

/* Legacy/non-standard content */
body.agau-legacy-page main:not(.agau-standard-main){position:relative}
body.agau-legacy-page .page-shell,
body.agau-legacy-page .dashboard-wrap{max-width:1260px!important}

/* Small performance-friendly brand animation */
@keyframes quantum-float{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(0,-9px,0)}}
@keyframes quantum-pulse{0%,100%{opacity:.55;transform:scale(.95)}50%{opacity:1;transform:scale(1.05)}}
.agau-shell-app-icon{animation:quantum-pulse 5.8s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}}

/* Responsive */
@media(max-width:1180px){
  .agau-shell-brand{min-width:188px!important}.agau-shell-wordmark{max-width:125px!important}
  body.agau-exact-shell-home .hero::before{left:46%;opacity:.62}
}
@media(max-width:900px){
  body.agau-exact-shell-home .hero{padding-top:118px!important}
  body.agau-exact-shell-home .hero::before{inset:80px -210px auto 28%;height:610px;opacity:.42}
  body.agau-exact-shell-home .hero-copy{max-width:720px!important}
  .live-page-hero,.agau-standardized-page .agau-standard-hero{background:linear-gradient(105deg,rgba(7,10,12,.99),rgba(7,10,12,.88)),url("brand/quantum-hero.svg") right -220px center/620px auto no-repeat!important}
}
@media(max-width:720px){
  body.agau-exact-shell-page{padding-top:96px!important}
  .agau-shell-header{top:9px!important;width:calc(100% - 18px)!important;height:72px!important;border-radius:15px!important;padding:0 12px!important}
  .agau-shell-brand{min-width:0!important}.agau-shell-app-icon{width:38px!important;height:38px!important}.agau-shell-wordmark{height:25px!important;max-width:123px!important}
  .agau-shell-footer{width:calc(100% - 18px)!important;margin:42px 9px 9px!important;padding:25px 20px!important;border-radius:17px!important}
  .agau-shell-footer-brand{align-items:flex-start!important;flex-direction:column!important}.agau-shell-footer-brand img{height:48px!important}
  body.agau-exact-shell-home .hero{min-height:0!important;padding-top:110px!important}
  body.agau-exact-shell-home .hero::before{inset:84px -240px auto 5%;height:520px;opacity:.30}
  body.agau-exact-shell-home .hero-copy h1{font-size:clamp(42px,13vw,60px)!important}
  body.agau-exact-shell-home .hero-copy .lead{font-size:15px!important}
  body.agau-exact-shell-home .hero-desk::after{display:none}
  .live-page-main{padding-top:102px!important}
  .live-page-hero,.agau-standardized-page .agau-standard-hero{min-height:0!important;padding:24px!important;border-radius:18px!important;background:linear-gradient(105deg,rgba(7,10,12,.995),rgba(7,10,12,.92)),url("brand/quantum-hero.svg") right -235px top -30px/520px auto no-repeat!important}
  .live-page-hero h1,.agau-standardized-page .agau-standard-hero h1{font-size:38px!important}
  .live-panel,.agau-standardized-page .agau-standard-main>section:not(.agau-standard-hero){border-radius:17px!important}
}
