:root {
  --bg: #08090D;
  --surface: #101218;
  --surface-2: #161923;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.16);
  --text: #F5F6F8;
  --text-dim: #9096A5;
  --text-faint: #5B6072;
  --accent: #6366F1;
  --accent-2: #8B5CF6;
  --green: #10B981;
  --amber: #F59E0B;
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

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

.grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  padding: 10px 20px;
  font-size: 14px;
  box-shadow: 0 4px 20px rgba(99,102,241,0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(99,102,241,0.5); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 20px;
  font-size: 14px;
}
.btn-ghost:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.03); }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.arrow { transition: transform 0.2s ease; }
.btn-ghost:hover .arrow { transform: translateX(3px); }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,9,13,0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 8px; }
.brand-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px rgba(139,92,246,0.6);
}
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.brand-jnx { color: var(--text); }
.brand-studio {
  background: linear-gradient(135deg, #ff2a3e, #ff6b7d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }

/* ---------- REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(.16,1,.3,1), transform 0.7s cubic-bezier(.16,1,.3,1);
  transition-delay: calc(var(--delay, 0) * 0.08s);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 100px 24px 40px;
  text-align: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(99,102,241,0.25), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent-2);
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.25);
  padding: 6px 14px;
  border-radius: 999px;
}
.hero-title {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 24px 0 20px;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 32px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 20px; }
.hero-meta { font-size: 13px; color: var(--text-faint); }
.hero-meta .sep { margin: 0 8px; }

/* ---------- HERO PREVIEW ---------- */
.hero-preview { max-width: 920px; margin: 56px auto 0; position: relative; z-index: 1; }
.preview-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.03);
}
.preview-topbar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-r { background: #FF5F57; } .dot-y { background: #FEBC2E; } .dot-g { background: #28C840; }
.preview-url {
  margin-left: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-faint);
}
.preview-body { display: flex; min-height: 340px; }
.mini-sidebar {
  width: 56px;
  background: var(--surface-2);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center;
  padding: 18px 0; gap: 14px;
}
.mini-avatar {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  margin-bottom: 8px;
}
.mini-item { width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,0.05); }
.mini-item.active { background: rgba(99,102,241,0.25); }
.mini-content { flex: 1; padding: 24px; text-align: left; }
.mini-row { display: flex; gap: 32px; margin-bottom: 28px; }
.mini-stat { display: flex; flex-direction: column; gap: 4px; }
.mini-label { font-size: 12px; color: var(--text-faint); }
.mini-number { font-family: 'JetBrains Mono', monospace; font-size: 28px; font-weight: 700; }
.mini-chart { height: 130px; }
.mini-chart svg { width: 100%; height: 100%; }
.chart-line { fill: none; stroke: url(#none); stroke: var(--accent-2); stroke-width: 2.5; }
.chart-fill { fill: rgba(139,92,246,0.12); stroke: none; }

/* ---------- LOGOS ---------- */
.logos { padding: 60px 24px; text-align: center; }
.logos-label { font-size: 13px; color: var(--text-faint); margin-bottom: 24px; }
.logos-row {
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
  font-weight: 700; font-size: 14px; letter-spacing: 0.04em;
  color: var(--text-faint);
}

/* ---------- FEATURES / BENTO ---------- */
.features { padding: 60px 24px 100px; max-width: 1180px; margin: 0 auto; }
.section-head { text-align: center; max-width: 560px; margin: 0 auto 48px; }
.section-head h2 { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; margin: 16px 0 12px; }
.section-head p { color: var(--text-dim); font-size: 16px; }

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  grid-column: span 2;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.bento-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-wide { grid-column: span 4; }
.card-head h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.01em; }
.card-head p { font-size: 13px; color: var(--text-dim); margin-bottom: 20px; }

/* funnel */
.funnel { display: flex; flex-direction: column; gap: 14px; }
.funnel-row {
  position: relative;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  overflow: hidden;
  font-size: 13px;
}
.funnel-row::before {
  content: '';
  position: absolute; inset: 0;
  width: var(--fw, 0%);
  background: linear-gradient(90deg, rgba(99,102,241,0.35), rgba(139,92,246,0.15));
  transition: width 1.2s cubic-bezier(.16,1,.3,1);
  z-index: 0;
}
.funnel-row span, .funnel-row b { position: relative; z-index: 1; }
.funnel-row b { font-family: 'JetBrains Mono', monospace; }

/* feed */
.feed { display: flex; flex-direction: column; gap: 16px; }
.feed-item { display: flex; gap: 10px; align-items: flex-start; }
.avatar {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: white; flex-shrink: 0;
}
.avatar.sm { width: 24px; height: 24px; font-size: 10px; border-radius: 7px; }
.feed-text { font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.feed-text b { color: var(--text); font-weight: 600; }
.feed-time { display: block; font-size: 11px; color: var(--text-faint); margin-top: 2px; }

/* leaderboard */
.leaderboard { display: flex; flex-direction: column; gap: 14px; }
.lb-row { display: flex; align-items: center; gap: 10px; }
.lb-rank { width: 16px; font-size: 12px; color: var(--text-faint); font-weight: 700; }
.lb-name { font-size: 12px; font-weight: 600; width: 64px; flex-shrink: 0; }
.lb-bar { flex: 1; height: 6px; background: rgba(255,255,255,0.05); border-radius: 999px; overflow: hidden; }
.lb-bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  transition: width 1.2s cubic-bezier(.16,1,.3,1);
}
.lb-val { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-dim); width: 58px; text-align: right; }

/* calendar */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.cal-dow { font-size: 11px; color: var(--text-faint); padding-bottom: 8px; }
.cal-days span {
  font-size: 12px; color: var(--text-dim);
  padding: 8px 0; border-radius: 8px; position: relative;
}
.cal-today { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: white !important; font-weight: 700; }
.cal-dot::after {
  content: ''; position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--green);
}

/* thread */
.thread { display: flex; flex-direction: column; gap: 14px; }
.thread-msg { display: flex; gap: 10px; align-items: flex-start; }
.thread-reply { padding-left: 20px; }
.thread-bubble {
  font-size: 13px; color: var(--text-dim); line-height: 1.5;
  background: rgba(255,255,255,0.03);
  padding: 10px 14px; border-radius: 10px;
}
.thread-bubble b { color: var(--text); font-weight: 600; display: block; margin-bottom: 2px; font-size: 12px; }

/* ---------- STATS ---------- */
.stats { padding: 80px 24px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-inner {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  text-align: center; gap: 24px;
}
.stat-num { font-family: 'JetBrains Mono', monospace; font-size: 44px; font-weight: 700; }
.stat-suffix { font-family: 'JetBrains Mono', monospace; font-size: 28px; font-weight: 700; color: var(--text-dim); }
.stat-label { display: block; font-size: 13px; color: var(--text-faint); margin-top: 8px; }

/* ---------- CTA ---------- */
.cta { position: relative; padding: 120px 24px; text-align: center; overflow: hidden; }
.cta-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse at center, rgba(139,92,246,0.2), transparent 70%);
}
.cta-inner { position: relative; z-index: 1; }
.cta h2 { font-size: 38px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.cta p { color: var(--text-dim); font-size: 16px; margin-bottom: 28px; }

/* ---------- FOOTER ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 28px 24px; }
.footer-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-copy { font-size: 12px; color: var(--text-faint); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-title { font-size: 38px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-large, .bento-wide { grid-column: span 2; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .preview-body { flex-direction: column; }
  .mini-sidebar { display: none; }
}
