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

:root {
  --bg:        #0e0e0e;
  --bg-card:   #161616;
  --bg-raised: #1f1f1f;
  --bg-high:   #2a2a2a;
  --border:    #2e2e2e;
  --border-lt: #444444;
  --accent:    #efb700;
  --accent-br: #ffc933;
  --accent-glow: rgba(239, 183, 0, 0.22);
  --text:      #f5f3ee;
  --text-sec:  #8a8070;
  --text-muted:#5a5248;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NOISE TEXTURE OVERLAY ─────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ── NAV ───────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  background: rgba(14, 14, 14, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

section[id] { scroll-margin-top: 80px; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.nav-logo-mark {
  width: 36px; height: 36px;
  background: var(--accent);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: #0e0e0e;
  box-shadow: 0 0 16px var(--accent-glow);
}

.nav-logo-text {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.5px;
}

/* ── LAYOUT HELPERS ────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
  z-index: 1;
}

section { padding: 96px 0; }

h2.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 16px;
}

p.section-sub {
  color: var(--text-sec);
  font-size: 18px;
  font-weight: 400;
  max-width: 560px;
  margin-bottom: 56px;
}

/* ── HERO ──────────────────────────────────────────── */
.hero {
  padding: 240px 0 160px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(239, 183, 0, 0.14) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.hero-title {
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 900;
  letter-spacing: -2.5px;
  line-height: 1.0;
  margin-bottom: 24px;
}

.hero-title em {
  font-style: normal;
  color: var(--accent-br);
}

.hero-desc {
  color: var(--text-sec);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #0e0e0e;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 24px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-br);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(239, 183, 0, 0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-sec);
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-lt);
  background: var(--bg-card);
}

/* ── HERO DASHBOARD MOCKUP ─────────────────────────── */
.hero-mockup {
  position: relative;
  opacity: 0;
  transform: perspective(800px) rotateX(10deg) rotateY(-8deg) scale(0.95);
  animation: mockup-enter 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  will-change: transform;
}

@keyframes mockup-enter {
  to {
    opacity: 1;
    transform: perspective(800px) rotateX(2deg) rotateY(-4deg) scale(1);
  }
}

.mockup-frame {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(77, 32, 32, 0.4);
  position: relative;
}

.mockup-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.mockup-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.mockup-logo-icon {
  font-size: 14px;
  color: var(--accent-br);
}

.mockup-logo-name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}
.mockup-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.mockup-dot.r { background: #ff5f57; }
.mockup-dot.y { background: #febc2e; }
.mockup-dot.g { background: #28c840; }

.mockup-title-bar {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.mockup-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mockup-col {
  background: var(--bg-raised);
  border-radius: var(--radius-md);
  padding: 12px;
}

.mockup-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.mockup-col-name {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-sec);
}

.mockup-col-count {
  background: var(--bg-high);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 100px;
}

.mockup-game {
  background: var(--bg-high);
  border-radius: var(--radius-sm);
  padding: 10px;
  margin-bottom: 8px;
  border: 1px solid transparent;
  transition: border-color 0.2s;
}
.mockup-game:hover { border-color: var(--border-lt); }
.mockup-game:last-child { margin-bottom: 0; }

.mockup-game-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mockup-game-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mockup-votes {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--text-sec);
}

.vote-up-num { color: var(--accent); font-weight: 700; }

.mockup-cover {
  width: 20px; height: 20px;
  border-radius: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.mockup-cover.c1 { background: linear-gradient(135deg, #c0392b, #8e44ad); }
.mockup-cover.c2 { background: linear-gradient(135deg, #2980b9, #16a085); }
.mockup-cover.c3 { background: linear-gradient(135deg, #f39c12, #d35400); }
.mockup-cover.c4 { background: linear-gradient(135deg, #1abc9c, #2c3e50); }
.mockup-cover.c5 { background: linear-gradient(135deg, #8e44ad, #2980b9); }
.mockup-cover.c6 { background: linear-gradient(135deg, #27ae60, #2c3e50); }

.mockup-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 100px;
  background: rgba(239, 183, 0, 0.15);
  color: var(--accent-br);
}

.mockup-playing {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.25);
}
.mockup-badge.playing { background: rgba(74, 222, 128, 0.15); color: #4ade80; }

/* ── FEATURES BENTO ────────────────────────────────── */
.features {
  padding-top: 0;
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 16px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.bento-card:hover {
  border-color: var(--border-lt);
  background: #191919;
  transform: translateY(-2px);
}

/* grid placement */
.bento-card.span-7  { grid-column: span 7; }
.bento-card.span-5  { grid-column: span 5; }
.bento-card.span-4  { grid-column: span 4; }
.bento-card.span-12 { grid-column: span 12; }

.card-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 10px;
}

.card-desc {
  color: var(--text-sec);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

/* kanban mini inside card */
.mini-kanban {
  margin-top: 24px;
  display: flex;
  gap: 8px;
}

.mini-col {
  flex: 1;
  background: var(--bg-raised);
  border-radius: var(--radius-sm);
  padding: 8px;
}

.mini-col-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.mini-chip {
  background: var(--bg-high);
  border-radius: 6px;
  padding: 5px 7px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-sec);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.mini-chip:last-child { margin-bottom: 0; }

.chip-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.chip-dot.red { background: var(--accent); }
.chip-dot.green { background: #4ade80; }
.chip-dot.blue { background: #60a5fa; }
.chip-dot.orange { background: #fb923c; }

/* suggestion inbox inside card */
.inbox-list {
  list-style: none;
  padding: 0;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inbox-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-raised);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.inbox-cover {
  width: 32px; height: 32px;
  border-radius: 6px;
  flex-shrink: 0;
}

.inbox-info { flex: 1; min-width: 0; }

.inbox-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inbox-sub-count {
  font-size: 10px;
  color: var(--text-muted);
}

.inbox-actions {
  display: flex;
  gap: 6px;
}

.inbox-btn {
  width: 26px; height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
}
.inbox-btn.accept { background: rgba(74, 222, 128, 0.15); color: #4ade80; }
.inbox-btn.reject { background: rgba(239, 183, 0, 0.12); color: var(--accent-br); }

/* vote display */
.vote-display {
  margin-top: 24px;
}

.vote-game {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.vote-bar-wrap { flex: 1; }

.vote-game-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sec);
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
}

.vote-bar {
  height: 6px;
  background: var(--bg-high);
  border-radius: 100px;
  overflow: hidden;
}

.vote-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--accent), var(--accent-br));
  width: 0;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* bot card visuals */
.bot-chat {
  list-style: none;
  padding: 0;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-bubble {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.chat-bubble.visible {
  opacity: 1;
  transform: translateY(0);
}
.chat-avi {
  width: 26px; height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.chat-avi.viewer { background: var(--bg-raised); color: var(--text-sec); }
.chat-avi.bot    { background: rgba(239, 183, 0, 0.15); color: var(--accent-br); }

.chat-text {
  background: var(--bg-raised);
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 11px;
  color: var(--text-sec);
  max-width: 80%;
  line-height: 1.5;
}
.chat-text em { font-style: normal; color: var(--accent-br); }

/* analytics sparkline */
.analytics-visual {
  list-style: none;
  padding: 0;
  margin-top: 24px;
}

.analytic-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.analytic-row:last-child { border-bottom: none; }

.analytic-rank {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  width: 20px;
}

.analytic-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.analytic-bar-wrap {
  width: 80px;
}

.analytic-bar {
  height: 4px;
  background: var(--bg-high);
  border-radius: 100px;
}

.analytic-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--accent), var(--accent-br));
  width: 0;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.analytic-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-br);
  width: 36px;
  text-align: right;
}

/* permissions card */
.perm-list {
  list-style: none;
  padding: 0;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.perm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-raised);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.perm-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.perm-icon { font-size: 16px; color: var(--accent-br); }

.perm-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.perm-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.perm-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
}
.perm-badge.sub   { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.perm-badge.fol   { background: rgba(96, 165, 250, 0.15); color: #60a5fa; }
.perm-badge.all   { background: rgba(74, 222, 128, 0.15); color: #4ade80; }

/* ── CTA ───────────────────────────────────────────── */
.cta-section {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(239, 183, 0, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.cta-card {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.cta-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-br);
  margin-bottom: 24px;
}

.cta-title {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 900;
  letter-spacing: -2.5px;
  line-height: 1.0;
  margin-bottom: 20px;
}

.cta-title em { font-style: normal; color: var(--accent-br); }

.cta-desc {
  color: var(--text-sec);
  font-size: 17px;
  max-width: 440px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.cta-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 6px 6px 22px;
  max-width: 460px;
  margin: 0 auto 16px;
  transition: border-color 0.2s;
}
.cta-form:focus-within { border-color: var(--accent-br); }

.cta-form input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  min-width: 0;
  padding: 6px 0;
}
.cta-form input::placeholder { color: var(--text-muted); }

.cta-note {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── FOOTER ────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo { font-weight: 800; font-size: 16px; color: var(--text-sec); }
.footer-right { font-size: 13px; color: var(--text-muted); }

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 14px 24px; }
  .nav-links { display: none; }
  .container { padding: 0 24px; }
  section { padding: 64px 0; }

  .hero { padding: 120px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mockup { display: none; }

  .stats-inner { grid-template-columns: repeat(2, 1fr); }

  .bento-card.span-7,
  .bento-card.span-5,
  .bento-card.span-4,
  .bento-card.span-8,
  .bento-card.span-6,
  .bento-card.span-12 { grid-column: span 12; }

  .how-steps.active { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }

  .bento-chat { grid-template-columns: 1fr !important; }
}

/* ── SCROLL ANIMATION ──────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
