/* PredictLens marketing site — editorial navy ground, serif headlines, mono captions. */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--pl-navy);
  color: #fff;
  font-family: var(--font-mono);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Decorative backdrop ---------- */
.backdrop-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(0,137,123,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,137,123,0.18) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.5;
  mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0.15) 100%);
}
.backdrop-glow {
  position: fixed; top: -300px; right: -200px; width: 900px; height: 900px;
  border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(0,137,123,0.4) 0%, rgba(0,137,123,0) 65%);
  filter: blur(2px);
}
.page { position: relative; z-index: 1; }

/* ---------- Layout container ---------- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 720px) { .container { padding: 0 24px; } }

/* ---------- Top nav / masthead ---------- */
.mast {
  padding: 32px 48px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mast .brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--pl-teal); font-size: 16px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
}
.mast .brand .mark {
  width: 32px; height: 32px; position: relative; flex: 0 0 32px;
}
.mast .brand .mark .ring { position: absolute; inset: 4px; border: 2.5px solid var(--pl-teal); border-radius: 50%; }
.mast .brand .mark .dot { position: absolute; left: 12px; top: 12px; width: 8px; height: 8px; background: var(--pl-gold); border-radius: 50%; }
.mast .brand .mark .stem { position: absolute; right: 1px; bottom: 1px; width: 12px; height: 2.5px; background: var(--pl-teal); transform: rotate(45deg); transform-origin: right; border-radius: 2px; }

.mast .nav-meta {
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.mast .nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--pl-teal); color: #fff;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  transition: opacity 200ms;
}
.mast .nav-cta:hover { opacity: 0.85; }

@media (max-width: 720px) {
  .mast { padding: 20px 24px; }
  .mast .nav-meta { display: none; }
}

/* ---------- Section ribbon (eyebrow + rule) ---------- */
.ribbon {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  color: var(--pl-teal); letter-spacing: 3px; text-transform: uppercase;
}
.ribbon .rule {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(0,137,123,0.6), rgba(255,255,255,0.08));
}
.ribbon .num { color: rgba(255,255,255,0.4); }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 96px; position: relative; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(0,137,123,0.15); border: 1px solid rgba(0,137,123,0.4);
  color: var(--pl-teal);
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
}
.hero .badge .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--pl-teal);
  box-shadow: 0 0 0 0 rgba(0,137,123,0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0,137,123,0.7); }
  70% { box-shadow: 0 0 0 8px rgba(0,137,123,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,137,123,0); }
}

.hero .accent-bar {
  width: 56px; height: 4px; background: var(--pl-teal);
  margin: 32px 0 28px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(54px, 8.5vw, 112px);
  line-height: 1.02;
  letter-spacing: -2.5px;
  color: #fff;
  margin: 0;
}
.hero h1 .accent { color: var(--pl-teal); }
.hero .sub {
  margin-top: 28px; max-width: 640px;
  font-family: var(--font-mono); font-size: 18px; font-weight: 500;
  color: rgba(255,255,255,0.7); line-height: 1.6;
}
.hero .sub::before { content: '// '; color: var(--pl-teal); }

.cta-row {
  margin-top: 48px;
  display: flex; flex-wrap: wrap; gap: 16px;
}
.btn-store {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 22px; border-radius: 14px;
  background: #fff; color: var(--pl-navy);
  font-family: var(--font-app);
  transition: transform 200ms;
  min-width: 220px;
}
.btn-store:hover { transform: translateY(-2px); }
.btn-store .glyph { font-size: 28px; line-height: 1; }
.btn-store .col { display: flex; flex-direction: column; align-items: flex-start; }
.btn-store .small { font-size: 11px; font-weight: 500; color: rgba(13,27,62,0.6); letter-spacing: 1px; text-transform: uppercase; }
.btn-store .big { font-size: 18px; font-weight: 700; }

.btn-store.coming {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.12);
  cursor: default;
}
.btn-store.coming .small { color: rgba(255,255,255,0.4); }
.btn-store.coming:hover { transform: none; }

/* ---------- Hero device + ticker layout ---------- */
.hero-grid {
  margin-top: 64px;
  display: grid; gap: 64px;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: end;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-grid .device-stage { display: none; }
}

/* phone bezel */
.device {
  width: 360px; height: 740px;
  padding: 6px; border-radius: 60px;
  background: #0a0a0a;
  box-shadow: 0 40px 100px rgba(0,0,0,0.55),
              inset 0 0 0 2px rgba(255,255,255,0.06),
              0 0 0 6px #1A1A1A;
  position: relative;
}
.device .screen {
  width: 100%; height: 100%; border-radius: 54px; overflow: hidden;
  background: var(--pl-bg); position: relative;
  font-family: var(--font-app); color: var(--pl-navy);
}
.device .notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 30px; background: #000; border-radius: 16px; z-index: 5;
}
.device-stage { display: flex; justify-content: center; }

/* Mini Markets screen inside the device */
.mini-header {
  background: var(--pl-navy);
  padding: 56px 16px 18px;
  color: #fff;
}
.mini-header .row { display: flex; justify-content: space-between; align-items: center; }
.mini-header .title { font-size: 22px; font-weight: 700; }
.mini-header .subtitle { font-size: 11px; color: rgba(255,255,255,0.55); margin-top: 4px; letter-spacing: 0.4px; }
.mini-header .icons { display: flex; gap: 8px; }
.mini-header .icon-btn {
  width: 34px; height: 34px; border-radius: 17px;
  background: rgba(255,255,255,0.12); display: grid; place-items: center;
  font-size: 14px;
}

.mini-pills { padding: 12px 16px 6px; display: flex; gap: 8px; overflow: hidden; background: var(--pl-navy); }
.mini-pill {
  font-size: 11px; font-weight: 600; padding: 8px 14px; border-radius: 18px;
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7);
  white-space: nowrap;
}
.mini-pill.active { background: var(--pl-teal); color: #fff; }

.mini-feed { padding: 12px 12px 0; display: flex; flex-direction: column; gap: 10px; }
.mini-card {
  background: #fff; border-radius: 14px; padding: 12px 14px;
  box-shadow: var(--sh-card);
  display: flex; gap: 10px; align-items: flex-start;
}
.mini-card .body { flex: 1; min-width: 0; }
.mini-card .cat {
  font-size: 9px; font-weight: 700; letter-spacing: 0.5px;
  color: var(--pl-teal); text-transform: uppercase;
  display: flex; gap: 6px; align-items: center;
}
.mini-card .chip { padding: 2px 6px; background: var(--pl-teal-light); color: var(--pl-teal-dark); border-radius: 4px; font-size: 8px; }
.mini-card .ttl { font-size: 12px; font-weight: 600; color: var(--pl-navy); margin-top: 4px; line-height: 1.3; }
.mini-card .right { text-align: right; min-width: 56px; }
.mini-card .pct { font-size: 22px; font-weight: 900; line-height: 1; color: var(--pl-prob-green); }
.mini-card .pct.amber { color: var(--pl-prob-amber); }
.mini-card .pct.red { color: var(--pl-prob-red); }
.mini-card .delta { font-size: 10px; font-weight: 600; margin-top: 4px; color: var(--pl-prob-green); }
.mini-card .delta.down { color: var(--pl-prob-red); }

/* Hero ticker (right side) */
.ticker-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 24px;
  font-family: var(--font-mono);
  backdrop-filter: blur(6px);
}
.ticker-card .lbl {
  font-size: 11px; color: rgba(255,255,255,0.45);
  letter-spacing: 2px; text-transform: uppercase;
  display: flex; justify-content: space-between; margin-bottom: 16px;
}
.ticker-card .lbl .live { color: var(--pl-teal); display: flex; gap: 6px; align-items: center; }
.ticker-card .lbl .live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--pl-teal); animation: pulse 2s infinite; }
.ticker-list { display: flex; flex-direction: column; }
.ticker-row {
  display: flex; gap: 12px; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ticker-row:last-child { border-bottom: none; }
.ticker-row .pct {
  font-family: var(--font-mono);
  font-size: 18px; font-weight: 600;
  color: var(--pl-prob-green); width: 44px; flex: 0 0 44px;
}
.ticker-row .pct.amber { color: var(--pl-prob-amber); }
.ticker-row .pct.red { color: var(--pl-prob-red); }
.ticker-row .name { flex: 1; font-size: 13px; color: rgba(255,255,255,0.85); line-height: 1.35; }

/* ---------- Features ---------- */
.section { padding: 96px 0; position: relative; }
.section .ribbon { margin-bottom: 32px; }
.section h2 {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(40px, 5vw, 64px); line-height: 1.05;
  letter-spacing: -1.5px; color: #fff; max-width: 800px;
  margin: 0;
}
.section .lede {
  margin-top: 20px; max-width: 620px;
  font-family: var(--font-mono); font-size: 16px;
  color: rgba(255,255,255,0.65); line-height: 1.6;
}
.section .lede::before { content: '// '; color: var(--pl-teal); }

.features {
  margin-top: 64px;
  display: grid; gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 920px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feat {
  background: var(--pl-navy);
  padding: 36px 32px;
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 240px;
}
.feat .num {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  color: rgba(255,255,255,0.3); letter-spacing: 2px;
  position: absolute; top: 24px; right: 24px;
}
.feat .icon {
  width: 44px; height: 44px;
  border: 1.5px solid var(--pl-teal); border-radius: 12px;
  display: grid; place-items: center;
  color: var(--pl-teal);
}
.feat h3 {
  font-family: var(--font-serif); font-weight: 700;
  font-size: 24px; line-height: 1.15;
  color: #fff; margin: 0; letter-spacing: -0.3px;
}
.feat p {
  font-family: var(--font-mono); font-size: 14px; font-weight: 400;
  color: rgba(255,255,255,0.6); line-height: 1.55;
  margin: 0;
}

/* ---------- Stats ---------- */
.stats {
  margin-top: 96px;
  display: grid; gap: 1px; background: rgba(255,255,255,0.08);
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: var(--pl-navy);
  padding: 36px 28px;
}
.stat .v {
  font-family: var(--font-serif); font-weight: 700;
  font-size: 56px; line-height: 1; color: var(--pl-teal);
  letter-spacing: -1px;
  white-space: nowrap;
}
.stat .l {
  margin-top: 10px;
  font-family: var(--font-mono); font-size: 12px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 2px; text-transform: uppercase;
}
@media (max-width: 720px) {
  .stat { padding: 26px 18px; }
  .stat .v { font-size: 36px; letter-spacing: -0.5px; }
  .stat .l { font-size: 11px; letter-spacing: 1.5px; }
}
@media (max-width: 380px) {
  .stat .v { font-size: 30px; }
}

/* ---------- CTA ---------- */
.cta-section {
  padding: 96px 0 120px; text-align: left;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 96px;
}
.cta-section h2 {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(48px, 7vw, 88px); line-height: 1.02;
  letter-spacing: -2px; color: #fff;
}
.cta-section .accent-bar { width: 56px; height: 4px; background: var(--pl-teal); margin-bottom: 24px; }
.cta-section .sub {
  margin-top: 20px; max-width: 540px;
  font-family: var(--font-mono); font-size: 16px;
  color: rgba(255,255,255,0.65); line-height: 1.6;
}
.cta-section .sub::before { content: '// '; color: var(--pl-teal); }

/* ---------- Social row ---------- */
.socials {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.socials .label {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,0.5); letter-spacing: 2px; text-transform: uppercase;
}
.socials .row { display: flex; gap: 12px; flex-wrap: wrap; }
.social-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,0.85); letter-spacing: 1px; text-transform: uppercase;
  transition: border-color 200ms, color 200ms, transform 200ms;
}
.social-btn:hover { border-color: var(--pl-teal); color: var(--pl-teal); transform: translateY(-2px); }
.social-btn svg { flex: 0 0 16px; }

/* ---------- Footer ---------- */
.foot {
  padding: 32px 48px 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; gap: 24px;
  font-family: var(--font-mono); font-size: 12px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 1px;
  flex-wrap: wrap;
}
.foot .links { display: flex; gap: 28px; flex-wrap: wrap; }
.foot .social-icons { display: flex; gap: 14px; }
.foot .social-icons a {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: grid; place-items: center;
  color: rgba(255,255,255,0.7);
  transition: border-color 200ms, color 200ms;
}
.foot .social-icons a:hover { border-color: var(--pl-teal); color: var(--pl-teal); }
.foot a:hover { color: var(--pl-teal); }
.foot .disclaimer {
  width: 100%;
  padding-top: 24px; margin-top: 8px;
  border-top: 1px dashed rgba(255,255,255,0.08);
  text-align: center; color: rgba(255,255,255,0.35); font-size: 11px;
}

@media (max-width: 720px) {
  .foot { padding: 28px 24px 32px; }
}

/* ---------- Legal page ---------- */
.legal-wrap {
  max-width: 820px; margin: 0 auto; padding: 64px 48px 96px;
  position: relative; z-index: 1;
}
@media (max-width: 720px) { .legal-wrap { padding: 40px 24px 64px; } }
.legal-wrap .ribbon { margin-bottom: 24px; }
.legal-wrap h1 {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(48px, 7vw, 84px); line-height: 1.02;
  letter-spacing: -2px; color: #fff; margin: 0;
}
.legal-wrap .updated {
  margin-top: 16px;
  font-family: var(--font-mono); font-size: 13px;
  color: rgba(255,255,255,0.5); letter-spacing: 1px;
}
.legal-wrap .updated::before { content: '// '; color: var(--pl-teal); }

.legal-warning {
  margin-top: 32px;
  padding: 18px 22px;
  border-left: 3px solid var(--pl-prob-red);
  background: rgba(198,40,40,0.08);
  font-family: var(--font-mono); font-size: 14px; line-height: 1.55;
  color: rgba(255,255,255,0.85);
  display: flex; gap: 14px; align-items: flex-start;
}
.legal-warning .ic {
  width: 24px; height: 24px; flex: 0 0 24px;
  color: var(--pl-prob-red);
}

.legal-body {
  margin-top: 56px;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.78);
  font-size: 15px; line-height: 1.7;
}
.legal-body h2 {
  font-family: var(--font-serif); font-weight: 700;
  font-size: 28px; letter-spacing: -0.5px;
  color: #fff; margin: 56px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: baseline; gap: 16px;
}
.legal-body h2 .n {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  color: var(--pl-teal); letter-spacing: 2px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { font: inherit; color: inherit; margin: 16px 0; }
.legal-body ul { padding-left: 0; list-style: none; margin: 16px 0; }
.legal-body li {
  position: relative; padding-left: 24px; margin: 10px 0;
}
.legal-body li::before {
  content: '—'; position: absolute; left: 0; color: var(--pl-teal); font-weight: 600;
}
.legal-body strong { color: #fff; font-weight: 600; }
.legal-body a { color: var(--pl-teal); border-bottom: 1px dashed rgba(0,137,123,0.5); }
.legal-body a:hover { border-bottom-style: solid; }

.back-link {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 64px;
  padding: 12px 18px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  font-family: var(--font-mono); font-size: 12px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 1.5px; text-transform: uppercase;
}
.back-link:hover { border-color: var(--pl-teal); color: var(--pl-teal); }
