/* ═══════════════════════════════════════════════════════════════
   PolyEdgeFinder — Landing page styles
   Bloomberg terminal aesthetic: dark, dense, premium
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg-deep: #08080e;
  --bg-card: rgba(12,12,16,0.95);
  --bd-soft: rgba(255,255,255,0.06);
  --bd-medium: rgba(255,255,255,0.12);
  --tx-bright: rgba(255,255,255,0.92);
  --tx-soft: rgba(255,255,255,0.6);
  --tx-mute: rgba(255,255,255,0.35);
  --accent: #6378ff;
  --accent-bg: rgba(99,120,255,0.12);
  --accent-bd: rgba(99,120,255,0.35);
  --green: rgba(74,222,128,0.92);
  --amber: rgba(251,191,36,0.92);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg-deep);
  color: var(--tx-bright);
  font-family: 'JetBrains Mono', monospace;
  min-height: 100vh;
  overflow-x: hidden;
}

.landing-body {
  background:
    radial-gradient(ellipse at top left, rgba(99,120,255,0.06), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(167,139,250,0.04), transparent 50%),
    var(--bg-deep);
}

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

/* ── HEADER ───────────────────────────────────────────────── */
.landing-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  background: rgba(8,8,14,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--bd-soft);
}
.landing-logo {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .15s;
}
.landing-logo:hover { opacity: 0.85; }
.landing-logo-img {
  width: 64px; height: 64px;
  display: block;
  filter: drop-shadow(0 0 14px rgba(99,120,255,0.35));
}
.landing-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -.02em;
  color: var(--tx-bright);
}
.landing-hdr-right {
  display: flex; align-items: center; gap: 10px;
}
.landing-cta-poly {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: .02em;
  transition: all .15s;
  white-space: nowrap;
}
.landing-cta-poly:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.28);
}
/* Polymarket button — orange brand tint */
.btn-poly {
  background: rgba(33,150,243,0.12);
  border: 1px solid rgba(33,150,243,0.45);
  border-radius: 8px;
  padding: 14px 26px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(99,180,255,1);
  font-family: inherit;
  letter-spacing: .02em;
  transition: all .15s;
  display: inline-block;
  white-space: nowrap;
}
.btn-poly:hover {
  background: rgba(33,150,243,0.22);
  border-color: rgba(33,150,243,0.65);
  transform: translateY(-1px);
}
.final-cta-row {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.landing-nav {
  display: flex; gap: 28px;
}
.landing-nav-link {
  font-size: 12px;
  color: var(--tx-mute);
  letter-spacing: .04em;
  transition: color .15s;
}
.landing-nav-link:hover { color: var(--tx-bright); }

.landing-cta-hdr {
  background: var(--accent-bg);
  border: 1px solid var(--accent-bd);
  border-radius: 6px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  transition: all .15s;
}
.landing-cta-hdr:hover {
  background: rgba(99,120,255,0.22);
  border-color: rgba(99,120,255,0.5);
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  max-width: 920px;
  margin: 0 auto;
  padding: 56px 32px 70px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--tx-soft);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--bd-soft);
  border-radius: 100px;
  padding: 6px 14px;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(74,222,128,0.6);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.05;
  margin: 0 0 24px;
  color: var(--tx-bright);
}
.hero-accent {
  background: linear-gradient(135deg, rgba(99,120,255,1), rgba(167,139,250,1));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 16px;
  color: var(--tx-soft);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 40px;
  font-family: 'JetBrains Mono', monospace;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.btn-primary {
  background: linear-gradient(135deg, rgba(99,120,255,1), rgba(99,120,255,0.85));
  border: 1px solid rgba(99,120,255,0.7);
  border-radius: 8px;
  padding: 14px 26px;
  font-size: 13px;
  font-weight: 600;
  color: white;
  font-family: inherit;
  letter-spacing: .02em;
  transition: all .15s;
  cursor: pointer;
  display: inline-block;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(99,120,255,0.35);
}
.btn-large {
  padding: 18px 38px;
  font-size: 14px;
}
.btn-secondary {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--bd-medium);
  border-radius: 8px;
  padding: 14px 26px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tx-bright);
  font-family: inherit;
  transition: all .15s;
  display: inline-block;
}
.btn-secondary:hover {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.07);
}
.hero-foot {
  font-size: 11px;
  color: var(--tx-mute);
  letter-spacing: .04em;
}

/* ── STATS BAR ────────────────────────────────────────────── */
.stats-bar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--bd-soft);
  border: 1px solid var(--bd-soft);
  border-radius: 14px;
  overflow: hidden;
}
.sb-item {
  background: var(--bg-card);
  padding: 24px 20px;
  text-align: center;
}
.sb-num {
  font-family: 'Syne', sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--accent);
  margin-bottom: 5px;
}
.sb-lbl {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tx-mute);
}

/* ── FEATURES ─────────────────────────────────────────────── */
.features {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 32px;
}
.section-eyebrow {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
  text-align: center;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
  text-align: center;
  margin: 0 0 56px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--bd-soft);
  border-radius: 14px;
  padding: 30px 26px;
  transition: all .2s;
  display: block;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(99,120,255,0.4), transparent);
}
/* Underline that animates in on hover (пункт 4) */
.feature-card::after {
  content: '';
  position: absolute;
  left: 26px; right: 26px; bottom: 18px;
  height: 1.5px;
  background: linear-gradient(90deg, rgba(255,255,255,0.9), rgba(255,255,255,0.3));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.4,.0,.2,1);
}
.feature-card:hover::after {
  transform: scaleX(1);
}
.feature-card:hover {
  border-color: var(--accent-bd);
  background: rgba(14,14,22,0.95);
  transform: translateY(-2px);
}
.feat-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.feat-icon.edge { background: rgba(99,120,255,0.12); color: var(--accent); }
.feat-icon.dash { background: rgba(74,222,128,0.12); color: var(--green); }
.feat-icon.hist { background: rgba(167,139,250,0.12); color: rgba(167,139,250,0.95); }

.feat-title {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -.02em;
}
.feat-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--tx-soft);
  margin: 0 0 20px;
  font-family: 'JetBrains Mono', monospace;
}
.feat-link {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: .04em;
  font-weight: 600;
}

/* ── HOW IT WORKS ─────────────────────────────────────────── */
.how {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 32px 100px;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.how-step {
  position: relative;
  padding: 30px 24px;
  border-left: 2px solid var(--accent-bd);
}
.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.03em;
  margin-bottom: 14px;
}
.step-title {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
}
.step-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--tx-soft);
  margin: 0;
}

/* ── AUDIENCE ─────────────────────────────────────────────── */
.audience {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 32px 100px;
}
.aud-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.aud-item {
  background: var(--bg-card);
  border: 1px solid var(--bd-soft);
  border-radius: 12px;
  padding: 26px 22px;
  text-align: center;
}
.aud-emoji {
  font-size: 32px;
  margin-bottom: 12px;
}
.aud-item h3 {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
}
.aud-item p {
  font-size: 12px;
  color: var(--tx-soft);
  line-height: 1.55;
  margin: 0;
}

/* ── FINAL CTA ────────────────────────────────────────────── */
.final-cta {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 32px 120px;
  text-align: center;
}
.cta-title {
  font-family: 'Syne', sans-serif;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin: 0 0 14px;
}
.cta-sub {
  font-size: 14px;
  color: var(--tx-soft);
  margin: 0 0 32px;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.landing-footer {
  background: rgba(5,5,10,0.6);
  border-top: 1px solid var(--bd-soft);
  padding: 50px 32px 30px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-brand {
  display: flex; align-items: center; gap: 12px;
}
.footer-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 16px;
}
.footer-tag {
  font-size: 11px;
  color: var(--tx-mute);
  margin-top: 2px;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.footer-col {
  display: flex; flex-direction: column; gap: 8px;
}
.footer-col-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--tx-mute);
  font-weight: 600;
  margin-bottom: 8px;
}
.footer-col a {
  font-size: 12px;
  color: var(--tx-soft);
  transition: color .15s;
}
.footer-col a:hover { color: var(--tx-bright); }

.footer-meta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--bd-soft);
  font-size: 11px;
  color: var(--tx-mute);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .landing-header { padding: 12px 18px; }
  .landing-nav { display: none; }
  .hero { padding: 50px 20px 40px; }
  .hero-title { font-size: 38px; }
  .hero-sub { font-size: 14px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .sb-num { font-size: 24px; }
  .features, .how, .audience { padding: 60px 18px; }
  .section-title { font-size: 28px; }
  .feature-grid, .how-grid, .aud-grid { grid-template-columns: 1fr; }
  .cta-title { font-size: 30px; }
  .landing-footer { grid-template-columns: 1fr; gap: 30px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-meta { flex-direction: column; gap: 8px; }
}

/* ── Logo image override (replaces text symbol) ─────────────── */
.logo-icon-img {
  width: 32px; height: 32px;
  border-radius: 7px;
  display: block;
  object-fit: contain;
}
.landing-logo .logo-icon-img {
  width: 30px; height: 30px;
}
.footer-brand .logo-icon-img {
  width: 38px; height: 38px;
}


/* ── Hero logo (large centerpiece on landing) ────────────────── */
.hero-logo {
  display: block;
  margin: 0 auto 24px;
  width: 180px; height: 180px;
  filter: drop-shadow(0 0 28px rgba(99,120,255,0.35));
  animation: heroFadeIn 1.2s ease both;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@media (max-width: 768px) {
  .hero-logo { width: 120px; height: 120px; margin-bottom: 18px; }
}


/* ── Polymarket CTA mobile adjustments ─────────────────────── */
@media (max-width: 768px) {
  .landing-cta-poly { padding: 7px 12px; font-size: 11px; }
  .landing-brand { font-size: 19px; }
  .landing-logo-img { width: 46px; height: 46px; }
  .btn-poly { padding: 13px 20px; font-size: 12px; }
  .final-cta-row { flex-direction: column; align-items: stretch; }
}
