:root {
  --bg: #07111f;
  --bg-2: #0d1b2b;
  --panel: rgba(9, 20, 36, 0.88);
  --panel-strong: rgba(13, 27, 43, 0.96);
  --line: rgba(188, 213, 236, 0.12);
  --text: #edf6ff;
  --muted: #9db0c4;
  --positive: #48db95;
  --negative: #ff7b72;
  --neutral: #f4c16f;
  --accent: #8dd6ff;
  --accent-2: #ffd27a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(92, 188, 255, 0.14), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(255, 182, 72, 0.14), transparent 24%),
    linear-gradient(160deg, #050d19 0%, #081321 46%, #091723 100%);
  color: var(--text);
  font-family: "IBM Plex Sans", sans-serif;
}

body {
  position: relative;
  overflow-x: hidden;
}

.ambient {
  position: fixed;
  inset: auto;
  width: 38rem;
  height: 38rem;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.18;
  pointer-events: none;
}

.ambient-left {
  top: -10rem;
  left: -8rem;
  background: #2f7cff;
}

.ambient-right {
  right: -10rem;
  bottom: -10rem;
  background: #ffb74c;
}

.shell {
  width: min(1400px, calc(100vw - 32px));
  margin: 24px auto 56px;
}

.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(13, 28, 45, 0.95), rgba(9, 18, 32, 0.9));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(141, 214, 255, 0.08), transparent 32%, rgba(255, 210, 122, 0.06));
  pointer-events: none;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
  align-items: flex-end;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-2);
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.hero h1,
.section-topline h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 0.96;
}

.hero-text {
  margin: 16px 0 0;
  max-width: 52rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.hero-actions {
  min-width: 240px;
  display: grid;
  gap: 14px;
}

.action-button {
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  font: inherit;
  font-weight: 700;
  color: #07111f;
  background: linear-gradient(135deg, #cbe9ff, #ffd27a);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 12px 30px rgba(131, 203, 255, 0.25);
}

.action-button:hover {
  transform: translateY(-1px);
}

.action-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.status-stack {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(141, 214, 255, 0.09);
  color: var(--accent);
  border: 1px solid rgba(141, 214, 255, 0.12);
  font-weight: 600;
}

.status-pill.positive {
  color: var(--positive);
  background: rgba(72, 219, 149, 0.1);
}

.status-pill.negative {
  color: var(--negative);
  background: rgba(255, 123, 114, 0.1);
}

.meta-line,
.section-hint,
.chart-caption,
.summary-meta,
.card-meta,
.mini-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.summary-grid,
.analytics-grid,
.card-grid {
  margin-top: 18px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.summary-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 33, 53, 0.94), rgba(10, 20, 35, 0.92));
  padding: 18px;
  min-height: 160px;
}

.summary-head,
.section-topline,
.chart-title-row,
.card-top,
.table-row,
.mag7-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.summary-name {
  font-weight: 600;
}

.summary-badge {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  color: var(--muted);
}

.summary-price {
  margin-top: 18px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.summary-change,
.value-change {
  margin-top: 10px;
  font-weight: 700;
}

.positive {
  color: var(--positive);
}

.negative {
  color: var(--negative);
}

.neutral {
  color: var(--neutral);
}

.analytics-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 18px;
}

.fear-panel,
.vix-panel,
.panel.reveal {
  padding: 24px;
}

.source-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.92rem;
}

.fear-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 22px;
  align-items: center;
  margin-top: 20px;
}

.gauge-wrap {
  position: relative;
  width: 100%;
  min-height: 220px;
}

.gauge {
  width: 100%;
  overflow: visible;
}

.gauge-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 18;
  stroke-linecap: round;
}

.gauge-fill {
  fill: none;
  stroke: url(#unused);
  stroke-width: 18;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 600ms ease;
  stroke: #ffd27a;
}

.gauge-center {
  position: absolute;
  inset: 76px 0 auto;
  text-align: center;
}

.gauge-score {
  font-family: "Space Grotesk", sans-serif;
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1;
}

.gauge-rating {
  margin-top: 6px;
  color: var(--muted);
  text-transform: capitalize;
}

.fear-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric-card,
.spotlight-card,
.asset-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.metric-card {
  padding: 16px;
}

.metric-label {
  color: var(--muted);
  font-size: 0.84rem;
}

.metric-value {
  margin-top: 8px;
  font-size: 1.45rem;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
}

.chart-block {
  margin-top: 18px;
}

.chart-title-row {
  margin-bottom: 10px;
}

.chart-title-row h3 {
  margin: 0;
  font-size: 1rem;
}

.sparkline-card {
  height: 150px;
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(3, 10, 18, 0.22));
}

.sparkline {
  width: 100%;
  height: 100%;
}

.sparkline .grid-line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.sparkline .series-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sparkline .series-area {
  opacity: 0.16;
}

.spotlight-card {
  margin-top: 18px;
  padding: 18px;
}

.spotlight-price {
  margin-top: 10px;
  font-size: 3rem;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
}

.spotlight-note {
  margin-top: 6px;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.asset-card {
  padding: 18px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.asset-card:hover {
  transform: translateY(-2px);
  border-color: rgba(141, 214, 255, 0.22);
}

.card-symbol {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.card-name {
  font-weight: 600;
}

.card-price {
  margin-top: 18px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 700;
}

.card-meta {
  margin-top: 14px;
  display: grid;
  gap: 4px;
}

.mag7-table-wrap {
  margin-top: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.mag7-header,
.table-row {
  padding: 14px 18px;
}

.mag7-header {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.table-row {
  border-top: 1px solid var(--line);
}

.row-main,
.row-price-stack,
.row-valuation {
  display: grid;
  gap: 4px;
}

.row-main strong {
  font-size: 1rem;
}

.table-symbol {
  color: var(--accent);
  font-size: 0.84rem;
}

.row-price {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: right;
}

.row-valuation {
  min-width: 170px;
  justify-items: end;
  text-align: right;
}

.row-valuation strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.loading-state,
.error-state {
  padding: 28px;
  text-align: center;
  border-radius: var(--radius-md);
  border: 1px dashed var(--line);
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: rise 520ms ease forwards;
}

.reveal:nth-child(2) {
  animation-delay: 60ms;
}

.reveal:nth-child(3) {
  animation-delay: 120ms;
}

.reveal:nth-child(4) {
  animation-delay: 180ms;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .summary-grid,
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analytics-grid,
  .fear-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .status-stack {
    justify-items: start;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100vw - 18px, 1000px);
    margin-top: 10px;
  }

  .hero,
  .fear-panel,
  .vix-panel,
  .panel.reveal {
    padding: 18px;
  }

  .summary-grid,
  .card-grid,
  .fear-metrics {
    grid-template-columns: 1fr;
  }

  .summary-price,
  .card-price,
  .spotlight-price {
    font-size: 1.8rem;
  }

  .gauge-center {
    top: 68px;
  }

  .mag7-header {
    display: none;
  }

  .table-row {
    display: grid;
    gap: 12px;
  }

  .row-price {
    text-align: left;
  }

  .row-valuation {
    justify-items: start;
    text-align: left;
    min-width: 0;
  }
}
