/* Base variables for premium dark theme */
:root {
  --bg-main: #020617;
  --bg-card: rgba(15, 23, 42, 0.65);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(245, 158, 11, 0.5);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-gold: #f59e0b;
  --accent-gold-hover: #d97706;
  --accent-red: #ef4444;
  --accent-red-hover: #dc2626;
  --accent-green: #10b981;
  --font-family: 'Montserrat', sans-serif;
  --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and general setup */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(245, 158, 11, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(239, 44, 68, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Container limits */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation styling */
.header-seo {
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 15px 0;
}

.header-seo .nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 1px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-red));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.logo-icon span {
  font-weight: 900;
  color: #fff;
  font-size: 1.1rem;
}

.logo-text span {
  color: var(--accent-gold);
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-item {
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: 8px;
  transition: var(--transition-smooth);
  color: var(--text-secondary);
}

.nav-item:hover, .nav-item.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
  border-bottom: 2px solid var(--accent-gold);
  border-radius: 8px 8px 0 0;
}

.btn-play-header {
  background: linear-gradient(135deg, var(--accent-gold), #d97706);
  color: #fff;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 8px;
  border: none;
  font-family: var(--font-family);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  transition: var(--transition-smooth);
}

.btn-play-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.5);
  background: linear-gradient(135deg, #fbbf24, #d97706);
}

/* Hero Section */
.hero-section {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 30%, #cbd5e1 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--accent-gold), #f59e0b, var(--accent-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 40px;
  font-weight: 400;
}

/* Pulsing Main CTA Button */
.btn-cta {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 18px 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-gold), #ea580c, var(--accent-red));
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4);
  transition: var(--transition-smooth);
  animation: pulse-glow 2s infinite;
}

.btn-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px rgba(239, 68, 68, 0.6);
  background: linear-gradient(135deg, #fbbf24, #ea580c, #ef4444);
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(245, 158, 11, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

/* Glassmorphism Cards Container */
.glass-container {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 50px;
  box-shadow: var(--shadow-premium);
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  letter-spacing: 0.5px;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent-gold);
  border-radius: 2px;
  margin: 12px auto 0;
}

/* Grid Layout for Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-card {
  background: rgba(30, 41, 59, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 30px;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(30, 41, 59, 0.5);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.feature-icon-wrapper {
  width: 50px;
  height: 50px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-gold);
}

.feature-icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Step by Step list style */
.rules-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  gap: 20px;
  background: rgba(255, 255, 255, 0.02);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  align-items: flex-start;
  transition: var(--transition-smooth);
}

.step-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-glass);
}

.step-badge {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-red));
  color: #fff;
  font-weight: 800;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.2);
}

.step-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Table combinations */
.table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  margin-top: 30px;
}

.payout-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.payout-table th {
  background: rgba(15, 23, 42, 0.9);
  padding: 16px 20px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-gold);
  border-bottom: 2px solid var(--border-glass);
}

.payout-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.95rem;
}

.payout-table tbody tr {
  transition: var(--transition-smooth);
}

.payout-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.payout-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.01);
}

.payout-table tbody tr:nth-child(even):hover {
  background: rgba(255, 255, 255, 0.03);
}

.text-bold {
  font-weight: 600;
}

.text-gold {
  color: var(--accent-gold);
  font-weight: 700;
}

.badge-bonus {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Double Up Risk game section */
.risk-game-section {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-top: 40px;
}

.risk-desc {
  flex: 1;
}

.risk-desc h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.risk-desc p {
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.risk-cards {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-shrink: 0;
}

.risk-card-demo {
  width: 80px;
  height: 120px;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  background: #1e293b;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.risk-card-demo.red {
  color: var(--accent-red);
  background: #fff;
  border-color: #fff;
}

.risk-card-demo.black {
  color: #0f172a;
  background: #fff;
  border-color: #fff;
}

.risk-card-demo.back {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  align-items: center;
  justify-content: center;
}

.risk-card-demo.back::after {
  content: '?';
  font-size: 2rem;
  font-weight: 900;
}

.card-suit {
  font-size: 1.25rem;
}

/* Accordion FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.01);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.15);
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  padding: 20px 24px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-family);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  position: relative;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background-color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.faq-icon::before {
  top: 11px;
  left: 4px;
  width: 16px;
  height: 2px;
}

.faq-icon::after {
  top: 4px;
  left: 11px;
  width: 2px;
  height: 16px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-item.active .faq-icon::before, .faq-item.active .faq-icon::after {
  background-color: var(--accent-gold);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-content {
  max-height: 1000px;
  padding-bottom: 20px;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

/* Footer Section */
.footer-seo {
  border-top: 1px solid var(--border-glass);
  padding: 40px 0;
  background: rgba(2, 6, 23, 0.9);
  color: var(--text-muted);
  text-align: center;
  font-size: 0.9rem;
}

.footer-logo {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 20px 0;
  list-style: none;
}

.footer-link-item {
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.footer-link-item:hover {
  color: var(--accent-gold);
}

.footer-copy {
  margin-top: 20px;
}

/* Responsive adjustment */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 1.05rem;
  }
  .glass-container {
    padding: 24px 16px;
  }
  .risk-game-section {
    flex-direction: column-reverse;
    text-align: center;
  }
  .nav-links {
    display: none; /* simple hidden links on mobile for landing purity, CTA remains */
  }
  .section-title {
    font-size: 1.6rem;
  }
}

/* Secondary outline button (used for cross-links between pages/sections) */
.btn-outline {
  display: inline-block;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 30px;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.btn-outline:hover {
  background: rgba(245, 158, 11, 0.1);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

/* Lead paragraph under a section title */
.section-lead {
  color: var(--text-secondary);
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

/* Row of links to game modes */
.mode-links {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 25px;
}

/* "New" marker next to a heading */
.badge-new {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(16, 185, 129, 0.3);
  vertical-align: middle;
}

/* Sticky header must not cover an anchored section */
[id] {
  scroll-margin-top: 90px;
}

/* Language selector styles */
.lang-selector {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-right: 15px;
}

.lang-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.02);
  transition: var(--transition-smooth);
}

.lang-link:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.lang-link.active {
  color: var(--accent-gold);
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.1);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.1);
}
