:root{
  --gold: #f6c74a;
  --gold-bright: #ffe8a3;
  --gold-deep: #b9862a;
  --bg-black: #05030a;
  --panel-line: rgba(246, 199, 74, 0.35);
  --panel-bg: rgba(30, 20, 6, 0.35);
  --text-dim: #d9c9a8;
}

*{ box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
  background: var(--bg-black);
  color: #f4ead0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

.bg-overlay{
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255, 200, 80, 0.14) 0%, rgba(120, 80, 10, 0.06) 30%, rgba(5,3,10,0) 60%),
    linear-gradient(180deg, rgba(5,3,10,1) 0%, rgba(9,6,4,0.97) 55%, rgba(14,9,4,1) 100%);
}

#stars{
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.page{
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ---------- Hero / figure ---------- */

.hero{ width: 100%; display: flex; flex-direction: column; align-items: center; }

.hero-video-wrap{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: -70px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}

.hero-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
}

.logo-wrap{
  position: relative;
  display: inline-block;
  margin: 6px 0 14px;
  max-width: 92vw;
}

.spark{
  position: absolute;
  color: #fff8dc;
  text-shadow: 0 0 6px #fff3c4, 0 0 14px var(--gold), 0 0 22px var(--gold);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.2) rotate(0deg);
  animation: spark-pop 2.8s ease-in-out infinite;
}
.sp1{ top: 6%;   left: 4%;   font-size: 16px; animation-delay: 0s;    }
.sp2{ top: 62%;  left: -2%;  font-size: 12px; animation-delay: 0.9s;  }
.sp3{ top: 12%;  left: 30%;  font-size: 10px; animation-delay: 1.7s;  }
.sp4{ top: -4%;  left: 58%;  font-size: 14px; animation-delay: 0.4s;  }
.sp5{ top: 30%;  right: 2%;  font-size: 18px; animation-delay: 1.3s;  }
.sp6{ top: 70%;  right: 10%; font-size: 11px; animation-delay: 2.1s;  }
.sp7{ top: 44%;  left: 46%;  font-size: 9px;  animation-delay: 2.5s;  }
.sp8{ bottom: -6%; left: 18%; font-size: 13px; animation-delay: 1.0s; }

@keyframes spark-pop{
  0%, 100%{ opacity: 0; transform: scale(0.2) rotate(0deg); }
  8%{ opacity: 1; transform: scale(1.15) rotate(20deg); }
  18%{ opacity: 0; transform: scale(0.3) rotate(40deg); }
}

.logo-img{
  display: block;
  width: clamp(200px, 46vw, 400px);
  height: auto;
  filter: drop-shadow(0 0 20px rgba(246, 199, 74, 0.55)) drop-shadow(0 0 46px rgba(246, 199, 74, 0.3));
  animation: logo-pulse 4s ease-in-out infinite;
}

@keyframes logo-pulse{
  0%, 100% { filter: drop-shadow(0 0 20px rgba(246, 199, 74, 0.5)) drop-shadow(0 0 44px rgba(246, 199, 74, 0.28)); }
  50% { filter: drop-shadow(0 0 30px rgba(255, 226, 138, 0.75)) drop-shadow(0 0 60px rgba(246, 199, 74, 0.4)); }
}

.tagline{
  font-size: clamp(18px, 4vw, 24px);
  color: #f4ead0;
  margin: 0 0 6px;
}
.tagline .accent{
  color: var(--gold-bright);
  font-weight: 700;
  text-shadow: 0 0 12px rgba(255, 216, 120, 0.6);
}

.subtagline{
  color: var(--text-dim);
  font-size: 14px;
  margin: 0 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.base-chip{ display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Links row ---------- */

.links{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  width: 100%;
  margin-bottom: 40px;
}

.btn{
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-line);
  color: #f4ead0;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 20px;
  border-radius: 14px;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 0 0 rgba(246, 199, 74, 0);
  font-family: inherit;
}
.btn:hover{
  background: rgba(246, 199, 74, 0.12);
  box-shadow: 0 0 24px rgba(246, 199, 74, 0.25);
  transform: translateY(-1px);
}
.btn svg{ color: var(--gold); flex-shrink: 0; }

.btn-icon-only{
  padding: 14px;
  aspect-ratio: 1 / 1;
  justify-content: center;
}

/* ---------- Dashboard ---------- */

.dashboard{
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid var(--panel-line);
  background: radial-gradient(ellipse at 50% 0%, rgba(246, 199, 74, 0.06), rgba(20, 14, 4, 0.5));
  box-shadow: 0 0 60px rgba(246, 199, 74, 0.08) inset;
  margin-bottom: 36px;
}

.stat{
  position: relative;
  border: 1px solid rgba(246, 199, 74, 0.3);
  border-radius: 16px;
  padding: 18px 16px 74px;
  text-align: left;
  background: rgba(10, 7, 3, 0.35);
  min-height: 118px;
  overflow: hidden;
}

.stat-label{
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.stat-value{
  font-size: clamp(16px, 3.6vw, 20px);
  font-weight: 700;
  color: var(--gold-bright);
  text-shadow: 0 0 14px rgba(255, 216, 120, 0.35);
}

.live-dots{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: clamp(16px, 3.6vw, 20px);
}
.live-dots span{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 8px rgba(255, 216, 120, 0.5);
  opacity: 0.25;
  animation: dot-blink 1.4s ease-in-out infinite;
}
.live-dots span:nth-child(2){ animation-delay: 0.2s; }
.live-dots span:nth-child(3){ animation-delay: 0.4s; }

@keyframes dot-blink{
  0%, 80%, 100% { opacity: 0.25; }
  40% { opacity: 1; }
}

.stat-icon{
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  width: 64px;
  height: 64px;
}
.stat-icon img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(240, 192, 74, 0.35));
}

/* ---------- Bottom glow beam ---------- */

.bottom-glow-wrap{
  position: relative;
  width: 100%;
  height: 240px;
  margin: -40px 0 0;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 35%, #000 80%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 35%, #000 80%, transparent 100%);
}

.bottom-glow{
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
}

/* ---------- Footer ---------- */

.footer{
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: space-around;
  gap: 20px;
  flex-wrap: wrap;
  text-align: center;
  padding-top: 10px;
}

.footer-col{ display: flex; flex-direction: column; align-items: center; gap: 4px; }

.footer-label{ font-size: 13px; color: var(--text-dim); }

.footer-brand{
  display: inline-flex;
  align-items: center;
  padding: 6px 2px;
}

.footer-logo{
  height: 32px;
  width: auto;
  display: block;
}

/* ---------- Toast ---------- */

.toast{
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(20, 14, 4, 0.95);
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 10;
  box-shadow: 0 0 24px rgba(246, 199, 74, 0.3);
}
.toast.show{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 640px){
  .dashboard{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px){
  .dashboard{ gap: 10px; padding: 16px; }
  .stat{ padding: 14px 12px 64px; }
}
