/* === MARKETS PAGE — DARK SIGNAL DESK THEME === */
/* Background: #0B1220 throughout — matches AskSignalAtlas Market Packets */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0B1220;
  --surface: #111827;
  --surface-2: #1a2436;
  --surface-3: #1f2d40;
  --border: rgba(255,255,255,0.07);
  --border-bright: rgba(255,255,255,0.12);

  /* Brand tokens */
  --blue: #2563C7;           /* Signal blue */
  --amber: #F0A202;          /* Amber */
  --green: #3C8D5A;          /* Soft green */
  --red: #B84A3A;            /* Alert red */

  /* Text */
  --text: #E8EDF3;
  --text-2: rgba(232,237,243,0.55);
  --text-3: rgba(232,237,243,0.3);

  /* Status */
  --up: #4ADE80;
  --dn: #F87171;
  --hold: #F0A202;

  /* Fonts */
  --mono: 'IBM Plex Mono', 'Courier New', monospace;
  --sans: 'Figtree', system-ui, sans-serif;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* === TICKER BAR === */
.ticker-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 48px;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.ticker-live-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.ticker-label {
  color: var(--text-2);
  flex-shrink: 0;
  font-weight: 600;
}

.ticker-sep { color: var(--border-bright); margin: 0 4px; }

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  margin-right: 20px;
}

.ticker-item .lbl { color: var(--text-3); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.ticker-item .val { color: var(--text); font-weight: 500; }
.ticker-item .arrow { font-size: 11px; }
.ticker-item .arrow.up { color: var(--up); }
.ticker-item .arrow.dn { color: var(--dn); }
.ticker-item .arrow.ev { color: var(--amber); }

/* === NAV === */
.mkt-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: rgba(11,18,32,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.nav-logo-mark {
  font-size: 18px;
  color: var(--amber);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  color: var(--text-2);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

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

.nav-links a.active {
  color: var(--blue);
}

.nav-cta {
  background: var(--blue) !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: 8px;
  padding: 8px 16px !important;
  font-size: 13px !important;
}

.nav-cta:hover {
  background: #1d4ed8 !important;
}

/* === HERO === */
.hero-mkt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 100px 48px 80px;
  align-items: center;
  position: relative;
}

.hero-mkt::before {
  content: '';
  position: absolute;
  top: 0; right: 50%;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

.hero-left {
  padding-right: 64px;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-eyebrow .dot {
  width: 5px; height: 5px;
  background: var(--amber);
  border-radius: 50%;
}

.hero-headline-mkt {
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 24px;
  color: var(--text);
}

.hero-headline-mkt em { color: var(--blue); font-style: normal; }

.hero-sub {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 440px;
  margin-bottom: 40px;
}

.hero-input-group {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  padding: 6px 6px 6px 16px;
  max-width: 520px;
  margin-bottom: 20px;
}

.hero-input-group:focus-within {
  border-color: var(--blue);
}

.hero-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  padding: 8px 0;
}

.hero-input::placeholder { color: var(--text-3); }

.hero-ask-btn {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
  font-family: var(--sans);
}

.hero-ask-btn:hover { background: #1d4ed8; }

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-chip {
  font-size: 11px;
  color: var(--text-3);
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
}

/* === SIGNAL DESK CARD === */
.hero-right {
  padding-left: 64px;
}

.signal-desk {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: 16px;
  padding: 24px;
}

.desk-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 20px;
}

.scenario-map-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}

.scenario-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }

.scenario-row {
  display: grid;
  grid-template-columns: 72px 1fr 40px;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}

.scenario-row .scen-name {
  color: var(--text-2);
  font-weight: 500;
}

.scen-bar-wrap {
  background: var(--surface-3);
  border-radius: 4px;
  height: 8px;
  overflow: hidden;
  display: flex;
}

.scen-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s;
}

.scen-bar-fill.hold { background: var(--amber); }
.scen-bar-fill.cut { background: var(--blue); }
.scen-bar-fill.hike { background: var(--red); }
.scen-bar-fill.dim { background: var(--surface-3); }

.scen-pct { font-family: var(--mono); font-size: 11px; color: var(--text-2); text-align: right; }

.watch-section {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.watch-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}

.watch-list { display: flex; flex-direction: column; gap: 5px; }

.watch-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-2);
}

.watch-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.watch-dot.amber { background: var(--amber); }
.watch-dot.green { background: var(--green); }
.watch-dot.blue { background: var(--blue); }

.dots-viz {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  align-items: center;
}

.dot-pip {
  width: 14px; height: 14px;
  border-radius: 50%;
}

.dot-pip.hold { background: var(--amber); opacity: 0.8; }
.dot-pip.cut { background: var(--blue); opacity: 0.8; }
.dot-pip.hike { background: var(--red); opacity: 0.8; }

.dot-legend {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
  margin-top: 8px;
  display: flex;
  gap: 16px;
}

.dot-legend span { display: flex; align-items: center; gap: 5px; }

/* === BUILT FOR MARKET USERS === */
.market-users-section {
  padding: 100px 48px;
  border-top: 1px solid var(--border);
}

.section-header { margin-bottom: 60px; }

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(32px, 3.5vw, 48px);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-2);
  max-width: 520px;
  line-height: 1.7;
}

.cards-grid-2x3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.q-card {
  background: var(--bg);
  padding: 32px 28px;
  transition: background 0.2s;
  cursor: default;
}

.q-card:hover { background: var(--surface); }

.q-card-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.q-card h3 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 16px;
  letter-spacing: 0;
}

.q-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.q-tag {
  font-size: 10px;
  color: var(--text-3);
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

/* === MARKET LANES === */
.market-lanes-section {
  padding: 100px 48px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.lanes-header {
  text-align: center;
  margin-bottom: 60px;
}

.lanes-header h2 {
  font-size: clamp(32px, 3.5vw, 48px);
  margin-top: 12px;
  margin-bottom: 16px;
}

.lanes-header p {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.6;
}

.lanes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.lane-card {
  background: var(--bg);
  padding: 32px 24px;
  transition: background 0.2s;
}

.lane-card:hover { background: var(--surface-2); }

.lane-icon {
  font-size: 28px;
  margin-bottom: 16px;
  line-height: 1;
}

.lane-card h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: 0;
}

.lane-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
  margin-bottom: 20px;
}

.lane-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--mono);
}

.lane-stat .arrow { font-size: 11px; }
.lane-stat .arrow.up { color: var(--up); }
.lane-stat .arrow.dn { color: var(--dn); }
.lane-stat .arrow.ev { color: var(--amber); }
.lane-stat .val { color: var(--text-2); }

/* === SAMPLE MARKET PACKET === */
.sample-packet-section {
  padding: 100px 48px;
  border-top: 1px solid var(--border);
}

.sample-header {
  text-align: center;
  margin-bottom: 60px;
}

.sample-header h2 {
  font-size: clamp(32px, 3.5vw, 48px);
  margin-top: 12px;
  margin-bottom: 12px;
}

.sample-header p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
}

.sample-header .subtitle {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 8px;
}

.packet-doc {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: 16px;
  padding: 28px 32px;
  max-width: 780px;
  margin: 0 auto;
}

.doc-filename-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 24px;
}

.doc-filename-bar .dot-split {
  width: 4px; height: 4px;
  background: var(--text-3);
  border-radius: 50%;
}

.doc-question-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}

.doc-question-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 20px;
}

.doc-verdict-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37,99,199,0.15);
  border: 1px solid rgba(37,99,199,0.3);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 24px;
}

.verdict-pct { font-family: var(--mono); font-size: 14px; }

.doc-section { margin-bottom: 20px; }

.doc-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}

.doc-section p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

.doc-scenario-map {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.doc-scen-row {
  display: grid;
  grid-template-columns: 100px 1fr 40px;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}

.doc-scen-row .scen-name { color: var(--text-2); font-family: var(--mono); font-size: 11px; }

.doc-scen-bar {
  height: 6px;
  background: var(--surface-3);
  border-radius: 3px;
  overflow: hidden;
}

.doc-scen-bar-fill { height: 100%; border-radius: 3px; }
.doc-scen-bar-fill.hold { background: var(--amber); }
.doc-scen-bar-fill.cut { background: var(--blue); }
.doc-scen-bar-fill.hike { background: var(--surface-3); }

.doc-scen-pct { font-family: var(--mono); font-size: 11px; color: var(--text-3); text-align: right; }

.doc-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.doc-bullets li {
  font-size: 12px;
  color: var(--text-2);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}

.doc-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--amber);
  font-size: 10px;
}

.doc-sources {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.doc-sources .doc-section-label { margin-bottom: 8px; }

.doc-sources span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  display: inline;
}

/* === LEGAL STRIP === */
.legal-strip {
  margin: 0 48px;
  border: 1px solid var(--amber);
  border-radius: 12px;
  padding: 20px 24px;
  background: rgba(240,162,2,0.06);
}

.legal-strip-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

.legal-warn-icon {
  color: var(--amber);
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* === REQUEST CTA === */
.request-cta-section {
  padding: 100px 48px;
  border-top: 1px solid var(--border);
}

.request-cta-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.request-cta-inner h2 {
  font-size: clamp(32px, 3.5vw, 48px);
  margin-top: 12px;
  margin-bottom: 16px;
}

.request-cta-inner > p {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 40px;
}

.request-email-row {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  padding: 6px 6px 6px 16px;
  max-width: 440px;
  margin: 0 auto 32px;
}

.request-email-row:focus-within { border-color: var(--blue); }

.request-email-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  padding: 10px 0;
}

.request-email-input::placeholder { color: var(--text-3); }

.request-submit-btn {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
  font-family: var(--sans);
}

.request-submit-btn:hover { background: #1d4ed8; }

.request-note {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
}

/* === FOOTER === */
.mkt-footer {
  border-top: 1px solid var(--border);
  padding: 40px 48px;
}

.mkt-footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.footer-logo { color: var(--amber); font-size: 16px; }

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 12px;
  color: var(--text-3);
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--text-2); text-decoration: none; }

.footer-disclaimer {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-3);
  max-width: 360px;
  text-align: right;
  line-height: 1.5;
}

/* === RESPONSIVE === */
@media (max-width: 1100px) {
  .cards-grid-2x3 { grid-template-columns: repeat(2, 1fr); }
  .lanes-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .ticker-bar { padding: 10px 24px; font-size: 10px; }
  .mkt-nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .hero-mkt { grid-template-columns: 1fr; padding: 80px 24px 60px; }
  .hero-mkt::before { display: none; }
  .hero-left { padding-right: 0; }
  .hero-right { padding-left: 0; margin-top: 48px; }
  .market-users-section,
  .market-lanes-section,
  .sample-packet-section { padding: 60px 24px; }
  .legal-strip { margin: 0 24px; }
  .request-cta-section { padding: 60px 24px; }
  .mkt-footer { padding: 32px 24px; }
  .footer-disclaimer { text-align: left; margin-left: 0; }
}

@media (max-width: 640px) {
  .cards-grid-2x3 { grid-template-columns: 1fr; }
  .lanes-grid { grid-template-columns: 1fr; }
  .hero-headline-mkt { font-size: 40px; }
  .q-card { padding: 24px 20px; }
}