/* ===== Maanwin Modern Theme ===== */
:root {
  --primary: #ff5d5d;
  --primary-dark: #e04545;
  --primary-light: #ff8a8a;
  --blue: #3c91e6;
  --blue-dark: #2a7bc8;
  --dark: #0f0f14;
  --dark2: #1a1a24;
  --dark3: #252532;
  --text: #f0f0f5;
  --text-muted: #a0a0b0;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0,0,0,.35);
  --max: 1200px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-light); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }
ul { list-style: none; }

/* ===== HEADER ===== */
.site-header {
  background: linear-gradient(180deg, var(--dark2) 0%, var(--dark) 100%);
  border-bottom: 1px solid rgba(255,93,93,.25);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  gap: 12px;
}
.site-logo img {
  height: 52px;
  width: 52px;
  object-fit: contain;
  border-radius: 12px;
}
.footer-brand img {
  height: 48px;
  width: 48px;
  object-fit: contain;
  border-radius: 10px;
}
.hero-visual img {
  border-radius: 24px !important;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all .2s;
}
.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: rgba(255,93,93,.15);
}
.nav-cta {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: .9rem;
  border: none;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(255,93,93,.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,93,93,.55);
  color: #fff !important;
}
.btn-blue {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(60,145,230,.4);
}
.btn-blue:hover {
  transform: translateY(-2px);
  color: #fff !important;
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary) !important;
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff !important;
}
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Mobile menu */
.menu-toggle {
  display: none;
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,.1);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(160deg, #1a1020 0%, var(--dark) 40%, #12101a 100%);
  padding: 32px 16px 40px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(255,93,93,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,93,93,.15);
  color: var(--primary-light);
  font-size: .8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 30%, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 20px;
  max-width: 480px;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.hero-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  font-size: 1.4rem;
  color: var(--primary-light);
  font-weight: 800;
}
.hero-stat span {
  font-size: .8rem;
  color: var(--text-muted);
}
.hero-visual {
  text-align: center;
}
.hero-visual img {
  max-width: 280px;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 2px solid rgba(255,93,93,.3);
}

/* ===== SECTIONS ===== */
.section {
  padding: 40px 16px;
}
.section-alt {
  background: var(--dark2);
}
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.section-title {
  text-align: center;
  margin-bottom: 28px;
}
.section-title h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}
.section-title p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ===== FEATURE CARDS ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--dark3);
  border-radius: var(--radius);
  padding: 24px 20px;
  border: 1px solid rgba(255,255,255,.06);
  transition: all .25s;
  text-align: center;
}
.feature-card:hover {
  border-color: rgba(255,93,93,.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.3);
}
.feature-card img {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  object-fit: contain;
}
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}
.feature-card p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== GAMES ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.game-card {
  background: var(--dark3);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
  transition: all .25s;
  text-align: center;
  padding: 20px 14px;
}
.game-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}
.game-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
}
.game-card h3 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.game-card p {
  font-size: .8rem;
  color: var(--text-muted);
}

/* ===== STEPS ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step-card {
  background: var(--dark3);
  border-radius: var(--radius);
  padding: 24px 20px;
  border: 1px solid rgba(255,255,255,.06);
  position: relative;
  text-align: center;
}
.step-card::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 800;
  border-radius: 50%;
  margin: 0 auto 14px;
  font-size: 1rem;
}
.step-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step-card p { font-size: .88rem; color: var(--text-muted); }

/* ===== CTA BAND ===== */
.cta-band {
  background: linear-gradient(135deg, #2a1520 0%, #1a1020 50%, #152030 100%);
  padding: 40px 16px;
  text-align: center;
  border-top: 1px solid rgba(255,93,93,.2);
  border-bottom: 1px solid rgba(255,93,93,.2);
}
.cta-band h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 10px;
}
.cta-band p {
  color: var(--text-muted);
  margin-bottom: 20px;
}
.cta-band .hero-btns {
  justify-content: center;
}

/* ===== FAQ ===== */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  background: var(--dark3);
  border-radius: var(--radius);
  margin-bottom: 10px;
  border: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  padding: 16px 18px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: inherit;
}
.faq-q::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-item.open .faq-q::after { content: '−'; }
.faq-a {
  display: none;
  padding: 0 18px 16px;
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.6;
}
.faq-item.open .faq-a { display: block; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(160deg, #1a1020, var(--dark));
  padding: 36px 16px 28px;
  text-align: center;
  border-bottom: 1px solid rgba(255,93,93,.15);
}
.page-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 8px;
}
.page-hero p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}
.page-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 24px 0 10px;
  color: #fff;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
}
.page-content p, .page-content li {
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.7;
}
.page-content ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 16px;
}
.page-content a { color: var(--primary-light); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark2);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 32px 16px 20px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.footer-brand img {
  height: 40px;
  margin-bottom: 10px;
}
.footer-brand p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.footer-col h4 {
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: .88rem;
  padding: 4px 0;
  transition: color .2s;
}
.footer-col a:hover { color: var(--primary-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 16px;
  text-align: center;
  font-size: .82rem;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--primary-light); }

/* ===== FLOATING CTA ===== */
.float-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff !important;
  font-weight: 800;
  padding: 14px 22px;
  border-radius: 50px;
  box-shadow: 0 6px 25px rgba(255,93,93,.5);
  font-size: .95rem;
  animation: pulse 2s infinite;
  text-decoration: none !important;
}
.float-cta:hover {
  transform: scale(1.05);
  color: #fff !important;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 6px 25px rgba(255,93,93,.5); }
  50% { box-shadow: 0 6px 35px rgba(255,93,93,.75); }
}

/* ===== CONTACT FORM LOOK ===== */
.contact-box {
  background: var(--dark3);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid rgba(255,255,255,.06);
  text-align: center;
}
.contact-box .btn { margin-top: 16px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-visual img { max-width: 180px; }
}
@media (max-width: 640px) {
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark2);
    flex-direction: column;
    padding: 12px;
    border-bottom: 1px solid rgba(255,93,93,.2);
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; text-align: center; padding: 12px; }
  .nav-cta .btn { padding: 8px 14px; font-size: .82rem; }
  .features-grid { grid-template-columns: 1fr; }
  .games-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 16px; }
  .header-inner { flex-wrap: wrap; }
  .section { padding: 28px 14px; }
}
