/* ============================================================
   ALLEYZ – styles.css
   ============================================================ */

:root {
  --green-dark:  #1e3010;
  --green:       #578a34;
  --green-mid:   #4a7a2a;
  --g1:          #a9d889;
  --g2:          #c5e66b;
  --yellow:      #d8be3c;
  --bg:          #eef3e6;
  --bg-light:    #f5f8f0;
  --white:       #ffffff;
  --text:        #1e3010;
  --text2:       #4a6a30;
  --text3:       #7a9a60;
  --text-muted:  #666;
  --border:      rgba(87,138,52,.15);
  --shadow-g:    0 8px 32px rgba(87,138,52,.12);
  --shadow-card: 0 4px 24px rgba(30,48,16,.08);
  --r:           16px;
  --r-lg:        24px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Red Hat Display', sans-serif;
  background: var(--bg-light);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Animace ── */
.animate-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity .55s cubic-bezier(.2,0,.28,1), transform .55s cubic-bezier(.2,0,.28,1);
}
.animate-up.visible { opacity: 1; transform: translateY(0); }

/* ── Layout ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; scroll-margin-top: 80px; }

/* ── Typography ── */
h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 900; line-height: 1.1; letter-spacing: -1px; }
h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; letter-spacing: -.5px; }
h3 { font-size: 20px; font-weight: 700; }
p  { line-height: 1.7; color: var(--text-muted); }

.section-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 2.5px; color: var(--green);
  background: rgba(87,138,52,.1); border-radius: 50px; padding: 5px 14px;
  margin-bottom: 14px;
}
.section-header { text-align: center; margin-bottom: 56px; }
.section-header p { max-width: 520px; margin: 12px auto 0; font-size: 16px; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green); color: var(--white);
  border: none; border-radius: 50px; padding: 14px 28px;
  font-size: 16px; font-weight: 700; font-family: 'Red Hat Display', sans-serif;
  cursor: pointer; text-decoration: none; transition: all .22s;
  box-shadow: 0 6px 20px rgba(87,138,52,.35);
}
.btn-primary:hover { background: var(--green-mid); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(87,138,52,.4); }
.btn-large { padding: 16px 36px; font-size: 18px; }
.btn-full  { width: 100%; justify-content: center; }

.btn-nav {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--yellow); color: var(--text) !important;
  padding: 9px 18px; border-radius: 50px; font-weight: 800; font-size: 14px;
  transition: all .2s; box-shadow: 0 4px 14px rgba(216,190,60,.35);
  text-decoration: none;
}
.btn-nav:hover { background: #c8ae30; transform: translateY(-1px); }

/* ═══════════════════════════════
   HEADER
   ═══════════════════════════════ */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  background: var(--green-dark); z-index: 1000; transition: box-shadow .3s;
}
.header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.logo-wrap { display: flex; }
.logo { height: 52px; filter: brightness(0) invert(1); }

/* Lang switcher */
.lang-switcher { display: flex; gap: 4px; margin-right: 8px; }
.lang-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.1);
  font-weight: 400;
  color: #b0dc82;
  letter-spacing: 0.5px;  
  font-size: 11px; cursor: pointer; padding: 0; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.lang-btn:hover { background: rgba(255,255,255,.25); border-color: rgba(255,255,255,.4); transform: scale(1.1); }
.lang-btn.active { border-color: var(--g2); background: rgba(197,230,107,.2); box-shadow: 0 0 0 3px rgba(197,230,107,.2); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: rgba(255,255,255,.85); text-decoration: none; font-weight: 600;
  font-size: 15px; padding: 8px 14px; border-radius: 8px; transition: all .18s;
}
.nav a:hover { background: rgba(255,255,255,.1); color: var(--g2); }
.nav-close { display: none; }

.hamburger {
  display: none; width: 44px; height: 44px; border-radius: 10px;
  border: none; background: rgba(255,255,255,.12);
  align-items: center; justify-content: center; cursor: pointer; transition: .2s;
}
.hamburger i { font-size: 20px; color: white; }
.hamburger:hover { background: rgba(255,255,255,.2); }

.nav-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 999; }
.nav-backdrop.active { display: block; }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .lang-btn { width: 30px; height: 30px; font-size: 12px; }
  .nav {
    position: fixed; top: 0; right: -100%; width: 75%; max-width: 320px; height: 100vh;
    background: var(--green-dark); flex-direction: column; align-items: flex-start;
    padding: 80px 24px 40px; gap: 4px;
    transition: right .3s cubic-bezier(.2,0,.28,1); z-index: 1001;
    box-shadow: -8px 0 32px rgba(0,0,0,.3);
  }
  .nav.active { right: 0; }
  .nav a { font-size: 18px; width: 100%; }
  .btn-nav { margin-top: 16px; }
  .nav-close {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 20px; right: 20px;
    width: 40px; height: 40px; border-radius: 50%;
    border: none; background: rgba(255,255,255,.15); color: white; font-size: 18px; cursor: pointer;
  }
}

/* ═══════════════════════════════
   HERO
   ═══════════════════════════════ */
.hero {
  position: relative; min-height: 70vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-dark); overflow: hidden; padding-top: 76px;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .55;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.45);
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  color: white; padding: 40px 24px; max-width: 720px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(197,230,107,.2); border: 1.5px solid rgba(197,230,107,.4);
  border-radius: 50px; padding: 6px 16px; font-size: 13px; font-weight: 700;
  color: var(--g2); margin-bottom: 20px; letter-spacing: .5px;
}
.hero-content h1 { margin-bottom: 16px; color: white; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.hero-content p  { color: rgba(255,255,255,.8); font-size: 18px; margin-bottom: 32px; }
.hero-scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.4); font-size: 20px; z-index: 2;
  animation: bounce 2s ease infinite;
}
@keyframes bounce {
  0%,100%{transform:translateX(-50%) translateY(0)}
  50%{transform:translateX(-50%) translateY(8px)}
}
.hero-content.animate-up {
  opacity: 0; transform: translateY(28px);
  animation: heroIn .9s .2s cubic-bezier(.2,0,.28,1) forwards;
}
@keyframes heroIn { to { opacity:1; transform:translateY(0); } }

@media (max-width: 768px) {
  .hero { min-height: 85vh; }
  .hero-video { display: none; }
}

/* ═══════════════════════════════
   INTRO
   ═══════════════════════════════ */
.intro-section { background: var(--white); }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.intro-headline { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; color: var(--text); }
.intro-lead { font-size: 17px; line-height: 1.75; color: var(--text-muted); }
.intro-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pillar {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg-light); border: 1.5px solid var(--border);
  border-radius: var(--r); padding: 18px; transition: all .22s;
}
.pillar:hover { border-color: var(--g1); box-shadow: var(--shadow-g); transform: translateY(-3px); }
.pillar-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--text); flex-shrink: 0;
}
.pillar-body strong { display: block; font-size: 14px; color: var(--text); margin-bottom: 4px; font-weight: 700; }
.pillar-body span   { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

@media (max-width: 900px) { .intro-grid { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 600px) { .intro-pillars { grid-template-columns: 1fr; } }

/* ═══════════════════════════════
   GAMES
   ═══════════════════════════════ */
.games-section { background: var(--bg-light); }
.games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.game-card {
  background: var(--white); border-radius: var(--r-lg); overflow: hidden;
  border: 1.5px solid var(--border); box-shadow: var(--shadow-card);
  cursor: pointer; transition: all .28s cubic-bezier(.2,0,.28,1);
}
.game-card:hover { transform: translateY(-8px); box-shadow: 0 20px 48px rgba(30,48,16,.14); border-color: var(--g1); }
.game-card-img-wrap { position: relative; overflow: hidden; height: 200px; }
.game-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,0,.28,1); }
.game-card:hover .game-card-img-wrap img { transform: scale(1.07); }
.game-card-badge {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 50px; padding: 5px 12px; font-size: 12px; font-weight: 800;
}
.game-card-badge.available { background: rgba(87,138,52,.9); color: white; }
.game-card-badge.coming-soon { background: rgba(216,190,60,.9); color: #5a3e00; }
.game-card-body { padding: 20px; }
.game-card-body h3 { margin-bottom: 4px; font-size: 18px; color: var(--text); }
.game-card-sub { font-size: 13px; color: var(--text3); margin-bottom: 12px; }
.game-card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.game-card-meta span {
  font-size: 12px; font-weight: 700; color: var(--text2);
  background: var(--bg-light); border-radius: 50px; padding: 4px 10px;
  display: flex; align-items: center; gap: 5px;
}
.game-card-meta i { color: var(--green); }
.game-card-price { font-size: 22px; font-weight: 900; color: var(--green); margin-bottom: 12px; }
.game-card-price.coming { font-size: 16px; color: var(--text3); }
.game-card-cta { font-size: 14px; font-weight: 700; color: var(--green); display: flex; align-items: center; gap: 6px; transition: gap .2s; }
.game-card:hover .game-card-cta { gap: 10px; }

@media (max-width: 900px) { .games-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .games-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════
   STEPS
   ═══════════════════════════════ */
.steps-section { background: var(--white); }
.steps-grid { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; justify-content: center; }
.step-item { flex: 1; min-width: 180px; max-width: 240px; text-align: center; padding: 24px 16px; }
.step-num { font-size: 11px; font-weight: 900; letter-spacing: 2px; color: var(--text3); margin-bottom: 12px; }
.step-icon {
  width: 64px; height: 64px; border-radius: 20px;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--text); margin: 0 auto 16px;
  box-shadow: 0 8px 24px rgba(169,216,137,.4);
}
.step-item h3 { margin-bottom: 8px; font-size: 16px; }
.step-item p  { font-size: 13px; }
.step-connector { color: var(--g1); font-size: 22px; align-self: center; padding: 0 4px; margin-top: -20px; }

@media (max-width: 680px) {
  .step-connector { display: none; }
  .steps-grid { gap: 16px; }
  .step-item { max-width: 100%; width: 100%; padding: 20px; background: var(--bg-light); border-radius: var(--r); }
}

/* ═══════════════════════════════
   INFO
   ═══════════════════════════════ */
.info-section { background: var(--bg-light); }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r); padding: 28px 24px; transition: all .22s;
}
.info-card:hover { border-color: var(--g1); box-shadow: var(--shadow-g); transform: translateY(-4px); }
.info-card-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(169,216,137,.2), rgba(197,230,107,.1));
  border: 1.5px solid rgba(87,138,52,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--green); margin-bottom: 16px;
}
.info-card h3 { margin-bottom: 8px; font-size: 16px; }
.info-card p  { font-size: 14px; line-height: 1.65; }

@media (max-width: 900px) { .info-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .info-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════
   CTA
   ═══════════════════════════════ */
.cta-section { position: relative; background: var(--green-dark); padding: 96px 0; overflow: hidden; }
.cta-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(87,138,52,.4), transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(197,230,107,.15), transparent 60%);
}
.cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-text h2 { color: white; margin-bottom: 8px; }
.cta-text p  { color: rgba(255,255,255,.65); font-size: 16px; }

/* ═══════════════════════════════
   FOOTER
   ═══════════════════════════════ */
.footer { background: var(--green-dark); padding: 64px 0 0; border-top: 1px solid rgba(255,255,255,.08); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .logo-footer { height: 40px; filter: brightness(0) invert(1); margin-bottom: 10px; display: block; }
.footer-brand p { color: rgba(255,255,255,.5); font-size: 14px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7); font-size: 16px; text-decoration: none; transition: all .2s;
}
.footer-social a:hover { background: var(--green); color: white; }
.footer h4 { color: white; font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px; }
.footer p  { color: rgba(255,255,255,.5); font-size: 14px; margin-bottom: 8px; }
.footer-link { display: block; color: var(--g2) !important; text-decoration: none; font-size: 14px; font-weight: 700; margin-top: 8px; }
.footer-link:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; color: rgba(255,255,255,.3); font-size: 13px; text-align: center; }

@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .footer-inner { grid-template-columns: 1fr; } }

/* ═══════════════════════════════
   GAME MODAL
   ═══════════════════════════════ */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 2000;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 16px; overflow-y: auto;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.modal-backdrop.active { opacity: 1; pointer-events: all; }
.game-modal {
  background: var(--white); border-radius: 24px; width: 100%; max-width: 900px;
  overflow: hidden; position: relative;
  transform: translateY(20px) scale(.97);
  transition: transform .35s cubic-bezier(.2,0,.28,1);
  box-shadow: 0 24px 80px rgba(0,0,0,.3);
}
.modal-backdrop.active .game-modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,0,0,.45); backdrop-filter: blur(8px);
  border: none; color: white; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.modal-close:hover { background: rgba(0,0,0,.65); }
.game-detail-hero { position: relative; height: 280px; overflow: hidden; }
.game-detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.game-detail-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(30,48,16,.85) 0%, rgba(30,48,16,.2) 60%, transparent 100%);
}
.game-detail-hero-text { position: absolute; bottom: 24px; left: 28px; color: white; }
.game-detail-hero-text h2 { color: white; margin-bottom: 4px; }
.game-detail-hero-text p  { color: rgba(255,255,255,.75); font-size: 14px; }
.game-detail-body { padding: 32px 28px; }
.game-detail-cols { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.game-detail-main h3 { margin-bottom: 12px; color: var(--text); }
.game-detail-main p  { font-size: 15px; }
.game-media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.game-media-grid img { width: 100%; height: 120px; object-fit: cover; border-radius: 10px; }
.game-specs { background: var(--bg-light); border: 1.5px solid var(--border); border-radius: var(--r); padding: 20px; margin-bottom: 20px; }
.spec-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.spec-row:last-child { border-bottom: none; }
.spec-icon { width: 20px; color: var(--green); font-size: 14px; text-align: center; flex-shrink: 0; }
.spec-label { flex: 1; font-size: 13px; color: var(--text-muted); font-weight: 600; }
.spec-val   { font-size: 14px; font-weight: 700; color: var(--text); text-align: right; }
.difficulty.easy   { color: #2a6010; font-weight: 700; }
.difficulty.medium { color: #7a6000; font-weight: 700; }
.difficulty.hard   { color: #8a1050; font-weight: 700; }
.game-buy-box { background: linear-gradient(135deg, rgba(87,138,52,.05), rgba(197,230,107,.05)); border: 2px solid rgba(87,138,52,.2); border-radius: var(--r); padding: 24px; text-align: center; }
.buy-price { font-size: 44px; font-weight: 900; color: var(--green); line-height: 1; margin-bottom: 4px; }
.buy-price span { font-size: 20px; font-weight: 600; }
.buy-note { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.buy-btn  { margin-bottom: 14px; }
.buy-features { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text2); text-align: left; }
.buy-features span { display: flex; align-items: center; gap: 8px; }
.buy-features i { color: var(--green); }
.coming-soon-notice { display: flex; gap: 16px; align-items: flex-start; background: rgba(216,190,60,.1); border: 1.5px solid rgba(216,190,60,.3); border-radius: var(--r); padding: 20px; margin-top: 24px; }
.coming-soon-notice > i { font-size: 22px; color: #b89a20; flex-shrink: 0; margin-top: 2px; }
.coming-soon-notice strong { display: block; color: var(--text); margin-bottom: 4px; }
.coming-soon-notice p { font-size: 14px; margin-bottom: 12px; }
.notify-form { display: flex; gap: 8px; }
.notify-form input { flex: 1; background: white; border: 1.5px solid rgba(216,190,60,.4); border-radius: 8px; padding: 10px 14px; font-size: 14px; font-family: 'Red Hat Display', sans-serif; outline: none; }
.notify-form input:focus { border-color: var(--green); }
.notify-form .btn-primary { padding: 10px 16px; font-size: 14px; flex-shrink: 0; }

@media (max-width: 700px) {
  .game-detail-cols { grid-template-columns: 1fr; }
  .game-detail-body { padding: 24px 20px; }
  .modal-backdrop { padding: 0; align-items: flex-end; }
  .game-modal { border-radius: 20px 20px 0 0; max-height: 92vh; overflow-y: auto; }
  .game-detail-hero { height: 200px; }
}

/* ── Trial code box ── */
.trial-code-box {
  background: var(--bg-light);
  border: 2px dashed var(--green);
  border-radius: var(--r);
  padding: 18px 24px;
  cursor: pointer;
  transition: all .2s;
  margin-bottom: 8px;
}
.trial-code-box:hover {
  background: rgba(87,138,52,.06);
  border-color: var(--green-mid);
}
.trial-code {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--green);
  font-family: 'Courier New', monospace;
}
