/* ==========================================================================
   JDomino — Premium Gold & Obsidian Design System (Taste & Genjutsu Engine)
   ========================================================================== */

:root {
  /* Surface & Background Palettes */
  --bg-base: #060709;
  --bg-deep: #030405;
  --bg-surface-1: rgba(14, 16, 22, 0.75);
  --bg-surface-2: rgba(20, 23, 31, 0.85);
  --bg-felt: radial-gradient(ellipse at center, #0f2c22 0%, #081712 65%, #040806 100%);
  --surface-1: #0e1016;
  --surface-2: #161922;

  /* Metallic Gold Palette (24K Specular Foil) */
  --gold-primary: #d4af37;
  --gold-light: #fff2a3;
  --gold-accent: #f5c518;
  --gold-dark: #8c6d1d;
  --gold-gradient: linear-gradient(135deg, #fff3a8 0%, #e0bc43 35%, #a68122 70%, #fae28b 100%);
  --gold-gradient-soft: linear-gradient(135deg, rgba(255, 243, 168, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
  --gold-glow: 0 0 24px rgba(212, 175, 55, 0.28);
  --gold-glow-intense: 0 0 45px rgba(245, 197, 24, 0.45);

  /* Typography Colors */
  --text-primary: #f5eed9;
  --text-secondary: #b8ab8b;
  --text-muted: #78705a;
  --text-highlight: #ffffff;

  /* Borders & Glassmorphism */
  --border-glass: rgba(212, 175, 55, 0.16);
  --border-gold-subtle: rgba(212, 175, 55, 0.28);
  --border-gold-bright: rgba(245, 197, 24, 0.65);
  --card-blur: blur(20px);

  /* Font Families */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Cinzel', 'Playfair Display', Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg-base);
  font-family: var(--font-sans);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg-base);
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Ambient Casino Lighting Auras */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(120px);
}

.glow-top {
  width: 700px;
  height: 500px;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(16, 52, 38, 0.45) 0%, rgba(212, 175, 55, 0.12) 50%, transparent 80%);
}

.glow-bottom {
  width: 900px;
  height: 600px;
  bottom: 0;
  right: -200px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, rgba(13, 36, 27, 0.25) 50%, transparent 80%);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: var(--card-blur);
  -webkit-backdrop-filter: var(--card-blur);
  background: rgba(6, 7, 9, 0.82);
  border-bottom: 1px solid var(--border-glass);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
  background: rgba(4, 5, 7, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
  transition: transform 0.3s ease;
}

.nav-logo:hover .nav-logo-img {
  transform: rotate(8deg) scale(1.08);
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--gold-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--gold-gradient);
  color: #060709;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-gold-subtle);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-accent);
}

.pulse-gold {
  box-shadow: 0 0 0 0 rgba(245, 197, 24, 0.7);
  animation: pulse-ring 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(245, 197, 24, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(245, 197, 24, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 197, 24, 0); }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.8vw, 4.2rem);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-bottom: 20px;
}

.gold-gradient-title {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: 0 0 35px rgba(212, 175, 55, 0.3);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-hero-gold {
  display: inline-block;
  position: relative;
  text-decoration: none;
  border-radius: 14px;
  background: var(--gold-gradient);
  padding: 2px;
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.35);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  overflow: hidden;
}

.btn-hero-gold:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 14px 40px rgba(212, 175, 55, 0.5);
}

.btn-gold-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px;
  background: #090a0d;
  border-radius: 12px;
  transition: background 0.25s ease;
}

.btn-hero-gold:hover .btn-gold-inner {
  background: rgba(9, 10, 13, 0.85);
}

.btn-icon {
  width: 28px;
  height: 28px;
  color: var(--gold-accent);
}

.btn-labels {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-main-label {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.btn-meta-label {
  font-size: 0.78rem;
  color: var(--gold-light);
  font-weight: 500;
}

.btn-hero-glass {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hero-glass:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--border-gold-subtle);
  transform: translateY(-2px);
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1.2;
}

.metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.metric-sep {
  width: 1px;
  height: 32px;
  background: var(--border-glass);
}

/* ==========================================================================
   Three.js 3D Canvas Stage Card
   ========================================================================== */
.hero-stage-wrapper {
  position: relative;
  width: 100%;
}

.canvas-card {
  position: relative;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-gold-subtle);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: var(--card-blur);
}

.stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(10, 11, 15, 0.6);
}

.stage-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.live-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.stage-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-stage-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-stage-action:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--border-gold-subtle);
  color: var(--gold-light);
}

.three-viewport {
  width: 100%;
  height: 440px;
  position: relative;
  background: var(--bg-felt);
  cursor: grab;
}

.three-viewport:active {
  cursor: grabbing;
}

.canvas-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.spinner-gold {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(212, 175, 55, 0.2);
  border-top-color: var(--gold-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.stage-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-glass);
  background: rgba(10, 11, 15, 0.6);
}

.stage-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hint-icon {
  width: 14px;
  height: 14px;
  color: var(--gold-accent);
}

/* ==========================================================================
   Interactive Chain Preview Section (Math & Rules Showcase)
   ========================================================================== */
.section-chain-preview {
  padding: 40px 0 80px;
}

.chain-showcase-box {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-gold-subtle);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  backdrop-filter: var(--card-blur);
}

.chain-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 32px;
}

.section-tag-gold {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-accent);
  display: inline-block;
  margin-bottom: 8px;
}

.chain-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.chain-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
}

.chain-board {
  background: var(--bg-felt);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 18px;
  padding: 36px 24px;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: inset 0 4px 30px rgba(0, 0, 0, 0.8);
  overflow-x: auto;
}

.chain-slots {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 2D Domino Tile Component */
.domino-tile-2d {
  display: flex;
  flex-direction: column;
  width: 54px;
  height: 104px;
  background: #0d0e12;
  border: 2px solid var(--border-gold-bright);
  border-radius: 8px;
  position: relative;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.7);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  user-select: none;
}

.domino-tile-2d.crosswise {
  transform: rotate(90deg);
  margin: 0 16px;
}

.domino-tile-2d:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.3);
}

.domino-tile-2d.crosswise:hover {
  transform: rotate(90deg) translateY(-4px) scale(1.05);
}

.tile-half {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  padding: 5px;
  align-items: center;
  justify-items: center;
}

.tile-divider-line {
  height: 2px;
  background: var(--gold-gradient);
  width: 100%;
  position: relative;
}

.tile-spinner-pin {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 6px var(--gold-accent);
}

.pip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-accent);
  box-shadow: 0 0 4px rgba(245, 197, 24, 0.6);
}

.chain-hand-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hand-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.hand-tiles {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hand-tile-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.chain-feedback {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-light);
  min-height: 24px;
}

/* ==========================================================================
   Game Modes Section (Asymmetric Bento Grid)
   ========================================================================== */
.section-modes {
  padding: 80px 0;
}

.section-heading {
  margin-bottom: 56px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 12px;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.modes-bento-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 24px;
}

.bento-card {
  position: relative;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  backdrop-filter: var(--card-blur);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold-subtle);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.bento-featured {
  border-color: rgba(212, 175, 55, 0.35);
  background: linear-gradient(180deg, rgba(24, 27, 36, 0.9) 0%, rgba(14, 16, 22, 0.9) 100%);
}

.bento-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--gold-gradient);
  color: #060709;
}

.bento-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.bento-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-gold-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gold-icon {
  width: 24px;
  height: 24px;
  color: var(--gold-accent);
}

.bento-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
}

.bento-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.bento-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
  flex-grow: 1;
}

.bento-spec-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--border-glass);
  margin-bottom: 28px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.spec-name {
  color: var(--text-muted);
}

.spec-val {
  color: var(--text-primary);
  font-weight: 600;
}

.btn-card-gold {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--gold-gradient);
  color: #060709;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-card-gold:hover {
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}

.btn-card-outline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-card-outline:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--border-gold-subtle);
  color: var(--gold-light);
}

/* ==========================================================================
   Technical Grid
   ========================================================================== */
.section-tech {
  padding: 80px 0;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tech-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 32px 24px;
  backdrop-filter: var(--card-blur);
  transition: all 0.3s ease;
}

.tech-card:hover {
  border-color: var(--border-gold-subtle);
  transform: translateY(-4px);
  background: rgba(18, 21, 29, 0.9);
}

.tech-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-accent);
  margin-bottom: 20px;
}

.tech-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.tech-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Rules Section
   ========================================================================== */
.section-rules {
  padding: 80px 0;
}

.rules-card-glass {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-gold-subtle);
  border-radius: 24px;
  padding: 48px 40px;
  backdrop-filter: var(--card-blur);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

.rules-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-box {
  display: flex;
  flex-direction: column;
}

.step-number-gold {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 900;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 16px;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.section-faq {
  padding: 80px 0;
}

.faq-accordion {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-item[open] {
  border-color: var(--border-gold-subtle);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-arrow {
  width: 18px;
  height: 18px;
  color: var(--gold-accent);
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   CTA Finale Banner
   ========================================================================== */
.section-cta {
  padding: 60px 0 100px;
}

.cta-banner-gold {
  position: relative;
  background: radial-gradient(circle at 50% 50%, rgba(20, 24, 34, 0.95) 0%, rgba(10, 11, 15, 0.98) 100%);
  border: 1px solid var(--border-gold-bright);
  border-radius: 28px;
  padding: 64px 40px;
  text-align: center;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7), var(--gold-glow);
  overflow: hidden;
}

.cta-banner-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 16px;
}

.cta-banner-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 36px;
}

.cta-banner-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn-cta-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--gold-gradient);
  color: #060709;
  font-weight: 800;
  font-size: 1.05rem;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-cta-gold:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(212, 175, 55, 0.6);
}

.btn-cta-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 14px;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.btn-cta-outline:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--border-gold-subtle);
  color: var(--gold-light);
  transform: translateY(-2px);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-glass);
  background: #040507;
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 360px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo-img {
  width: 32px;
  height: 32px;
}

.footer-logo-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  gap: 60px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--gold-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .modes-bento-grid {
    grid-template-columns: 1fr;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 69px;
    left: 0;
    width: 100%;
    background: rgba(6, 7, 9, 0.98);
    backdrop-filter: var(--card-blur);
    border-bottom: 1px solid var(--border-glass);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hero-section {
    padding: 100px 0 50px;
  }

  .three-viewport {
    height: 340px;
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .chain-showcase-box {
    padding: 24px 16px;
  }

  .rules-card-glass {
    padding: 32px 20px;
  }

  .cta-banner-gold {
    padding: 40px 20px;
  }
}
