/* ========================================================================== 
   Variables
   ========================================================================== */

:root {
  /* Colors */
  --color-background: #050814;
  --color-surface: #0c1224;
  --color-surface-alt: #111829;
  --color-text: #f7f8fc;
  --color-text-muted: #c3cadb;
  --color-primary: #1746ff; /* royal blue accent */
  --color-primary-soft: rgba(23, 70, 255, 0.12);
  --color-primary-strong: #0f32b9;
  --color-success: #1ec98b; /* accent green */
  --color-warning: #ffb347;
  --color-danger: #ff4b5c;

  --color-gray-50: #f5f7fb;
  --color-gray-100: #e1e6f0;
  --color-gray-200: #c3cadb;
  --color-gray-300: #a1acc4;
  --color-gray-400: #7b87a2;
  --color-gray-500: #616b83;
  --color-gray-600: #464f64;
  --color-gray-700: #32394a;
  --color-gray-800: #202637;
  --color-gray-900: #121725;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text',
    'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    'Liberation Mono', 'Courier New', monospace;

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-md: 1rem;      /* 16px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.25rem;   /* 20px */
  --font-size-2xl: 1.5rem;   /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem;  /* 36px */

  --line-height-tight: 1.2;
  --line-height-snug: 1.35;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing scale (px-based, used via rem in components) */
  --space-0: 0;
  --space-1: 0.25rem;  /* 4px  */
  --space-2: 0.5rem;   /* 8px  */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */

  /* Radius */
  --radius-sm: 0.25rem;  /* 4px */
  --radius-md: 0.5rem;   /* 8px */
  --radius-lg: 0.75rem;  /* 12px */
  --radius-xl: 1rem;     /* 16px */
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-normal: 200ms ease-out;
  --transition-slow: 320ms ease;

  /* Layout */
  --container-max-width: 1120px;
  --container-padding-x: 1.5rem;
}

/* Reduced motion adjustments */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0s;
    --transition-normal: 0s;
    --transition-slow: 0s;
  }
}

/* ========================================================================== 
   Reset / Normalize
   ========================================================================== */

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

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ========================================================================== 
   Base Styles
   ========================================================================== */

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--font-size-md);
  line-height: var(--line-height-normal);
  background: radial-gradient(circle at top left, #1c2b52 0, #050814 52%, #02030a 100%);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

p {
  color: var(--color-text-muted);
}

p + p {
  margin-top: var(--space-3);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: var(--line-height-tight);
  letter-spacing: 0.01em;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.25rem, 2.4vw + 1.8rem, 3rem);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(1.75rem, 1.6vw + 1.4rem, 2.25rem);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-2);
}

h4 {
  font-size: 1.25rem;
  margin-bottom: var(--space-2);
}

h5 {
  font-size: 1.125rem;
  margin-bottom: var(--space-2);
}

h6 {
  font-size: 1rem;
  margin-bottom: var(--space-1);
}

strong,
b {
  font-weight: 600;
}

small {
  font-size: var(--font-size-xs);
}

a {
  position: relative;
  transition: color var(--transition-fast);
}

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

a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

code,
pre {
  font-family: var(--font-mono);
}

/* ========================================================================== 
   Accessibility & Focus
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--color-success);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Visually hidden, but accessible to screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

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

/* ========================================================================== 
   Utilities
   ========================================================================== */

/* Layout container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding-x);
}

/* Flex helpers */
.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.flex-row {
  flex-direction: row;
}

.flex-column {
  flex-direction: column;
}

.flex-center {
  align-items: center;
  justify-content: center;
}

.flex-between {
  justify-content: space-between;
}

.items-center {
  align-items: center;
}

.gap-2 {
  gap: var(--space-2);
}

.gap-4 {
  gap: var(--space-4);
}

/* Grid helpers */
.grid {
  display: grid;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Spacing utilities (simple subset) */
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }

.py-8 {
  padding-block: var(--space-8);
}

.py-12 {
  padding-block: var(--space-12);
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--color-text-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background-color: rgba(23, 70, 255, 0.08);
  color: var(--color-text-muted);
}

/* ========================================================================== 
   Components
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color var(--transition-normal),
    color var(--transition-normal),
    border-color var(--transition-normal),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
  will-change: transform, box-shadow;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(23, 70, 255, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 50px rgba(23, 70, 255, 0.55);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 10px 28px rgba(23, 70, 255, 0.4);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--color-text);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  background: rgba(23, 70, 255, 0.06);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: transparent;
  color: var(--color-text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn-success {
  background: linear-gradient(135deg, var(--color-success), #12a56f);
  color: #0a1215;
}

.btn[disabled],
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn:focus-visible {
  outline: 2px solid var(--color-success);
  outline-offset: 3px;
}

/* Inputs & form controls */

.input,
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background-color: rgba(6, 10, 27, 0.9);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast);
}

.input::placeholder,
textarea::placeholder {
  color: var(--color-gray-400);
}

.input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: rgba(23, 70, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(23, 70, 255, 0.35), 0 0 0 8px rgba(23, 70, 255, 0.08);
}

.input[disabled],
select[disabled],
textarea[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

label {
  display: inline-block;
  margin-bottom: 0.3rem;
  font-size: var(--font-size-sm);
  color: var(--color-text);
}

.form-helper {
  margin-top: 0.25rem;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.form-error {
  margin-top: 0.25rem;
  font-size: var(--font-size-xs);
  color: var(--color-danger);
}

/* Card component */

.card {
  position: relative;
  background: radial-gradient(circle at top left, rgba(23, 70, 255, 0.2) 0, rgba(17, 24, 41, 0.6) 45%, rgba(5, 8, 20, 0.95) 100%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(22px);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.card-title {
  font-size: var(--font-size-xl);
  font-weight: 600;
}

.card-subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.card-body {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.card-compact {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
}

/* Status variants for key legal/responsible sections */

.card--info {
  border-color: rgba(23, 70, 255, 0.4);
}

.card--success {
  border-color: rgba(30, 201, 139, 0.55);
}

.card--warning {
  border-color: rgba(255, 179, 71, 0.6);
}

/* Tagline / emphasis chip for responsible gaming & legal notes */

.chip-neutral {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-color: rgba(5, 8, 20, 0.8);
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

.chip-safe {
  border-color: rgba(30, 201, 139, 0.6);
  background: linear-gradient(135deg, rgba(30, 201, 139, 0.12), rgba(5, 8, 20, 0.95));
  color: var(--color-success);
}

/* CTA band (e.g., for "Commencer" / primary actions) */

.cta-band {
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  background: radial-gradient(circle at top left, rgba(23, 70, 255, 0.4) 0, rgba(23, 70, 255, 0.18) 35%, rgba(5, 8, 20, 0.98) 100%);
  box-shadow: var(--shadow-lg);
}

.cta-band--accent {
  border: 1px solid rgba(30, 201, 139, 0.65);
}

/* Simple pill for live indicators (e.g., live chat) */

.pill-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background-color: rgba(30, 201, 139, 0.12);
  color: var(--color-success);
  font-size: var(--font-size-xs);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background-color: var(--color-success);
}

/* Header / Nav helpers (minimal, structural only) */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5, 8, 20, 0.94), rgba(5, 8, 20, 0.85));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: 0.85rem;
}

.nav-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  font-size: var(--font-size-sm);
}

.nav-inline a {
  position: relative;
  color: var(--color-text-muted);
}

.nav-inline a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-success));
  transition: width var(--transition-normal);
}

.nav-inline a:hover {
  color: var(--color-text);
}

.nav-inline a:hover::after,
.nav-inline a[aria-current='page']::after {
  width: 100%;
}

.nav-inline a[aria-current='page'] {
  color: var(--color-text);
}

/* Footer helper */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: var(--space-6);
  background: radial-gradient(circle at top, rgba(17, 24, 41, 0.9) 0, rgba(5, 8, 20, 1) 55%);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* Responsible gaming / legal highlight block */

.responsible-block {
  margin-top: var(--space-8);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, rgba(30, 201, 139, 0.1), rgba(5, 8, 20, 0.95));
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.responsible-block strong {
  color: var(--color-success);
}

/* Live chat dock placeholder */

.live-chat-dock {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 50;
}

.live-chat-button {
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: radial-gradient(circle at top left, rgba(23, 70, 255, 0.65) 0, rgba(5, 8, 20, 1) 70%);
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--font-size-sm);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

.live-chat-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.85);
  border-color: rgba(30, 201, 139, 0.7);
}

.live-chat-button:focus-visible {
  outline: 2px solid var(--color-success);
  outline-offset: 3px;
}

.live-chat-indicator {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background-color: var(--color-success);
}

/* Legal section typography tweaks */

.legal-copy {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-muted);
}

.legal-copy h2,
.legal-copy h3 {
  margin-top: var(--space-6);
}

.legal-copy ul,
.legal-copy ol {
  margin-top: var(--space-2);
  padding-left: 1.25rem;
}

.legal-copy 