/* ============================================
   ASTRONAUT CRASH SLOT — Main Stylesheet
   astronaut-crash-slot.com
   ============================================ */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --space-dark: #04061a;
  --space-blue: #0a0e2e;
  --accent-purple: #7b61ff;
  --accent-cyan: #00d4aa;
  --accent-gold: #ffd700;
  --accent-red: #ff4d6d;
  --accent-green: #00e676;
  --text-primary: #f0f2ff;
  --text-muted: #8b92c4;
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(123, 97, 255, 0.2);
  --radius: 16px;
  --radius-sm: 8px;
  --font-main: 'Outfit', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --shadow-glow: 0 0 30px rgba(123, 97, 255, 0.3);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--space-dark);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: -60px;
  left: 0;
  background: var(--accent-purple);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 9999;
  font-weight: 600;
  transition: top 0.2s;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 6, 26, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.logo-icon {
  font-size: 1.6rem;
}

.logo-text strong {
  color: var(--accent-purple);
}

.main-nav {
  display: flex;
  gap: 8px;
}

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.main-nav a:hover {
  color: var(--text-primary);
  background: var(--card-bg);
}

/* ---------- CTA Button ---------- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--accent-purple), #5a3fff);
  color: #fff;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(123, 97, 255, 0.5);
}

.cta-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.cta-outline {
  background: transparent;
  border: 2px solid var(--accent-purple);
  color: var(--accent-purple);
}

.cta-outline:hover {
  background: var(--accent-purple);
  color: #fff;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background: radial-gradient(ellipse at 30% 50%, rgba(123, 97, 255, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(0, 212, 170, 0.1) 0%, transparent 50%),
    var(--space-blue);
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Stars */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: twinkle 3s infinite alternate;
}

.star-1 {
  width: 3px;
  height: 3px;
  top: 15%;
  left: 10%;
  animation-delay: 0s;
}

.star-2 {
  width: 2px;
  height: 2px;
  top: 40%;
  left: 80%;
  animation-delay: 0.5s;
}

.star-3 {
  width: 4px;
  height: 4px;
  top: 70%;
  left: 25%;
  animation-delay: 1s;
}

.star-4 {
  width: 2px;
  height: 2px;
  top: 25%;
  left: 60%;
  animation-delay: 1.5s;
}

.star-5 {
  width: 3px;
  height: 3px;
  top: 80%;
  left: 75%;
  animation-delay: 2s;
}

@keyframes twinkle {
  0% {
    opacity: 0.2;
  }

  100% {
    opacity: 1;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding-top: 80px;
  padding-bottom: 60px;
  flex: 1;
}

.badge-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.badge {
  background: rgba(123, 97, 255, 0.15);
  border: 1px solid rgba(123, 97, 255, 0.4);
  color: var(--accent-purple);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.badge-gold {
  background: rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.4);
  color: var(--accent-gold);
}

.badge-green {
  background: rgba(0, 230, 118, 0.1);
  border-color: rgba(0, 230, 118, 0.4);
  color: var(--accent-green);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 30%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-img-wrap img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-glow);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

/* Ticker */
.ticker-bar {
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid var(--card-border);
  padding: 12px 0;
  overflow: hidden;
}

.ticker-inner {
  display: inline-flex;
  gap: 40px;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.tick-item {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tick-item.win {
  color: var(--accent-cyan);
}

/* ---------- Sections ---------- */
.section {
  padding: 80px 0;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 48px;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

/* ---------- Metrics Grid ---------- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.metric-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.metric-val {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent-purple);
  font-family: var(--font-mono);
}

.metric-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 4px;
}

.metric-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  margin-bottom: 48px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

caption {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-cyan);
  padding: 14px 20px;
  text-align: left;
  background: rgba(0, 212, 170, 0.05);
  border-bottom: 1px solid var(--card-border);
  caption-side: top;
}

thead {
  background: rgba(123, 97, 255, 0.1);
}

th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-purple);
  border-bottom: 1px solid var(--card-border);
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.row-danger td {
  background: rgba(255, 77, 109, 0.05);
}

.row-good td {
  background: rgba(0, 212, 170, 0.05);
}

.row-epic td {
  background: rgba(255, 215, 0, 0.05);
}

.highlight-row td {
  background: rgba(123, 97, 255, 0.1);
  font-weight: 600;
}

.highlight-cell {
  color: var(--accent-cyan);
  font-weight: 700;
}

.ev-pos {
  color: var(--accent-green);
  font-weight: 700;
}

.ev-neutral {
  color: var(--accent-gold);
}

/* Risk badges */
.risk {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}

.risk.high {
  background: rgba(255, 77, 109, 0.15);
  color: var(--accent-red);
}

.risk.medium {
  background: rgba(255, 215, 0, 0.15);
  color: var(--accent-gold);
}

.risk.low {
  background: rgba(0, 230, 118, 0.15);
  color: var(--accent-green);
}

.risk.very-low {
  background: rgba(0, 212, 170, 0.15);
  color: var(--accent-cyan);
}

.risk.rare {
  background: rgba(123, 97, 255, 0.15);
  color: var(--accent-purple);
}

.risk.epic {
  background: rgba(255, 215, 0, 0.2);
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
}

/* ---------- Charts ---------- */
.charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

.chart-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
}

.chart-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 16px;
  font-family: var(--font-mono);
}

/* Bar chart */
.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.bar-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bar-label {
  width: 36px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-align: right;
}

.bar-track {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50px;
  height: 28px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  min-width: 40px;
  transition: width 0.8s ease;
}

.bar-fill.bar-mid {
  background: linear-gradient(90deg, #ff8c00, var(--accent-gold));
}

.bar-fill.bar-low {
  background: linear-gradient(90deg, var(--accent-red), #ff8c00);
}

/* Donut */
.donut-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Stats img row */
.stats-img-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.stats-img-row img {
  border-radius: var(--radius);
  object-fit: cover;
  max-width: 100%;
}

/* ---------- DEMO GAME ---------- */
.demo-section {
  background: linear-gradient(180deg, var(--space-dark) 0%, var(--space-blue) 100%);
}

.demo-wrapper {
  max-width: 860px;
  margin: 0 auto;
}

.demo-game {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}

.demo-screen {
  position: relative;
  height: 300px;
  background: radial-gradient(ellipse at center, #10154a 0%, #04061a 100%);
  overflow: hidden;
}

.space-bg {
  position: absolute;
  inset: 0;
}

.demo-star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: twinkle 2s infinite alternate;
}

.ds-1 {
  width: 2px;
  height: 2px;
  top: 20%;
  left: 15%;
}

.ds-2 {
  width: 3px;
  height: 3px;
  top: 60%;
  left: 75%;
  animation-delay: 0.4s;
}

.ds-3 {
  width: 2px;
  height: 2px;
  top: 35%;
  left: 55%;
  animation-delay: 0.8s;
}

.ds-4 {
  width: 2px;
  height: 2px;
  top: 80%;
  left: 30%;
  animation-delay: 1.2s;
}

.ds-5 {
  width: 3px;
  height: 3px;
  top: 10%;
  left: 85%;
  animation-delay: 1.6s;
}

.multiplier-display {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 30px var(--accent-purple);
  z-index: 2;
  transition: text-shadow 0.1s;
}

.rocket-wrap {
  position: absolute;
  bottom: 20px;
  left: 10%;
  font-size: 2.5rem;
  z-index: 3;
  transition: bottom 0.1s, left 0.1s;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.rocket-emoji {
  transition: transform 0.2s;
}

.rocket-wrap.flying .rocket-emoji {
  animation: rocketShake 0.3s infinite alternate;
}

.rocket-wrap.crashed .rocket-emoji {
  filter: none;
}

@keyframes rocketShake {
  0% {
    transform: rotate(-5deg);
  }

  100% {
    transform: rotate(5deg);
  }
}

.rocket-trail {
  position: absolute;
  bottom: -5px;
  left: 10px;
  width: 8px;
  height: 0;
  background: linear-gradient(to top, transparent, var(--accent-purple));
  border-radius: 4px;
  transition: height 0.1s;
}

.rocket-wrap.flying .rocket-trail {
  height: 40px;
}

.crash-msg,
.cashout-msg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.8rem;
  font-weight: 900;
  z-index: 5;
  text-align: center;
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.crash-msg {
  color: var(--accent-red);
}

.cashout-msg {
  color: var(--accent-green);
  font-size: 1.3rem;
}

@keyframes popIn {
  0% {
    transform: translate(-50%, -50%) scale(0);
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

.demo-controls {
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--card-border);
}

.demo-balance {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.balance-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-gold);
  font-size: 1.1rem;
}

.demo-bet-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.demo-bet-row input {
  width: 90px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.demo-btns {
  display: flex;
  gap: 10px;
}

.demo-btn {
  padding: 10px 22px;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-main);
}

.btn-start {
  background: linear-gradient(135deg, var(--accent-purple), #5a3fff);
  color: #fff;
}

.btn-start:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(123, 97, 255, 0.5);
}

.btn-cashout {
  background: linear-gradient(135deg, var(--accent-green), #00b050);
  color: #000;
}

.btn-cashout:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 230, 118, 0.4);
}

.demo-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.demo-history {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: auto;
}

.hist-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.hist-item {
  padding: 3px 10px;
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
}

.hist-win {
  background: rgba(0, 230, 118, 0.15);
  color: var(--accent-green);
}

.hist-lose {
  background: rgba(255, 77, 109, 0.15);
  color: var(--accent-red);
}

.demo-disclaimer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 16px;
  padding: 12px;
  background: rgba(255, 215, 0, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: var(--radius-sm);
}

.demo-disclaimer a {
  color: var(--accent-cyan);
  text-decoration: underline;
}

/* ---------- Strategy ---------- */
.strategy-section {
  background: var(--space-blue);
}

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.strategy-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.strategy-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.strategy-featured {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 1px var(--accent-purple), var(--shadow-glow);
  background: rgba(123, 97, 255, 0.06);
}

.strategy-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.strategy-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--card-border);
}

.strategy-stats span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ---------- SEO Content ---------- */
.seo-content {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 32px;
}

.seo-article h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--accent-cyan);
}

.seo-article p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.seo-article a {
  color: var(--accent-purple);
  text-decoration: underline;
}

/* ---------- FAQ ---------- */
.faq-section {
  background: var(--space-dark);
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

/* button.faq-q — reset + style */
button.faq-q,
div.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-main);
  user-select: none;
  transition: background 0.2s;
  background: transparent;
  border: none;
  color: var(--text-primary);
  text-align: left;
}

button.faq-q:hover,
div.faq-q:hover {
  background: rgba(123, 97, 255, 0.08);
}

button.faq-q:focus-visible {
  outline: 2px solid var(--accent-purple);
  outline-offset: -2px;
}

.faq-arrow {
  font-size: 0.8rem;
  color: var(--accent-purple);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

.faq-a {
  display: none;
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.faq-item.active .faq-a {
  display: block;
}

/* Footer disclaimer links */
.footer-disclaimer a {
  color: var(--accent-cyan);
  text-decoration: underline;
}

/* ---------- Locale ---------- */
.locale-section {
  background: var(--space-blue);
}

.locale-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.locale-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px 28px;
  text-decoration: none;
  color: var(--text-muted);
  transition: all 0.2s;
  flex: 1;
  min-width: 120px;
}

.locale-card:hover {
  border-color: var(--accent-purple);
  color: var(--text-primary);
}

.locale-card.active {
  border-color: var(--accent-cyan);
  background: rgba(0, 212, 170, 0.07);
}

.locale-flag {
  font-size: 2rem;
}

.locale-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.locale-lang {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, rgba(123, 97, 255, 0.15) 0%, rgba(0, 212, 170, 0.1) 100%);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  padding: 60px 0;
}

.cta-banner-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-banner h2 {
  margin-bottom: 8px;
}

.cta-banner p {
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid var(--card-border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 700;
}

.footer-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--text-primary);
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }

  .hero-img-wrap {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }

  .charts-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .main-nav {
    display: none;
  }

  .demo-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .demo-history {
    margin-left: 0;
  }

  .cta-banner-inner {
    flex-direction: column;
    text-align: center;
  }

  .locale-grid {
    gap: 10px;
  }

  .locale-card {
    padding: 14px 18px;
  }
}

/* ═══════════════════════════════════════════
   LANG SWITCHER
═══════════════════════════════════════════ */
.lang-switcher {
  position: relative;
  z-index: 200;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  font: 600 14px 'Outfit', sans-serif;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background .2s;
  white-space: nowrap;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.lang-arrow {
  font-size: 11px;
  opacity: .7;
  transition: transform .2s;
}

.lang-btn[aria-expanded="true"] .lang-arrow {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #12163a;
  border: 1px solid rgba(123, 97, 255, 0.35);
  border-radius: 10px;
  min-width: 190px;
  padding: 6px 0;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
}

.lang-menu.open {
  display: flex;
}

.lang-opt {
  padding: 9px 16px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font: 400 14px 'Outfit', sans-serif;
  transition: background .15s, color .15s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-opt:hover {
  background: rgba(123, 97, 255, 0.2);
  color: #fff;
}

.lang-opt.active {
  color: #7b61ff;
  font-weight: 600;
}

/* ═══════════════════════════════════════════
   DEMO CANVAS SCREEN
═══════════════════════════════════════════ */
.demo-screen {
  position: relative;
  height: auto !important;
  /* let canvas set height */
  background: #080d2a;
  overflow: hidden;
}

#crashCanvas {
  display: block;
  width: 100%;
  height: auto;
}

/* Multiplier overlay — centred on canvas */
.demo-screen .multiplier-display {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font: 900 56px 'Space Mono', monospace;
  color: #fff;
  text-shadow: 0 0 30px rgba(123, 97, 255, .8), 0 0 8px rgba(0, 212, 170, .6);
  pointer-events: none;
  z-index: 10;
  white-space: nowrap;
  transition: color .15s;
}

/* Crash overlay */
.crash-overlay,
.cashout-overlay,
.waiting-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 20;
  gap: 6px;
}

.crash-overlay {
  background: rgba(255, 30, 50, 0.18);
  backdrop-filter: blur(3px);
}

.crash-icon {
  font-size: 52px;
  animation: popIn .3s ease;
}

.crash-text {
  font: 800 32px 'Space Mono', monospace;
  color: #ff4d6d;
  letter-spacing: 2px;
}

.crash-sub {
  font: 400 18px 'Outfit', sans-serif;
  color: rgba(255, 255, 255, .7);
}

/* Cashout overlay */
.cashout-overlay {
  background: rgba(0, 212, 130, 0.15);
  backdrop-filter: blur(3px);
}

.cashout-icon {
  font-size: 52px;
  animation: popIn .3s ease;
}

.cashout-text {
  font: 800 22px 'Outfit', sans-serif;
  color: #00d4aa;
  text-align: center;
  padding: 0 20px;
}

/* Waiting overlay */
.waiting-overlay {
  background: rgba(8, 13, 42, 0.7);
  flex-direction: row;
  gap: 12px;
  color: rgba(255, 255, 255, .45);
  font: 400 15px 'Outfit', sans-serif;
}

.waiting-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7b61ff;
  animation: pulse 1.2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .4;
    transform: scale(.7);
  }
}

@keyframes popIn {
  0% {
    transform: scale(.5);
    opacity: 0;
  }

  80% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}