@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Syne:wght@600;700;800&display=swap');

:root {
  --emerald: #10b981;
  --bg: #030303;
  --surface: #0a0a0c;
  --border: #27272a;
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: #fafafa;
  overflow-x: hidden;
}

#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.bg-video-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.bg-video-layer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.28) saturate(1.15) contrast(1.05);
}
.bg-video-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% -10%, rgba(16,185,129,0.12), transparent 55%),
    linear-gradient(180deg, rgba(3,3,3,0.3) 0%, rgba(3,3,3,0.92) 75%, #030303 100%);
}

.content-layer { position: relative; z-index: 2; }

.preview-badge {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 16px;
  background: rgba(0,0,0,0.75);
  border: 1px solid rgba(16,185,129,0.35);
  color: #6ee7b7;
  backdrop-filter: blur(12px);
  border-radius: 999px;
  white-space: nowrap;
}
.preview-badge a { color: #fff; margin-left: 8px; }

.display { font-family: var(--font-display); letter-spacing: -0.03em; }

.logo-guez {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  text-decoration: none;
  color: #fff;
}
.logo-guez:hover { opacity: 0.9; }

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ——— Product mockup (screen-recording style) ——— */
.mockup-wrap {
  perspective: 1400px;
}
.mockup-frame {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0;
  background: #08080a;
  overflow: hidden;
  box-shadow:
    0 40px 80px -24px rgba(0,0,0,0.85);
  transform: rotateX(4deg) rotateY(-6deg);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.mockup-wrap:hover .mockup-frame { transform: rotateX(0deg) rotateY(0deg) scale(1.01); }

.mock-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #141416, #0c0c0e);
  border-bottom: 1px solid var(--border);
}
.mock-dot { width: 10px; height: 10px; border-radius: 50%; }
.mock-dot-r { background: #ef4444; }
.mock-dot-y { background: #eab308; }
.mock-dot-g { background: #22c55e; }
.mock-url {
  flex: 1;
  margin-left: 8px;
  font-size: 11px;
  color: #71717a;
  font-family: ui-monospace, monospace;
  padding: 6px 12px;
  background: #000;
  border: 1px solid #1f1f23;
  border-radius: 0;
}

.mock-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #050505;
  overflow: hidden;
}
.mock-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(0,0,0,0.04) 50%);
  background-size: 100% 4px;
  pointer-events: none;
  opacity: 0.35;
  z-index: 5;
}

.mock-scene {
  position: absolute;
  inset: 0;
  padding: 12px 14px;
  opacity: 0;
  animation: sceneCycle 20s infinite;
  overflow: hidden;
}
.mock-scene:nth-child(1) { animation-delay: 0s; }
.mock-scene:nth-child(2) { animation-delay: 5s; }
.mock-scene:nth-child(3) { animation-delay: 10s; }
.mock-scene:nth-child(4) { animation-delay: 15s; }
@keyframes sceneCycle {
  0%, 23% { opacity: 1; }
  25%, 100% { opacity: 0; }
}
.mock-chrome-live {
  font-size: 10px;
  color: #52525b;
  padding: 4px 8px;
  border: 1px solid #27272a;
  border-radius: 4px;
}

.mock-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.mock-spec {
  width: 28px;
  height: 28px;
  border: 1px solid #3f3f46;
  border-radius: 2px;
  object-fit: cover;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.mock-spec-gap {
  width: 10px;
  flex-shrink: 0;
}
.mock-spec-active {
  border-color: var(--emerald);
  box-shadow: 0 0 12px rgba(16,185,129,0.35);
}
.mock-scene-board .mock-spec-active {
  animation: specActivePulse 20s infinite 0s;
}
@keyframes specActivePulse {
  0%, 22% { border-color: var(--emerald); transform: scale(1.06); box-shadow: 0 0 14px rgba(16,185,129,0.4); }
  24%, 100% { border-color: #3f3f46; transform: scale(1); box-shadow: none; }
}

/* ——— 24h gains marquee (prod) ——— */
.mock-marquee-prod {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  background: rgba(6, 78, 59, 0.12);
  border-radius: 0;
  min-width: 0;
}
.mock-marquee-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: rgba(52, 211, 153, 0.9);
}
.mock-marquee-label::before {
  content: '↗';
  font-size: 10px;
}
.mock-marquee-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 0.5rem, #000 calc(100% - 0.5rem), transparent);
}
.mock-marquee-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  width: max-content;
  padding: 0 4px;
  animation: mockMarqueeGentle 24s ease-in-out infinite alternate;
}
.mock-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-size: 10px;
  color: #d4d4d8;
}
.mock-marquee-name { font-weight: 600; color: #fafafa; }
.mock-marquee-gain {
  color: #34d399;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.mock-marquee-sep { color: #52525b; user-select: none; }
@keyframes mockMarqueeGentle {
  from { transform: translateX(-0.5rem); }
  to { transform: translateX(0.5rem); }
}

/* ——— Leaderboard scene (prod table) ——— */
.mock-prod-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #3f3f46;
  margin-bottom: 10px;
  font-size: 11px;
}
.mock-prod-tabs-inline {
  border-bottom: none;
  margin-bottom: 0;
  flex-shrink: 0;
}
.mock-prod-tab {
  padding: 6px 12px;
  color: #94a3b8;
  border-bottom: 2px solid transparent;
}
.mock-prod-tab-on {
  color: #10b981;
  border-bottom-color: #10b981;
  font-weight: 600;
}
.mock-lb-table {
  background: #18181b;
  border: 1px solid #27272a;
  overflow: hidden;
}
.mock-lb-head,
.mock-lb-row {
  display: grid;
  grid-template-columns: 38px 38px 1fr 52px 58px 34px 30px;
  gap: 3px;
  align-items: center;
  font-size: 10px;
  padding: 6px 4px;
}
.mock-lb-head {
  font-size: 7px;
  text-transform: uppercase;
  color: #a1a1aa;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #27272a;
}
.mock-lb-head span { text-align: center; }
.mock-lb-row { border-bottom: 1px solid #1f1f23; }
.mock-lb-row:last-child { border-bottom: none; }
.mock-scene-board .mock-lb-head,
.mock-scene-board .mock-lb-row {
  padding: 4px 3px;
  font-size: 9px;
}
.mock-scene-board .mock-lb-realm { font-size: 8px; }
.mock-lb-row-hi {
  background: rgba(251,191,36,0.06);
  box-shadow: inset 0 0 0 1px rgba(251,191,36,0.12);
}
.mock-lb-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.mock-lb-realm { color: #a1a1aa; font-size: 9px; text-align: center; }
.mock-lb-links { display: flex; justify-content: center; gap: 3px; }
.mock-lb-links img { width: 13px; height: 13px; opacity: 0.9; }
.mock-rank-fr-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
}
.mock-rank { color: rgba(52,211,153,0.85); font-weight: 700; text-align: center; font-size: 10px; }
.mock-rank-eu { color: rgba(52,211,153,0.65); font-weight: 500; text-align: center; }
.mock-gain-badge {
  font-size: 7px;
  font-weight: 700;
  color: #fef3c7;
  background: rgba(120,53,15,0.5);
  border: 1px solid rgba(251,191,36,0.45);
  padding: 1px 3px;
  line-height: 1.2;
}
.mock-score { font-family: ui-monospace, monospace; font-weight: 700; text-align: center; font-size: 11px; }
.mock-delta { text-align: center; font-weight: 700; color: #34d399; font-size: 10px; }
.mock-delta-zero { color: #94a3b8; }
.mock-delta-neg { color: #f87171; }

/* ——— Progress scene (prod rising cards) ——— */
.mock-progress-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}
.mock-progress-title { font-size: 13px; font-weight: 700; color: #fafafa; margin-bottom: 2px; }
.mock-progress-sub { font-size: 9px; color: #94a3b8; margin-bottom: 8px; }
.mock-rising-card {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 8px;
  align-items: center;
  padding: 8px;
  margin-bottom: 6px;
  background: #18181b;
  border: 1px solid rgba(6,78,59,0.45);
}
.mock-rising-badge {
  grid-row: span 2;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6,78,59,0.35);
  color: #34d399;
  font-weight: 800;
  font-size: 14px;
}
.mock-rising-name { font-weight: 600; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-rising-realm { font-size: 9px; color: #71717a; }
.mock-rising-val { text-align: right; grid-row: span 2; }
.mock-rising-big { color: #34d399; font-size: 22px; font-weight: 800; line-height: 1; }
.mock-rising-unit { font-size: 9px; color: #34d399; margin-top: -2px; }
.mock-recent-keys {
  grid-column: 1 / -1;
  font-size: 9px;
  color: #d4d4d8;
  padding-top: 4px;
  border-top: 1px solid #27272a;
  line-height: 1.4;
}
.mock-recent-keys span { color: #34d399; font-weight: 500; }

/* ——— Watchlist scene (prod table) ——— */
.mock-watch-page-title { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.mock-watch-summary { font-size: 9px; color: #71717a; margin-bottom: 8px; }
.mock-watch-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.mock-wf {
  font-size: 10px;
  font-weight: 600;
  padding: 5px 10px;
  border: 1px solid #3f3f46;
  background: rgba(24,24,27,0.8);
  color: #a1a1aa;
  border-radius: 2px;
  cursor: default;
}
.mock-wf-on {
  border-color: #52525b !important;
  color: #d4d4d8 !important;
  background: #27272a !important;
  font-weight: 500;
}
.mock-watch-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9px;
  background: #18181b;
  border: 1px solid #27272a;
}
.mock-watch-table th {
  text-transform: uppercase;
  color: #71717a;
  font-size: 8px;
  letter-spacing: 0.04em;
  padding: 6px 4px;
  border-bottom: 1px solid #27272a;
  text-align: center;
}
.mock-wt-row td {
  padding: 6px 4px;
  border-bottom: 1px solid #1f1f23;
  text-align: center;
  vertical-align: middle;
}
.mock-wt-row-new { background: rgba(6,78,59,0.08); }
.mock-wt-name { display: block; font-weight: 600; font-size: 10px; }
.mock-wt-realm { display: block; font-size: 8px; color: #71717a; }
.mock-wt-abbr { font-weight: 600; color: #e4e4e7; }
.mock-wt-lvl { color: #34d399; font-weight: 700; }
.mock-wt-mono { font-family: ui-monospace, monospace; color: #d4d4d8; font-size: 8px; }
.mock-wt-rem { color: rgba(52,211,153,0.9); font-size: 9px; }
.mock-wt-ago { color: #71717a; }
.mock-wt-links { display: flex; justify-content: center; gap: 4px; }
.mock-wt-links img { width: 14px; height: 14px; opacity: 0.9; }

/* ——— Player page scene (prod /player) ——— */
.mock-scene-player {
  padding: 8px 10px;
  overflow: hidden;
}
.mock-player-back {
  display: inline-block;
  font-size: 9px;
  color: #71717a;
  text-decoration: none;
  margin-bottom: 6px;
}
.mock-player-card-prod {
  background: #18181b;
  border: 1px solid #27272a;
  padding: 10px;
  margin-bottom: 6px;
}
.mock-player-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.mock-player-name { font-size: 15px; font-weight: 800; line-height: 1.1; margin: 0; }
.mock-player-meta { font-size: 9px; color: #a1a1aa; margin: 3px 0 0; }
.mock-player-score-label { font-size: 7px; text-transform: uppercase; color: #71717a; text-align: right; letter-spacing: 0.04em; }
.mock-player-score { font-family: ui-monospace, monospace; font-size: 20px; font-weight: 800; text-align: right; line-height: 1; }
.mock-player-ext-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  font-size: 9px;
  color: #a1a1aa;
}
.mock-player-ext-links span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.mock-player-ext-links img { width: 12px; height: 12px; opacity: 0.9; }
.mock-cutoff-block {
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px solid #27272a;
}
.mock-cutoff-label { font-size: 7px; text-transform: uppercase; color: #71717a; margin-bottom: 3px; letter-spacing: 0.04em; }
.mock-cutoff-reached { margin: 0; font-size: 9px; color: #34d399; font-weight: 500; line-height: 1.4; }
.mock-cutoff-text { margin: 0; font-size: 9px; color: #d4d4d8; line-height: 1.4; }
.mock-cutoff-gap { font-family: ui-monospace, monospace; color: #fcd34d; font-weight: 700; }
.mock-cutoff-cut { font-family: ui-monospace, monospace; color: #e4e4e7; }
.mock-cutoff-muted { color: #71717a; }
.mock-player-section-title {
  font-size: 11px;
  font-weight: 600;
  margin: 0 0 5px;
  color: #fafafa;
}
.mock-player-rank-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-bottom: 6px;
}
.mock-player-rank-card {
  border: 1px solid #27272a;
  background: rgba(24, 24, 27, 0.6);
  padding: 8px;
}
.mock-player-rank-label { font-size: 7px; text-transform: uppercase; color: #71717a; margin-bottom: 5px; letter-spacing: 0.04em; }
.mock-player-rank-body { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.mock-player-fr { font-size: 16px; font-weight: 800; color: rgba(52,211,153,0.85); line-height: 1; }
.mock-player-eu { font-size: 8px; color: #71717a; margin-top: 2px; }
.mock-player-rank-score { text-align: right; }
.mock-player-board-score { font-family: ui-monospace, monospace; font-weight: 700; font-size: 13px; line-height: 1; }
.mock-player-24h { font-size: 8px; color: #71717a; margin-top: 2px; }
.mock-player-keys-wrap {
  background: #18181b;
  border: 1px solid #27272a;
  overflow: hidden;
}
.mock-player-keys-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 8px;
}
.mock-player-keys-table th {
  text-transform: uppercase;
  color: #71717a;
  font-size: 7px;
  letter-spacing: 0.04em;
  padding: 5px 3px;
  border-bottom: 1px solid #27272a;
  text-align: center;
  font-weight: 500;
}
.mock-pk-row td {
  padding: 5px 3px;
  border-bottom: 1px solid #1f1f23;
  text-align: center;
  vertical-align: middle;
}
.mock-pk-row:last-child td { border-bottom: none; }
.mock-pk-dungeon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.mock-pk-icon {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  object-fit: cover;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #000;
  font-weight: 700;
  padding: 14px 28px;
  text-decoration: none;
  border-radius: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 32px -8px rgba(16,185,129,0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px -8px rgba(16,185,129,0.7); }
.btn-ghost {
  display: inline-flex;
  padding: 14px 28px;
  border: 1px solid #3f3f46;
  color: #d4d4d8;
  text-decoration: none;
  border-radius: 10px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--emerald); color: #fff; }

.feature-tile {
  border: 1px solid var(--border);
  background: rgba(10,10,12,0.8);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 24px;
  transition: border-color 0.25s, transform 0.25s;
}
.feature-tile:hover {
  border-color: rgba(16,185,129,0.35);
  transform: translateY(-4px);
}

.stat-pill {
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0,0,0,0.4);
}
.stat-pill .n { font-family: var(--font-display); font-size: 2rem; font-weight: 800; line-height: 1; }
.stat-pill .l { font-size: 11px; color: #71717a; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.08em; }

.section-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--emerald);
  font-weight: 600;
}

.mockup-flat .mockup-frame { transform: none; }
.mockup-flat:hover .mockup-frame { transform: scale(1.01); }

.hero-split {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-split { grid-template-columns: 1fr 1.15fr; }
}

.hero-split-reverse { direction: rtl; }
.hero-split-reverse > * { direction: ltr; }
@media (min-width: 900px) {
  .hero-split-reverse { grid-template-columns: 1.15fr 1fr; }
}

.hero-centered {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 40px;
  text-align: center;
}
.hero-centered .hero-actions,
.hero-centered .hero-stats { justify-content: center; }
.hero-centered .hero-copy { margin: 0 auto; max-width: 620px; }
.hero-centered-mock {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.module-strip {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  gap: 40px;
  align-items: center;
  border-top: 1px solid rgba(39,39,42,0.6);
}
@media (min-width: 900px) {
  .module-strip { grid-template-columns: 1fr 1.1fr; }
  .module-strip.module-reverse { grid-template-columns: 1.1fr 1fr; }
  .module-strip.module-reverse .module-copy { order: 2; }
  .module-strip.module-reverse .module-demo { order: 1; }
}
.module-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 12px;
  line-height: 1.1;
}
.module-copy p { color: #a1a1aa; line-height: 1.7; margin: 0 0 20px; font-size: 15px; }
.module-demo .mockup-frame { transform: none; }
.module-demo .mockup-wrap:hover .mockup-frame { transform: scale(1.01); }

.mock-glow-ring {
  position: relative;
}
.mock-glow-ring::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse at center, rgba(16,185,129,0.22), transparent 65%);
  pointer-events: none;
  z-index: -1;
  animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse {
  50% { opacity: 0.55; transform: scale(0.95); }
}

.picker-section-label {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #52525b;
}
.picker-section-label span { color: #6ee7b7; }

.scene-lock-1 .mock-scene,
.scene-lock-2 .mock-scene,
.scene-lock-3 .mock-scene,
.scene-lock-4 .mock-scene { animation: none; opacity: 0; }
.scene-lock-1 .mock-scene:nth-child(1),
.scene-lock-2 .mock-scene:nth-child(2),
.scene-lock-3 .mock-scene:nth-child(3),
.scene-lock-4 .mock-scene:nth-child(4) { opacity: 1; }
.scene-lock-1 .mock-specs .mock-spec { animation: none; border-color: #3f3f46; transform: none; box-shadow: none; }
.scene-lock-1 .mock-specs .mock-spec-active { border-color: var(--emerald); box-shadow: 0 0 14px rgba(16,185,129,0.35); transform: none; }

@media (max-width: 768px) {
  .mockup-frame { transform: none; }
  .mock-lb-head span:nth-child(4),
  .mock-lb-head span:nth-child(7),
  .mock-lb-row .mock-lb-realm,
  .mock-lb-row .mock-lb-links { display: none; }
  .mock-lb-head, .mock-lb-row { grid-template-columns: 36px 36px 1fr 48px 32px; }
  .mock-progress-cols { grid-template-columns: 1fr; }
  .mock-watch-table th:nth-child(4),
  .mock-watch-table td:nth-child(4) { display: none; }
}