/* ═══════════════════════════════════════════
   JUMPER GAME — Main Stylesheet
   ═══════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #0c0d10;
  --surface:   #14151a;
  --surface2:  #1c1e26;
  --border:    #272932;
  --accent:    #f5a623;
  --accent2:   #ff6b35;
  --text:      #e8eaf0;
  --muted:     #7c8194;
  --radius:    12px;
  --radius-sm: 8px;
  --max-w:     1100px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

/* ═══════════════════════════════════════════
   LAYOUT HELPERS
   ═══════════════════════════════════════════ */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 24px;
}

hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.7;
}

.section-header {
  margin-bottom: 52px;
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all .18s ease;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: #e6951f;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,166,35,.3);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface2);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: rgba(245,166,35,.08);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 13, 16, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

/* Logo area — holds favicon + wordmark */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.nav-logo span {
  color: var(--text);
}

/* Favicon placeholder in nav */
.nav-favicon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--surface2);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--muted);
  flex-shrink: 0;
  overflow: hidden;
}

.nav-favicon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-cta {
  background: var(--accent) !important;
  color: #000 !important;
  font-weight: 700 !important;
}

.nav-cta:hover {
  opacity: .88;
  background: var(--accent) !important;
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */

.hero {
  padding: 100px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(245,166,35,.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,166,35,.1);
  border: 1px solid rgba(245,166,35,.3);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-badge::before {
  content: '●';
  font-size: 8px;
  animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  max-width: 820px;
  margin: 0 auto 20px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* Hero image placeholder */
.hero-image-wrap {
  max-width: 860px;
  margin: 0 auto 48px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.img-placeholder {
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.img-placeholder .ph-icon {
  font-size: 32px;
  opacity: .5;
}

.img-placeholder.hero-ph {
  height: 360px;
}

.img-placeholder.card-ph {
  height: 200px;
}

.img-placeholder.inline-ph {
  height: 280px;
}

/* ── Animated blocks ── */
.blocks-preview {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.block {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  animation: blockFloat 3s ease-in-out infinite;
}

.block:nth-child(1)  { background: #f5a623; animation-delay: 0s; }
.block:nth-child(2)  { background: #ff6b35; animation-delay: .25s; }
.block:nth-child(3)  { background: #7c3aed; animation-delay: .5s; }
.block:nth-child(4)  { background: #06b6d4; animation-delay: .75s; }
.block:nth-child(5)  { background: #22c55e; animation-delay: 1s; }
.block:nth-child(6)  { background: #ec4899; animation-delay: 1.25s; }
.block:nth-child(7)  { background: #eab308; animation-delay: 1.5s; }

/* ═══════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.feature-card:hover {
  border-color: rgba(245,166,35,.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,.3);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(245,166,35,.1);
  border: 1px solid rgba(245,166,35,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════
   CASINO INFO
   ═══════════════════════════════════════════ */

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.info-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.info-box h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.info-list {
  list-style: none;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  gap: 16px;
}

.info-list li:last-child {
  border-bottom: none;
}

.info-list .label {
  color: var(--muted);
  flex-shrink: 0;
}

.info-list .value {
  font-weight: 600;
  text-align: right;
}

.badge-green {
  display: inline-block;
  background: rgba(34,197,94,.12);
  color: #4ade80;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
}

/* ═══════════════════════════════════════════
   HOW TO PLAY (Steps + Two-col layout)
   ═══════════════════════════════════════════ */

.howtoplay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.steps {
  display: flex;
  flex-direction: column;
}

.step {
  display: flex;
  gap: 20px;
  position: relative;
  padding-bottom: 36px;
}

.step:last-child {
  padding-bottom: 0;
}

.step-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-connector {
  width: 2px;
  flex: 1;
  min-height: 20px;
  background: var(--border);
  margin-top: 8px;
}

.step-content {
  padding-top: 8px;
}

.step-content h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════
   BONUSES
   ═══════════════════════════════════════════ */

.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.bonus-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .2s, transform .2s;
}

.bonus-card:hover {
  border-color: rgba(245,166,35,.3);
  transform: translateY(-3px);
}

.bonus-emoji {
  font-size: 36px;
  margin-bottom: 14px;
}

.bonus-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.bonus-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════
   MOBILE SECTION
   ═══════════════════════════════════════════ */

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

.mobile-text p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.mobile-text p:last-child {
  margin-bottom: 0;
}

.app-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.mobile-screenshots {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.mobile-screenshots img {
  flex: 1;
  min-width: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  object-fit: cover;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  transition: border-color .15s;
}

.app-badge:hover {
  border-color: rgba(245,166,35,.4);
}

/* ═══════════════════════════════════════════
   STRATEGY TABLE
   ═══════════════════════════════════════════ */

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.strategy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.strategy-table th {
  text-align: left;
  padding: 14px 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.strategy-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  line-height: 1.55;
  vertical-align: top;
}

.strategy-table tr:last-child td {
  border-bottom: none;
}

.strategy-table tr:hover td {
  background: rgba(255,255,255,.02);
}

.strategy-table td:first-child {
  font-weight: 600;
  white-space: nowrap;
}

.risk-low  { color: #4ade80; font-weight: 600; }
.risk-mid  { color: #facc15; font-weight: 600; }
.risk-high { color: #f87171; font-weight: 600; }

/* ═══════════════════════════════════════════
   HACK / WARNING SECTION
   ═══════════════════════════════════════════ */

.warning-banner {
  background: rgba(248,113,113,.06);
  border: 1px solid rgba(248,113,113,.22);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.warning-icon {
  font-size: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}

.warning-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fca5a5;
}

.warning-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 10px;
}

.warning-body p:last-child {
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════
   DEMO CTA BLOCK
   ═══════════════════════════════════════════ */

.demo-cta {
  text-align: center;
  padding-top: 48px;
}

.demo-cta .section-label {
  text-align: center;
}

.demo-cta .section-title {
  text-align: center;
}

.demo-cta .section-sub {
  margin: 0 auto 36px;
  text-align: center;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */

footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 24px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 16px;
}

.footer-logo span {
  color: var(--text);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 16px 0 24px;
  list-style: none;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
  transition: color .15s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-note {
  font-size: 12px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */

@keyframes blockFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 900px) {
  .howtoplay-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .mobile-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile nav open state (toggled by main.js) */
#nav-menu.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px 16px;
  gap: 2px;
}

/* Active nav link highlight (set by main.js scroll detection) */
.nav-links a.active {
  color: var(--text);
  background: var(--surface);
}

/* Fade-in animation (triggered by main.js IntersectionObserver) */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .4s ease, transform .4s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Jumping block highlight (set by main.js timer) */
.block.jumping {
  transform: translateY(-18px) scale(1.12);
  box-shadow: 0 8px 24px rgba(245,166,35,.35);
  transition: transform .3s ease, box-shadow .3s ease;
}

@media (max-width: 768px) {
  #nav-toggle {
    display: block !important;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 70px 24px 60px;
  }

  section {
    padding: 60px 24px;
  }

  .hero h1 {
    letter-spacing: -1px;
  }

  .strategy-table th:nth-child(3),
  .strategy-table td:nth-child(3) {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .blocks-preview .block {
    width: 40px;
    height: 40px;
  }
}
