@font-face { font-family: system-fa; src: local("Vazirmatn"), local("Tahoma"); }

:root {
  color-scheme: light;
  --ink: #1f1634;
  --muted: #746b80;
  --purple: #6d28d9;
  --purple-dark: #4c1d95;
  --mint: #20c997;
  --paper: #fbf9ff;
  --line: #ece7f2;
  --shadow: 0 24px 70px rgba(50, 31, 77, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: system-fa, Tahoma, Arial, sans-serif; line-height: 1.8; }
a { color: inherit; }
img { max-width: 100%; }

.site-header, main, footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #7c3aed, #4c1d95); border-radius: 15px; box-shadow: 0 9px 22px rgba(109, 40, 217, .24); font-size: 1.55rem; font-weight: 900; }
.brand strong, .brand small { display: block; line-height: 1.3; }
.brand strong { font-size: 1.08rem; }
.brand small { color: var(--muted); font-size: .69rem; }
nav { display: flex; gap: 32px; }
nav a { color: #574d64; text-decoration: none; font-size: .94rem; font-weight: 700; }
nav a:hover { color: var(--purple); }
.header-cta { padding: 10px 19px; color: var(--purple-dark); background: #eee8ff; border-radius: 13px; text-decoration: none; font-weight: 800; font-size: .9rem; }

.hero { position: relative; min-height: 660px; display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: clamp(44px, 7vw, 90px); padding: 64px 0 96px; }
.hero::before { content: ""; position: absolute; z-index: -1; top: -88px; left: 48%; width: 52vw; height: 680px; background: radial-gradient(circle, rgba(218, 204, 255, .65), rgba(251, 249, 255, 0) 68%); }
.eyebrow, .section-kicker { color: var(--purple); font-size: .86rem; font-weight: 900; letter-spacing: .01em; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; background: #f0ebff; border: 1px solid #e1d7ff; border-radius: 999px; }
.eyebrow i { width: 7px; height: 7px; background: var(--mint); border-radius: 50%; box-shadow: 0 0 0 4px rgba(32, 201, 151, .14); }
h1 { margin: 20px 0; font-size: clamp(2.8rem, 5.5vw, 5.25rem); line-height: 1.14; letter-spacing: -.055em; }
h1 span { color: var(--purple); }
.lead { max-width: 620px; margin: 0; color: var(--muted); font-size: clamp(1.03rem, 1.7vw, 1.22rem); }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 32px; }
.primary-button { min-height: 56px; display: inline-flex; align-items: center; justify-content: center; padding: 0 27px; color: #fff; background: linear-gradient(135deg, #7c3aed, #4c1d95); border-radius: 16px; box-shadow: 0 15px 32px rgba(76, 29, 149, .24); text-decoration: none; font-weight: 900; transition: transform .2s ease, box-shadow .2s ease; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 19px 40px rgba(76, 29, 149, .32); }
.text-button { color: #4f465b; text-decoration: none; font-weight: 800; }
.text-button span, .game-link span { display: inline-block; margin-right: 5px; transition: transform .2s ease; }
.text-button:hover span, .game-link:hover span { transform: translateX(-4px); }
.trust-row { display: flex; gap: 10px; margin-top: 27px; color: #6d6477; font-size: .78rem; }
.trust-row span { padding: 5px 11px; background: #fff; border: 1px solid var(--line); border-radius: 999px; }

.hero-visual { position: relative; display: block; padding: 14px; background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .9); border-radius: 34px; box-shadow: var(--shadow); backdrop-filter: blur(12px); text-decoration: none; transform: rotate(-1.2deg); }
.hero-visual > img { display: block; width: 100%; height: auto; border-radius: 24px; }
.visual-label { position: absolute; z-index: 2; top: 28px; right: 28px; padding: 6px 13px; color: #fff; background: rgba(31, 22, 52, .78); border: 1px solid rgba(255,255,255,.24); border-radius: 999px; backdrop-filter: blur(8px); font-size: .76rem; font-weight: 800; }
.floating-card { position: absolute; display: flex; flex-direction: column; min-width: 150px; padding: 12px 16px; background: rgba(255,255,255,.94); border: 1px solid #fff; border-radius: 16px; box-shadow: 0 14px 30px rgba(47, 28, 70, .16); }
.floating-card b { font-size: .88rem; }
.floating-card small { color: var(--muted); font-size: .69rem; }
.floating-card-top { top: 18%; left: -38px; }
.floating-card-bottom { right: -30px; bottom: 12%; }

.games-section { padding: 80px 0 105px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 34px; }
.section-heading h2, .values h2 { margin: 7px 0 0; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.3; letter-spacing: -.035em; }
.section-heading > p { max-width: 390px; margin: 0; color: var(--muted); }
.games-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.game-card { overflow: hidden; display: grid; grid-template-columns: .92fr 1.08fr; background: #fff; border: 1px solid var(--line); border-radius: 30px; box-shadow: 0 18px 50px rgba(45, 31, 62, .08); }
.game-card:only-child { grid-column: 1 / -1; }
.game-art { position: relative; min-height: 390px; overflow: hidden; background: #e9ddff; }
.game-art > img { width: 100%; height: 100%; display: block; object-fit: cover; }
.live-badge { position: absolute; top: 18px; right: 18px; padding: 5px 11px; color: #08794f; background: rgba(231, 255, 246, .94); border: 1px solid #bcebd8; border-radius: 999px; font-size: .73rem; font-weight: 900; }
.game-content { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 5vw, 56px); }
.game-title-row { display: flex; align-items: center; gap: 14px; }
.game-icon { width: 62px; height: 62px; border-radius: 17px; box-shadow: 0 8px 20px rgba(46, 24, 76, .14); }
.game-title-row h3 { margin: 0; font-size: 1.55rem; }
.game-title-row p { margin: 0; color: var(--muted); font-size: .82rem; }
.game-description { margin: 24px 0 18px; color: #655c70; }
.game-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.game-tags li { padding: 5px 11px; color: #5c4d70; background: #f5f1fa; border-radius: 10px; font-size: .76rem; }
.game-link { align-self: flex-start; color: var(--purple); text-decoration: none; font-weight: 900; }

.values { margin-bottom: 100px; padding: clamp(34px, 6vw, 68px); color: #fff; background: #1b1329; border-radius: 36px; }
.values .section-kicker { color: #bda4ff; }
.values-intro { max-width: 620px; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 42px; }
.value-grid article { padding: 24px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 20px; }
.value-grid article > span { width: 42px; height: 42px; display: grid; place-items: center; color: #dacdff; background: rgba(139,92,246,.18); border-radius: 12px; font-weight: 900; }
.value-grid h3 { margin: 18px 0 7px; font-size: 1.05rem; }
.value-grid p { margin: 0; color: #bcb4c6; font-size: .88rem; }

.final-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 80px; padding: clamp(28px, 5vw, 54px); color: #fff; background: linear-gradient(120deg, #7130d6, #4c1d95); border-radius: 30px; box-shadow: 0 22px 50px rgba(76, 29, 149, .2); }
.final-cta span { color: #ded2ff; font-size: .82rem; font-weight: 800; }
.final-cta h2 { margin: 4px 0 0; font-size: clamp(1.55rem, 3vw, 2.5rem); }
.primary-button.light { color: var(--purple-dark); background: #fff; box-shadow: none; white-space: nowrap; }
footer { min-height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.footer-brand .brand-mark { width: 39px; height: 39px; border-radius: 12px; font-size: 1.2rem; }

@media (max-width: 900px) {
  nav { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 35px 0 80px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-visual { order: -1; width: min(680px, 100%); margin-inline: auto; transform: none; }
  .floating-card { display: none; }
  .section-heading { align-items: start; flex-direction: column; gap: 12px; }
  .game-card { grid-template-columns: 1fr; }
  .game-art { min-height: 0; aspect-ratio: 763 / 539; }
  .value-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header, main, footer { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 72px; }
  .brand-mark { width: 40px; height: 40px; border-radius: 12px; }
  .brand small, .header-cta { display: none; }
  .hero { gap: 34px; padding-top: 20px; }
  .hero::before { top: -50px; left: 0; width: 100%; height: 520px; }
  .hero-visual { padding: 8px; border-radius: 22px; }
  .hero-visual > img { border-radius: 16px; }
  .visual-label { top: 18px; right: 18px; }
  h1 { margin: 17px 0; font-size: clamp(2.4rem, 13vw, 3.25rem); }
  .lead { font-size: .98rem; }
  .hero-actions { width: 100%; flex-direction: column; gap: 16px; margin-top: 27px; }
  .primary-button { width: 100%; }
  .trust-row { flex-wrap: wrap; justify-content: center; }
  .games-section { padding: 56px 0 72px; }
  .section-heading h2, .values h2 { font-size: 1.85rem; }
  .game-card { border-radius: 23px; }
  .game-content { padding: 25px 21px 28px; }
  .game-icon { width: 54px; height: 54px; }
  .game-description { margin-top: 20px; }
  .values { margin-bottom: 64px; padding: 29px 20px; border-radius: 25px; }
  .value-grid { margin-top: 30px; }
  .final-cta { align-items: stretch; flex-direction: column; margin-bottom: 55px; padding: 28px 22px; text-align: center; border-radius: 24px; }
  footer { min-height: 145px; align-items: center; flex-direction: column; justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .primary-button, .text-button span, .game-link span { transition: none; }
}
