:root {
  --primary: #bd6355;
  --primary-dark: #a55043;
  --bg: #faf6f0;
  --white: #ffffff;
  --foreground: #2a2118;
  --muted: #8a7e72;
  --secondary: #f5d8c8;
  --accent: #f0c8a8;
  --border: #ebe2d4;
  --shadow: 0 10px 30px rgba(189, 99, 85, 0.08);
  --shadow-lg: 0 20px 50px rgba(189, 99, 85, 0.15);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  background: var(--bg);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 9999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 18px; }

.btn-primary { background: var(--primary); color: white; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow-lg); }

.btn-outline { background: white; color: var(--foreground); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-white { background: white; color: var(--primary); box-shadow: var(--shadow-lg); }
.btn-white:hover { background: var(--bg); }

.btn-dark { background: var(--foreground); color: white; box-shadow: var(--shadow-lg); }
.btn-dark:hover { background: #1a1410; }

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 24px;
  background: transparent;
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 9999px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow);
}
.brand {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary);
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-weight: 700;
  color: var(--foreground);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }

/* HERO */
.hero {
  padding: 60px 24px 100px;
}
.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-text { order: 1; }
.hero-image { order: 2; position: relative; }
.badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 16px;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow);
}
.hero-text h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--foreground);
}
.hero-text h1 .accent {
  color: var(--primary);
  position: relative;
  display: inline-block;
}
.hero-text h1 .accent::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 4px;
  background: var(--primary);
  border-radius: 9999px;
  opacity: 0.4;
}
.hero-text p {
  font-size: 20px;
  color: rgba(42, 33, 24, 0.7);
  margin-bottom: 36px;
  max-width: 500px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image img {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  filter: drop-shadow(0 30px 50px rgba(189, 99, 85, 0.25));
}
.floating-badge {
  position: absolute;
  bottom: 30px;
  right: -10px;
  background: var(--primary);
  color: white;
  padding: 10px 20px;
  border-radius: 9999px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-lg);
}

/* FEATURES */
.features { padding: 100px 24px; background: white; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  margin-bottom: 16px;
  color: var(--foreground);
}
.section-header p {
  font-size: 20px;
  color: rgba(42, 33, 24, 0.6);
  max-width: 600px;
  margin: 0 auto;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(3deg);
}
.icon-pink { background: var(--secondary); color: var(--primary); }
.icon-peach { background: var(--accent); color: var(--primary); }
.icon-primary { background: var(--primary); color: white; }
.feature-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}
.feature-card p {
  color: rgba(42, 33, 24, 0.7);
  line-height: 1.7;
}

/* HOW TO PLAY */
.how-to-play { padding: 100px 24px; background: rgba(245, 216, 200, 0.2); }
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.how-image img {
  max-width: 420px;
  margin: 0 auto;
  filter: drop-shadow(0 30px 50px rgba(189, 99, 85, 0.2));
}
.how-text h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  margin-bottom: 32px;
}
.steps { display: flex; flex-direction: column; gap: 32px; }
.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  box-shadow: var(--shadow);
}
.step h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step p {
  color: rgba(42, 33, 24, 0.7);
  font-size: 18px;
  line-height: 1.7;
}

/* TESTIMONIALS */
.testimonials { padding: 100px 24px; background: white; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  text-align: center;
}
.stars { color: #f5b800; font-size: 20px; margin-bottom: 16px; letter-spacing: 4px; }
.testimonial-card p {
  color: rgba(42, 33, 24, 0.85);
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.7;
}
.author { font-weight: 700; color: var(--primary); }

/* CTA */
.cta {
  padding: 100px 24px;
  background: var(--primary);
  color: white;
  position: relative;
  overflow: hidden;
}
.cta-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: radial-gradient(circle at 2px 2px, white 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
}
.cta-inner { position: relative; text-align: center; max-width: 800px; }
.cta h2 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  margin-bottom: 24px;
  line-height: 1.2;
  color: white;
}
.cta p {
  font-size: 22px;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 18px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.cta-link:hover { color: white; border-color: white; }

/* FOOTER */
.footer { padding: 48px 24px; background: var(--foreground); color: white; }
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer-brand { font-size: 28px; font-weight: 900; color: var(--primary); }
.footer-links { display: flex; gap: 32px; flex-wrap: wrap; justify-content: center; }
.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary); }
.footer-copy {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  width: 100%;
  max-width: 600px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-grid, .how-grid, .features-grid, .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-image { order: 2; }
  .nav-links { display: none; }
  .floating-badge { right: 50%; transform: translateX(50%); bottom: 0; }
}

@media (max-width: 600px) {
  .hero { padding: 40px 16px 60px; }
  .features, .how-to-play, .testimonials, .cta { padding: 60px 16px; }
  .hero-buttons, .cta-buttons { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
