/* Atlas Market Intelligence v2
   Universal cinematic layer for the authoritative active market fleet. */
:root {
  --ami-cyan: #45e7ff;
  --ami-blue: #3c82ff;
  --ami-violet: #8c6cff;
  --ami-green: #36f0ad;
  --ami-gold: #ffd36a;
  --ami-ink: #020711;
  --ami-panel: rgba(4, 20, 33, .82);
  --ami-line: rgba(91, 225, 255, .24);
  --ami-focus-x: 76%;
  --ami-focus-y: 22%;
}

html[data-theme="light"] {
  --ami-panel: rgba(247, 253, 255, .88);
  --ami-line: rgba(4, 111, 151, .22);
}

body[data-atlas-public-discovery="profile"] {
  position: relative;
  isolation: isolate;
  background-attachment: fixed;
}

body[data-atlas-public-discovery="profile"]::before,
body[data-atlas-public-discovery="profile"]::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .19;
}

body[data-atlas-public-discovery="profile"]::before {
  width: min(72vw, 980px);
  height: min(72vw, 980px);
  top: -38vw;
  right: -24vw;
  background: conic-gradient(from 110deg, var(--ami-cyan), var(--ami-violet), transparent 58%);
  animation: ami-ambient-orbit 24s linear infinite;
}

body[data-atlas-public-discovery="profile"]::after {
  width: min(55vw, 760px);
  height: min(55vw, 760px);
  left: -28vw;
  bottom: -34vw;
  background: radial-gradient(circle, var(--ami-green), transparent 68%);
  opacity: .09;
}

.atlas-market-cover,
.atlas-global-profile__hero {
  --ami-focus-x: 76%;
  --ami-focus-y: 22%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--ami-line) !important;
  border-radius: clamp(18px, 2.1vw, 30px) !important;
  background:
    radial-gradient(circle at var(--ami-focus-x) var(--ami-focus-y), rgba(69, 231, 255, .17), transparent 28%),
    radial-gradient(circle at 22% 96%, rgba(54, 240, 173, .10), transparent 32%),
    linear-gradient(132deg, rgba(7, 29, 47, .96), rgba(2, 9, 19, .98) 58%, rgba(8, 20, 38, .96)) !important;
  box-shadow:
    0 38px 110px rgba(0, 0, 0, .38),
    inset 0 1px 0 rgba(255, 255, 255, .08),
    inset 0 0 80px rgba(69, 231, 255, .035) !important;
  transform: translateZ(0);
}

html[data-theme="light"] :is(.atlas-market-cover, .atlas-global-profile__hero) {
  background:
    radial-gradient(circle at var(--ami-focus-x) var(--ami-focus-y), rgba(18, 148, 191, .13), transparent 30%),
    radial-gradient(circle at 22% 96%, rgba(8, 151, 108, .08), transparent 32%),
    linear-gradient(132deg, rgba(255, 255, 255, .98), rgba(237, 247, 251, .98)) !important;
  box-shadow: 0 28px 80px rgba(4, 58, 78, .13), inset 0 1px 0 #fff !important;
}

.atlas-market-cover::before,
.atlas-global-profile__hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -65% auto -65% -22%;
  width: 24%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(98, 231, 255, .10), transparent);
  transform: rotate(16deg) translateX(-240%);
  animation: ami-scan 11s cubic-bezier(.55, 0, .2, 1) infinite;
}

.atlas-market-cover::after,
.atlas-global-profile__hero::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0 12% auto;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--ami-cyan), var(--ami-violet), transparent);
  box-shadow: 0 0 22px rgba(69, 231, 255, .55);
  opacity: .78;
}

:is(.atlas-market-cover__eyebrow, .atlas-global-profile__eyebrow) {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ami-cyan) !important;
  text-shadow: 0 0 22px rgba(69, 231, 255, .24);
}

:is(.atlas-market-cover__eyebrow, .atlas-global-profile__eyebrow)::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--ami-green);
  box-shadow: 0 0 0 5px rgba(54, 240, 173, .08), 0 0 18px var(--ami-green);
  animation: ami-status-pulse 2.8s ease-in-out infinite;
}

:is(.atlas-market-cover, .atlas-global-profile__hero) h1 {
  text-shadow: 0 12px 42px rgba(0, 0, 0, .34);
}

.atlas-market-cover h1 strong,
.atlas-global-profile__hero h1 span {
  color: var(--ami-cyan) !important;
  text-shadow: 0 0 28px rgba(69, 231, 255, .22);
}

.atlas-market-cover__actions a:first-child,
.atlas-global-profile__state > a {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(69, 231, 255, .52) !important;
  color: #03131d !important;
  background: linear-gradient(100deg, #48e9ff, #53efcd 48%, #a4f4ff) !important;
  box-shadow: 0 14px 42px rgba(41, 211, 239, .19), inset 0 1px 0 rgba(255,255,255,.65) !important;
}

.atlas-market-cover__actions a:first-child::before,
.atlas-global-profile__state > a::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(110deg, transparent 18%, rgba(255,255,255,.72) 48%, transparent 72%);
  transform: translateX(-140%);
  animation: ami-cta-sheen 5.8s ease-in-out infinite;
}

.atlas-market-cover__actions a:hover,
.atlas-global-profile__state > a:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(41, 211, 239, .28) !important;
}

.atlas-market-cover__proof,
.atlas-global-profile__facts,
.atlas-global-profile__quote dl {
  overflow: hidden;
  border-color: var(--ami-line) !important;
  background: linear-gradient(135deg, rgba(11, 38, 56, .62), rgba(3, 17, 29, .72)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

html[data-theme="light"] :is(.atlas-market-cover__proof, .atlas-global-profile__facts, .atlas-global-profile__quote dl) {
  background: linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(232, 247, 251, .96)) !important;
  border-color: rgba(4, 111, 151, .24) !important;
  box-shadow: inset 0 1px 0 #fff, 0 14px 34px rgba(4, 58, 78, .08);
}

html[data-theme="light"] :is(.atlas-market-cover__proof, .atlas-global-profile__facts, .atlas-global-profile__quote dl) dt {
  color: #326477 !important;
}

html[data-theme="light"] :is(.atlas-market-cover__proof, .atlas-global-profile__facts, .atlas-global-profile__quote dl) dd {
  color: #061b29 !important;
  text-shadow: none !important;
}

.atlas-market-cover__proof > div,
.atlas-global-profile__facts > div,
.atlas-global-profile__quote dl > div,
.atlas-market-stat {
  transition: background-color .22s ease, border-color .22s ease, transform .22s ease;
}

:is(.atlas-market-cover__proof > div, .atlas-global-profile__facts > div, .atlas-global-profile__quote dl > div, .atlas-market-stat):hover {
  background: rgba(69, 231, 255, .055) !important;
  border-color: rgba(69, 231, 255, .36) !important;
}

html[data-theme="light"] :is(.atlas-market-cover__proof > div, .atlas-global-profile__facts > div, .atlas-global-profile__quote dl > div):hover {
  background: rgba(13, 151, 189, .075) !important;
  border-color: rgba(4, 111, 151, .3) !important;
}

.atlas-market-cover__field,
.atlas-global-profile__mark {
  filter: drop-shadow(0 24px 44px rgba(0, 0, 0, .28));
}

.atlas-market-cover__field img,
.atlas-global-profile__mark img {
  filter: drop-shadow(0 0 30px rgba(69, 231, 255, .22)) drop-shadow(0 18px 30px rgba(0,0,0,.34)) !important;
  animation: ami-core-float 5.8s ease-in-out infinite;
}

.atlas-global-profile__mark::before { animation: ami-ring-forward 13s linear infinite; }
.atlas-global-profile__mark::after { animation: ami-ring-reverse 17s linear infinite; }
.atlas-market-cover__trace--one { animation: ami-ring-forward 16s linear infinite; }
.atlas-market-cover__trace--two { animation: ami-ring-reverse 21s linear infinite; }
.atlas-market-cover__node { box-shadow: 0 0 24px currentColor; }

.atlas-global-profile__quote,
.atlas-global-profile__state,
.atlas-global-profile__proof,
body[data-site="atlas"] .atlas-market-profile :is(.chart-card, .symbol-identity-record, .daily-answer, .symbol-source-authority, .atlas-pro-card) {
  border-color: var(--ami-line) !important;
}

html[data-atlas-intelligence="ready"] :is(.atlas-market-cover, .atlas-global-profile__hero) {
  transition: border-color .3s ease, box-shadow .3s ease;
}

@keyframes ami-ambient-orbit { to { transform: rotate(360deg); } }
@keyframes ami-scan {
  0%, 66% { transform: rotate(16deg) translateX(-240%); opacity: 0; }
  72% { opacity: 1; }
  92%, 100% { transform: rotate(16deg) translateX(660%); opacity: 0; }
}
@keyframes ami-status-pulse { 50% { opacity: .54; transform: scale(.78); } }
@keyframes ami-cta-sheen { 0%, 70% { transform: translateX(-140%); } 92%, 100% { transform: translateX(140%); } }
@keyframes ami-core-float { 50% { transform: translateY(-8px) scale(1.018); } }
@keyframes ami-ring-forward { to { transform: rotate(394deg) scaleY(.54); } }
@keyframes ami-ring-reverse { to { transform: rotate(-404deg) scaleY(.62); } }

@media (max-width: 760px) {
  body[data-atlas-public-discovery="profile"]::before,
  body[data-atlas-public-discovery="profile"]::after { filter: blur(54px); opacity: .12; }
  .atlas-market-cover,
  .atlas-global-profile__hero {
    min-height: 0 !important;
    padding: 26px 20px !important;
    border-radius: 20px !important;
    gap: 22px !important;
  }
  .atlas-market-cover { display: block !important; }
  .atlas-global-profile__hero { grid-template-columns: 1fr !important; }
  .atlas-global-profile__mark { --ring-size: min(64vw, 270px) !important; margin: 4px auto 0; }
  .atlas-market-cover__lede,
  .atlas-global-profile__hero > div:first-child > p:last-child { font-size: 15px !important; line-height: 1.58 !important; }
  .atlas-market-cover__proof { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .atlas-market-cover__proof > div { min-width: 0; padding-inline: 7px !important; text-align: center; }
  .atlas-market-cover__proof dt,
  .atlas-market-cover__proof dd { overflow-wrap: anywhere; }
  .atlas-global-profile__facts { border-radius: 16px !important; }
}

@media (max-width: 420px) {
  .atlas-market-cover,
  .atlas-global-profile__hero { padding: 22px 16px !important; }
  .atlas-market-cover h1 span { font-size: clamp(28px, 9vw, 36px) !important; }
  .atlas-global-profile__hero h1 { font-size: clamp(34px, 11vw, 48px) !important; }
  .atlas-global-profile__mark { --ring-size: min(58vw, 230px) !important; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-atlas-public-discovery="profile"]::before,
  .atlas-market-cover::before,
  .atlas-global-profile__hero::after,
  :is(.atlas-market-cover__eyebrow, .atlas-global-profile__eyebrow)::before,
  .atlas-market-cover__actions a:first-child::before,
  .atlas-global-profile__state > a::before,
  .atlas-market-cover__field img,
  .atlas-global-profile__mark img,
  .atlas-global-profile__mark::before,
  .atlas-global-profile__mark::after,
  .atlas-market-cover__trace { animation: none !important; }
}
