/* ============================================================
   rainbettcasino.ca — design system
   Northern-aurora dark theme, single stylesheet
   ============================================================ */

:root {
  --bg: #0b101a;
  --bg-2: #0e1524;
  --surface: #141d30;
  --surface-2: #182338;
  --line: #24334f;
  --text: #e8edf7;
  --muted: #9aa7c0;
  --accent: #3ee6b0;
  --accent-dark: #1f9e77;
  --accent-2: #7c8cff;
  --gold: #f0b64e;
  --danger: #ff8080;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(3, 7, 16, .45);
  --header-h: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

p { margin: 0 0 1em; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .55em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 4.2vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); }
h3 { font-size: 1.15rem; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { width: min(1140px, 100% - 40px); margin-inline: auto; }

.section { padding: 52px 0; }
.section-tight { padding: 34px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.muted { color: var(--muted); }
.small { font-size: .87rem; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--accent); color: #06281d; padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 16, 26, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; gap: 20px;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 38px; width: auto; border-radius: 8px; }

/* Desktop: logo left, menu visually centred, CTA right.
   The nav fills the space between logo and CTA; auto margins on the list
   keep it balanced at any viewport width (no hard-coded offsets). */
.main-nav { display: flex; align-items: center; gap: 18px; flex: 1 1 auto; min-width: 0; }
.main-nav ul { display: flex; list-style: none; margin: 0 auto; padding: 0; gap: 6px; }
.main-nav ul a {
  display: block; padding: 8px 10px; border-radius: 8px;
  color: var(--text); font-size: .86rem; font-weight: 600; white-space: nowrap;
}
.main-nav ul a:hover { background: var(--surface); text-decoration: none; color: var(--accent); }
.main-nav ul a[aria-current="page"] { color: var(--accent); background: var(--surface); }

.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; border-radius: 2px;
  background: var(--text); transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1120px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 8px;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 16px 20px 22px; margin: 0;
    box-shadow: var(--shadow);
  }
  html.js .main-nav { display: none; }
  html.js .main-nav.open { display: flex; animation: navIn .22s ease; }
  .main-nav ul { flex-direction: column; gap: 2px; margin: 0; }
  .main-nav ul a { font-size: 1rem; padding: 12px 10px; }
  .nav-cta { text-align: center; }
}

@keyframes navIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(120deg, var(--accent), #2ec9d8);
  color: #06281d;
  box-shadow: 0 6px 18px rgba(62, 230, 176, .25);
}
.btn-primary:hover { box-shadow: 0 8px 22px rgba(62, 230, 176, .35); color: #06281d; }

.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 9px 16px; font-size: .86rem; }

.nav-cta { padding: 9px 18px; font-size: .85rem; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 46px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto auto;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 140, 255, .16), transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: auto auto -55% -15%;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 230, 176, .10), transparent 65%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center;
  position: relative; z-index: 1;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.hero-kicker::before { content: ""; width: 22px; height: 2px; background: var(--accent); }
.hero-lead { color: var(--muted); font-size: 1.05rem; max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-note { margin-top: 14px; font-size: .82rem; color: var(--muted); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Screenshot / figure containers ---------- */
.shot {
  margin: 0; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px; box-shadow: var(--shadow);
}
.shot img { border-radius: calc(var(--radius) - 5px); width: 100%; height: auto; }
.shot figcaption { padding: 10px 6px 2px; font-size: .84rem; color: var(--muted); }

.shot-narrow { max-width: 560px; margin-inline: auto; }

/* ---------- Cards / grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--accent); }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(62, 230, 176, .1); color: var(--accent);
  font-size: 1.3rem; margin-bottom: 14px;
}
.card p:last-child { margin-bottom: 0; }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split-rev > :first-child { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 24px; }
  .split-rev > :first-child { order: 0; }
}

/* ---------- Info strip ---------- */
.strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.strip > div { padding: 18px 20px; border-left: 1px solid var(--line); }
.strip > div:first-child { border-left: 0; }
.strip dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.strip dd { margin: 0; font-weight: 700; font-size: .98rem; }
@media (max-width: 860px) {
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip > div:nth-child(odd) { border-left: 0; }
  .strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 440px) {
  .strip { grid-template-columns: 1fr; }
  .strip > div { border-left: 0 !important; border-top: 1px solid var(--line); }
  .strip > div:first-child { border-top: 0; }
}

/* ---------- Numbered steps ---------- */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li {
  counter-increment: step; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px 16px 66px;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 18px; top: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #071018; font-weight: 800; font-size: .95rem;
}
.steps li strong { display: block; margin-bottom: 2px; }
.steps li p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
}
table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 560px; }
caption { text-align: left; padding: 14px 18px 4px; font-weight: 700; color: var(--text); }
th, td { text-align: left; padding: 12px 18px; border-top: 1px solid var(--line); vertical-align: top; }
thead th { border-top: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); background: var(--surface-2); }
tbody tr:hover { background: rgba(62, 230, 176, .04); }

/* ---------- Code box ---------- */
.code-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow);
}
.code-box .code-meta { flex: 1 1 200px; min-width: 0; }
.code-box .code-label { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.code-box .code-value {
  font-family: Consolas, "SF Mono", Menlo, monospace;
  font-size: 1.6rem; font-weight: 800; letter-spacing: .12em; color: var(--accent);
}
.btn-copy { background: var(--surface); border-color: var(--accent-dark); color: var(--accent); }
.btn-copy:hover { background: rgba(62, 230, 176, .1); }
.btn-copy.copied { background: var(--accent); color: #06281d; border-color: var(--accent); }
.copy-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Callouts / notices ---------- */
.callout {
  border-left: 4px solid var(--accent);
  background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px; margin: 20px 0;
}
.callout-quote { border-left-color: var(--accent-2); font-style: italic; color: var(--muted); }
.callout-warn { border-left-color: var(--gold); }
.callout p:last-child { margin-bottom: 0; }

.notice-rg {
  background: rgba(240, 182, 78, .07);
  border: 1px solid rgba(240, 182, 78, .35);
  border-radius: var(--radius); padding: 20px 24px;
}
.notice-rg h2, .notice-rg h3 { color: var(--gold); }
.notice-rg p:last-child, .notice-rg ul:last-child { margin-bottom: 0; }

.disclosure {
  font-size: .85rem; color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--radius-sm);
  padding: 14px 18px;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding: 14px 0 0; font-size: .84rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "›"; color: var(--muted); margin-right: 6px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current="page"] { color: var(--text); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-q { margin: 0; font-size: 1rem; }
.faq-q button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 14px;
  background: none; border: 0; color: var(--text); cursor: pointer;
  font: inherit; font-weight: 700; text-align: left;
  padding: 16px 20px;
}
.faq-q button:hover { color: var(--accent); }
.faq-q .chev { flex-shrink: 0; transition: transform .25s ease; color: var(--accent); }
.faq-q button[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-a { padding: 0 20px 16px; color: var(--muted); }
.faq-a p:last-child { margin-bottom: 0; }
html.js .faq-a { max-height: 0; padding-block: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; }
html.js .faq-item.open .faq-a { padding-bottom: 16px; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 60px; background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 44px 0 26px; font-size: .9rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 32px; }
.footer-grid h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer-grid a { color: var(--text); }
.footer-grid a:hover { color: var(--accent); }
.footer-brand img { height: 34px; width: auto; border-radius: 7px; margin-bottom: 12px; }
.footer-brand p { color: var(--muted); font-size: .86rem; }
.footer-legal {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .82rem;
}
.footer-legal p { margin-bottom: .7em; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Utility ---------- */
.badge {
  display: inline-block; padding: 3px 11px; border-radius: 999px;
  background: rgba(62, 230, 176, .12); color: var(--accent);
  font-size: .76rem; font-weight: 700; letter-spacing: .05em;
}
.badge-gold { background: rgba(240, 182, 78, .13); color: var(--gold); }

.checklist { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 10px; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(62, 230, 176, .15); color: var(--accent);
  font-size: .75rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.xlist li::before { content: "✕"; background: rgba(255, 128, 128, .13); color: var(--danger); }

.section-head { max-width: 720px; margin-bottom: 28px; }
.section-head p { color: var(--muted); }

.divider-wave { display: block; width: 100%; height: 34px; color: var(--bg-2); }

.cta-panel {
  background: linear-gradient(120deg, rgba(62, 230, 176, .12), rgba(124, 140, 255, .12));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; text-align: center;
}
.cta-panel h2 { margin-bottom: .35em; }
.cta-panel p { color: var(--muted); max-width: 60ch; margin-inline: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
