/* ============================================================
   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 24px 36px;
  overflow-wrap: anywhere;
  word-break: normal;
}
.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;
  overflow-wrap: anywhere;
}
/* High-emphasis variant for the capital-at-risk warning that leads the
   footer block. Slightly larger and brighter than the body disclaimer so the
   risk warning is the first thing readable text in the bottom strip. */
.lp-disclaimer-warn {
  font-size: 12px !important;
  color: rgba(243, 194, 122, 0.92) !important;
  border-left: 2px solid rgba(232, 156, 60, 0.6);
  padding-left: 10px;
  margin-bottom: 12px !important;
}
.lp-disclaimer-warn strong { color: #f3c27a; }
.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; }
}

/* ─────────────────────────────────────────────────────────────
   Iter 12DQ — Footer additions (domain note, operator column)
   ───────────────────────────────────────────────────────────── */
.lp-footer-domain-note {
  font-size: 12px;
  color: var(--lp-text-muted);
  margin: 10px 0 0;
  max-width: 32ch;
  line-height: 1.55;
}
.lp-footer-domain-note code {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--lp-border);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
}
.lp-footer-operator {
  font-size: 13px;
  color: var(--lp-text-muted);
  line-height: 1.55;
  margin: 4px 0 0;
}
.lp-disclaimer a { color: var(--lp-accent); text-decoration: none; }
.lp-disclaimer a:hover { text-decoration: underline; }

/* ─────────────────────────────────────────────────────────────
   Iter 12DQ — New landing sections (How brokerage + About)
   Snowball-inspired clean cards / generous spacing / quiet palette
   ───────────────────────────────────────────────────────────── */
.lp-section {
  padding: 96px 24px;
  border-top: 1px solid var(--lp-border);
}
.lp-section + .lp-section { border-top: 1px solid var(--lp-border); }
.lp-section-inner { max-width: 1080px; margin: 0 auto; }
.lp-section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lp-accent);
  margin: 0 0 12px;
}
.lp-section-title {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.15;
  color: #ffffff;
  margin: 0 0 14px;
}
.lp-section-lede {
  color: var(--lp-text-muted);
  font-size: 17px;
  max-width: 70ch;
  margin: 0 0 36px;
}

/* Brokerage steps */
.lp-broker-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.lp-broker-steps li {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 14px;
  padding: 26px 24px;
  transition: border-color 0.18s, transform 0.18s;
}
.lp-broker-steps li:hover {
  border-color: rgba(79, 152, 163, 0.55);
  transform: translateY(-2px);
}
.lp-broker-step-num {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4F98A3 0%, #6FBCC9 100%);
  color: #0d1114;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(79,152,163,0.25);
}
.lp-broker-steps h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.lp-broker-steps p {
  font-size: 13.5px;
  color: var(--lp-text-muted);
  margin: 0;
  line-height: 1.6;
}

.lp-broker-trust {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-left: 3px solid var(--lp-accent);
  border-radius: 0 14px 14px 0;
  padding: 26px 28px;
}
.lp-broker-trust h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.lp-broker-trust ul {
  margin: 0 0 14px;
  padding-left: 22px;
  color: var(--lp-text-muted);
  font-size: 14px;
  line-height: 1.7;
}
.lp-broker-trust li { margin: 6px 0; }
.lp-broker-trust li::marker { color: var(--lp-accent); }
.lp-broker-trust-meta {
  font-size: 12.5px;
  color: var(--lp-text-muted);
  margin: 0;
}
.lp-broker-trust-meta a { color: var(--lp-accent); text-decoration: none; }
.lp-broker-trust-meta a:hover { text-decoration: underline; }

/* About / operator */
.lp-about-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 720px) { .lp-about-inner { grid-template-columns: 1fr; gap: 28px; } }
.lp-about-text p {
  color: var(--lp-text-muted);
  font-size: 15.5px;
  line-height: 1.7;
  margin: 0 0 14px;
}
.lp-about-domain-note code {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--lp-border);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}
.lp-about-meta {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 14px;
  padding: 26px 28px;
  position: sticky;
  top: 100px;
}
@media (max-width: 720px) { .lp-about-meta { position: static; } }
.lp-about-meta ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}
.lp-about-meta li {
  display: flex;
  flex-direction: column;
  padding: 10px 0;
  border-bottom: 1px solid var(--lp-border);
  color: var(--lp-text-muted);
}
.lp-about-meta li:last-child { border-bottom: none; padding-bottom: 0; }
.lp-about-meta li strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-text-muted);
  margin-bottom: 4px;
  font-weight: 600;
}
.lp-about-meta li span { color: var(--lp-text); font-size: 14.5px; }
.lp-about-meta li a { color: var(--lp-accent); text-decoration: none; }
.lp-about-meta li a:hover { text-decoration: underline; }

/* Hero risk warning (Iter 12DQ) — short capital-at-risk line beneath the
   primary CTA. Required best-practice copy whenever investment-themed
   promotional language appears (FCA / ASIC / SEC framing). */
.lp-hero-risk {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(243, 194, 122, 0.85);
  max-width: 520px;
}
.lp-hero-risk a {
  color: rgba(243, 194, 122, 0.95);
  text-decoration: underline;
}
.lp-hero-risk a:hover { color: #ffd9a3; }

/* Make sure long URL/code strings in the footer never overflow */
.lp-footer, .lp-footer * { min-width: 0; }
.lp-footer a, .lp-disclaimer a { overflow-wrap: anywhere; }

/* Mobile padding tightening for new sections */
@media (max-width: 640px) {
  .lp-section { padding: 64px 18px; }
  .lp-broker-steps li { padding: 22px 20px; }
  .lp-broker-trust { padding: 22px 20px; }
  .lp-about-meta { padding: 22px 20px; }
}
