@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Noto+Sans+KR:wght@400;500;700;800&display=swap");

:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --surface-soft: #fafbfc;
  --surface-muted: #f7f8fa;
  --ink: #191f28;
  --ink-soft: #6b7684;
  --line: #e5e8eb;
  --accent: #3182f6;
  --accent-soft: rgba(49, 130, 246, 0.12);
  --accent-faint: rgba(49, 130, 246, 0.06);
  --teal: #02b6a5;
  --teal-soft: rgba(2, 182, 165, 0.12);
  --red: #f04452;
  --red-soft: rgba(240, 68, 82, 0.1);
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  --radius: 28px;
  --content: 920px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Noto Sans KR", sans-serif;
  background: var(--bg);
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.site-header-inner,
.page-shell {
  width: min(calc(100vw - 32px), 1320px);
  margin: 0 auto;
}

.site-header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  position: relative;
  width: 32px;
  height: 24px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 22px 8px, rgba(255, 255, 255, 0.92) 0 2px, transparent 2.4px),
    linear-gradient(135deg, #0a84ff 0%, #3182f6 48%, #02b6a5 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 8px 16px rgba(49, 130, 246, 0.16);
  overflow: hidden;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  left: 5px;
  border-radius: 999px;
}

.brand-mark::before {
  bottom: 6px;
  width: 18px;
  height: 3px;
  background: rgba(255, 255, 255, 0.9);
  transform: rotate(-18deg);
  transform-origin: left center;
  box-shadow:
    6px -6px 0 0 rgba(255, 255, 255, 0.85),
    12px -2px 0 0 rgba(255, 255, 255, 0.7);
}

.brand-mark::after {
  top: 4px;
  right: 4px;
  left: auto;
  width: 7px;
  height: 7px;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
}

.brand-text {
  color: #202632;
  letter-spacing: -0.045em;
  text-transform: lowercase;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  color: #4e5968;
  font-size: 1.05rem;
  font-weight: 500;
  justify-self: center;
  text-align: center;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.market-session {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-height: 48px;
  margin: 0;
  padding: 0 18px;
  border-radius: 16px;
  background: #f2f4f6;
  color: #4e5968;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.84rem;
  font-weight: 500;
  text-align: right;
}

.market-session-line {
  white-space: nowrap;
}

.market-session.is-open {
  color: var(--teal);
}

.market-session.is-closed {
  color: var(--red);
}

.market-session-countdown {
  display: block;
  color: var(--ink-soft);
  white-space: nowrap;
}

.page-shell {
  padding: 44px 0 88px;
}

.article-page {
  width: min(100%, var(--content));
  margin: 0 auto;
}

.hero-intro .eyebrow,
.hero-intro .lede,
.temperature-banner,
.macro-stack,
.section-block {
  opacity: 0;
  transform: translateY(-20px);
  filter: blur(10px);
  will-change: opacity, transform, filter;
  animation: page-content-reveal 780ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.34s;
}

.hero-intro h1 {
  opacity: 0;
  transform: translateY(-14px);
  filter: blur(8px);
  will-change: opacity, transform, filter;
  animation: page-title-reveal 760ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.08s;
}

.hero-intro .eyebrow {
  animation-delay: 0.18s;
}

@keyframes page-title-reveal {
  0% {
    opacity: 0;
    transform: translateY(-14px);
    filter: blur(8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes page-content-reveal {
  0% {
    opacity: 0;
    transform: translateY(-20px);
    filter: blur(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.eyebrow,
.section-label,
.showcase-label,
.metric-meta,
.chart-status,
.temperature-mini,
.temperature-note,
.fx-tag,
.fx-date,
.fx-note,
.macro-status,
.macro-badge,
.macro-footnote,
.options-status,
.search-result-meta,
.option-tag {
  font-family: "IBM Plex Mono", monospace;
}

.hero-intro {
  position: relative;
  text-align: center;
  padding: 18px 24px 14px;
}

.hero-intro::before {
  content: "";
  position: absolute;
  inset: -12px 8% auto;
  height: 180px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 52%, rgba(49, 130, 246, 0.32), transparent 58%),
    radial-gradient(circle at 70% 34%, rgba(2, 182, 165, 0.24), transparent 30%),
    radial-gradient(circle at 34% 62%, rgba(125, 188, 255, 0.22), transparent 28%);
  background-repeat: no-repeat;
  background-size: 64% 100%, 36% 78%, 34% 74%;
  background-position: 50% 52%, 72% 34%, 34% 62%;
  filter: blur(16px);
  transform-origin: center;
  animation: hero-water-sway 5.4s ease-in-out infinite;
  z-index: -1;
}

.hero-intro::after {
  content: "";
  position: absolute;
  inset: 8px 14% auto;
  height: 124px;
  border-radius: 999px;
  background:
    linear-gradient(
      110deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.28) 18%,
      rgba(255, 255, 255, 0) 36%
    ),
    linear-gradient(
      250deg,
      rgba(255, 255, 255, 0) 4%,
      rgba(255, 255, 255, 0.2) 22%,
      rgba(255, 255, 255, 0) 42%
    );
  mix-blend-mode: screen;
  filter: blur(9px);
  opacity: 0.92;
  animation: hero-water-ripple 3.9s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes hero-water-sway {
  0% {
    transform: translate3d(-4%, 2%, 0) scaleX(0.94) scaleY(0.94) skewX(-4deg);
    filter: blur(13px) saturate(1.1);
    background-size: 64% 98%, 36% 78%, 32% 72%;
    background-position: 49% 53%, 71% 35%, 33% 62%;
  }

  25% {
    transform: translate3d(4%, -2%, 0) scaleX(1.08) scaleY(1.06) skewX(4deg);
    filter: blur(18px) saturate(1.16);
    background-size: 68% 104%, 38% 82%, 34% 74%;
    background-position: 52% 48%, 74% 30%, 36% 58%;
  }

  50% {
    transform: translate3d(0, -4%, 0) scaleX(1.16) scaleY(0.98) skewX(-3deg);
    filter: blur(21px) saturate(1.22);
    background-size: 76% 112%, 42% 88%, 38% 82%;
    background-position: 50% 46%, 76% 28%, 38% 54%;
  }

  75% {
    transform: translate3d(-4%, 1%, 0) scaleX(0.94) scaleY(1.08) skewX(5deg);
    filter: blur(17px) saturate(1.14);
    background-size: 66% 102%, 37% 80%, 35% 76%;
    background-position: 46% 50%, 68% 34%, 30% 60%;
  }

  100% {
    transform: translate3d(-4%, 2%, 0) scaleX(0.94) scaleY(0.94) skewX(-4deg);
    filter: blur(13px) saturate(1.1);
    background-size: 64% 98%, 36% 78%, 32% 72%;
    background-position: 49% 53%, 71% 35%, 33% 62%;
  }
}

@keyframes hero-water-ripple {
  0% {
    transform: translate3d(-6%, 0, 0) scaleX(0.92) skewX(-8deg);
    opacity: 0.78;
  }

  50% {
    transform: translate3d(7%, -3%, 0) scaleX(1.18) skewX(9deg);
    opacity: 1;
  }

  100% {
    transform: translate3d(-6%, 0, 0) scaleX(0.92) skewX(-8deg);
    opacity: 0.78;
  }
}

.eyebrow,
.section-label,
.showcase-label {
  margin: 0 0 12px;
  color: #8b95a1;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-intro h1,
.section-copy h2,
.panel-title h3 {
  margin: 0;
  letter-spacing: -0.05em;
}

.hero-intro h1 {
  max-width: none;
  margin: 0 auto;
  font-size: clamp(3.4rem, 7vw, 5.7rem);
  line-height: 1.14;
  font-weight: 800;
  text-transform: lowercase;
  overflow: visible;
}

.hero-intro h1 span {
  display: inline-block;
  padding-bottom: 0.14em;
}

.hero-intro h1 span:first-child {
  color: #151b26;
  text-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.hero-intro h1 span:last-child {
  background: linear-gradient(135deg, #0a84ff 0%, #3182f6 52%, #02b6a5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.lede {
  max-width: 760px;
  margin: 22px auto 0;
  color: #4e5968;
  font-size: 1.08rem;
  line-height: 1.9;
}

.temperature-banner {
  display: block;
  margin-top: 34px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.96)),
    radial-gradient(circle at top right, rgba(49, 130, 246, 0.08), transparent 32%);
}

.temperature-panel {
  --thermo-color: #9aa4af;
  --thermo-position: 50%;
  width: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at top, rgba(49, 130, 246, 0.08), transparent 46%),
    #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
  transition:
    box-shadow 220ms ease,
    transform 220ms ease,
    border-color 220ms ease;
}

.temperature-panel > .section-label {
  margin-bottom: 14px;
}

.temperature-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.temperature-signal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(107, 118, 132, 0.12);
  color: var(--ink-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.temperature-signal.is-buy {
  background: rgba(49, 130, 246, 0.12);
  color: var(--accent);
}

.temperature-signal.is-sell {
  background: rgba(240, 68, 82, 0.12);
  color: var(--red);
}

.temperature-mini,
.temperature-note {
  color: var(--ink-soft);
  font-size: 0.74rem;
}

.temperature-reading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
}

.temperature-value {
  color: var(--thermo-color);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.07em;
  transition: color 180ms ease;
}

.temperature-delta {
  color: var(--thermo-color);
  font-weight: 700;
  transition: color 180ms ease;
}

.temperature-meter {
  margin-top: 18px;
}

.temperature-meter-track {
  position: relative;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #3182f6 0%,
    #7fb4ff 34%,
    #e7ecf1 50%,
    #ffb0b7 68%,
    #f04452 100%
  );
  overflow: visible;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.temperature-meter-track::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -28%;
  width: 28%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.38) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0;
  transform: skewX(-18deg);
  transition: opacity 220ms ease;
}

.temperature-meter-track::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -6px;
  width: 2px;
  height: 30px;
  transform: translateX(-50%);
  background: rgba(25, 31, 40, 0.12);
}

.temperature-baseline {
  position: absolute;
  left: 50%;
  top: -28px;
  transform: translateX(-50%);
  color: #8b95a1;
  font-size: 0.72rem;
}

.temperature-marker {
  position: absolute;
  top: 50%;
  left: var(--thermo-position);
  width: 22px;
  height: 22px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: var(--thermo-color);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease;
}

.temperature-marker::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--thermo-color) 18%, transparent);
  opacity: 0;
  transform: scale(0.72);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.temperature-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  color: #8b95a1;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
}

.temperature-panel:hover,
.temperature-panel:focus-within {
  transform: translateY(-4px);
  border-color: rgba(49, 130, 246, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 26px 40px rgba(15, 23, 42, 0.12);
}

.temperature-panel:hover .temperature-meter-track,
.temperature-panel:focus-within .temperature-meter-track {
  transform: scaleY(1.08);
  box-shadow: 0 10px 22px rgba(49, 130, 246, 0.14);
}

.temperature-panel:hover .temperature-meter-track::after,
.temperature-panel:focus-within .temperature-meter-track::after {
  opacity: 1;
  animation: temperature-shimmer 1.15s ease;
}

.temperature-panel:hover .temperature-marker,
.temperature-panel:focus-within .temperature-marker {
  transform: translate(-50%, -50%) scale(1.16);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.22);
  animation: temperature-pulse 1.3s ease-in-out infinite;
}

.temperature-marker:hover,
.temperature-marker:focus-visible {
  transform: translate(-50%, -50%) scale(1.34);
  box-shadow:
    0 20px 38px rgba(15, 23, 42, 0.26),
    0 0 0 12px color-mix(in srgb, var(--thermo-color) 20%, transparent);
}

.temperature-marker:hover::after,
.temperature-marker:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}

@keyframes temperature-shimmer {
  from {
    left: -28%;
  }

  to {
    left: 110%;
  }
}

@keyframes temperature-pulse {
  0%,
  100% {
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.2);
  }

  50% {
    box-shadow:
      0 18px 34px rgba(15, 23, 42, 0.24),
      0 0 0 8px color-mix(in srgb, var(--thermo-color) 16%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-intro h1,
  .hero-intro .eyebrow,
  .hero-intro .lede,
  .temperature-banner,
  .macro-stack,
  .section-block,
  .hero-intro::before,
  .hero-intro::after,
  .panel,
  .fed-item,
  .liquidity-summary-card,
  .fx-card,
  .option-card,
  .option-stat,
  .search-result,
  .temperature-panel,
  .macro-sparkline,
  .fx-sparkline,
  .sentiment-track,
  .sentiment-marker,
  .temperature-meter-track,
  .temperature-meter-track::after,
  .temperature-marker {
    transition: none;
    animation: none;
  }

  .hero-intro h1,
  .hero-intro .eyebrow,
  .hero-intro .lede,
  .temperature-banner,
  .macro-stack,
  .section-block {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .panel:hover,
  .panel:focus-within,
  .fed-item:hover,
  .fed-item:focus-within,
  .liquidity-summary-card:hover,
  .liquidity-summary-card:focus-within,
  .fx-card:hover,
  .fx-card:focus-within,
  .option-card:hover,
  .option-card:focus-within,
  .temperature-panel:hover,
  .temperature-panel:focus-within {
    transform: none;
  }

  .macro-signal-card:hover .macro-sparkline,
  .macro-signal-card:focus-within .macro-sparkline,
  .chart-panel:hover #liquidity-chart,
  .chart-panel:focus-within #liquidity-chart,
  .fx-card:hover .fx-sparkline,
  .fx-card:focus-within .fx-sparkline,
  .rates-card:hover .fx-sparkline,
  .rates-card:focus-within .fx-sparkline,
  .macro-signal-card:hover .sentiment-track,
  .macro-signal-card:focus-within .sentiment-track,
  .temperature-panel:hover .temperature-meter-track,
  .temperature-panel:focus-within .temperature-meter-track {
    transform: none;
    filter: none;
  }

  .macro-signal-card:hover .sentiment-marker,
  .macro-signal-card:focus-within .sentiment-marker,
  .temperature-panel:hover .temperature-marker,
  .temperature-panel:focus-within .temperature-marker {
    transform: translate(-50%, -50%);
  }

  .option-card:hover .option-stat,
  .option-card:focus-within .option-stat,
  .search-result:hover,
  .search-result:focus-visible {
    transform: none;
  }

  .temperature-marker:hover,
  .temperature-marker:focus-visible {
    transform: translate(-50%, -50%);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
  }

  .temperature-marker:hover::after,
  .temperature-marker:focus-visible::after {
    opacity: 0;
    transform: scale(0.72);
  }
}

.temperature-description {
  margin: 16px 0 0;
  color: #4e5968;
  line-height: 1.8;
}

.temperature-note {
  margin: 10px 0 0;
  line-height: 1.7;
}

.macro-stack {
  display: grid;
  gap: 20px;
  margin-top: 22px;
}

.macro-panel-head {
  align-items: flex-start;
}

.fed-panel,
.macro-signal-card {
  padding: 26px 28px;
}

.fed-panel {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.macro-status,
.macro-footnote {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.7;
}

.fed-calendar {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 260px;
  gap: 12px;
  margin-top: 20px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
}

.fed-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-soft);
  min-width: 0;
  scroll-snap-align: start;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.fed-item:hover,
.fed-item:focus-within {
  transform: translateY(-3px);
  border-color: rgba(49, 130, 246, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  box-shadow: 0 18px 28px rgba(15, 23, 42, 0.08);
}

.fed-item-badge,
.macro-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(107, 118, 132, 0.12);
  color: var(--ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fed-item-badge.is-next,
.macro-badge.is-caution {
  background: rgba(49, 130, 246, 0.12);
  color: var(--accent);
}

.macro-badge.is-fear {
  background: rgba(240, 68, 82, 0.12);
  color: var(--red);
}

.macro-badge.is-greed {
  background: rgba(2, 182, 165, 0.12);
  color: var(--teal);
}

.fed-item-badge.is-live {
  background: rgba(240, 68, 82, 0.12);
  color: var(--red);
}

.fed-item-title {
  display: block;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.fed-item-meta,
.fed-item-offset {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.fed-item-offset {
  justify-self: flex-end;
  font-weight: 700;
}

.macro-signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.macro-signal-head,
.macro-reading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.macro-reading {
  align-items: flex-end;
  margin-top: 18px;
}

.macro-value {
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.macro-change {
  color: var(--ink-soft);
  font-weight: 700;
}

.macro-change.is-up {
  color: var(--red);
}

.macro-change.is-down {
  color: var(--teal);
}

.macro-sparkline {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 16px;
  transition: transform 220ms ease, filter 220ms ease;
}

.macro-description {
  margin: 16px 0 0;
  color: #4e5968;
  line-height: 1.8;
}

.macro-footnote {
  margin-top: 10px;
}

.sentiment-meter {
  margin-top: 18px;
}

.sentiment-track {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3182f6 0%, #90bfff 25%, #eef2f5 50%, #ffc298 75%, #f04452 100%);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.sentiment-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.15);
  transform: translate(-50%, -50%);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.sentiment-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: #8b95a1;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.panel:hover,
.panel:focus-within {
  transform: translateY(-3px);
  border-color: rgba(49, 130, 246, 0.18);
  box-shadow: 0 22px 38px rgba(15, 23, 42, 0.1);
}

.macro-signal-card:hover .macro-sparkline,
.macro-signal-card:focus-within .macro-sparkline,
.chart-panel:hover #liquidity-chart,
.chart-panel:focus-within #liquidity-chart {
  transform: translateY(-2px) scale(1.01);
  filter: saturate(1.05);
}

.macro-signal-card:hover .sentiment-track,
.macro-signal-card:focus-within .sentiment-track {
  transform: scaleY(1.08);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.macro-signal-card:hover .sentiment-marker,
.macro-signal-card:focus-within .sentiment-marker {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}

.hero-metric {
  margin-top: 10px;
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.metric-label {
  display: block;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 700;
}

.metric-meta {
  display: block;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.74rem;
}

.showcase-value {
  display: block;
  margin-top: 8px;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.article-copy {
  width: min(100%, 760px);
  margin: 44px auto 0;
}

.article-copy p {
  margin: 0;
  color: #4e5968;
  font-size: 1.08rem;
  line-height: 2;
}

.section-block {
  margin-top: 74px;
}

.section-copy {
  width: min(100%, 760px);
  margin: 0 auto 22px;
}

.section-copy h2 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.3;
}

.section-copy p:last-child {
  margin: 16px 0 0;
  color: #4e5968;
  line-height: 1.9;
}

.chart-panel,
.fx-panel,
.options-panel {
  padding: 28px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.panel-title h3 {
  font-size: 1.6rem;
}

.range-switch {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 16px;
  background: #f2f4f6;
}

.range-button {
  min-width: 54px;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}

.range-button.is-active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.chart-shell {
  position: relative;
  margin-top: 22px;
  padding: 18px 16px 12px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

#liquidity-chart,
.fx-sparkline {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 220ms ease, filter 220ms ease;
}

.chart-grid-line,
.fx-grid-line {
  stroke: #e8edf2;
  stroke-width: 1;
}

.chart-axis-label {
  fill: #8b95a1;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}

.chart-area {
  fill: url(#liquidityFill);
}

.chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.2;
}

.chart-hover-line {
  stroke: rgba(49, 130, 246, 0.26);
  stroke-width: 1.5;
  stroke-dasharray: 6 8;
}

.chart-hover-dot {
  fill: #ffffff;
  stroke: var(--accent);
  stroke-width: 3;
}

.chart-tooltip {
  position: absolute;
  min-width: 180px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(25, 31, 40, 0.94);
  color: #ffffff;
  transform: translate(-50%, calc(-100% - 14px));
  pointer-events: none;
}

.chart-tooltip strong {
  display: block;
  margin-top: 6px;
}

.chart-tooltip.is-hidden {
  opacity: 0;
}

.liquidity-summary {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.liquidity-summary-main,
.liquidity-summary-grid {
  display: grid;
  gap: 14px;
}

.liquidity-summary-main {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.liquidity-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.liquidity-summary-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 252, 0.98));
  padding: 20px 22px;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.liquidity-summary-card:hover,
.liquidity-summary-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(49, 130, 246, 0.18);
  box-shadow: 0 18px 28px rgba(15, 23, 42, 0.08);
}

.liquidity-summary-formula-text {
  display: block;
  margin-top: 8px;
  font-size: 1.14rem;
  line-height: 1.5;
  letter-spacing: -0.04em;
}

.liquidity-summary-formula p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.liquidity-summary-primary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.liquidity-summary-primary .hero-metric {
  font-size: clamp(2.15rem, 4vw, 3.2rem);
}

.chart-footer {
  display: grid;
  justify-content: center;
  margin-top: 14px;
}

.chart-note,
.chart-status,
.fx-note,
.options-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--surface-muted);
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.7;
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.section-grid > .section-copy {
  width: 100%;
  margin: 0;
}

.section-grid > .panel {
  align-self: start;
}

.fx-grid {
  display: grid;
  gap: 14px;
}

.fx-card {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.fx-card:hover,
.fx-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(49, 130, 246, 0.18);
  background: #ffffff;
  box-shadow: 0 18px 28px rgba(15, 23, 42, 0.08);
}

.fx-card-head,
.option-card-head,
.option-summary-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.fx-tag,
.option-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fx-card-usd .fx-tag,
.call-card .option-tag {
  background: var(--accent-soft);
  color: var(--accent);
}

.fx-card-jpy .fx-tag {
  background: var(--teal-soft);
  color: var(--teal);
}

.fx-card-sp500 .fx-tag {
  background: rgba(49, 130, 246, 0.1);
  color: #2563eb;
}

.fx-card-nasdaq .fx-tag {
  background: rgba(147, 51, 234, 0.1);
  color: #7c3aed;
}

.fx-tag-rate {
  background: rgba(90, 98, 255, 0.1);
  color: #4d5bff;
}

.put-card .option-tag {
  background: var(--red-soft);
  color: var(--red);
}

.fx-date {
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.fx-value {
  display: block;
  margin-top: 14px;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.fx-change {
  display: block;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.fx-change.is-up {
  color: var(--red);
}

.fx-change.is-down {
  color: var(--teal);
}

.fx-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.fx-line-usd {
  stroke: var(--accent);
}

.fx-line-jpy {
  stroke: var(--teal);
}

.fx-line-vix {
  stroke: #f06c00;
}

.fx-fill-usd {
  fill: rgba(49, 130, 246, 0.08);
}

.fx-fill-jpy {
  fill: rgba(2, 182, 165, 0.08);
}

.fx-fill-vix {
  fill: rgba(240, 108, 0, 0.12);
}

.fx-line-sp500 {
  stroke: #2563eb;
  stroke-width: 2;
}

.fx-fill-sp500 {
  fill: rgba(37, 99, 235, 0.12);
}

.fx-line-nasdaq {
  stroke: #7c3aed;
  stroke-width: 2;
}

.fx-fill-nasdaq {
  fill: rgba(124, 58, 237, 0.12);
}

.fx-line-fedfunds {
  stroke: #4d5bff;
}

.fx-fill-fedfunds {
  fill: rgba(77, 91, 255, 0.12);
}

.rates-panel {
  padding: 18px;
}

.rates-card {
  padding: 22px;
}

.rates-signal-head {
  align-items: center;
  margin-top: 12px;
}

.rates-value {
  margin-top: 0;
}

.rates-note {
  margin-top: 10px;
}

.fx-card:hover .fx-sparkline,
.fx-card:focus-within .fx-sparkline,
.rates-card:hover .fx-sparkline,
.rates-card:focus-within .fx-sparkline {
  transform: translateY(-2px) scale(1.01);
  filter: saturate(1.06);
}

.search-form {
  position: relative;
}

.search-label {
  display: block;
  margin-bottom: 10px;
  color: #4e5968;
  font-size: 0.95rem;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-content: center;
}

.search-row input {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-muted);
  color: var(--ink);
}

.search-row input:focus {
  outline: 0;
  border-color: rgba(49, 130, 246, 0.35);
  box-shadow: 0 0 0 4px rgba(49, 130, 246, 0.08);
}

.search-row button {
  border: 0;
  border-radius: 16px;
  padding: 16px 18px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.search-results {
  position: absolute;
  inset: calc(100% + 8px) 0 auto;
  z-index: 10;
  display: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
}

.search-results.is-visible {
  display: block;
}

.search-result {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid #eff2f4;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}

.search-result:last-child {
  border-bottom: 0;
}

.search-result:hover,
.search-result:focus-visible {
  background: var(--surface-soft);
  transform: translateY(-1px);
}

.search-result-symbol {
  display: block;
  font-size: 0.98rem;
}

.search-result-name {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.search-result-meta {
  align-self: center;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.options-output {
  margin-top: 14px;
}

.empty-state,
.options-error {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
  color: #4e5968;
}

.options-error {
  border-color: rgba(240, 68, 82, 0.18);
  background: rgba(240, 68, 82, 0.04);
}

.option-summary-header {
  margin-bottom: 14px;
}

.option-summary-header h3 {
  margin: 4px 0 0;
  font-size: 1.9rem;
  letter-spacing: -0.05em;
}

.option-summary-header p {
  margin: 0;
  color: var(--ink-soft);
}

.option-summary-header > p:last-child {
  max-width: 260px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  font-size: 0.76rem;
  line-height: 1.55;
  text-align: right;
}

.option-cards {
  display: grid;
  gap: 14px;
}

.option-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-soft);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.option-card:hover,
.option-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(49, 130, 246, 0.18);
  background: #ffffff;
  box-shadow: 0 18px 28px rgba(15, 23, 42, 0.08);
}

.option-strike {
  font-size: 1.6rem;
  letter-spacing: -0.04em;
}

.option-expiry {
  margin: 12px 0 0;
  color: var(--ink-soft);
}

.option-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.option-stat {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.option-card:hover .option-stat,
.option-card:focus-within .option-stat {
  transform: translateY(-1px);
  border-color: rgba(49, 130, 246, 0.12);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.05);
}

.option-stat-label {
  display: block;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.option-stat-value {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
}

.back-to-top-button {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  min-height: 52px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(107, 118, 132, 0.9);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
  color: #ffffff;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    background-color 180ms ease;
}

.back-to-top-button:hover,
.back-to-top-button:focus-visible {
  background: #4e5968;
}

.back-to-top-button:focus-visible {
  outline: 3px solid rgba(49, 130, 246, 0.34);
  outline-offset: 3px;
}

.back-to-top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top-button span:first-child {
  font-size: 1.05rem;
  font-weight: 800;
}


@media (max-width: 1180px) {
  .site-nav {
    display: none;
  }

  .liquidity-summary-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .page-shell {
    width: min(calc(100vw - 24px), 1320px);
  }

  .temperature-banner {
    grid-template-columns: 1fr;
  }

  .liquidity-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-grid {
    grid-template-columns: 1fr;
  }

  .macro-signal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header-inner {
    min-height: 68px;
    gap: 16px;
  }

  .market-session {
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.76rem;
  }

  .page-shell {
    padding-top: 28px;
    padding-bottom: 56px;
  }

  .hero-intro h1 {
    font-size: clamp(2.1rem, 8vw, 3rem);
  }

  .liquidity-summary-grid {
    grid-template-columns: 1fr;
  }

  .lede,
  .article-copy,
  .section-copy {
    width: 100%;
  }

  .temperature-banner,
  .temperature-reading,
  .temperature-panel-head {
    align-items: flex-start;
  }

  .temperature-banner {
    grid-template-columns: 1fr;
  }

  .temperature-reading,
  .temperature-panel-head {
    flex-direction: column;
  }

  .fed-item,
  .macro-signal-head,
  .macro-reading {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .chart-panel,
  .fx-panel,
  .options-panel {
    padding: 20px;
  }

  .panel-head,
  .fx-card-head,
  .option-summary-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-row,
  .option-stats {
    grid-template-columns: 1fr;
  }

  .range-switch {
    width: 100%;
    justify-content: space-between;
  }

  .option-summary-header > p:last-child {
    max-width: none;
    text-align: left;
  }

  .back-to-top-button {
    right: 16px;
    bottom: 16px;
    width: 48px;
    min-height: 48px;
  }
}
