/*
Theme Name: Matrix Brand
Description: Brand-clone theme for the matrix — dark casino skin, gold CTA,
product grid, promo strip. Production template per case-study dissection.
Version: 1.0
*/

:root {
  --bg: #07130e;
  --bg2: #0a1c14;
  --card: #0f2419;
  --card2: #143021;
  --gold: #f0c75e;
  --gold2: #d9a83c;
  --red: #ff6b6b;
  --green: #34d399;
  --text: #eaf4ee;
  --muted: #9db8a8;
  --line: rgba(240, 199, 94, 0.20);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(1200px 500px at 50% -100px, #1a2247 0%, var(--bg) 60%);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; }
img { max-width: 100%; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 30, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.hdr-inner { display: flex; align-items: center; gap: 24px; padding: 14px 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 24px; letter-spacing: 0.5px; }
.logo .n { color: var(--gold); }
.logo .b { color: var(--red); }
.main-nav ul { display: flex; gap: 6px; list-style: none; }
.main-nav a {
  color: var(--text); padding: 9px 14px; border-radius: 8px; font-weight: 600; font-size: 15px;
}
.main-nav a:hover { background: var(--card); color: var(--gold); }
.hdr-cta { margin-left: auto; display: flex; gap: 10px; }

.btn {
  display: inline-block; padding: 11px 22px; border-radius: 10px;
  font-weight: 700; font-size: 15px; border: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}
.btn-gold {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold2) 100%);
  color: #1a1200;
  box-shadow: 0 4px 18px rgba(247, 201, 72, 0.35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(247, 201, 72, 0.45); }
.btn-ghost { background: transparent; border: 1px solid var(--gold); color: var(--gold); }
.btn-ghost:hover { background: rgba(247, 201, 72, 0.12); }
.btn-red { background: linear-gradient(180deg, #ff6b78 0%, var(--red) 100%); color: #fff; }

/* ---------- hero ---------- */
.hero {
  padding: 68px 20px 48px; text-align: center;
  background:
    radial-gradient(700px 260px at 50% 0%, rgba(247, 201, 72, 0.12), transparent 70%),
    linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px); font-weight: 900; letter-spacing: 0.5px;
}
.hero h1 .hl { color: var(--gold); }
.hero p.sub { color: var(--muted); font-size: 18px; max-width: 720px; margin: 16px auto 26px; }
.hero .btn { font-size: 18px; padding: 15px 34px; }
.hero .trust { margin-top: 22px; color: var(--muted); font-size: 14px; }
.hero .trust b { color: var(--green); }

/* ---------- sections ---------- */
.section { padding: 46px 0; }
.section-head { text-align: center; margin-bottom: 30px; }
.section-head h2 { font-size: 30px; font-weight: 800; }
.section-head .accent { color: var(--gold); }
.section-head p { color: var(--muted); margin-top: 6px; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.product-card {
  background: linear-gradient(180deg, var(--card2) 0%, var(--card) 100%);
  border: 1px solid var(--line); border-radius: 14px; padding: 26px 20px; text-align: center;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.product-card:hover { transform: translateY(-4px); border-color: rgba(247, 201, 72, 0.55); }
.product-icon {
  width: 74px; height: 74px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 34px;
  background: radial-gradient(circle at 30% 30%, rgba(247, 201, 72, 0.25), rgba(232, 160, 32, 0.08));
  border: 1px solid var(--line);
}
.product-card h3 { font-size: 19px; margin-bottom: 6px; color: var(--gold); }
.product-card p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.product-card a.more { font-weight: 700; font-size: 14px; }

.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.promo-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px;
  position: relative; overflow: hidden;
}
.promo-card::before {
  content: "HOT"; position: absolute; top: 12px; right: -26px; transform: rotate(35deg);
  background: var(--red); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 30px;
}
.promo-card h3 { color: var(--gold); font-size: 17px; margin-bottom: 8px; }
.promo-card p { color: var(--muted); font-size: 14px; }

.app-strip {
  background: linear-gradient(90deg, var(--card2), var(--card));
  border: 1px solid var(--line); border-radius: 16px; padding: 30px; text-align: center;
}
.app-strip .btns { display: flex; gap: 14px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }

/* ---------- entry content (money pages) ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--bg2), var(--bg));
  border-bottom: 1px solid var(--line);
  padding: 40px 20px 34px; text-align: center;
}
.page-hero h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; }
.page-hero .crumb { color: var(--muted); font-size: 14px; margin-top: 10px; }
.entry-content { max-width: 860px; margin: 0 auto; padding: 34px 20px 60px; font-size: 16.5px; }
.entry-content h2 {
  font-size: 24px; margin: 34px 0 14px; padding-left: 14px;
  border-left: 4px solid var(--gold); color: var(--gold);
}
.entry-content h3 { font-size: 19px; margin: 24px 0 10px; color: var(--text); }
.entry-content p { margin-bottom: 14px; color: #cdd4ea; }
.entry-content ul, .entry-content ol { margin: 0 0 16px 22px; color: #cdd4ea; }
.entry-content li { margin-bottom: 8px; }
.entry-content a { border-bottom: 1px solid rgba(247, 201, 72, 0.4); }
.entry-content a:hover { border-bottom-color: var(--gold); }
/* big CTA button at the end of every money page */
.entry-content p > a > strong { font-weight: 800; }
.entry-content a:has(> strong) {
  display: inline-block; margin: 20px 0;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold2) 100%);
  color: #1a1200; padding: 15px 34px; border-radius: 12px; border: none;
  font-size: 17px; box-shadow: 0 6px 22px rgba(247, 201, 72, 0.35);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 6px 22px rgba(247, 201, 72, 0.35); }
  50% { box-shadow: 0 6px 30px rgba(247, 201, 72, 0.65); }
}

/* FAQ accordion (converted by theme JS) */
details.faq { background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; padding: 15px 18px; font-weight: 700; color: var(--text); list-style: none; }
details.faq summary::before { content: "+ "; color: var(--gold); }
details.faq[open] summary::before { content: "- "; }
details.faq .faq-body { padding: 0 18px 15px; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg2); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; padding: 40px 0; }
.site-footer h4 { color: var(--gold); margin-bottom: 12px; font-size: 15px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--muted); font-size: 14px; }
.site-footer a:hover { color: var(--gold); }
.footer-note {
  text-align: center; color: #6d7590; font-size: 13px; padding: 18px 20px;
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .hdr-cta { margin-left: auto; }
  .hero .btn { display: block; max-width: 320px; margin: 0 auto 12px; }
}

/* BET88 variant tokens */
.btn { border-radius: 14px; }
.product-card, .promo-card { border-radius: 18px; }
.logo .b { color: var(--text); }
