/* ===== TOKENS ===== */
:root {
  --void: #0A1930;
  --panel: #10233F;
  --panel-light: #16304F;
  --gold: #D9A94E;
  --blue: #3E7BFA;
  --emerald: #2BAE7E;
  --ivory: #F3EFE6;
  --muted: #92A0BC;
  --border: rgba(217,169,78,0.22);

  --font-display: 'Cinzel', serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --cut: 18px;
}

html[data-theme="light"] {
  --void: #F5F2EA;
  --panel: #FFFFFF;
  --panel-light: #EFEAF8;
  --gold: #A9760B;
  --blue: #2255CC;
  --emerald: #157A56;
  --ivory: #10233F;
  --muted: #5B6B8C;
  --border: rgba(169,118,11,0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--ivory);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.cut-shape {
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}

/* ===== BUTTONS ===== */
.btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
  display: inline-block;
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn-primary { background: var(--gold); color: #14100A; }
.btn-primary:hover { box-shadow: 0 0 24px rgba(217,169,78,0.5); transform: translateY(-2px); }

.btn-text { background: none; color: var(--muted); padding: 0.75rem 0; font-weight: 600; clip-path: none; }
.btn-text:hover { color: var(--blue); }

.btn-lg { padding: 1rem 2.1rem; font-size: 1.05rem; }
.btn-block { width: 100%; margin-top: 0.6rem; text-align: center; }

.btn-cab {
  display: block;
  width: 100%;
  margin-top: 1.3rem;
  background: transparent;
  color: var(--tone);
  border: 1px solid var(--tone);
  clip-path: none;
  border-radius: 4px;
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
  text-align: center;
}
.btn-cab:hover { background: var(--tone); color: var(--void); }

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel-light);
  color: var(--gold);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.theme-toggle:hover { border-color: var(--blue); }
.token-face { display: inline-block; }
.theme-toggle.flipping .token-face { animation: token-flip 0.5s ease; }
@keyframes token-flip {
  0% { transform: rotateY(0deg); } 50% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); }
}

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--void) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1440px; margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 1.5rem;
}
.logo { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 0.5px; margin-right: auto; }
.logo span { color: var(--gold); }
.nav-links { display: flex; gap: 1.6rem; margin-right: auto; }
.nav-links a { color: var(--muted); font-size: 0.9rem; font-weight: 600; transition: color 0.15s; }
.nav-links a:hover { color: var(--ivory); }
.back-link { color: var(--muted); font-size: 0.9rem; font-weight: 600; margin-right: auto; }
.back-link:hover { color: var(--ivory); }

.burger { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { width: 22px; height: 2px; background: var(--ivory); border-radius: 2px; }

/* ===== HERO ===== */
.hero { position: relative; padding: 4rem 1.5rem 3rem; }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 10% 15%, rgba(62,123,250,0.16), transparent 60%),
    radial-gradient(ellipse 45% 40% at 90% 25%, rgba(217,169,78,0.12), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem;
  align-items: center;
}
.eyebrow { font-family: var(--font-mono); color: var(--gold); font-size: 0.8rem; letter-spacing: 1px; margin-bottom: 1.1rem; }
.hero-title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.hero-title .glow { color: var(--blue); text-shadow: 0 0 18px rgba(62,123,250,0.55); }
.hero-sub { max-width: 520px; margin-top: 1.4rem; color: var(--muted); font-size: 1.02rem; }
.hero-ctas { margin-top: 2rem; display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.hero-trust { margin-top: 2rem; display: flex; gap: 1.4rem; flex-wrap: wrap; font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }

.hero-gem { position: relative; display: flex; align-items: center; justify-content: center; }
.gem-svg { width: 100%; max-width: 400px; filter: drop-shadow(0 20px 40px rgba(62,123,250,0.25)); }
.gem-shimmer {
  position: absolute; inset: 8%;
  clip-path: polygon(50% 5%, 81.8% 18.18%, 95% 50%, 81.8% 81.8%, 50% 95%, 18.18% 81.8%, 5% 50%, 18.18% 18.18%);
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,0.35) 45%, transparent 60%);
  background-size: 300% 300%;
  animation: gem-shine 5s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: overlay;
}
@keyframes gem-shine {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}

/* ===== PARTNER BANKS MARQUEE ===== */
.partners { padding: 2.5rem 1.5rem; max-width: 1440px; margin: 0 auto; }
.partners-label { text-align: center; color: var(--muted); font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.5px; margin-bottom: 1.4rem; }
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.marquee-track { display: flex; width: max-content; animation: marquee-scroll 28s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ivory);
  background: var(--panel-light);
  border: 1px solid var(--border);
  padding: 0.5rem 1.3rem;
  margin: 0 0.6rem;
  border-radius: 4px;
}

/* ===== SECTION SHARED ===== */
main section { padding: 4.5rem 1rem; max-width: 1440px; margin: 0 auto; }
.section-title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); text-align: center; }
.section-title.left { text-align: left; }
.section-sub { text-align: center; color: var(--muted); margin-top: 0.8rem; font-size: 1rem; }
.section-sub.left { text-align: left; }

/* ===== HOW / STUBS ===== */
.stub-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.8rem; margin-top: 3rem; }
.stub {
  position: relative;
  background: var(--panel);
  padding: 2rem 1.5rem 1.8rem;
  border: 1px solid var(--border);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.stub-stamp {
  display: inline-block;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.72rem; letter-spacing: 1px;
  color: var(--void); background: var(--gold);
  padding: 0.3rem 0.7rem; margin-bottom: 1rem;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.stub h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.1rem; margin-bottom: 0.6rem; }
.stub p { color: var(--muted); font-size: 0.92rem; }
.how-cta { display: flex; justify-content: center; margin-top: 2.5rem; }

/* ===== GAMES / CABINETS ===== */
.cab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 3rem; }
.cab {
  background: var(--panel);
  padding: 1.7rem;
  border: 1px solid var(--border);
  border-top: 3px solid var(--tone);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cab:hover { transform: translateY(-6px); box-shadow: 0 14px 32px rgba(0,0,0,0.3); }
.cab-tag { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 1px; color: var(--tone); }
.cab h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.15rem; margin: 0.6rem 0 0.5rem; }
.cab p { color: var(--muted); font-size: 0.9rem; }
.cab-payout {
  display: inline-block; margin-top: 1rem;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--ivory);
  background: rgba(255,255,255,0.06); padding: 0.3rem 0.7rem; border-radius: 4px;
}

/* ===== REWARD CALCULATOR ===== */
.calc-card {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  overflow: hidden;
}
.calc-copy { padding: 2.6rem; }
.calc-label { display: block; font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); margin: 1.6rem 0 0.6rem; }
.calc-slider { width: 100%; accent-color: var(--gold); height: 6px; }
.calc-select {
  width: 100%; padding: 0.65rem 0.8rem; background: var(--void); color: var(--ivory);
  border: 1px solid var(--border); border-radius: 4px; font-family: var(--font-body); font-size: 0.95rem;
}
.calc-result {
  background: var(--panel-light);
  padding: 2.6rem;
  display: flex; flex-direction: column; justify-content: center;
  border-left: 1px solid var(--border);
}
.calc-result-label { font-family: var(--font-mono); color: var(--muted); font-size: 0.85rem; }
.calc-result-num {
  font-family: var(--font-mono); font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--gold); margin: 0.5rem 0 1rem;
}
.calc-result-num span:first-child { font-size: 0.55em; margin-right: 0.3rem; color: var(--muted); }
.calc-result-note { color: var(--muted); font-size: 0.82rem; margin-bottom: 1.4rem; }

/* ===== STATS ===== */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center;
  background: var(--panel); border: 1px solid var(--border);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  padding: 3rem 1.5rem;
}
.stat-num { display: block; font-family: var(--font-mono); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--gold); }
.stat-label { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 0.4rem; }
.stat-cta { grid-column: 1 / -1; display: flex; justify-content: center; padding-top: 1.5rem; margin-top: 0.5rem; border-top: 1px dashed var(--border); }

/* ===== REVIEWS ===== */
.claim-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; margin-top: 3rem; }
.claim-ticket {
  background: var(--panel);
  padding: 1.8rem;
  border: 1px solid var(--border);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.claim-stars { color: var(--gold); font-size: 0.95rem; letter-spacing: 2px; margin-bottom: 0.7rem; }
.claim-quote { font-size: 0.96rem; color: var(--ivory); }
.claim-name { margin-top: 1rem; font-family: var(--font-mono); font-size: 0.8rem; color: var(--gold); }
.claim-name span { color: var(--muted); }

/* ===== FAQ / Q&A ===== */
.faq-list { margin-top: 3rem; display: flex; flex-direction: column; gap: 0.9rem; }
.faq-item { background: var(--panel); border: 1px solid var(--border); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; color: var(--ivory);
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 1.2rem 1.5rem; display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
}
.faq-icon { color: var(--gold); font-size: 1.3rem; transition: transform 0.25s ease; flex: 0 0 auto; margin-left: 1rem; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding: 0 1.5rem 1.3rem; color: var(--muted); font-size: 0.94rem; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 2rem; margin-top: 3rem; }
.contact-form {
  background: var(--panel); border: 1px solid var(--border); padding: 2rem;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.contact-form label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 1.2rem; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; margin-top: 0.4rem; padding: 0.65rem 0.8rem;
  border: 1px solid var(--border); background: var(--void); color: var(--ivory);
  font-family: var(--font-body); font-size: 0.95rem; border-radius: 4px; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--blue); outline: none; }
.contact-success { display: none; margin-top: 1rem; color: var(--emerald); font-size: 0.9rem; font-weight: 600; }
.contact-success.open { display: block; }
.contact-details {
  background: var(--panel-light); border: 1px solid var(--border); padding: 2rem;
  display: flex; flex-direction: column; gap: 1.4rem; justify-content: center;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.contact-item { display: flex; flex-direction: column; gap: 0.3rem; }
.contact-label { font-family: var(--font-mono); color: var(--gold); font-size: 0.75rem; letter-spacing: 1px; }
.contact-value { color: var(--ivory); font-size: 0.95rem; }

/* ===== FINAL CTA ===== */
.final-cta { text-align: center; padding: 4.5rem 1.5rem; max-width: none; }
.final-cta h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 0.8rem; }
.final-cta p { color: var(--muted); margin-bottom: 2rem; }

/* ===== FOOTER ===== */
.site-footer { border-top: 1px solid var(--border); padding: 3rem 1.5rem 2rem; }
.footer-inner { max-width: 1440px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.footer-tagline { color: var(--muted); font-size: 0.88rem; margin-top: 0.8rem; max-width: 260px; }
.footer-links { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-links a { color: var(--muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--blue); }
.footer-contact p { color: var(--muted); font-size: 0.88rem; margin-bottom: 0.4rem; }
.fine-print { color: var(--muted); opacity: 0.75; font-size: 0.76rem; max-width: 700px; margin: 1.6rem auto 0.6rem; text-align: center; }
.fine-print a { color: var(--gold); text-decoration: underline; opacity: 1; }
.copyright { text-align: center; color: var(--muted); opacity: 0.6; font-size: 0.76rem; }

/* ===== REGISTER PAGE ===== */
.register-page { min-height: calc(100vh - 130px); display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem; }
.register-card {
  max-width: 420px; width: 100%; background: var(--panel); border: 1px solid var(--border);
  padding: 2.6rem; text-align: center;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.register-gem { display: flex; justify-content: center; margin-bottom: 1rem; }
.gem-svg-small { width: 90px; height: 90px; filter: drop-shadow(0 10px 20px rgba(62,123,250,0.3)); }
.register-card h1 { font-size: 1.7rem; margin-bottom: 0.6rem; }
.register-sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.8rem; }
.register-card form label { display: block; text-align: left; font-size: 0.85rem; color: var(--muted); margin-bottom: 1.2rem; }
.register-card form input {
  display: block; width: 100%; margin-top: 0.4rem; padding: 0.7rem 0.9rem;
  border: 1px solid var(--border); background: var(--void); color: var(--ivory);
  font-family: var(--font-body); font-size: 1rem; border-radius: 4px;
}
.register-card form input:focus { border-color: var(--blue); outline: none; }
.register-note { color: var(--muted); font-size: 0.82rem; margin-top: 1.4rem; }

/* ===== LEGAL PAGES (Privacy / Terms) ===== */
.legal-page { max-width: 780px; margin: 0 auto; padding: 3.5rem 1.5rem 4rem; }
.legal-card { background: var(--panel); border: 1px solid var(--border); padding: 2.6rem;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.legal-card h1 { font-size: 1.9rem; margin-bottom: 0.4rem; }
.legal-updated { color: var(--muted); font-family: var(--font-mono); font-size: 0.8rem; margin-bottom: 2rem; }
.legal-card h2 { font-family: var(--font-body); font-weight: 700; font-size: 1.15rem; margin: 2rem 0 0.8rem; }
.legal-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.4rem; }
.legal-card ul { color: var(--muted); font-size: 0.95rem; padding-left: 1.2rem; margin: 0.5rem 0; }
.legal-card li { margin-bottom: 0.4rem; }
.legal-card strong { color: var(--ivory); }
.legal-note { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px dashed var(--border); font-size: 0.82rem; font-style: italic; }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-gem { order: -1; max-width: 320px; margin: 0 auto; }
  .stub-row { grid-template-columns: repeat(2, 1fr); }
  .calc-card { grid-template-columns: 1fr; }
  .calc-result { border-left: none; border-top: 1px solid var(--border); }
  .footer-top { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .stub-row, .cab-grid, .claim-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
