/* ============================================================
   SpinQuest Canada — style.css
   Brand: #090E1B (dark navy) | #1B6FFF (electric blue) | #00C6FF (cyan)
   ============================================================ */

:root {
  --sq-bg:      #090E1B;
  --sq-dark:    #0D1526;
  --sq-card:    #111B30;
  --sq-border:  #1C2B4A;
  --sq-blue:    #1B6FFF;
  --sq-cyan:    #00C6FF;
  --sq-white:   #F0F4FF;
  --sq-muted:   #7B8DB0;
  --sq-gold:    #FFD060;
  --sq-radius:  12px;
  --sq-shadow:  0 4px 32px rgba(27,111,255,0.15);
  --sq-glow:    0 0 24px rgba(27,111,255,0.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--sq-bg);
  color: var(--sq-white);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  min-height: 100vh;
}

a { color: var(--sq-blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--sq-cyan); }
strong { color: var(--sq-white); font-weight: 700; }

/* ── SKIP LINK ── */
.skip-link {
  position: absolute; top: -60px; left: 16px; z-index: 9999;
  background: var(--sq-blue); color: #fff; padding: 10px 20px;
  border-radius: 8px; font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ── CONTAINER ── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(9,14,27,.96);
  border-bottom: 1px solid var(--sq-border);
  backdrop-filter: blur(12px);
}
.nav-wrap {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; max-width: 1180px; margin: 0 auto;
}
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 42px; width: auto; display: block; }

.desk-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.desk-nav a {
  color: var(--sq-muted); padding: 7px 13px; border-radius: 8px;
  font-size: .92rem; font-weight: 500; transition: background .2s, color .2s;
}
.desk-nav a:hover { color: var(--sq-white); background: var(--sq-card); }
.desk-nav .nav-cta {
  background: var(--sq-blue); color: #fff !important; font-weight: 700;
  border-radius: 10px; padding: 8px 20px;
  box-shadow: var(--sq-glow);
}
.desk-nav .nav-cta:hover { background: var(--sq-cyan); box-shadow: 0 0 24px rgba(0,198,255,.5); }

.mob-toggle {
  display: none; background: none; border: none;
  color: var(--sq-white); font-size: 1.6rem; cursor: pointer;
  margin-left: auto; padding: 4px;
}

/* ── MOB MENU ── */
.mob-menu {
  display: none; flex-direction: column;
  background: var(--sq-dark); border-top: 1px solid var(--sq-border);
  padding: 16px 20px; gap: 6px;
}
.mob-menu.is-open { display: flex; }
.mob-menu a {
  color: var(--sq-muted); padding: 11px 0;
  border-bottom: 1px solid var(--sq-border); font-size: 1rem;
}
.mob-menu a:last-child { border-bottom: none; }
.mob-menu .mob-cta {
  margin-top: 10px; background: var(--sq-blue); color: #fff !important;
  font-weight: 700; text-align: center; padding: 14px !important;
  border-radius: 10px; border-bottom: none !important;
  box-shadow: var(--sq-glow);
}

/* ── HERO BANNER ── */
.sq-hero {
  position: relative; overflow: hidden;
  background: var(--sq-dark);
}
.sq-hero img {
  width: 100%; max-height: 420px; object-fit: cover;
  display: block; object-position: center;
}
.sq-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(9,14,27,.92) 0%, rgba(9,14,27,.55) 50%, rgba(9,14,27,.1) 100%);
}
.hero-content {
  position: absolute; top: 50%; left: 0; transform: translateY(-50%);
  z-index: 2; padding: 0 40px; max-width: 620px;
}
.hero-content h1 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 800; line-height: 1.15; color: var(--sq-white);
  margin-bottom: 14px;
}
.hero-content h1 span { color: var(--sq-blue); }
.hero-sub {
  font-size: 1.05rem; color: var(--sq-muted);
  margin-bottom: 28px; max-width: 480px;
}
.btn-hero {
  display: inline-block; background: var(--sq-blue); color: #fff !important;
  font-weight: 800; font-size: 1.05rem; padding: 15px 36px;
  border-radius: 12px; box-shadow: var(--sq-glow);
  transition: transform .2s, box-shadow .2s;
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(27,111,255,.7); color: #fff !important; }

/* ── SECTION ── */
.sq-section { padding: 64px 0; }
.sq-section.alt-bg { background: var(--sq-dark); }

.section-tag {
  display: inline-block; padding: 4px 14px; border-radius: 20px;
  background: rgba(27,111,255,.15); border: 1px solid rgba(27,111,255,.3);
  color: var(--sq-blue); font-size: .8rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px;
}
.section-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700;
  color: var(--sq-white); margin-bottom: 14px; line-height: 1.3;
}
.section-lead { font-size: 1.05rem; color: var(--sq-muted); max-width: 700px; margin-bottom: 40px; }

/* ── CARDS GRID ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.sq-card {
  background: var(--sq-card); border: 1px solid var(--sq-border);
  border-radius: var(--sq-radius); padding: 28px 24px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.sq-card:hover { transform: translateY(-4px); border-color: var(--sq-blue); box-shadow: var(--sq-shadow); }
.card-icon { font-size: 2rem; margin-bottom: 16px; }
.card-title { font-family: 'Space Grotesk','Inter',sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--sq-white); margin-bottom: 10px; }
.card-text { font-size: .93rem; color: var(--sq-muted); line-height: 1.65; }

/* ── BADGE ── */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 6px;
  font-size: .78rem; font-weight: 700; letter-spacing: .04em;
}
.badge-blue { background: rgba(27,111,255,.2); color: var(--sq-blue); border: 1px solid rgba(27,111,255,.3); }
.badge-gold { background: rgba(255,208,96,.15); color: var(--sq-gold); border: 1px solid rgba(255,208,96,.3); }
.badge-green { background: rgba(52,211,153,.15); color: #34D399; border: 1px solid rgba(52,211,153,.3); }

/* ── CHART — Horizontal Bars ── */
.sq-chart-box {
  background: var(--sq-card); border: 1px solid var(--sq-border);
  border-radius: var(--sq-radius); padding: 28px; margin: 28px 0;
}
.chart-head { font-family: 'Space Grotesk','Inter',sans-serif; font-weight: 700; color: var(--sq-cyan); margin-bottom: 22px; font-size: 1rem; }
.bar-rows { display: flex; flex-direction: column; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 200px 1fr 60px; align-items: center; gap: 14px; }
.bar-label { font-size: .88rem; color: var(--sq-muted); }
.bar-track { background: var(--sq-border); border-radius: 20px; height: 10px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 20px; background: linear-gradient(90deg, var(--sq-blue), var(--sq-cyan)); transition: width 1.2s ease; }
.bar-val { font-size: .88rem; font-weight: 700; color: var(--sq-blue); text-align: right; }

/* ── CHART — Vertical Bars ── */
.vbar-wrap { display: flex; align-items: flex-end; gap: 10px; height: 160px; margin: 20px 0; }
.vbar-col { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.vbar { width: 100%; background: linear-gradient(180deg, var(--sq-cyan), var(--sq-blue)); border-radius: 6px 6px 0 0; transition: height 1s ease; }
.vbar-lbl { font-size: .7rem; color: var(--sq-muted); text-align: center; }
.vbar-val { font-size: .75rem; font-weight: 700; color: var(--sq-cyan); }

/* ── TABLE ── */
.tbl-wrap { overflow-x: auto; border-radius: var(--sq-radius); margin: 28px 0; }
.sq-table { width: 100%; border-collapse: collapse; background: var(--sq-card); }
.sq-table caption {
  font-weight: 700; font-size: .95rem; color: var(--sq-cyan); padding: 14px 18px;
  text-align: left; background: var(--sq-dark); border-bottom: 1px solid var(--sq-border);
  border-radius: var(--sq-radius) var(--sq-radius) 0 0;
}
.sq-table th {
  background: rgba(27,111,255,.12); color: var(--sq-white); padding: 12px 16px;
  font-size: .86rem; font-weight: 700; text-align: left; border-bottom: 1px solid var(--sq-border);
}
.sq-table td {
  padding: 12px 16px; font-size: .9rem; color: var(--sq-muted);
  border-bottom: 1px solid var(--sq-border);
}
.sq-table tr:last-child td { border-bottom: none; }
.sq-table tr:hover td { background: rgba(27,111,255,.05); }
.sq-table td strong { color: var(--sq-blue); }

/* ── STEP BOXES ── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 32px 0; }
.step-box {
  background: var(--sq-card); border: 1px solid var(--sq-border); border-radius: var(--sq-radius);
  padding: 24px 20px; position: relative; overflow: hidden;
}
.step-box::before {
  content: attr(data-step); position: absolute; top: 12px; right: 16px;
  font-size: 3rem; font-weight: 900; color: rgba(27,111,255,.1);
  font-family: 'Space Grotesk','Inter',sans-serif; line-height: 1;
}
.step-num {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sq-blue), var(--sq-cyan));
  color: #fff; font-weight: 800; font-size: .95rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.step-title { font-family: 'Space Grotesk','Inter',sans-serif; font-weight: 700; color: var(--sq-white); margin-bottom: 8px; }
.step-text { font-size: .9rem; color: var(--sq-muted); }

/* ── SEO PROSE SECTION ── */
.sq-prose { padding: 60px 0; }
.sq-prose h2 {
  font-family: 'Space Grotesk','Inter',sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700; color: var(--sq-white);
  margin: 36px 0 16px; padding-bottom: 10px;
  border-bottom: 2px solid var(--sq-border);
}
.sq-prose h3 {
  font-size: 1.15rem; font-weight: 600; color: var(--sq-cyan);
  margin: 24px 0 10px;
}
.sq-prose p { color: var(--sq-muted); margin-bottom: 16px; }
.sq-prose p a { color: var(--sq-blue); font-weight: 600; border-bottom: 1px solid rgba(27,111,255,.35); }
.sq-prose p a:hover { color: var(--sq-cyan); border-bottom-color: var(--sq-cyan); }
.sq-prose strong { color: var(--sq-white); }

/* ── AUTHOR CARD ── */
.author-wrap { padding: 48px 0 0; }
.author-card {
  display: flex; align-items: flex-start; gap: 22px;
  background: var(--sq-card); border: 1px solid var(--sq-border);
  border-left: 4px solid var(--sq-blue); border-radius: var(--sq-radius);
  padding: 28px; max-width: 800px;
}
.author-avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid var(--sq-blue); flex-shrink: 0; }
.author-info strong { display: block; font-size: 1.1rem; color: var(--sq-white); margin-bottom: 3px; }
.author-info .author-role { color: var(--sq-blue); font-size: .88rem; margin-bottom: 10px; display: block; }
.author-info p { color: var(--sq-muted); font-size: .9rem; margin: 0; }

/* ── FOOTER ── */
.site-footer {
  background: var(--sq-dark); border-top: 1px solid var(--sq-border);
  padding: 56px 0 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand p { color: var(--sq-muted); font-size: .88rem; margin-top: 14px; max-width: 300px; line-height: 1.6; }
.footer-col h4 { color: var(--sq-white); font-weight: 700; font-size: .92rem; margin-bottom: 16px; letter-spacing: .04em; text-transform: uppercase; }
.footer-col nav { display: flex; flex-direction: column; gap: 10px; }
.footer-col nav a { color: var(--sq-muted); font-size: .88rem; transition: color .2s; }
.footer-col nav a:hover { color: var(--sq-blue); }
.footer-bottom {
  border-top: 1px solid var(--sq-border); padding-top: 24px;
  color: var(--sq-muted); font-size: .8rem;
  display: flex; gap: 20px; flex-wrap: wrap; align-items: center;
}
.footer-bottom a { color: var(--sq-muted); }
.footer-bottom a:hover { color: var(--sq-blue); }
.footer-disclaimer { color: #3d4f72; font-size: .76rem; margin-top: 14px; line-height: 1.6; }

/* ── STICKY MOB BAR ── */
.sticky-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 300; padding: 10px 16px;
  background: rgba(9,14,27,.97); border-top: 1px solid var(--sq-border);
}
.sticky-btn {
  display: block; width: 100%; background: var(--sq-blue); color: #fff;
  font-weight: 800; font-size: 1rem; text-align: center;
  padding: 14px; border-radius: 10px; box-shadow: var(--sq-glow);
}

/* ── STATS HEADER (games page alternative to hero) ── */
.stats-header {
  background: linear-gradient(135deg, var(--sq-dark) 0%, #0a1428 100%);
  border-bottom: 1px solid var(--sq-border); padding: 48px 0;
}
.stats-header h1 { font-family: 'Space Grotesk','Inter',sans-serif; font-size: clamp(1.8rem,4vw,2.6rem); font-weight: 800; color: var(--sq-white); margin-bottom: 14px; }
.stats-header h1 span { color: var(--sq-blue); }
.stats-bar { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 28px; }
.stat-pill {
  background: var(--sq-card); border: 1px solid var(--sq-border);
  border-radius: 10px; padding: 14px 20px;
}
.stat-pill .num { font-family: 'Space Grotesk','Inter',sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--sq-blue); display: block; }
.stat-pill .lbl { font-size: .8rem; color: var(--sq-muted); }

/* ── BONUS CARD (split layout) ── */
.bonus-stack { display: flex; flex-direction: column; gap: 16px; margin: 28px 0; }
.bonus-item {
  display: flex; align-items: flex-start; gap: 18px;
  background: var(--sq-card); border: 1px solid var(--sq-border);
  border-radius: var(--sq-radius); padding: 20px 22px;
  transition: border-color .2s;
}
.bonus-item:hover { border-color: var(--sq-blue); }
.bonus-icon {
  width: 52px; height: 52px; border-radius: 10px; flex-shrink: 0;
  background: rgba(27,111,255,.15); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; border: 1px solid rgba(27,111,255,.25);
}
.bonus-body strong { display: block; color: var(--sq-white); font-size: 1.05rem; margin-bottom: 4px; }
.bonus-body p { color: var(--sq-muted); font-size: .9rem; margin: 0; }

/* ── CONTENT SPLIT (app page) ── */
.content-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.content-split img { width: 100%; border-radius: 16px; border: 1px solid var(--sq-border); }

/* ── GSV META TAG ── */

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .desk-nav { display: none !important; }
  .mob-toggle { display: block; }
  .sticky-bar { display: block; }
  body { padding-bottom: 78px; }
  .bar-row { grid-template-columns: 120px 1fr 52px; gap: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .content-split { grid-template-columns: 1fr; }
  .author-card { flex-direction: column; }
  .stats-bar { gap: 16px; }
}

@media (max-width: 600px) {
  .hero-content { padding: 0 20px; max-width: 100%; }
  .hero-content h1 { font-size: 1.55rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .vbar-wrap { height: 120px; gap: 6px; }
  .sq-hero img { max-height: 280px; }
  .steps-grid { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 90px 1fr 44px; }
}
