/* Real Market Color — Pre-Market Apr 19, 2026 — dawn rose, deep indigo, quiet anticipation */

:root {
  --bg-primary: #0c0a12;
  --bg-secondary: #141022;
  --bg-surface: rgba(26, 22, 42, 0.82);
  --bg-elevated: rgba(36, 30, 58, 0.92);
  --text-primary: #f4f0ff;
  --text-secondary: rgba(244, 240, 255, 0.9);
  --text-muted: rgba(244, 240, 255, 0.52);
  --accent-red: #ff7d95;
  --accent-red-dim: rgba(255, 125, 149, 0.14);
  --accent-green: #5ef0c8;
  --accent-green-dim: rgba(94, 240, 200, 0.12);
  --accent-gold: #ffc8a8;
  --accent-gold-dim: rgba(255, 200, 168, 0.2);
  --accent-blue: #9db7ff;
  --accent-dawn: #ff8fb8;
  --glass: rgba(18, 14, 34, 0.78);
  --glass-border: rgba(255, 200, 168, 0.14);
  --glass-highlight: rgba(157, 183, 255, 0.22);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.pm-body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  padding-top: calc(46px + env(safe-area-inset-top));
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
}

body.pm-body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.042;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.mono {
  font-family: var(--font-mono);
}

.pm-up {
  color: var(--accent-green);
}

.pm-down {
  color: var(--accent-red);
}

.ticker-strip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-top: env(safe-area-inset-top);
  background: rgba(8, 6, 16, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 200, 168, 0.12);
}

.tradingview-widget-container {
  height: 46px;
}

.pm-shell {
  position: relative;
  z-index: 1;
}

/* --- Hero --- */
.pm-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(3rem + env(safe-area-inset-top)) 1.25rem 4rem;
  overflow: hidden;
}

.pm-hero__aurora {
  position: absolute;
  inset: -20% -30%;
  background:
    radial-gradient(ellipse 70% 50% at 20% 30%, rgba(255, 143, 184, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 45% at 80% 20%, rgba(157, 183, 255, 0.22), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(94, 240, 200, 0.08), transparent 45%);
  filter: blur(2px);
  pointer-events: none;
}

.pm-hero__rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0.25;
}

.pm-hero__rings span {
  position: absolute;
  width: min(120vw, 900px);
  height: min(120vw, 900px);
  border: 1px solid rgba(255, 200, 168, 0.12);
  border-radius: 50%;
}

.pm-hero__rings span:nth-child(2) {
  width: min(95vw, 720px);
  height: min(95vw, 720px);
  border-color: rgba(157, 183, 255, 0.1);
}

.pm-hero__inner {
  position: relative;
  max-width: 58rem;
  text-align: center;
}

.pm-kicker {
  font-family: var(--font-mono);
  font-size: clamp(0.65rem, 1.8vw, 0.72rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.pm-hero__title {
  font-size: clamp(3.5rem, 12vw, 9.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 1.25rem;
  background: linear-gradient(135deg, #fff7ff 0%, var(--accent-dawn) 38%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pm-hero__lede {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 44rem;
  margin: 0 auto 2rem;
}

.pm-hero__stat {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.25rem 1.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.pm-hero__stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pm-hero__stat-row {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pm-hero__chip {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  vertical-align: middle;
}

.pm-hero__note {
  margin: 0.5rem 0 0;
  font-size: clamp(0.85rem, 1.05vw, 0.95rem);
  color: var(--text-muted);
  max-width: 36rem;
  line-height: 1.65;
}

.pm-cites {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  justify-content: center;
  margin-top: 0.75rem;
}

.pm-cite {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 200, 168, 0.25);
  padding-bottom: 0.1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.pm-cite:hover {
  color: var(--text-primary);
  border-color: var(--accent-gold);
}

/* --- Sections base --- */
.pm-section {
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1rem, 4vw, 2.5rem);
  max-width: 72rem;
  margin: 0 auto;
}

.pm-eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(0.65rem, 1.5vw, 0.72rem);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent-dawn);
  display: block;
  margin-bottom: 0.75rem;
}

.pm-hed {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.pm-bodytxt {
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 1rem;
  max-width: 52rem;
}

/* --- Horizontal strip --- */
.pm-strip-h {
  margin-top: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--glass-border);
  background: var(--bg-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pm-strip-h__track {
  display: flex;
  gap: 0;
  min-width: min-content;
}

.pm-strip-h__cell {
  flex: 0 0 auto;
  padding: 1.1rem 1.35rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 9.5rem;
}

.pm-strip-h__cell:last-child {
  border-right: none;
}

.pm-strip-h__k {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.35rem;
}

.pm-strip-h__v {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
}

.pm-strip-h__pct {
  margin: 0.15rem 0 0;
  font-size: clamp(0.85rem, 1.4vw, 0.95rem);
}

/* --- Pull quote --- */
.pm-pull {
  margin-top: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2.75rem);
  border-left: 4px solid var(--accent-dawn);
  background: linear-gradient(90deg, var(--accent-red-dim), transparent);
  border-radius: 0 1rem 1rem 0;
}

.pm-pull__text {
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.45;
  margin: 0 0 1rem;
  color: var(--text-primary);
}

.pm-pull__attr {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --- Event ladder --- */
.pm-ladder {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pm-ladder__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.5rem;
  align-items: start;
  padding: 1.1rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: 0.85rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pm-ladder__time {
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 1.5vw, 0.85rem);
  color: var(--accent-gold);
  white-space: nowrap;
}

.pm-ladder__body h3 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 600;
}

.pm-ladder__body p {
  margin: 0;
  font-size: clamp(0.9rem, 1.15vw, 1rem);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --- Big number --- */
.pm-bignum {
  margin-top: 1.5rem;
  text-align: center;
  padding: 2.5rem 1rem;
  border-radius: 1.25rem;
  border: 1px solid var(--glass-border);
  background: radial-gradient(ellipse at 50% 0%, rgba(157, 183, 255, 0.15), transparent 55%), var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.pm-bignum__value {
  font-size: clamp(3rem, 14vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1;
  color: var(--accent-blue);
}

.pm-bignum__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* --- Side-by-side --- */
.pm-grid-compare {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.pm-grid-compare__cell {
  padding: 1.35rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--glass-border);
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pm-grid-compare__cell h3 {
  margin: 0 0 0.5rem;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 600;
}

.pm-grid-compare__big {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.pm-grid-compare__cell p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Momentum --- */
.pm-momo {
  margin-top: 1.5rem;
  max-width: 36rem;
}

.pm-momo__label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.pm-momo__track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.pm-momo__fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-dawn), var(--accent-green));
}

/* --- Ring --- */
.pm-ringbox {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.75rem;
}

.pm-ring {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.pm-ring__label {
  flex: 1;
  min-width: 12rem;
}

.pm-ring__label h3 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.pm-ring__label p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --- Timeline vertical --- */
.pm-timeline {
  margin-top: 1.5rem;
  border-left: 2px solid rgba(255, 200, 168, 0.25);
  padding-left: 1.5rem;
}

.pm-timeline__item {
  position: relative;
  margin-bottom: 1.75rem;
  padding-left: 0.5rem;
}

.pm-timeline__item::before {
  content: '';
  position: absolute;
  left: calc(-1.5rem - 7px);
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-dawn);
  box-shadow: 0 0 0 4px var(--accent-gold-dim);
}

.pm-timeline__item:last-child {
  margin-bottom: 0;
}

.pm-timeline__date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.pm-timeline__item h3 {
  margin: 0.25rem 0 0.35rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.pm-timeline__item p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 0.98rem;
}

/* --- Data table --- */
.pm-table {
  margin-top: 1.5rem;
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(0.88rem, 1.1vw, 0.98rem);
}

.pm-table th,
.pm-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pm-table th {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --- Split editorial --- */
.pm-split {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.5rem;
  align-items: start;
}

.pm-split__aside {
  padding: 1.25rem;
  border-radius: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --- Marquee numbers --- */
.pm-marquee {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 1.6vw, 0.88rem);
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.pm-marquee__inner {
  display: inline-block;
  padding: 0.5rem 0;
  animation: pm-marquee 28s linear infinite;
}

@keyframes pm-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* --- What to watch --- */
.pm-wtw {
  padding: clamp(3.5rem, 9vw, 6rem) clamp(1rem, 4vw, 2.5rem);
  max-width: 52rem;
  margin: 0 auto;
}

.pm-wtw__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.pm-wtw__sub {
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
}

.pm-wtw__rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pm-wtw__rail li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border-radius: 0.85rem;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pm-wtw__when {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-gold);
  line-height: 1.4;
}

.pm-wtw__what strong {
  display: block;
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  margin-bottom: 0.25rem;
}

.pm-wtw__what span {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* --- Footer --- */
.site-footer {
  padding: 3rem clamp(1rem, 4vw, 2rem) calc(3rem + env(safe-area-inset-bottom));
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
}

.site-footer__brand {
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.15rem);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.site-footer__pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #17b26a;
  box-shadow: 0 0 0 6px rgba(23, 178, 106, 0.25);
  animation: pm-pulse 2.4s ease-in-out infinite;
}

@keyframes pm-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.85;
  }
}

.site-footer__regen,
.site-footer__session,
.site-footer__timestamp {
  color: var(--text-muted);
  font-size: clamp(0.88rem, 1.1vw, 0.98rem);
  margin: 0.35rem auto;
  max-width: 32rem;
  line-height: 1.6;
}

.site-footer__session {
  color: var(--accent-gold);
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.site-footer .source {
  color: var(--accent-gold);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--glass-border);
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  min-height: 44px;
  align-items: center;
}

.site-footer .source:hover {
  border-color: var(--accent-gold);
}

.pm-micro {
  text-align: center;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.22);
  margin: 0;
  padding: 0 1rem 2rem;
}

@media (max-width: 768px) {
  .pm-grid-compare,
  .pm-split {
    grid-template-columns: 1fr;
  }

  .pm-ladder__step {
    grid-template-columns: 1fr;
  }

  .pm-wtw__rail li {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .pm-strip-h__cell {
    min-width: 8rem;
    padding: 0.95rem 1rem;
  }

  .pm-marquee__inner {
    animation-duration: 22s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pm-marquee__inner {
    animation: none;
    white-space: normal;
  }

  .site-footer__pulse {
    animation: none;
  }
}
