/* ============================================================
   MarketLens — US equity research & screening landing page
   Calm, premium dark fintech. No profit claims. No buttons.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500&family=Hanken+Grotesk:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --bg:        #080c16;
  --bg-1:      #0b101e;
  --bg-2:      #0e1526;
  --bg-3:      #131d33;
  --panel:     rgba(255, 255, 255, 0.024);
  --line:      rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);

  --text:   #e9eef8;
  --muted:  #93a1bb;
  --faint:  #5e6c86;

  --teal:   #46d6c3;
  --blue:   #6f9cf2;
  --teal-d: #1f8d80;
  --green:  #4fd17e;
  --red:    #e8736b;

  --accent-grad: linear-gradient(115deg, var(--teal), var(--blue));

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;

  --maxw: 1180px;

  --shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0.1px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Atmospheric background: layered radial glows + faint grid + grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(820px 620px at 78% -4%, rgba(111, 156, 242, 0.16), transparent 60%),
    radial-gradient(720px 560px at 10% 8%, rgba(70, 214, 195, 0.10), transparent 58%),
    radial-gradient(1000px 800px at 50% 116%, rgba(70, 214, 195, 0.07), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }

a { color: inherit; text-decoration: none; }

/* ---------- shared type helpers ---------- */
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--teal);
  opacity: 0.6;
}

h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 400; line-height: 1.08; letter-spacing: -0.4px; }

.section { padding: 110px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); margin: 18px 0 16px; }
.section-head p { color: var(--muted); font-size: 18px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(8, 12, 22, 0.72);
  backdrop-filter: blur(14px);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 19px; letter-spacing: 0.2px; }
.brand .logo {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--accent-grad);
  display: grid; place-items: center;
  box-shadow: 0 6px 20px -6px rgba(70, 214, 195, 0.6);
}
.brand .logo svg { width: 17px; height: 17px; }
.brand b { font-weight: 700; }
.brand .lens { font-family: 'Fraunces', serif; font-weight: 400; font-style: italic; }
.nav-links { display: flex; gap: 34px; font-size: 14.5px; color: var(--muted); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--teal);
  border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 100px;
}
@media (max-width: 860px) { .nav-links { display: none; } }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 92px 0 80px; position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 6.2vw, 76px);
  margin: 22px 0 24px;
  letter-spacing: -1.4px;
}
.hero h1 em { font-style: italic; color: transparent; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; }
.hero p.lead { color: var(--muted); font-size: 19px; max-width: 520px; }
.hero .sub {
  margin-top: 30px;
  display: flex; flex-wrap: wrap; gap: 12px;
}
.chip {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 9px 15px; border-radius: 100px;
  display: inline-flex; align-items: center; gap: 8px;
}
.chip svg { width: 14px; height: 14px; color: var(--teal); }

/* hero visual */
.hero-visual { position: relative; }
.hero-visual .frame {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: var(--shadow);
  position: relative;
}
.hero-visual .frame img { display: block; width: 100%; height: auto; }
.hero-visual .frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(8,12,22,0.35));
  pointer-events: none;
}
.float-card {
  position: absolute;
  background: rgba(14, 21, 38, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px -24px rgba(0,0,0,0.85);
  font-family: 'IBM Plex Mono', monospace;
}
.float-card .fc-label { font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--faint); }
.float-card .fc-val { font-size: 17px; margin-top: 3px; color: var(--text); font-weight: 500; }
.fc-1 { bottom: -22px; left: -26px; }
.fc-2 { top: -20px; right: -18px; }
.fc-2 .fc-val { color: var(--teal); }
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .float-card { display: none; }
}

/* ============================================================
   VALUE TRIO
   ============================================================ */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.trio .v { border-top: 1px solid var(--line); padding-top: 26px; }
.trio .v .num { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--teal); }
.trio .v h3 { font-size: 24px; margin: 14px 0 10px; }
.trio .v p { color: var(--muted); font-size: 16px; }
@media (max-width: 800px) { .trio { grid-template-columns: 1fr; gap: 8px; } }

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--r-md);
  padding: 30px 28px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 200px at 50% -40%, rgba(70,214,195,0.10), transparent 70%);
  opacity: 0; transition: opacity 0.35s;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(70,214,195,0.35); }
.feature:hover::before { opacity: 1; }
.feature .ic {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: rgba(70,214,195,0.06);
  margin-bottom: 20px;
}
.feature .ic svg { width: 23px; height: 23px; color: var(--teal); }
.feature h3 { font-size: 21px; margin-bottom: 9px; }
.feature p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }
.shot {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-2);
  position: relative;
}
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 24px 20px;
  background: linear-gradient(transparent, rgba(8,12,22,0.92) 65%);
}
.shot .cap .k { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--teal); }
.shot .cap h3 { font-size: 20px; margin-top: 6px; }
.gallery .col { display: grid; gap: 22px; }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr; } }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 40px 30px 10px; border-right: 1px solid var(--line); position: relative; }
.step:last-child { border-right: none; }
.step .n {
  font-family: 'Fraunces', serif; font-size: 46px; color: transparent;
  -webkit-text-stroke: 1px rgba(111,156,242,0.45); line-height: 1;
}
.step h3 { font-size: 22px; margin: 18px 0 10px; }
.step p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--line); padding: 32px 0; }
  .step:last-child { border-bottom: none; }
}

/* ============================================================
   FAQ
   ============================================================ */
#faq .section-head { max-width: 860px; margin-left: auto; margin-right: auto; text-align: center; }
#faq .section-head .eyebrow { justify-content: center; }
.faq-wrap { max-width: 860px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; color: var(--text);
  font-family: 'Hanken Grotesk', sans-serif; font-size: 18.5px; font-weight: 500;
  padding: 26px 44px 26px 0; cursor: pointer; position: relative;
  display: flex; align-items: center; gap: 16px;
}
.faq-q .qmark { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--teal); flex: none; }
.faq-q .plus { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; transition: transform 0.3s; }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; background: var(--teal); border-radius: 2px; }
.faq-q .plus::before { left: 0; right: 0; top: 8px; height: 2px; }
.faq-q .plus::after  { top: 0; bottom: 0; left: 8px; width: 2px; transition: opacity 0.3s; }
.faq-item.open .plus::after { opacity: 0; }
.faq-item.open .faq-q { color: var(--teal); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-a p { color: var(--muted); font-size: 16px; padding: 0 60px 26px 38px; }

/* ============================================================
   NOTICE BAND
   ============================================================ */
.notice {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(600px 300px at 18% 0%, rgba(111,156,242,0.10), transparent 70%),
    var(--bg-2);
  padding: 46px 50px;
  display: flex; gap: 28px; align-items: flex-start;
}
.notice .badge {
  flex: none; width: 52px; height: 52px; border-radius: 14px;
  border: 1px solid var(--line); display: grid; place-items: center;
  background: rgba(111,156,242,0.08);
}
.notice .badge svg { width: 26px; height: 26px; color: var(--blue); }
.notice h3 { font-size: 24px; margin-bottom: 10px; }
.notice p { color: var(--muted); font-size: 16px; max-width: 760px; }
@media (max-width: 640px) { .notice { flex-direction: column; padding: 34px 26px; } }

/* ============================================================
   FOOTER + LEGAL
   ============================================================ */
.footer { border-top: 1px solid var(--line); margin-top: 40px; background: var(--bg-1); }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; padding: 70px 0 50px; }
.footer .brand { font-size: 22px; margin-bottom: 16px; }
.footer-top p { color: var(--muted); font-size: 15px; max-width: 420px; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.foot-cols h4 { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; font-weight: 500; }
.foot-cols ul { list-style: none; display: grid; gap: 11px; }
.foot-cols a { color: var(--muted); font-size: 15px; transition: color 0.2s; }
.foot-cols a:hover { color: var(--teal); }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; gap: 36px; } }

.legal { border-top: 1px solid var(--line); padding: 60px 0; }
.legal-block { margin-bottom: 48px; }
.legal-block:last-child { margin-bottom: 0; }
.legal-block h3 {
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--teal); font-weight: 500; margin-bottom: 16px;
}
.legal-block p { color: var(--faint); font-size: 14px; line-height: 1.8; max-width: 920px; margin-bottom: 12px; }
.legal-block p:last-child { margin-bottom: 0; }
.legal-block strong { color: var(--muted); font-weight: 600; }

.copyright {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--faint); font-size: 13px;
  font-family: 'IBM Plex Mono', monospace;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
