/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #0055CC;
  --blue-dark: #003D99;
  --blue-light: #E8F0FF;
  --orange: #FF6600;
  --orange-dark: #E55A00;
  --white: #FFFFFF;
  --gray-50: #F8F9FA;
  --gray-100: #F1F3F5;
  --gray-200: #E9ECEF;
  --gray-400: #9CA3AF;
  --gray-600: #6B7280;
  --gray-800: #1F2937;
  --text: #1A1A2E;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.13);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
p { margin-bottom: 0; }

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 60px 0; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-align: center;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(255,102,0,0.35);
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,102,0,0.45);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--blue);
}

.btn-lg { padding: 18px 48px; font-size: 1.15rem; }

/* ===== NAV ===== */
.navbar {
  background: var(--white);
  border-bottom: 2px solid var(--blue-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.5px;
}

.nav-logo img { width: 36px; height: 36px; border-radius: 4px; }

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--gray-800);
  transition: background 0.15s, color 0.15s;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--blue-light);
  color: var(--blue);
}

.nav-cta {
  background: var(--orange) !important;
  color: var(--white) !important;
  border-radius: var(--radius) !important;
}
.nav-cta:hover {
  background: var(--orange-dark) !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, #0077FF 100%);
  color: var(--white);
  padding: 80px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -60px;
  width: 350px; height: 350px;
  background: rgba(255,102,0,0.12);
  border-radius: 50%;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero h1 { margin-bottom: 18px; }

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 20px 0;
}

.trust-items {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-600);
}

.trust-item .icon {
  width: 28px;
  height: 28px;
  background: var(--blue-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* ===== STEPS SECTION ===== */
.steps-section {
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 { color: var(--blue-dark); margin-bottom: 12px; }
.section-header p { color: var(--gray-600); font-size: 1.05rem; max-width: 520px; margin: 0 auto; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.step-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative;
}

.step-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.step-number {
  width: 52px;
  height: 52px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step-card h3 { margin-bottom: 10px; color: var(--blue-dark); }
.step-card p { color: var(--gray-600); font-size: 0.95rem; }

.step-connector {
  display: none;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--orange) 0%, #FF8C00 100%);
  color: var(--white);
  text-align: center;
  padding: 70px 0;
}

.cta-section h2 { margin-bottom: 14px; }
.cta-section p { opacity: 0.92; margin-bottom: 32px; font-size: 1.05rem; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ===== ABOUT PAGE ===== */
.about-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 70px 0;
  text-align: center;
}

.about-hero p { opacity: 0.9; max-width: 600px; margin: 16px auto 0; font-size: 1.1rem; }

.about-intro {
  background: var(--white);
}

.about-intro .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-intro-text h2 { color: var(--blue-dark); margin-bottom: 16px; }
.about-intro-text p { color: var(--gray-600); margin-bottom: 16px; line-height: 1.75; }

.about-visual {
  background: linear-gradient(135deg, var(--blue-light) 0%, #dce9ff 100%);
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
}

.about-visual .big-number {
  font-size: 4rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}

.about-visual p { color: var(--gray-600); font-size: 0.9rem; margin-top: 6px; }

.stats-row {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.stat-item { flex: 1; min-width: 100px; }
.stat-item .num { font-size: 1.8rem; font-weight: 800; color: var(--orange); }
.stat-item .label { font-size: 0.8rem; color: var(--gray-600); margin-top: 2px; }

.features-section {
  background: var(--gray-50);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.feature-card h3 { color: var(--blue-dark); margin-bottom: 8px; }
.feature-card p { color: var(--gray-600); font-size: 0.95rem; line-height: 1.65; }

.games-section { background: var(--white); }

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.game-tile {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: var(--white);
  border-radius: 12px;
  padding: 28px 16px;
  text-align: center;
  transition: transform 0.2s;
}

.game-tile:hover { transform: translateY(-3px); }
.game-tile .game-icon { font-size: 2rem; margin-bottom: 10px; }
.game-tile h3 { font-size: 1rem; }

/* ===== AMBASSADORS PAGE ===== */
.amb-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, var(--blue-dark) 100%);
  color: var(--white);
  padding: 70px 0;
  text-align: center;
}

.amb-hero p { opacity: 0.85; max-width: 560px; margin: 14px auto 0; font-size: 1.1rem; }

.amb-section { background: var(--white); padding: 80px 0; }

.amb-card {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
  background: var(--gray-50);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.amb-card:last-child { margin-bottom: 0; }
.amb-card.reverse { grid-template-columns: 1fr 340px; }
.amb-card.reverse .amb-image { order: 2; }
.amb-card.reverse .amb-info { order: 1; }

.amb-image {
  background: linear-gradient(135deg, var(--blue-light), #c8d8ff);
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.amb-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: top center;
}

.amb-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  padding: 20px;
}

.amb-placeholder .avatar-icon {
  width: 90px;
  height: 90px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--white);
}

.amb-info { padding: 40px 40px 40px 0; }
.amb-card:not(.reverse) .amb-info { padding: 40px 40px 40px 0; }
.amb-card.reverse .amb-info { padding: 40px 0 40px 40px; }

.amb-tag {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.amb-info h2 { color: var(--blue-dark); margin-bottom: 4px; }
.amb-info .amb-name-cn { color: var(--gray-400); font-size: 1rem; margin-bottom: 20px; font-weight: 500; }
.amb-info p { color: var(--gray-600); line-height: 1.75; margin-bottom: 14px; }

.amb-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.amb-fact {
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--gray-800);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 10px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.65; max-width: 280px; }

.footer-links h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  font-size: 0.9rem;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
}

.footer-bottom a { color: var(--orange); }

/* ===== RESPONSIBLE GAMBLING ===== */
.resp-bar {
  background: #1a1a2e;
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 10px 20px;
  font-size: 0.8rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-intro .container { grid-template-columns: 1fr; gap: 32px; }
  .amb-card,
  .amb-card.reverse {
    grid-template-columns: 1fr;
  }
  .amb-card.reverse .amb-image,
  .amb-card.reverse .amb-info { order: unset; }
  .amb-card .amb-image { min-height: 260px; }
  .amb-card .amb-image img { height: 260px; }
  .amb-info,
  .amb-card:not(.reverse) .amb-info,
  .amb-card.reverse .amb-info { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  section { padding: 44px 0; }
  .nav-links { display: none; flex-direction: column; gap: 0; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); border-bottom: 2px solid var(--blue-light); padding: 12px 20px 20px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; display: block; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero { padding: 56px 0 48px; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .steps-grid { grid-template-columns: 1fr; }
}
