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

:root {
  --bg: #F5F3FF;
  --surface: #FFFFFF;
  --text: #2E1065;
  --muted: #A78BFA;
  --primary: #8B5CF6;
  --secondary: #60A5FA;
  --accent: #F472B6;
  --border: rgba(46, 16, 101, 0.12);
  --nav-bg: #1a1a2e;
  --nav-text: #e2e8f0;
  --steel: #2d3748;
  --offer-card-bg: #ffffff;
  --offer-card-text: #1a1a1a;
  --offer-card-bonus: #3A5A40;
  --offer-card-cta: #588157;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --max-width: 1200px;
  --nav-height: 52px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

main {
  flex: 1;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

.disclosure-banner {
  background: #F5F3FF;
  border-bottom: 1px solid var(--border);
  width: 100%;
  padding: 8px 16px;
}

.disclosure-banner__inner {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 12px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.disclosure-banner__icon {
  font-size: 14px;
  flex-shrink: 0;
  line-height: 1;
}

.disclosure-banner__text {
  font-size: 12px;
  color: var(--text);
  text-align: center;
  line-height: 1.55;
  flex: 1;
}

.disclosure-banner__text strong {
  font-weight: 600;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--nav-bg);
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 1px,
    rgba(255, 255, 255, 0.02) 1px,
    rgba(255, 255, 255, 0.02) 2px
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  height: var(--nav-height);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link img {
  height: 32px;
  width: auto;
}

.nav-desktop {
  display: flex;
  list-style: none;
  gap: 4px 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-desktop a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--nav-text);
  letter-spacing: 0.02em;
}

.nav-desktop a:hover {
  color: var(--accent);
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  padding: 6px;
}

.nav-burger span {
  display: block;
  height: 2px;
  background: var(--nav-text);
  transition: background 0.2s;
}

.nav-burger:hover span {
  background: var(--accent);
}

.nav-burger.active span {
  background: var(--accent);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 250;
}

.nav-overlay.active {
  display: block;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 360px;
  height: 100vh;
  background: #0d1117;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 1px,
    rgba(0, 255, 128, 0.03) 1px,
    rgba(0, 255, 128, 0.03) 2px
  );
  z-index: 300;
  padding: 60px 32px 32px;
  transition: right 0.3s ease;
  border-left: 1px solid rgba(244, 114, 182, 0.3);
}

.nav-drawer.active {
  right: 0;
}

.nav-drawer__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: transparent;
  border: 1px solid rgba(244, 114, 182, 0.5);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 18px;
  width: 36px;
  height: 36px;
  cursor: pointer;
}

.nav-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nav-drawer a {
  font-family: var(--font-mono);
  font-size: 15px;
  color: #4ade80;
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid rgba(74, 222, 128, 0.15);
}

.nav-drawer a:hover {
  color: var(--accent);
}

.hero {
  background: #FFFFFF;
  padding: 48px 24px;
}

.hero-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: #000000;
  text-align: left;
  border-bottom: 4px solid #000000;
  padding-bottom: 16px;
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  text-align: right;
  max-width: 640px;
  margin-left: auto;
  line-height: 1.6;
}

.offers-section {
  position: relative;
  padding: 64px 24px;
  background-color: var(--steel);
  background-image: linear-gradient(rgba(26, 26, 46, 0.88), rgba(26, 26, 46, 0.92)), url("/images/offers_bg/offers_bg.webp");
  background-size: cover;
  background-position: center;
}

.offers-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.offers-header {
  margin-bottom: 36px;
  border-left: 4px solid var(--accent);
  padding-left: 20px;
}

.offers-header h2 {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.offers-header p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.offer-card {
  background: var(--offer-card-bg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.offer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.offer-card-logo {
  width: 200px;
  height: 80px;
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.offer-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.offer-card-body {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.offer-card-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--offer-card-text);
  margin-bottom: 8px;
}

.offer-bonus-group {
  margin-bottom: 12px;
}

.offer-card-bonus {
  font-size: 0.95rem;
  color: var(--offer-card-bonus);
  font-weight: 600;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.35;
}

.offer-terms-note {
  font-size: 0.7rem;
  color: #888;
  margin-top: 4px;
}

.offer-card-desc {
  font-size: 0.72rem;
  color: #777;
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.offer-cta {
  display: inline-block;
  background: var(--offer-card-cta);
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  width: 100%;
  font-family: var(--font-sans);
  transition: background 0.2s;
}

.offer-cta:hover {
  background: #466b4a;
  color: #fff;
}

.info-section {
  padding: 56px 24px;
  border-bottom: 1px solid var(--border);
}

.info-section:nth-child(even) {
  background: var(--surface);
}

.info-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.info-section h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.info-section p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.7;
}

.info-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.layout-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.decor-wrap {
  max-width: 100%;
  width: 100%;
  max-height: 320px;
  overflow: hidden;
  border: 2px solid var(--border);
  position: relative;
}

.decor-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 500px;
  max-height: 320px;
}

.layout-accent-left {
  display: grid;
  grid-template-columns: 6px 1fr;
  gap: 24px;
}

.layout-accent-left .accent-bar {
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

.layout-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  align-items: start;
}

.layout-asymmetric {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}

.layout-asymmetric .side-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.layout-centered {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  border-top: 3px solid var(--text);
  border-bottom: 3px solid var(--text);
  padding: 32px 0;
}

.layout-timeline {
  position: relative;
  padding-left: 48px;
}

.layout-timeline::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary);
}

.timeline-badge {
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.layout-float {
  overflow: hidden;
}

.layout-float .float-img {
  float: left;
  margin: 0 24px 16px 0;
  max-width: 280px;
  border: 2px solid var(--border);
}

.layout-float .float-img img {
  max-width: 280px;
  max-height: 200px;
  object-fit: cover;
}

.layout-grid-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.stat-block {
  border: 1px solid var(--border);
  padding: 16px;
  text-align: center;
  background: var(--bg);
}

.stat-block .stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
}

.stat-block .stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 4px;
}

.layout-diagonal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.layout-diagonal .decor-bg {
  min-height: 220px;
  max-width: 100%;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  border: 2px solid var(--border);
}

.layout-terminal {
  background: #0d1117;
  border: 1px solid rgba(139, 92, 246, 0.4);
  padding: 28px 32px;
  font-family: var(--font-mono);
}

.layout-terminal h2 {
  color: #4ade80;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.layout-terminal p {
  color: #94a3b8;
  font-size: 0.88rem;
}

.layout-terminal::before {
  content: "> ";
  color: var(--accent);
}

.site-footer {
  background: var(--nav-bg);
  color: var(--nav-text);
  padding: 48px 24px 32px;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo img {
  height: 36px;
  width: auto;
  opacity: 0.9;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

.footer-badge img {
  height: 48px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer-badge a:hover img {
  opacity: 1;
}

.footer-ontario {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 900px;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(46, 16, 101, 0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.active {
  display: flex;
}

.modal__box {
  background: var(--surface);
  border: 2px solid var(--primary);
  padding: 36px;
  max-width: 440px;
  width: 100%;
  text-align: center;
}

.modal__box h2 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--text);
}

.modal__box p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.modal__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.2s, color 0.2s;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}

.btn--primary:hover {
  background: #7c3aed;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.cookie {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 2px solid var(--primary);
  padding: 16px 24px;
  z-index: 900;
  box-shadow: 0 -4px 20px rgba(46, 16, 101, 0.15);
}

.cookie.active {
  display: block;
}

.cookie p {
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 12px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.cookie__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-content {
  padding: 48px 24px 64px;
}

.page-content-inner {
  max-width: 800px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px 48px;
}

.page-content-inner h1 {
  font-size: 1.75rem;
  margin-bottom: 20px;
  color: var(--text);
  border-bottom: 3px solid var(--text);
  padding-bottom: 12px;
}

.page-content-inner h2 {
  font-size: 1.15rem;
  margin: 28px 0 12px;
  color: var(--text);
  font-family: var(--font-mono);
}

.page-content-inner h3 {
  font-size: 1rem;
  margin: 20px 0 10px;
  color: var(--text);
}

.page-content-inner p {
  margin-bottom: 14px;
  font-size: 0.92rem;
  line-height: 1.7;
}

.page-content-inner ul {
  margin: 0 0 14px 24px;
  font-size: 0.92rem;
}

.page-content-inner li {
  margin-bottom: 6px;
}

.page-content-inner a {
  color: var(--primary);
}

.contact-form {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-error {
  display: none;
  font-size: 0.8rem;
  color: #dc2626;
}

.form-error.active {
  display: block;
}

.form-success {
  display: none;
  padding: 20px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid var(--primary);
  color: var(--text);
  font-size: 0.95rem;
  margin-top: 20px;
}

.form-success.active {
  display: block;
}

.nav-subpage {
  display: flex;
  gap: 16px;
}

.nav-subpage a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--nav-text);
}

.nav-subpage a:hover {
  color: var(--accent);
}

.redirect-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: var(--bg);
  text-align: center;
}

.redirect-ad {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--accent);
  color: #fff;
  padding: 4px 10px;
  margin-bottom: 24px;
  letter-spacing: 0.1em;
}

.redirect-page h1 {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 12px;
}

.redirect-page p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 8px;
  max-width: 480px;
}

.redirect-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 24px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.redirect-notes {
  margin-top: 16px;
  font-size: 0.82rem;
}

.redirect-notes a {
  color: var(--primary);
}

.error-page {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h1 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 28px;
}

@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .nav-subpage {
    display: none;
  }

  .layout-split,
  .layout-asymmetric,
  .layout-card,
  .layout-diagonal,
  .layout-grid-stats {
    grid-template-columns: 1fr;
  }

  .layout-float .float-img {
    float: none;
    margin: 0 auto 20px;
    max-width: 100%;
  }

  .hero h1 {
    text-align: center;
    border-bottom: none;
    border-top: 4px solid #000000;
    padding-bottom: 0;
    padding-top: 16px;
  }

  .hero-sub {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .page-content-inner {
    padding: 28px 20px;
  }

  .disclosure-banner__inner {
    flex-direction: column;
    gap: 8px;
  }

  .disclosure-banner__icon {
    display: none;
  }

  .disclosure-banner__text {
    font-size: 11px;
  }
}

@media (max-width: 600px) {
  .offers-grid {
    grid-template-columns: 1fr;
  }

  .layout-grid-stats {
    grid-template-columns: 1fr;
  }

  .offer-card-logo {
    width: 180px;
    height: 72px;
  }

  .offer-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }
}

@media (max-width: 375px) {
  .info-inner {
    max-width: 100%;
    overflow: hidden;
  }

  .decor-wrap {
    max-height: 220px;
  }

  .decor-wrap img {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
  }

  .layout-float .float-img {
    max-width: 100%;
    width: 100%;
  }

  .layout-float .float-img img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
  }

  .layout-diagonal .decor-bg {
    min-height: 160px;
    max-width: 100%;
  }

  .layout-card {
    padding: 20px;
  }
}
