/* ════════════════════════════════════════════
   GME & AMC — Short Squeeze Dashboard
   Bold & confident. Rich refined colors.
════════════════════════════════════════════ */

:root {
  /* Background — deep ink, not pure black */
  --bg:            #0f1012;
  --surface:       #17181b;
  --surface-hi:    #1d1e22;

  /* Borders */
  --line:          #26272c;
  --line-hi:       #36373d;

  /* Text — warm off-white, full contrast hierarchy */
  --text:          #f4f2ed;
  --text-muted:    #b6b4ae;
  --text-subtle:   #7d7b75;
  --text-faint:    #4a4944;

  /* Brand colors — rich, refined, not neon */
  --emerald:       #34a56f;   /* GME — deep emerald */
  --emerald-hi:    #4cc88a;
  --emerald-bg:    rgba(52, 165, 111, 0.10);
  --emerald-line:  rgba(52, 165, 111, 0.25);

  --copper:        #c77845;   /* AMC — burnt copper */
  --copper-hi:     #d89663;
  --copper-bg:     rgba(199, 120, 69, 0.10);
  --copper-line:   rgba(199, 120, 69, 0.25);

  --crimson:       #c14852;   /* red for losses only */
  --crimson-bg:    rgba(193, 72, 82, 0.10);
  --crimson-line:  rgba(193, 72, 82, 0.28);

  /* Highlights */
  --parchment:     #e8d9b8;   /* warm cream for accents */

  /* Fonts */
  --sans:          'Geist', system-ui, sans-serif;
  --mono:          'Geist Mono', ui-monospace, monospace;
  --serif:         'Instrument Serif', Georgia, serif;

  --w-max:         1200px;
  --pad-x:         clamp(1.25rem, 4vw, 3rem);
}

/* ── Reset ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
em { font-style: italic; color: var(--text); }

::selection {
  background: var(--parchment);
  color: var(--bg);
}

/* ─────────────────────────────────────────
   NAV
───────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 16, 18, 0.72);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid var(--line);

  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  height: 64px;

  max-width: 100%;
}

.nav-brand {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 150ms, background 150ms;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-cta {
  padding: 9px 16px;
  background: var(--text);
  color: var(--bg);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background 150ms;
}

.nav-cta:hover {
  background: var(--parchment);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--text);
  transition: transform 200ms, opacity 200ms;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Mobile menu dropdown */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  z-index: 49;
  padding: 1rem var(--pad-x) 1.5rem;
  flex-direction: column;
  gap: 2px;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms, transform 180ms;
}

.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu a {
  padding: 14px 16px;
  color: var(--text);
  font-size: 17px;
  font-weight: 500;
  border-radius: 8px;
  border-bottom: 1px solid var(--line);
}

.mobile-menu a:last-child { border-bottom: none; }

@media (max-width: 820px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: flex; }
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: clamp(3rem, 10vh, 9rem) var(--pad-x) clamp(3rem, 8vh, 6rem);
  position: relative;
}

.hero-inner {
  max-width: 920px;
}

.hero-tag {
  display: inline-block;
  font-size: 13px;
  color: var(--text-subtle);
  margin-bottom: 1.75rem;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.hero-h1 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(48px, 8.5vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 1.75rem;
  max-width: 18ch;
}

.h1-italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--emerald);
  letter-spacing: -0.02em;
}

.hero-p {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all 180ms;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--parchment);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-hi);
}

.btn-ghost:hover {
  border-color: var(--text);
  background: var(--surface);
}

/* Hero numbers */
.hero-numbers {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.num {
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--line);
}

.num:last-child { border-right: none; }

.num-value {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 8px;
}

.num-label {
  font-size: 13px;
  color: var(--text-subtle);
  font-weight: 400;
}

@media (max-width: 720px) {
  .hero-numbers {
    grid-template-columns: repeat(2, 1fr);
  }
  .num {
    padding: 1.5rem 1.25rem;
  }
  .num:nth-child(1), .num:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
  .num:nth-child(2) { border-right: none; }
  .num:nth-child(4) { border-right: none; }
}

/* ─────────────────────────────────────────
   SECTION LAYOUT
───────────────────────────────────────── */
.section {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: clamp(4rem, 8vh, 7rem) var(--pad-x);
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .section-head {
    gap: 1.25rem;
    margin-bottom: 2rem;
  }
  .section-head > div { width: 100%; }
}

.section-intro {
  max-width: 640px;
  margin-bottom: 3rem;
}

.h2 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.h2-sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 560px;
  font-weight: 400;
}

/* ─────────────────────────────────────────
   REFRESH BUTTON
───────────────────────────────────────── */
.refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--surface);
  border: 1px solid var(--line-hi);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: all 150ms;
}

.refresh-btn:hover {
  border-color: var(--text);
  color: var(--text);
  background: var(--surface-hi);
}

.spinning {
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─────────────────────────────────────────
   CARDS
───────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 720px) {
  .cards { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  transition: border-color 200ms;
}

@media (max-width: 520px) {
  .card { padding: 1.5rem; border-radius: 12px; }
  .card-grid { gap: 1rem 1rem; }
  .card-price-row { gap: 10px; }
  .card-price { font-size: 40px; }
}

.card-gme { border-top: 3px solid var(--emerald); }
.card-amc { border-top: 3px solid var(--copper); }

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.card-ticker {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.card-gme .card-ticker { color: var(--emerald); }
.card-amc .card-ticker { color: var(--copper); }

.card-name {
  font-size: 13px;
  color: var(--text-subtle);
  font-weight: 400;
}

.card-state {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-subtle);
  padding: 4px 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 5px;
}

.card-price-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  min-height: 56px;
}

.card-price {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(40px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--text);
}

.card-change {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  padding-bottom: 6px;
}

.change-up   { color: var(--emerald-hi); }
.change-down { color: var(--crimson); }

.change-sub {
  display: block;
  font-size: 12px;
  color: var(--text-subtle);
  margin-top: 2px;
}

.price-skeleton {
  display: inline-block;
  width: 160px;
  height: 48px;
  background: linear-gradient(90deg, var(--surface-hi) 0%, var(--line-hi) 50%, var(--surface-hi) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
  border-radius: 6px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.card-rule {
  border: none;
  height: 1px;
  background: var(--line);
  margin: 1.5rem 0;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
}

.kv-k {
  font-size: 12px;
  color: var(--text-subtle);
  margin-bottom: 4px;
  font-weight: 400;
}

.kv-v {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}

.kv-loss { color: var(--crimson); }

/* Meter */
.meter {
  margin-bottom: 1.25rem;
}

.meter-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-subtle);
  margin-bottom: 8px;
}

.meter-val { color: var(--text); font-weight: 500; }

.meter-track {
  height: 4px;
  background: var(--bg);
  border-radius: 2px;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.meter-fill-gme { background: var(--emerald); }
.meter-fill-amc { background: var(--copper); }

/* Tag */
.tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid;
}

.tag-neutral {
  background: var(--surface-hi);
  color: var(--text-muted);
  border-color: var(--line-hi);
}

.tag-elevated {
  background: var(--copper-bg);
  color: var(--copper-hi);
  border-color: var(--copper-line);
}

.data-sources {
  margin-top: 1.5rem;
  font-size: 13px;
  color: var(--text-subtle);
  line-height: 1.7;
}

.data-sources a {
  color: var(--text-muted);
  border-bottom: 1px solid var(--line-hi);
  transition: color 150ms, border-color 150ms;
}

.data-sources a:hover {
  color: var(--emerald-hi);
  border-color: var(--emerald);
}

/* ─────────────────────────────────────────
   CHART
───────────────────────────────────────── */
.tabs {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
}

.tab {
  padding: 7px 18px;
  background: transparent;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-subtle);
  cursor: pointer;
  transition: all 150ms;
}

.tab:hover { color: var(--text); }

.tab-active {
  background: var(--surface-hi);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--line-hi);
}

.chart-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem;
}

.chart-wrap {
  position: relative;
  height: 380px;
}

@media (max-width: 640px) {
  .chart-frame { padding: 1.25rem; border-radius: 12px; }
  .chart-wrap { height: 280px; }
}

/* ─────────────────────────────────────────
   STEPS
───────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.75rem;
  transition: all 200ms;
}

.step:hover {
  border-color: var(--line-hi);
  background: var(--surface-hi);
  transform: translateY(-2px);
}

.step-num {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--emerald);
  margin-bottom: 1rem;
  line-height: 1;
  letter-spacing: 0.02em;
}

.step-hot .step-num { color: var(--crimson); }

.step-h {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.step p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

.step p strong { color: var(--text); font-weight: 500; }

/* ─────────────────────────────────────────
   TERMS
───────────────────────────────────────── */
.terms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

@media (max-width: 900px) { .terms { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .terms { grid-template-columns: 1fr; } }

.term {
  background: var(--surface);
  padding: 1.5rem;
  transition: background 150ms;
}

.term:hover { background: var(--surface-hi); }

.term h4 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.term p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─────────────────────────────────────────
   ROARING KITTY
───────────────────────────────────────── */
.kitty {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: start;
}

@media (max-width: 900px) {
  .kitty { grid-template-columns: 1fr; gap: 40px; }
}

.kitty-tag {
  display: inline-block;
  font-size: 13px;
  color: var(--text-subtle);
  margin-bottom: 1rem;
}

.kitty-h {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(48px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.kitty-sub {
  font-size: 15px;
  color: var(--text-subtle);
  margin-bottom: 2rem;
}

.kitty-body p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
  max-width: 52ch;
}

.kitty-body p:last-child { margin-bottom: 0; }

.kitty-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kitty-stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 200ms;
}

.kitty-stat:hover {
  border-color: var(--line-hi);
  background: var(--surface-hi);
}

.kitty-stat-highlight {
  border-color: var(--emerald-line);
  background: linear-gradient(180deg, var(--emerald-bg) 0%, var(--surface) 60%);
}

.kitty-stat-date {
  font-size: 12px;
  color: var(--text-subtle);
  margin-bottom: 6px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.kitty-stat-value {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 6px;
}

.kitty-stat-highlight .kitty-stat-value { color: var(--emerald-hi); }

.kitty-stat-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* ─────────────────────────────────────────
   TIMELINE
───────────────────────────────────────── */
.timeline {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.tl {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.tl:first-child { border-top: none; padding-top: 1rem; }
.tl:last-child  { padding-bottom: 0; }

@media (max-width: 720px) {
  .tl {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 1.75rem 0;
  }
  .tl-date {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-top: 0;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 8px;
    padding-bottom: 10px;
  }
  .tl-body h3 { font-size: 19px; }
}

.tl-date {
  font-size: 13px;
  color: var(--text-subtle);
  font-weight: 500;
  letter-spacing: 0.01em;
  padding-top: 4px;
}

.tl-hot .tl-date {
  color: var(--crimson);
  font-weight: 500;
}

.tl-body h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.tl-body p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 62ch;
}

.tl-body p em { color: var(--parchment); font-style: italic; }

/* ─────────────────────────────────────────
   SOURCES
───────────────────────────────────────── */
.sources {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

@media (max-width: 1000px) { .sources { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .sources { grid-template-columns: repeat(2, 1fr); } }

.source {
  background: var(--surface);
  padding: 1.25rem 1.5rem;
  transition: background 150ms;
  position: relative;
}

.source:hover {
  background: var(--surface-hi);
}

.source::after {
  content: '↗';
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  color: var(--text-faint);
  font-size: 14px;
  transition: color 150ms;
}

.source:hover::after { color: var(--emerald-hi); }

.source-main {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.source-meta {
  font-size: 12px;
  color: var(--text-subtle);
}

/* ─────────────────────────────────────────
   DISCLAIMER
───────────────────────────────────────── */
.disclaimer {
  margin-top: 3rem;
  padding: 1.25rem 1.5rem;
  background: var(--crimson-bg);
  border: 1px solid var(--crimson-line);
  border-left: 3px solid var(--crimson);
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

.disclaimer strong {
  color: var(--crimson);
  font-weight: 600;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
footer {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 2rem var(--pad-x) 3rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-subtle);
}
