/* ============================================================
   Market Insight — Landing Page
   Matches reference: dashboard screenshot hero, ticker bar,
   data-source logos, dark cinematic aesthetic
   ============================================================ */

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

:root {
  --lp-bg: #131316;
  --lp-surface: #1c1c20;
  --lp-card: #1c1c20;
  --lp-border: #2a2a30;
  --lp-border-light: #2a2a30;
  --lp-text: #e0e0e0;
  --lp-text-muted: #b0bec5;
  --lp-accent: #4F98A3;
  --lp-green: #0EB35B;
  --lp-red: #C24A4A;
  --lp-cta: #4F98A3;
  --lp-cta-hover: #3d8690;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--lp-bg);
  color: var(--lp-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ============================================================
   NAV — matches reference: logo + LIVE badge left, date + links right
   ============================================================ */
.lp-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #1d1d22;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--lp-border);
}
.lp-nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lp-nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lp-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--lp-text);
  font-family: 'Inter Tight', sans-serif;
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 800;
  line-height: 1.1;
}
.lp-logo strong { font-weight: 800; }
.lp-logo-highlight { color: #4F98A3; font-weight: 400; }

/* Live badge */
.lp-live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--lp-green);
  letter-spacing: 0.04em;
}
.lp-live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lp-green);
  animation: lp-pulse 2s ease-in-out infinite;
}
@keyframes lp-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(14,179,91,0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(14,179,91,0); }
}
.lp-live-time {
  color: var(--lp-text-muted);
  font-size: 11px;
}

/* Right side */
.lp-nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}
.lp-nav-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}
.lp-nav-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-accent);
}
.lp-nav-sources {
  font-size: 10px;
  color: var(--lp-text-muted);
  letter-spacing: 0.02em;
}
.lp-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.lp-nav-links a {
  text-decoration: none;
  color: var(--lp-text-muted);
  font-size: 12px;
  font-weight: 500;
  transition: color 0.15s;
}
.lp-nav-links a:hover { color: var(--lp-text); }
.lp-nav-cta {
  background: rgba(79, 152, 163, 0.15) !important;
  color: var(--lp-accent) !important;
  border: 1px solid rgba(79, 152, 163, 0.3);
  padding: 7px 18px !important;
  border-radius: 6px;
  font-weight: 600 !important;
  font-size: 12px !important;
  transition: all 0.15s !important;
}
.lp-nav-cta:hover {
  background: rgba(79, 152, 163, 0.25) !important;
  border-color: var(--lp-accent);
}
.lp-mobile-menu {
  display: none;
  background: none;
  border: none;
  color: var(--lp-text);
  cursor: pointer;
}
.lp-mobile-drawer {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0;
  z-index: 99;
  background: var(--lp-surface);
  border-bottom: 1px solid var(--lp-border);
  flex-direction: column;
  padding: 16px 24px;
  gap: 14px;
}
.lp-mobile-drawer.open { display: flex; }
.lp-mobile-drawer a {
  text-decoration: none;
  color: var(--lp-text-muted);
  font-size: 14px;
  font-weight: 500;
}

/* ============================================================
   HERO — full-bleed dashboard screenshot background
   ============================================================ */
.lp-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* Background image */
.lp-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
/* Landing page hides the unified date mount — the live/time indicator in the
   lp-live-badge below the hero serves the same purpose in a more decorative form. */
.lp-page .mi-date-mount { display: none !important; }

.lp-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.42;
}
.lp-hero-overlay {
  position: absolute;
  inset: 0;
  /* Left-to-right dim protects the headline; right side now also dimmed for a more opaque, moodier hero */
  background:
    linear-gradient(to right,
      rgba(19, 19, 22, 0.96) 0%,
      rgba(19, 19, 22, 0.82) 28%,
      rgba(19, 19, 22, 0.55) 55%,
      rgba(19, 19, 22, 0.40) 100%),
    linear-gradient(to bottom,
      rgba(19, 19, 22, 0.15) 0%,
      rgba(19, 19, 22, 0.10) 55%,
      rgba(19, 19, 22, 0.70) 75%,
      rgba(19, 19, 22, 0.98) 100%);
}

/* Hero content */
.lp-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
  padding: 140px 32px 0;
  width: 100%;
}
.lp-hero-content h1 {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 4.7vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #e0e0e0;
  margin-bottom: 24px;
  max-width: 750px;
}
.lp-hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--lp-text-muted);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.6;
}
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
}
.lp-btn-primary {
  background: var(--lp-cta);
  color: #fff;
  box-shadow: 0 4px 20px rgba(79, 152, 163, 0.25);
}
.lp-btn-primary:hover {
  background: var(--lp-cta-hover);
  box-shadow: 0 4px 24px rgba(79, 152, 163, 0.35);
}
.lp-btn-secondary {
  background: transparent;
  color: var(--lp-text-muted);
  border: 1px solid var(--lp-border-light);
}
.lp-btn-secondary:hover {
  color: var(--lp-text);
  border-color: var(--lp-text-muted);
}
.lp-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============================================================
   DATA SOURCE LOGOS — large branded text
   ============================================================ */
.lp-sources {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 0 32px;
  margin-top: auto;
  margin-bottom: 80px;
}
.lp-source {
  font-size: 22px;
  font-weight: 700;
  color: rgba(205,204,202,0.28);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.lp-source-yahoo {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 24px;
}
.lp-source-yahoo span {
  color: rgba(205,204,202,0.18);
  font-weight: 400;
}
.lp-source-tv {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}
.lp-source-tv-icon {
  margin-right: -12px;
}
.lp-source-fred {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 900;
  letter-spacing: 0.04em;
  font-size: 24px;
}
.lp-source-naeem {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-style: italic;
  font-size: 22px;
}

/* ============================================================
   TICKER BAR — bottom of hero
   ============================================================ */
.lp-ticker-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 20px 32px;
  background: rgba(19, 19, 22, 0.6);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--lp-border);
}
.lp-ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lp-ticker-icon { flex-shrink: 0; }
.lp-ticker-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--lp-text);
  letter-spacing: -0.01em;
}
.lp-ticker-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--lp-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.02em;
}
.lp-ticker-change {
  font-size: 17px;
  font-weight: 700;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
.lp-ticker-btc-icon {
  font-size: 22px;
  color: #f7931a;
  font-weight: 700;
}
.lp-ticker-oil-icon {
  font-size: 18px;
}
.lp-up { color: var(--lp-green); }
.lp-down { color: var(--lp-red); }

/* ============================================================
   FEATURES
   ============================================================ */
.lp-features {
  padding: 100px 24px;
  background: var(--lp-surface);
  border-top: 1px solid var(--lp-border);
}
.lp-section-inner {
  max-width: 1440px;
  margin: 0 auto;
}
.lp-features h2,
.lp-cta-section h2 {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--lp-text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.lp-section-sub {
  color: var(--lp-text-muted);
  font-size: 16px;
  margin-bottom: 48px;
  max-width: 560px;
}
.lp-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.lp-feature-card {
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: 8px;
  padding: 28px 24px;
  transition: border-color 0.2s;
}
.lp-feature-card:hover { border-color: var(--lp-accent); }
.lp-feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(79, 152, 163, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--lp-accent);
}
.lp-feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--lp-text);
  margin-bottom: 8px;
}
.lp-feature-card p {
  font-size: 13px;
  color: var(--lp-text-muted);
  line-height: 1.6;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.lp-cta-section {
  padding: 80px 24px;
  text-align: center;
  border-top: 1px solid var(--lp-border);
}
.lp-cta-section p {
  color: var(--lp-text-muted);
  font-size: 16px;
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.lp-cta-section .lp-hero-actions {
  justify-content: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.lp-footer {
  border-top: 1px solid var(--lp-border);
  padding: 60px 24px 0;
  background: var(--lp-surface);
}
.lp-footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
  padding-bottom: 40px;
}
.lp-footer-brand .lp-logo { margin-bottom: 12px; }
.lp-footer-tagline {
  font-size: 13px;
  color: var(--lp-text-muted);
}
.lp-footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.lp-footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lp-text-muted);
  margin-bottom: 14px;
}
.lp-footer-col a {
  display: block;
  font-size: 13px;
  color: var(--lp-text);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.15s;
}
.lp-footer-col a:hover { color: var(--lp-accent); }
.lp-footer-bottom {
  max-width: 1440px;
  margin: 0 auto;
  border-top: 1px solid var(--lp-border);
  padding: 24px 0 30px;
}
.lp-footer-bottom p {
  font-size: 12px;
  color: var(--lp-text-muted);
  margin-bottom: 10px;
}
.lp-disclaimer {
  font-size: 11px !important;
  color: rgba(176, 190, 197, 0.6) !important;
  line-height: 1.6;
  max-width: 800px;
}
.lp-legal-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px;
  border-top: 1px solid var(--lp-border);
  background: var(--lp-surface);
}
.lp-legal-section h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--lp-text);
  margin-bottom: 12px;
}
.lp-legal-section p {
  font-size: 13px;
  color: var(--lp-text-muted);
  line-height: 1.7;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .lp-nav-meta { display: none; }
  .lp-sources { gap: 20px; flex-wrap: wrap; }
  .lp-source { font-size: 17px; }
  .lp-source-yahoo, .lp-source-fred { font-size: 18px; }
  .lp-ticker-bar { gap: 24px; flex-wrap: wrap; }
  .lp-ticker-name { font-size: 15px; }
  .lp-ticker-price { font-size: 17px; }
  .lp-ticker-change { font-size: 14px; }
  .lp-features-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lp-nav-links { display: none; }
  .lp-mobile-menu { display: block; }
  .lp-nav-inner { padding: 0 16px; }
  .lp-hero-content { padding: 120px 20px 0; }
  .lp-hero-content h1 { font-size: 1.85rem; }
  .lp-hero-bg-img {
    opacity: 0.35;
    object-position: center center;
  }
  .lp-hero-overlay {
    background:
      linear-gradient(to bottom,
        rgba(19, 19, 22, 0.5) 0%,
        rgba(19, 19, 22, 0.3) 30%,
        rgba(19, 19, 22, 0.5) 60%,
        rgba(19, 19, 22, 0.95) 100%) !important;
  }
  .lp-sources { gap: 14px; margin-bottom: 60px; }
  .lp-source { font-size: 14px; }
  .lp-source-yahoo, .lp-source-fred { font-size: 15px; }
  .lp-source-tv-icon { display: none; }
  .lp-ticker-bar { gap: 16px; padding: 14px 16px; }
  .lp-ticker-name { font-size: 13px; }
  .lp-ticker-price { font-size: 14px; }
  .lp-ticker-change { font-size: 13px; }
  .lp-features-grid { grid-template-columns: 1fr; }
  .lp-footer-links { grid-template-columns: 1fr; }
}
