:root {
  /* Primitive Color Tokens */
  --color-white: rgba(255, 255, 255, 1);
  --color-black: rgba(0, 0, 0, 1);
  --color-cream-50: rgba(252, 252, 249, 1);
  --color-cream-100: rgba(255, 255, 253, 1);
  --color-gray-200: rgba(245, 245, 245, 1);
  --color-gray-300: rgba(167, 169, 169, 1);
  --color-gray-400: rgba(119, 124, 124, 1);
  --color-slate-500: rgba(98, 108, 113, 1);
  --color-brown-600: rgba(94, 82, 64, 1);
  --color-charcoal-700: rgba(31, 33, 33, 1);
  --color-charcoal-800: rgba(38, 40, 40, 1);
  --color-slate-900: rgba(19, 52, 59, 1);
  --color-teal-300: rgba(50, 184, 198, 1);
  --color-teal-400: rgba(45, 166, 178, 1);
  --color-teal-500: rgba(33, 128, 141, 1);
  --color-teal-600: rgba(29, 116, 128, 1);
  --color-teal-700: rgba(26, 104, 115, 1);
  --color-teal-800: rgba(41, 150, 161, 1);
  --color-red-400: rgba(255, 84, 89, 1);
  --color-red-500: rgba(192, 21, 47, 1);
  --color-orange-400: rgba(230, 129, 97, 1);
  --color-orange-500: rgba(168, 75, 47, 1);

  /* RGB versions for opacity control */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;
  --color-slate-500-rgb: 98, 108, 113;
  --color-red-500-rgb: 192, 21, 47;
  --color-red-400-rgb: 255, 84, 89;
  --color-orange-500-rgb: 168, 75, 47;
  --color-orange-400-rgb: 230, 129, 97;

  /* Background color tokens (Light Mode) */
  --color-bg-1: rgba(59, 130, 246, 0.08); /* Light blue */
  --color-bg-2: rgba(245, 158, 11, 0.08); /* Light yellow */
  --color-bg-3: rgba(34, 197, 94, 0.08); /* Light green */
  --color-bg-4: rgba(239, 68, 68, 0.08); /* Light red */
  --color-bg-5: rgba(147, 51, 234, 0.08); /* Light purple */
  --color-bg-6: rgba(249, 115, 22, 0.08); /* Light orange */
  --color-bg-7: rgba(236, 72, 153, 0.08); /* Light pink */
  --color-bg-8: rgba(6, 182, 212, 0.08); /* Light cyan */

  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);
  --color-select-caret: rgba(var(--color-slate-900-rgb), 0.8);

  /* Common style patterns */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for opacity control */
  --color-success-rgb: 33, 128, 141;
  --color-error-rgb: 192, 21, 47;
  --color-warning-rgb: 168, 75, 47;
  --color-info-rgb: 98, 108, 113;

  /* Typography */
  --font-family-base: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-family-title: "Russo One", sans-serif;
  --font-family-mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo,
    Monaco, Consolas, monospace;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  --font-size-3xl: 24px;
  --font-size-4xl: 30px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 550;
  --font-weight-bold: 600;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --letter-spacing-tight: -0.01em;

  /* Spacing */
  --space-0: 0;
  --space-1: 1px;
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-base: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04),
    0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04),
    0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);

  /* Animation */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  /* Layout tuning for hero additional section */
  --hero-gap: 8vh;
  --flames-safe: clamp(22vh, 26vh + 2vw, 36vh); /* reserve space above flames */
  --stack-top-offset: clamp(4vh, 6vh + 1vw, 12vh); /* pull stack toward the top */
  --hero-top: 100vh; /* first viewport height */
}

/* Dark mode colors */
@media (prefers-color-scheme: dark) {
  :root {
    /* RGB versions for opacity control (Dark Mode) */
    --color-gray-400-rgb: 119, 124, 124;
    --color-teal-300-rgb: 50, 184, 198;
    --color-gray-300-rgb: 167, 169, 169;
    --color-gray-200-rgb: 245, 245, 245;

    /* Background color tokens (Dark Mode) */
    --color-bg-1: rgba(29, 78, 216, 0.15); /* Dark blue */
    --color-bg-2: rgba(180, 83, 9, 0.15); /* Dark yellow */
    --color-bg-3: rgba(21, 128, 61, 0.15); /* Dark green */
    --color-bg-4: rgba(185, 28, 28, 0.15); /* Dark red */
    --color-bg-5: rgba(107, 33, 168, 0.15); /* Dark purple */
    --color-bg-6: rgba(194, 65, 12, 0.15); /* Dark orange */
    --color-bg-7: rgba(190, 24, 93, 0.15); /* Dark pink */
    --color-bg-8: rgba(8, 145, 178, 0.15); /* Dark cyan */
    
    /* Semantic Color Tokens (Dark Mode) */
    --color-background: var(--color-charcoal-700);
    --color-surface: var(--color-charcoal-800);
    --color-text: var(--color-gray-200);
    --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
    --color-primary: var(--color-teal-300);
    --color-primary-hover: var(--color-teal-400);
    --color-primary-active: var(--color-teal-800);
    --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
    --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
    --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
    --color-border: rgba(var(--color-gray-400-rgb), 0.3);
    --color-error: var(--color-red-400);
    --color-success: var(--color-teal-300);
    --color-warning: var(--color-orange-400);
    --color-info: var(--color-gray-300);
    --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
    --color-btn-primary-text: var(--color-slate-900);
    --color-card-border: rgba(var(--color-gray-400-rgb), 0.2);
    --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
    --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
      inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    --button-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

    /* Common style patterns - updated for dark mode */
    --focus-ring: 0 0 0 3px var(--color-focus-ring);
    --focus-outline: 2px solid var(--color-primary);
    --status-bg-opacity: 0.15;
    --status-border-opacity: 0.25;
    --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

    /* RGB versions for dark mode */
    --color-success-rgb: var(--color-teal-300-rgb);
    --color-error-rgb: var(--color-red-400-rgb);
    --color-warning-rgb: var(--color-orange-400-rgb);
    --color-info-rgb: var(--color-gray-300-rgb);
  }
}

/* Data attribute for manual theme switching */
[data-color-scheme="dark"] {
  /* RGB versions for opacity control (dark mode) */
  --color-gray-400-rgb: 119, 124, 124;
  --color-teal-300-rgb: 50, 184, 198;
  --color-gray-300-rgb: 167, 169, 169;
  --color-gray-200-rgb: 245, 245, 245;

  /* Colorful background palette - Dark Mode */
  --color-bg-1: rgba(29, 78, 216, 0.15); /* Dark blue */
  --color-bg-2: rgba(180, 83, 9, 0.15); /* Dark yellow */
  --color-bg-3: rgba(21, 128, 61, 0.15); /* Dark green */
  --color-bg-4: rgba(185, 28, 28, 0.15); /* Dark red */
  --color-bg-5: rgba(107, 33, 168, 0.15); /* Dark purple */
  --color-bg-6: rgba(194, 65, 12, 0.15); /* Dark orange */
  --color-bg-7: rgba(190, 24, 93, 0.15); /* Dark pink */
  --color-bg-8: rgba(8, 145, 178, 0.15); /* Dark cyan */
  
  /* Semantic Color Tokens (Dark Mode) */
  --color-background: var(--color-charcoal-700);
  --color-surface: var(--color-charcoal-800);
  --color-text: var(--color-gray-200);
  --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
  --color-primary: var(--color-teal-300);
  --color-primary-hover: var(--color-teal-400);
  --color-primary-active: var(--color-teal-800);
  --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
  --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
  --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
  --color-border: rgba(var(--color-gray-400-rgb), 0.3);
  --color-error: var(--color-red-400);
  --color-success: var(--color-teal-300);
  --color-warning: var(--color-orange-400);
  --color-info: var(--color-gray-300);
  --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
  --color-btn-primary-text: var(--color-slate-900);
  --color-card-border: rgba(var(--color-gray-400-rgb), 0.15);
  --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
  --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

  /* Common style patterns - updated for dark mode */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for dark mode */
  --color-success-rgb: var(--color-teal-300-rgb);
  --color-error-rgb: var(--color-red-400-rgb);
  --color-warning-rgb: var(--color-orange-400-rgb);
  --color-info-rgb: var(--color-gray-300-rgb);
}

[data-color-scheme="light"] {
  /* RGB versions for opacity control (light mode) */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;
  
  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);

  /* RGB versions for light mode */
  --color-success-rgb: var(--color-teal-500-rgb);
  --color-error-rgb: var(--color-red-500-rgb);
  --color-warning-rgb: var(--color-orange-500-rgb);
  --color-info-rgb: var(--color-slate-500-rgb);
}

/* Base styles */
html {
  font-size: var(--font-size-base);
  font-family: var(--font-family-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  letter-spacing: var(--letter-spacing-tight);
}

h1 {
  font-size: var(--font-size-4xl);
}
h2 {
  font-size: var(--font-size-3xl);
}
h3 {
  font-size: var(--font-size-2xl);
}
h4 {
  font-size: var(--font-size-xl);
}
h5 {
  font-size: var(--font-size-lg);
}
h6 {
  font-size: var(--font-size-md);
}

p {
  margin: 0 0 var(--space-16) 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

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

code,
pre {
  font-family: var(--font-family-mono);
  font-size: calc(var(--font-size-base) * 0.95);
  background-color: var(--color-secondary);
  border-radius: var(--radius-sm);
}

code {
  padding: var(--space-1) var(--space-4);
}

pre {
  padding: var(--space-16);
  margin: var(--space-16) 0;
  overflow: auto;
  border: 1px solid var(--color-border);
}

pre code {
  background: none;
  padding: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-base);
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
  border: none;
  text-decoration: none;
  position: relative;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

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

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

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

.btn--secondary {
  background: var(--color-secondary);
  color: var(--color-text);
}

.btn--secondary:hover {
  background: var(--color-secondary-hover);
}

.btn--secondary:active {
  background: var(--color-secondary-active);
}

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

.btn--outline:hover {
  background: var(--color-secondary);
}

.btn--sm {
  padding: var(--space-4) var(--space-12);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm);
}

.btn--lg {
  padding: var(--space-10) var(--space-20);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-md);
}

.btn--full-width {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Form elements */
.form-control {
  display: block;
  width: 100%;
  padding: var(--space-8) var(--space-12);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  transition: border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

textarea.form-control {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
}

select.form-control {
  padding: var(--space-8) var(--space-12);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: var(--select-caret-light);
  background-repeat: no-repeat;
  background-position: right var(--space-12) center;
  background-size: 16px;
  padding-right: var(--space-32);
}

/* Add a dark mode specific caret */
@media (prefers-color-scheme: dark) {
  select.form-control {
    background-image: var(--select-caret-dark);
  }
}

/* Also handle data-color-scheme */
[data-color-scheme="dark"] select.form-control {
  background-image: var(--select-caret-dark);
}

[data-color-scheme="light"] select.form-control {
  background-image: var(--select-caret-light);
}

.form-control:focus {
  border-color: var(--color-primary);
  outline: var(--focus-outline);
}

.form-label {
  display: block;
  margin-bottom: var(--space-8);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.form-group {
  margin-bottom: var(--space-16);
}

/* Card component */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--duration-normal) var(--ease-standard);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card__body {
  padding: var(--space-16);
}

.card__header,
.card__footer {
  padding: var(--space-16);
  border-bottom: 1px solid var(--color-card-border-inner);
}

/* Status indicators - simplified with CSS variables */
.status {
  display: inline-flex;
  align-items: center;
  padding: var(--space-6) var(--space-12);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.status--success {
  background-color: rgba(
    var(--color-success-rgb, 33, 128, 141),
    var(--status-bg-opacity)
  );
  color: var(--color-success);
  border: 1px solid
    rgba(var(--color-success-rgb, 33, 128, 141), var(--status-border-opacity));
}

.status--error {
  background-color: rgba(
    var(--color-error-rgb, 192, 21, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-error);
  border: 1px solid
    rgba(var(--color-error-rgb, 192, 21, 47), var(--status-border-opacity));
}

.status--warning {
  background-color: rgba(
    var(--color-warning-rgb, 168, 75, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-warning);
  border: 1px solid
    rgba(var(--color-warning-rgb, 168, 75, 47), var(--status-border-opacity));
}

.status--info {
  background-color: rgba(
    var(--color-info-rgb, 98, 108, 113),
    var(--status-bg-opacity)
  );
  color: var(--color-info);
  border: 1px solid
    rgba(var(--color-info-rgb, 98, 108, 113), var(--status-border-opacity));
}

/* Container layout */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--space-16);
  padding-left: var(--space-16);
}

@media (min-width: 640px) {
  .container {
    max-width: var(--container-sm);
  }
}
@media (min-width: 768px) {
  .container {
    max-width: var(--container-md);
  }
}
@media (min-width: 1024px) {
  .container {
    max-width: var(--container-lg);
  }
}
@media (min-width: 1280px) {
  .container {
    max-width: var(--container-xl);
  }
}

/* Utility classes */
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-4 {
  gap: var(--space-4);
}
.gap-8 {
  gap: var(--space-8);
}
.gap-16 {
  gap: var(--space-16);
}

.m-0 {
  margin: 0;
}
.mt-8 {
  margin-top: var(--space-8);
}
.mb-8 {
  margin-bottom: var(--space-8);
}
.mx-8 {
  margin-left: var(--space-8);
  margin-right: var(--space-8);
}
.my-8 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}

.p-0 {
  padding: 0;
}
.py-8 {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}
.px-8 {
  padding-left: var(--space-8);
  padding-right: var(--space-8);
}
.py-16 {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}
.px-16 {
  padding-left: var(--space-16);
  padding-right: var(--space-16);
}

.block {
  display: block;
}
.hidden {
  display: none;
}

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

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

/* Dark mode specifics */
[data-color-scheme="dark"] .btn--outline {
  border: 1px solid var(--color-border-secondary);
}

@font-face {
  font-family: 'FKGroteskNeue';
  src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2')
    format('woff2');
}

/* END PERPLEXITY DESIGN SYSTEM */
/* Custom RBM Protocol Styles with FIXED animations and transparent header */
:root {
  /* RBM Custom Colors */
  --rbm-dark-navy: #0a0a0f;
  --rbm-purple: #6366f1;
  --rbm-blue-violet: #8b5cf6;
  --rbm-electric-blue: #3b82f6;
  --rbm-dark-grey: #1a1a1f;
  --rbm-medium-grey: #2a2a35;
  --rbm-light-grey: #3a3a45;
  --rbm-accent-purple: #a855f7;
  --rbm-success-green: #22c55e;
  --rbm-gradient-primary: linear-gradient(135deg, var(--rbm-purple) 0%, var(--rbm-blue-violet) 100%);
  --rbm-gradient-dark: linear-gradient(135deg, var(--rbm-dark-navy) 0%, var(--rbm-dark-grey) 100%);
  --rbm-gradient-accent: linear-gradient(45deg, var(--rbm-electric-blue), var(--rbm-accent-purple));
}

/* Base Styles Override */
html {
  scroll-behavior: smooth;
  background: var(--rbm-dark-navy);
}

body {
  background: var(--rbm-gradient-dark);
  color: var(--color-gray-200);
  font-family: var(--font-family-base);
  line-height: var(--line-height-normal);
  overflow-x: hidden;
}

/* FIXED: Truly transparent header with blur only */
.header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: transparent;
  border-radius: 50px;
  width: 90%;
  max-width: 1200px;
  transition: all var(--duration-normal) var(--ease-standard);
  padding: var(--space-8) 0;
  box-sizing: border-box;
  overflow: hidden;
}


.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  border: 2px solid #39D091;
  border-radius: 50px;
  pointer-events: none;
  z-index: 1;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 8px 32px rgba(0, 0, 0, 0.3);
}

.header__content {
  display: flex;
  align-items: center;
  padding: 0 var(--space-32);
  position: relative;
  height: 100%;
  z-index: 2;
}

.header__logo .logo {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  background: var(--rbm-gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: var(--letter-spacing-tight);
}

.header__logo .logo-image {
  height: 48px;
  width: auto;
  display: block;
}

/* Centered navigation */
.header__nav {
  display: flex;
  gap: var(--space-24);
  padding: var(--space-12) var(--space-24);
  min-height: 48px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  color: rgba(255, 255, 255, 0.7);
  font-weight: var(--font-weight-medium);
  font-family: 'Roboto', sans-serif;
  text-decoration: none;
  position: relative;
  transition: all var(--duration-fast) var(--ease-standard);
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  cursor: pointer;
}

.nav-link:hover {
  color: black;
  background: #39D091;
}

.nav-link.active {
  color: white !important;
  background: radial-gradient(circle, #39D091 0%, rgba(57, 208, 145, 0.7) 100%) !important;
}

.header__cta .btn {
  background: linear-gradient(to bottom, #BFBFBF 0%, #FFFFFF 100%);
  color: #000000;
  border: none;
  padding: var(--space-10) var(--space-20);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 4px 12px rgba(0,0,0,0.15);
  white-space: nowrap;
  display: inline-flex;
  max-width: fit-content;
}

.header__cta .btn:hover {
  background: linear-gradient(to bottom, #39D091 0%, #000000 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(57, 208, 145, 0.35);
}

/* Hero Section - CRYSTAL CLEAR, NO BLUR */
.hero {
  min-height: 1200px; /* fixed height for consistent spacing */
  position: relative;
  display: block;
  overflow: hidden;
  padding-top: 0;
  border-bottom-left-radius: 64px;
  border-bottom-right-radius: 64px;
  z-index: 10;
}

.hero > .container {
  max-width: 1400px; /* match header */
  width: calc(100% - 48px);
  margin: 0 auto;
}

.hero__panel {
  position: relative;
  min-height: inherit;
  max-height: 1200px; /* fixed height to match hero min-height */
  border-bottom-left-radius: 64px;
  border-bottom-right-radius: 64px;
  overflow: hidden; /* restore overflow protection */
}

.hero__background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-bottom-left-radius: 64px;
  border-bottom-right-radius: 64px;
  overflow: hidden; /* restore overflow protection */
  pointer-events: none;
  background: none;
  z-index: 0; /* explicit z-index for proper layering */
}

.hero__background::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  border-bottom-left-radius: 64px;
  border-bottom-right-radius: 64px;
  background: linear-gradient(to bottom, #000000 0%, #000000 30%, #39D091 75%, #FFFFFF 100%); /* adjusted stops for longer section */
}

.hero__background::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  border-bottom-left-radius: 64px;
  border-bottom-right-radius: 64px;
  background: 
    radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(59, 130, 246, 0.04) 0%, transparent 50%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
}

@keyframes backgroundShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}



.hero__content {
  text-align: center;
  position: relative;
  z-index: 3; /* above matrix rain and chains */
  height: auto;
  padding-top: 200px; /* fixed padding for consistent spacing */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-normal) var(--ease-standard);
  max-width: 1400px; /* align inner content to header */
  width: calc(100% - 48px);
  margin: 0 auto;
  gap: 16px; /* fixed gap for consistent spacing */
}

/* RESTORED: Enhanced Animated Gradient Title - 6s LEFT TO RIGHT with white flare - FIXED */
.hero__title {
  font-family: var(--font-family-title);
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: var(--space-16);
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #ffffff 30%,
    #d6f7eb 36%,
    #39D091 50%,
    #d6f7eb 64%,
    #ffffff 70%,
    #ffffff 100%
  );
  background-size: 300% 100%;
  background-repeat: no-repeat;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: titleGradientShift 6s linear infinite;
  letter-spacing: var(--letter-spacing-tight);
  will-change: background-position;
  display: block;
}

/* FIXED: 15-second LEFT TO RIGHT animation with color wave - renamed to avoid conflicts */
@keyframes titleGradientShift {
  0% { 
    background-position: 0% 50%;
  }
  100% { 
    background-position: 100% 50%;
  }
}

.hero__subtitle {
  font-size: var(--font-size-xl);
  color: var(--color-white);
  margin-bottom: var(--space-16); /* reduced from space-32 to bring closer to title */
  font-weight: var(--font-weight-normal);
  opacity: 0.95;
  position: relative;
  z-index: 10;
}



/* unified stack lives in .hero__content now */

.hero__visuals {
  position: absolute;
  inset: 0;
  border-bottom-left-radius: 64px;
  border-bottom-right-radius: 64px;
  pointer-events: none;
  z-index: 1; /* sits above background, below content */
}

.hero__flames {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%; /* full panel height (200vh) */
  display: block;
  object-fit: cover; /* always fill container edge-to-edge */
  object-position: bottom center;
  border-bottom-left-radius: 64px;
  border-bottom-right-radius: 64px;
  opacity: 0;
  transition: opacity 600ms var(--ease-standard); /* increased to 600ms for smoother appearance */
  z-index: 2; /* above chains (within visuals), below content */
  /* no fade-out; keep full flames visible */
  -webkit-mask-image: none;
  mask-image: none;
  pointer-events: none; /* ensure it doesn't interfere with interactions */
}

/* Prevent hairline gutters on some DPR/aspect ratios */
.hero__flames.active {
  opacity: 1;
  transform: translateZ(0); /* trigger GPU and avoid subpixel seams */
}

/* Extra safety: on very tall viewports slightly overscan to guarantee side coverage */
@media (max-aspect-ratio: 3/4) {
  .hero__flames {
    object-fit: cover;
  }
}

/* Force flames to be hidden by default - maximum specificity */
.hero .hero__flames {
  opacity: 0 !important;
}

.hero__flames.active {
  opacity: 1 !important;
}

.rbm-badge {
  display: block;
  margin: 0 auto;
  width: clamp(160px, 18vw, 320px); /* even smaller and more centered */
  max-width: 60%;
  border-radius: var(--radius-lg);
  border: none;
  background: none;
  padding: 0;
  backdrop-filter: none;
  /* Keep badge spacing proportional */
  margin-top: 16px;
  margin-bottom: 48px;
  position: relative;
  z-index: 4; /* above chains (z-index: 1) */
}

/* Raise badge and add tagline */
.hero__additional .rbm-badge { margin-top: 32px; }

.hero__tagline {
  margin-top: 16px;
  margin-bottom: 80px; /* fixed distance from flames/bottom */
  text-align: center;
  font-family: var(--font-family-base);
  font-size: clamp(2.25rem, 6vw, 4.5rem); /* 150% of previous */
  font-weight: 700;
  line-height: 1.05; /* even tighter inter-line spacing */
  /* container has no gradient; lines below carry their own */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0; /* hidden by default - should appear on scroll */
  transition: opacity 1200ms var(--ease-standard);
}

.hero__tagline.active {
  opacity: 1;
}

/* Apply per-line gradient and remove any shadow */
.hero__tagline-line {
  display: inline-block;
  background: linear-gradient(to bottom, #ffffff 0%, #ffffff 55%, #e65a29 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1.15;
  text-shadow: none;
}

/* Concept section */
.concept {
  padding: 0;
  position: relative;
  margin-top: 40px;
  z-index: 5;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.concept__badge[data-animate="fade-up"] {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--duration-normal) var(--ease-standard);
}

.concept__badge.animate {
  opacity: 1;
  transform: translateY(0);
}
.concept__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-32);
  background: rgba(26, 26, 31, 0.8);
  border: 2px solid #39D091;
  border-radius: 50px;
  padding: var(--space-32);
  max-width: 1200px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
  height: 520px;
}

.concept__text {
  flex: 1.2;
  text-align: center;
  max-width: 80%;
}

.concept__tag {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-8);
  text-align: center;
  display: inline-block;
  background-color: rgba(57, 208, 145, 0.4);
  border: 1px solid #39D091;
  border-radius: var(--radius-sm);
  padding: var(--space-4) var(--space-8);
  background-image: linear-gradient(to bottom, #ffffff 0%, #39D091 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.concept__title {
  font-family: var(--font-family-title);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 400;
  color: #ffffff;
  text-align: center;
  margin-bottom: var(--space-16);
  line-height: 1.2;
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 30%, #39D091 50%, #ffffff 70%, #ffffff 100%);
  background-size: 300% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleGradientShift 3s ease-in-out infinite;
}

.concept__subtitle {
  color: var(--color-gray-300);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-8);
  line-height: 1.3;
}

.concept__bold {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-8);
  line-height: 1.2;
  background-image: linear-gradient(to bottom, #ffffff 0%, #757F8D 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.concept__spacing {
  height: var(--space-8);
}

.concept__description {
  color: var(--color-gray-400);
  font-size: var(--font-size-lg);
  margin-bottom: 0;
  line-height: 1.3;
}

.concept__highlight {
  color: #39D091;
  font-weight: var(--font-weight-semibold);
}

.concept__gif {
  flex: 0.8;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  max-width: 40%;
}






/* Targets Section */
.targets {
  padding: 120px 0;
  position: relative;
}

.targets::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rbm-purple), transparent);
}

.section-title {
  font-size: var(--font-size-3xl);
  text-align: center;
  margin-bottom: var(--space-32);
  background: var(--rbm-gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: var(--font-weight-semibold);
}

.targets__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-32);
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.targets__assets,
.targets__business {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.asset-block,
.business-block {
  background: rgba(26, 26, 31, 0.8);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-24);
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--duration-normal) var(--ease-standard);
}

.asset-block.animate,
.business-block.animate {
  opacity: 1;
  transform: translateY(0);
}

.asset-block:hover,
.business-block:hover {
  border-color: var(--rbm-purple);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
  transform: translateY(-5px);
}

.asset-icon,
.business-icon {
  display: inline-block;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-base);
  background: var(--rbm-gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-bold);
  margin: 0 auto var(--space-16);
  font-size: var(--font-size-sm);
}

.asset-block h3,
.business-block h3 {
  color: var(--color-gray-200);
  margin-bottom: var(--space-8);
  font-size: var(--font-size-lg);
}

.asset-block p,
.business-block p {
  color: var(--color-gray-400);
  font-size: var(--font-size-sm);
  margin: 0;
}

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

.connections {
  width: 300px;
  height: 200px;
}

.connect-line {
  stroke-dasharray: 5, 5;
  animation: dashMove 3s linear infinite;
}

@keyframes dashMove {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 20; }
}

/* Status Section */
.status {
  padding: 120px 0;
  background: rgba(26, 26, 31, 0.5);
}

.roadmap {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.roadmap__chart {
  margin-bottom: var(--space-32);
}

.chart-container {
  background: rgba(10, 10, 15, 0.8);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-32);
}

.chart-axis {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-16);
}

.axis-label {
  font-size: var(--font-size-sm);
  color: var(--color-gray-400);
  font-weight: var(--font-weight-medium);
}

.chart-bars {
  display: flex;
  justify-content: space-between;
  align-items: end;
  height: 200px;
  position: relative;
}

.candlestick {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
  position: relative;
}

.candlestick:hover {
  transform: scale(1.05);
}

.candlestick__wick {
  width: 2px;
  height: 60px;
  background: var(--color-gray-400);
  margin-bottom: var(--space-4);
}

.candlestick__body {
  width: 20px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 2px solid;
}

.candlestick.completed .candlestick__body {
  background: var(--rbm-success-green);
  border-color: var(--rbm-success-green);
}

.candlestick.completed .candlestick__wick {
  background: var(--rbm-success-green);
}

.candlestick.current .candlestick__body {
  background: var(--rbm-electric-blue);
  border-color: var(--rbm-electric-blue);
  animation: currentPulse 2s ease-in-out infinite;
}

.candlestick.current .candlestick__wick {
  background: var(--rbm-electric-blue);
}

@keyframes currentPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
}

.candlestick.planned .candlestick__body {
  background: transparent;
  border-color: var(--color-gray-400);
}

.tooltip {
  position: absolute;
  background: rgba(10, 10, 15, 0.95);
  border: 1px solid var(--rbm-purple);
  border-radius: var(--radius-base);
  padding: var(--space-16);
  max-width: 250px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-fast) var(--ease-standard);
  z-index: 100;
  backdrop-filter: blur(10px);
}

.tooltip.show {
  opacity: 1;
  visibility: visible;
}

.tooltip__title {
  color: var(--rbm-purple);
  font-size: var(--font-size-md);
  margin-bottom: var(--space-8);
}

.tooltip__description {
  color: var(--color-gray-300);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-8);
}

.tooltip__date {
  color: var(--color-gray-400);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
}

/* FAQ Section - FIXED ACCORDION STYLES */
.faq {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.faq::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 60vh;
  transform: translateY(-50%);
  background-image: url('assets/RBM-chains.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.55;
  z-index: 1;
  pointer-events: none;
}

.faq .container {
  position: relative;
  z-index: 2;
}

.faq__list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-base);
  margin-bottom: var(--space-16);
  background: rgba(26, 26, 31, 0.7);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-standard);
}

.faq-item:hover {
  border-color: #39D091;
}

.faq-question {
  width: 100%;
  padding: var(--space-20);
  background: none;
  border: none;
  color: var(--color-gray-200);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--duration-fast) var(--ease-standard);
  font-family: var(--font-family-base);
}

.faq-question:hover {
  color: #39D091;
}

.faq-question:focus {
  outline: 2px solid #39D091;
  outline-offset: 2px;
}

.faq-icon {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: #ffffff;
  transition: transform var(--duration-normal) var(--ease-standard), color var(--duration-normal) var(--ease-standard);
  margin-left: var(--space-16);
  flex-shrink: 0;
}

.faq-question[aria-expanded="true"] {
  color: #39D091;
}

.faq-item:has(.faq-question[aria-expanded="true"]) {
  border-color: #39D091;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  color: #39D091;
}

/* FIXED FAQ Answer - improved transitions */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  background: rgba(10, 10, 15, 0.3);
}

.faq-answer.open {
  max-height: 200px;
}

.faq-answer p {
  padding: var(--space-20);
  color: #ffffff;
  line-height: var(--line-height-normal);
  margin: 0;
  font-size: var(--font-size-base);
  transition: all 0.3s ease;
}

/* Footer */
.footer {
  background: rgba(10, 10, 15, 0.95);
  border-top: 1px solid rgba(99, 102, 241, 0.2);
  padding: var(--space-32) 0 var(--space-16);
  position: relative;
  overflow: hidden;
}

.footer__flame {
  position: absolute;
  bottom: 0;
  top: auto;
  height: 60px;
  z-index: 1;
  pointer-events: none;
}

.footer__flame--left {
  left: 0;
}

.footer__flame--right {
  right: 0;
}

.footer__content {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 75px;
  margin-bottom: var(--space-32);
  position: relative;
  z-index: 2;
  justify-items: center;
  align-items: center;
  max-width: 1350px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 40px;
}

/* Default: let top row participate in the grid (desktop-first) */
.footer__top-row {
  display: contents;
}


.footer__column {
  text-align: center;
}

.footer__column:not(.footer__brand) {
  display: flex;
  align-items: flex-start;
  gap: var(--space-16);
  text-align: left;
}

.footer__brand-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  min-height: 80px; /* Ensure brand image maintains good size */
  position: relative;
  left: 0; /* Ensure perfect center alignment */
}

.footer__logo-image,
.footer__badge-image {
  height: 120px; /* Fixed height to match typical text column height */
  width: auto; /* Maintain aspect ratio */
  object-fit: contain; /* Fit within bounds without distortion */
  flex-shrink: 0;
  display: block;
}

.footer__text-content {
  flex: 1;
}

.footer__text-content p {
  color: var(--color-gray-400);
  margin: 0 0 var(--space-8) 0;
  font-size: var(--font-size-sm);
}

.footer__text-content p a {
  color: var(--color-gray-400);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

.footer__text-content p a:hover {
  color: var(--rbm-purple);
}

.footer__text-content p {
  font-size: var(--font-size-sm);
}

.footer__text-content p span.emoji,
.footer__text-content h4 span.emoji {
  font-size: 0.7em; /* Make emojis 70% of the font size */
  display: inline-block;
}

.footer__column h4 {
  color: var(--color-gray-200);
  margin-bottom: var(--space-16);
  font-size: var(--font-size-md);
}

.footer__column a {
  display: block;
  color: var(--color-gray-400);
  text-decoration: none;
  margin-bottom: var(--space-8);
  transition: color var(--duration-fast) var(--ease-standard);
}

.footer__column a:hover {
  color: var(--rbm-purple);
}

.footer__bottom {
  text-align: center;
  padding-top: var(--space-16);
  border-top: 1px solid rgba(99, 102, 241, 0.1);
  position: relative;
  z-index: 2;
  max-width: 1350px;
  margin: 0 auto;
}

.footer__bottom p {
  color: var(--color-gray-500);
  margin: 0;
  font-size: var(--font-size-sm);
}

/* Animation utility classes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drawLine {
  from {
    stroke-dashoffset: 1000;
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* Desktop GIF styles - moved before media queries to allow tablet override */
.concept__nft-gif {
  height: 100%;
  max-height: 520px;
  width: auto;
  object-fit: contain;
}

/* Responsive Design */
/* Tablet Vertical: 1024px down to 700px */
@media (max-width: 1024px) and (min-width: 701px) {
  .header__content {
    flex-direction: row;
    gap: var(--space-16);
  }
  
  .hero__title {
    font-size: clamp(2.5rem, 6vw, 4rem);
  }
  
  .hero__subtitle {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
  }
  
  .concept {
    margin-top: 20px;
  }
  
  .concept__content {
    flex-direction: column;
    gap: 0;
    text-align: center;
    height: auto;
    min-height: auto;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    max-width: none;
    margin: 0;
    backdrop-filter: none;
  }
  
  .concept__text {
    flex: none;
    padding: var(--space-2xl) var(--space-16) var(--space-lg) var(--space-16);
    margin-top: var(--space-lg);
    order: 1;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .concept__gif {
    order: 2;
    width: 100%;
    padding: 0;
    margin: 0;
    max-width: none;
    flex: none;
  }
  
  .concept__content .concept__gif .concept__nft-gif {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
    display: block;
    min-height: 400px;
    max-width: none;
  }
  
  .diagram-text--above {
    padding-bottom: 20px;
  }
  
  .diagram-text--below {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  
  .roadmap-text--below {
    padding-top: 10px;
    padding-bottom: 40px;
  }
  
  .protocol__diagram {
    grid-template-columns: 1fr;
    gap: var(--space-24);
  }
  
  /* Tablet-specific footer adjustments only */
  .footer__brand-image {
    width: clamp(280px, 50vw, 480px); /* Larger brand for tablet */
  }
  
  .footer__logo-image,
  .footer__badge-image {
    height: 100px; /* Slightly smaller than desktop */
  }
  
  /* FAQ chain positioning for tablet */
  .faq::before {
    top: 50%;
    height: 50vh;
    transform: translateY(-50%);
    background-position: center;
  }
  
  /* Tablet-specific: Make container exactly same width as header */
  .concept {
    padding: 0;
  }
}

/* Additional tablet media query for FAQ chain positioning */
@media (max-width: 1024px) {
  .faq::before {
    top: 50%;
    height: 50vh;
    transform: translateY(-50%);
    background-position: center;
  }
}

/* Mobile Vertical: 700px down to 340px */
@media (max-width: 700px) {
  .header__content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    padding: var(--space-6) var(--space-12);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid #39D091;
    border-radius: 25px;
    margin: var(--space-6) var(--space-12);
    max-width: calc(100% - 2 * var(--space-12));
    overflow: hidden; /* guard against horizontal overflow in tight widths */
  }
  
  .header::before {
    display: none;
  }
  
  .header {
    box-shadow: none;
    border: none;
  }
  
  .header__nav {
    display: none; /* Hide desktop nav on mobile */
  }
  
  .header__logo .logo-image {
    height: 32px;
    width: auto;
  }
  
  .header__cta {
    order: 2;
    margin-left: auto;
    margin-right: var(--space-8);
  }
  
  .header__cta .btn {
    padding: var(--space-6) var(--space-12);
    font-size: var(--font-size-xs);
    border-radius: 20px;
    white-space: nowrap;
    display: inline-flex;
    max-width: fit-content;
  }
  
  /* Add mobile menu toggle */
  .header__content::after {
    content: '';
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='3' y1='7' x2='21' y2='7'%3E%3C/line%3E%3Cline x1='3' y1='17' x2='21' y2='17'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    order: 3;
    flex-shrink: 0;
    transition: all 0.3s ease;
  }
  
  /* X animation when menu is active */
  body.mobile-menu-open .header__content::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2339D091' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
    transform: rotate(0deg) scale(1.1);
    filter: drop-shadow(0 0 4px rgba(57, 208, 145, 0.6));
  }
  
  /* Mobile Menu Styles */
  .mobile-menu {
    position: fixed;
    top: 80px;
    right: calc(var(--space-12) + var(--space-6));
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid #39D091;
    border-radius: 12px;
    z-index: 9999;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  }
  
  .mobile-menu.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }
  
  .mobile-menu__content {
    display: flex;
    flex-direction: column;
    padding: var(--space-20);
    gap: var(--space-16);
  }
  
  .mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
  }
  
  .mobile-menu__link {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    padding: var(--space-8) var(--space-12);
    border-radius: var(--radius-base);
    transition: all 0.3s ease;
    text-align: left;
  }
  
  .mobile-menu__link:hover {
    color: #39D091;
    background: rgba(57, 208, 145, 0.1);
  }
  
  .mobile-menu__cta {
    margin-top: var(--space-8);
    border-top: 1px solid rgba(57, 208, 145, 0.2);
    padding-top: var(--space-8);
  }
  
  .mobile-menu__cta .btn {
    background: linear-gradient(to bottom, #BFBFBF 0%, #FFFFFF 100%);
    color: #000000;
    border: none;
    padding: var(--space-8) var(--space-16);
    border-radius: var(--radius-full);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-standard);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 4px 12px rgba(0,0,0,0.15);
    width: 100%;
    text-align: center;
  }
  
  .mobile-menu__cta .btn:hover {
    background: linear-gradient(to bottom, #39D091 0%, #000000 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(57, 208, 145, 0.35);
  }
  
  .hero {
    padding-top: 0;
    margin-top: 0;
    min-height: 100vh;
    border-bottom-left-radius: 64px;
    border-bottom-right-radius: 64px;
  }
  
  .hero > .container {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  
  .hero__content {
    max-width: none;
    width: 100%;
    margin: 0;
    padding-left: var(--space-16);
    padding-right: var(--space-16);
    padding-top: 200px;
    padding-bottom: 80px;
    min-height: 100vh;
    justify-content: flex-start;
  }
  
  .hero__panel {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    border-bottom-left-radius: 64px;
    border-bottom-right-radius: 64px;
  }
  
  .hero__background {
    width: 100%;
    max-width: none;
    border-bottom-left-radius: 64px;
    border-bottom-right-radius: 64px;
  }
  
  .hero__flames {
    height: auto;
    width: 100%;
    max-height: 500px;
    min-height: 300px;
    object-fit: contain;
    object-position: bottom center;
    bottom: 0;
    top: auto;
    border-bottom-left-radius: 64px;
    border-bottom-right-radius: 64px;
    opacity: 0;
  }
  
  /* Keep desktop flame hiding rule for mobile - flames appear on scroll */
  .hero .hero__flames.active {
    opacity: 1;
  }
  
  .hero__title {
    font-size: clamp(2rem, 6vw, 4rem);
    margin-top: var(--space-24);
  }
  
  .hero__chains {
    left: 50%;
    transform: translate(-50%, -50%);
    object-position: center center;
  }
  
  .rbm-badge {
    margin-top: var(--space-32);
    margin-bottom: var(--space-32);
    margin-left: auto;
    margin-right: auto;
    display: block;
    text-align: center;
  }
  
  .hero__tagline {
    margin-top: var(--space-48);
    margin-bottom: var(--space-32);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
  }
  
  .concept__content {
    flex-direction: column;
    text-align: center;
    background: none;
    border: none;
    border-radius: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    height: auto;
    backdrop-filter: none;
  }
  
  .targets__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .connection-lines {
    display: none;
  }
  
  .footer__content {
    grid-template-columns: 1fr;
  }
  
  .footer__links {
    grid-template-columns: 1fr;
    gap: var(--space-24);
  }

  .footer__brand {
    order: 0;
    margin: var(--space-16) 0;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .footer__brand-image {
    width: 280px;
    max-width: 80%;
    height: auto;
  }
}

/* Mobile (≤700px): brand + flames + copyright only */
@media (max-width: 700px) {
  .footer__top-row { display: none; }
  .footer__flame { 
    position: absolute; 
    top: 0; 
    bottom: 0; 
    height: 100%; 
  }
  
  /* Mobile vertical: adjust chain position */
  .hero__chains {
    top: 30%;
  }
}


/* Tablet (701px-1024px): 2-column grid with brand below, full-height flames */
@media (min-width: 701px) and (max-width: 1024px) {
  .footer__flame { position: absolute; top: 0; bottom: 0; height: 100%; }
  .footer__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-24);
    align-items: center;
  }
  .footer__top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-24);
    width: 100%;
    max-width: 700px;
    justify-items: center;
  }
  .footer__column:not(.footer__brand) {
    display: flex;
    align-items: flex-start;
    gap: var(--space-12);
    text-align: left;
    width: 100%;
    max-width: 300px;
  }
  .footer__brand {
    order: 3;
    margin-top: var(--space-16);
  }
  .footer__brand-image {
    width: clamp(280px, 50vw, 480px);
  }
  .footer__logo-image,
  .footer__badge-image {
    height: 100px;
  }
}
/* Mobile landscape specific refinements (<=700px and landscape) */
@media (max-width: 700px) and (orientation: landscape) {
  .header__content {
    height: 44px;
    padding: 4px 10px; /* tighter padding to fit controls */
    margin: 4px 10px;
    gap: 8px;
  }

  .header__logo .logo-image {
    height: 26px; /* smaller logo to avoid clipping */
  }

  .header__cta {
    margin-right: 6px;
    flex-shrink: 0; /* prevent button from shrinking unpredictably */
  }
  .header__cta .btn {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 16px;
    white-space: nowrap;
  }

  .header__content::after {
    width: 18px;
    height: 18px;
    flex-shrink: 0; /* keep hamburger visible */
  }

  /* Hide diagram on mobile horizontal due to overflow */
  .rbm-diagram {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 0;
    margin-top: 0;
  }
  
  .header__nav {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
  }
  
  .hero__title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: var(--font-size-2xl);
  }
  
  .concept {
    margin-top: 40px;
  }
  
  .concept__text {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-16);
    padding-right: var(--space-16);
  }
  
  /* Hide diagram and roadmap on mobile */
  .rbm-diagram {
    display: none;
  }
  
  .roadmap-chart {
    display: none;
  }
  
  /* FAQ chain positioning for mobile - center in middle of FAQ */
  .faq::before {
    top: 50%;
    height: 50vh;
    transform: translateY(-50%);
    background-position: center;
  }
  
  .concept__content {
    margin: 0;
  }
  
  .concept__gif {
    max-width: none;
    flex: none;
  }
  
  .concept__content .concept__gif .concept__nft-gif {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
    display: block;
    min-height: 350px;
    max-width: none;
  }
  
  .diagram-text--above {
    padding-bottom: 15px;
  }
  
  .diagram-text--below {
    padding-top: 15px;
    padding-bottom: 15px;
  }
  
  .roadmap-text--below {
    padding-top: 8px;
    padding-bottom: 30px;
  }
}


/* RBM chains background layer */
.hero__chains {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  z-index: 1;
  pointer-events: none;
}

/* Chains are now fixed - no fade animation */

/* Matrix rain effect canvas */
.hero__matrix-rain {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* above background, below chains and content */
  pointer-events: none; /* don't interfere with interactions */
  opacity: 0.6; /* slightly transparent to blend with background */
}

/* Hide mobile menu on desktop by default (allow override on mobile) */
.mobile-menu {
  display: none; /* no !important so .active can override at mobile */
}

/* Ensure mobile menu is hidden on desktop and tablet */
@media (min-width: 701px) {
  .mobile-menu {
    display: none;
  }
}

/* Desktop footer layout - ensure proper display on large screens */
/* Tablet & Desktop: three-column layout (left info | brand | right info) */
@media (min-width: 1025px) {
  .footer__content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    justify-items: center;
    gap: 32px; /* thinner layout */
  }
  /* Let the two columns participate directly in the grid */
  .footer__top-row { display: contents; }
  .footer__top-row > .footer__column:first-child { 
    grid-column: 1; 
    grid-row: 1;
    justify-self: end;
  }
  .footer__top-row > .footer__column:last-child { 
    grid-column: 3; 
    grid-row: 1;
    justify-self: start;
  }
  .footer__brand { 
    grid-column: 2; 
    grid-row: 1;
    justify-self: center; 
    align-self: center; 
  }

  .footer__column:not(.footer__brand) {
    display: flex;
    align-items: center;
    gap: var(--space-16);
    text-align: left;
    justify-content: center;
  }
  .footer__brand-image { width: clamp(260px, 36vw, 420px); height: auto; }
  /* Desktop flames: full height */
  .footer__flame { position: absolute; top: 0; bottom: 0; height: 100%; }
}

/* RBM Core Diagram Styles */
.rbm-diagram {
  padding: 0;
  background: transparent;
}

/* Diagram text containers */
.diagram-text {
  background: transparent;
  padding: 60px 0;
}

.diagram-text--above {
  padding-bottom: 30px;
}

.diagram-text--below {
  padding-top: 30px;
  padding-bottom: 30px;
}

.diagram-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.2;
}

.diagram-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #cccccc;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Parallax Image Section */
.parallax-section {
  height: 140px; /* Same height as marquee text section (40px padding + ~100px text) */
  overflow: hidden;
  position: relative;
  width: 100%;
}

.parallax-image {
  height: 200%; /* Much taller to allow showing top/bottom edges */
  width: 100%;
  background-image: url('assets/crossection.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  top: -50%; /* Center the image vertically (200% height, so -50% centers it) */
  left: 0;
}

/* Scrolling Text Marquee */
.scrolling-marquee {
  background: transparent;
  padding: 20px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee-content {
  display: flex;
  animation: scroll-left 20s linear infinite;
  width: max-content;
}

.marquee-text {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 400;
  background: linear-gradient(to bottom, #BFBFBF 0%, #FFFFFF 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  letter-spacing: 0px;
  white-space: nowrap;
  margin-right: 50px;
  line-height: 1.5;
}

.marquee-text::after {
  content: attr(data-text);
  margin-left: 50px;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Roadmap Chart Section */
.roadmap-chart {
  padding: 0;
  background: transparent;
}

/* Roadmap text containers */
.roadmap-text {
  background: transparent;
  padding: 60px 0;
}

.roadmap-text--above {
  padding-bottom: 0px;
}

.roadmap-text--below {
  padding-top: 15px;
  padding-bottom: 60px;
  margin-top: 0;
}

/* Reusable section title with green flare animation */
.section-title {
  font-family: var(--font-family-title);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 30%, #39D091 50%, #ffffff 70%, #ffffff 100%);
  background-size: 300% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleGradientShift 3s ease-in-out infinite;
}

.roadmap-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.2;
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 30%, #39D091 50%, #ffffff 70%, #ffffff 100%);
  background-size: 300% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleGradientShift 3s ease-in-out infinite;
}

.roadmap-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #cccccc;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

#diagramWrapper {
  width: 100%;
  max-width: 1240px;
  margin: 60px auto 0 auto;
  position: relative;
  height: 600px;
  display: grid;
  grid-template-columns: 1fr min-content 1fr;
  grid-template-rows: 600px;
  align-items: center;
  justify-items: center;
}

.sideCol {
  display: flex;
  flex-direction: column;
  height: 510px;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 2;
}

.block {
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(188, 201, 220, 0.27);
  min-width: 318px;
  max-width: 388px;
  width: max-content;
  margin-bottom: 0;
  background: #fff;
  border: 2.2px solid #e8eaf2; /* Default: light grey */
}

.rbm-diagram .block-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 41px;
  background: linear-gradient(90deg, #eaeef2 70%, #d8eafe 100%);
  border-radius: 22px 22px 0 0;
  padding: 0 18px 0 13px;
}

.dots {
  min-width: 46px;
  display: flex;
  align-items: center;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 6px;
  display: inline-block;
}

.dot1 {
  background: #5fd15f;
}

.dot2 {
  background: #ffe55f;
}

.dot3 {
  background: #ff514f;
  margin-right: 0;
}

.rbm-diagram .block-header .header-title {
  flex: 1;
  text-align: right;
  font-weight: 700;
  font-size: 1.09em;
  margin-left: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #7a869a;
  letter-spacing: 0.01em;
}

.block-content {
  padding: 18px 25px 11px 25px;
  font-size: 1.13em;
}

.main {
  font-weight: 900;
  font-size: 1.16em;
  margin-bottom: 0.07em;
  color: #18191f;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.sub {
  font-size: 1em;
  color: #555;
  font-weight: 500;
  margin-top: 2px;
}

.checkmark {
  width: 19px;
  height: 19px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Gradient for NFT actors & DeFi actors only */
.nft-actors {
  background: linear-gradient(90deg, #4ba6f9 14%, #153f88 100%);
  color: #fff;
}

.defi-actors {
  background: linear-gradient(90deg, #b894e9 8%, #656bcd 100%);
  color: #fff;
}

.nft-actors .main,
.defi-actors .main {
  color: #fff;
}

.nft-actors .sub,
.defi-actors .sub {
  color: #e6e6e6;
}

.web3-comp {
  background: #fff;
}

/* SPECIAL COLORED BORDERS */
.nft-actors {
  border: 2.2px solid #438dff; /* Vivid blue */
}

.defi-actors {
  border: 2.2px solid #a966f7; /* Light purple */
}

.web3-comp {
  border: 2.2px solid #52e5c1; /* Vivid cyan/green */
}

/* RBM Core styling */
#coreBlock {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(107, 140, 253, 0.38);
  background: #18191f;
  color: #fff;
  min-width: 243px;
  width: max-content;
  max-width: 320px;
  min-height: 83px;
  z-index: 3;
  grid-column: 2;
  grid-row: 1;
  border: 2.2px solid #22262a; /* strong dark border */
}

#coreBlock .header {
  background: #22262a;
  color: #fff;
  border-radius: 22px 22px 0 0;
  height: 41px;
  min-width: 220px;
  padding-right: 16px;
  padding-left: 13px;
}

#coreBlock .block-content {
  padding: 14px 25px 10px 25px;
  text-align: left;
  font-size: 1.13em;
  align-items: flex-start;
  min-width: 140px;
  min-height: 41px;
  width: max-content;
  max-width: 260px;
}

#coreBlock .main {
  font-weight: 700;
  color: #33ff99;
  font-size: 1.13em;
  margin-bottom: 3px;
  text-align: left;
}

#coreBlock .sub {
  font-weight: 400;
  font-size: 1.08em;
  color: #49eed2;
  text-align: left;
  margin-top: 1px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  #diagramWrapper {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
    gap: 40px;
  }
  
  .sideCol {
    align-items: center;
    height: auto;
    gap: 20px;
  }
  
  #coreBlock {
    grid-column: 1;
    grid-row: 2;
    margin: 20px auto;
  }
  
  .block {
    min-width: 280px;
    max-width: 350px;
  }
}