/* Chaimex Labs — design tokens & base
   v2: dark-first premium theme — deep space navy, electric blue / violet
   accents, glass surfaces. */
:root {
  --cx-bg: #07090F;          /* page base */
  --cx-bg-raised: #0B0E16;   /* alternating "soft" sections */
  --cx-carbon: #07090F;      /* kept name: darkest band (hero, footer, cta) */

  --cx-blue: #3D6BFF;        /* electric blue — primary actions */
  --cx-blue-bright: #5B82FF; /* hover */
  --cx-blue-soft: #8FB0FF;   /* accent text / links on dark (AA) */
  --cx-violet: #9D7CFF;      /* secondary accent */
  --cx-live: #3DD68C;

  --cx-text-hi: #EAECF4;     /* headings */
  --cx-text: #A9AFC3;        /* body */
  --cx-text-dim: #7A8095;    /* labels, meta */

  --cx-glass: rgba(255, 255, 255, .045);
  --cx-glass-hover: rgba(255, 255, 255, .07);
  --cx-edge: rgba(255, 255, 255, .09);
  --cx-edge-strong: rgba(255, 255, 255, .18);

  --cx-radius-sm: 10px;
  --cx-radius-md: 14px;
  --cx-radius-lg: 20px;

  --cx-shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --cx-shadow-md: 0 12px 32px rgba(0, 0, 0, .35);
  --cx-glow-blue: 0 0 28px rgba(61, 107, 255, .35);

  --cx-ease: cubic-bezier(.16, 1, .3, 1);

  --cx-font-display: 'Clash Display', 'Satoshi', -apple-system, sans-serif;
  --cx-font-body: 'Satoshi', -apple-system, sans-serif;
  --cx-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.cx-site {
  margin: 0;
  font-family: var(--cx-font-body);
  color: var(--cx-text);
  background: var(--cx-bg);
  -webkit-font-smoothing: antialiased;
}
body.cx-lock-scroll { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--cx-font-display); color: var(--cx-text-hi); line-height: 1.08; margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.4rem); font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { line-height: 1.65; color: var(--cx-text); margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }

.cx-shell { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.cx-section { padding: 96px 0; }
.cx-section-soft { background: var(--cx-bg-raised); }

/* Darkest band + faint blueprint dot grid (hero, why, cta, footer) */
.cx-section-dark {
  background-color: var(--cx-carbon);
  background-image: radial-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 26px 26px;
}

/* Eyebrow: mono label with a status-LED square */
.cx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--cx-font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cx-blue-soft);
  margin: 0 0 1em;
}
.cx-eyebrow::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--cx-blue);
  box-shadow: 0 0 10px rgba(61, 107, 255, .8);
  flex: none;
}

.cx-section-head { max-width: 640px; margin: 0 0 48px; }
.cx-section-head.cx-center { margin-inline: auto; text-align: center; }
.cx-section-head.cx-center .cx-eyebrow { justify-content: center; }

.cx-highlight { color: var(--cx-blue-soft); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .cx-highlight {
    background: linear-gradient(100deg, var(--cx-blue-bright), var(--cx-violet));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.cx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 14px 26px;
  border-radius: var(--cx-radius-sm);
  font-weight: 700;
  font-size: .95rem;
  background: var(--cx-blue);
  color: #fff;
  box-shadow: var(--cx-glow-blue);
  transition: transform .25s var(--cx-ease), box-shadow .25s var(--cx-ease), background .2s var(--cx-ease);
}
.cx-btn:hover { transform: translateY(-2px); background: var(--cx-blue-bright); box-shadow: 0 0 36px rgba(61, 107, 255, .5); }
.cx-btn-secondary {
  background: var(--cx-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--cx-text-hi);
  box-shadow: inset 0 0 0 1.5px var(--cx-edge);
}
.cx-btn-secondary:hover { background: var(--cx-glass-hover); box-shadow: inset 0 0 0 1.5px var(--cx-edge-strong); }
.cx-btn-small { padding: 10px 18px; font-size: .85rem; }

.cx-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.cx-actions.cx-center { justify-content: center; }

/* Glass card — the default surface everywhere */
.cx-card {
  background: var(--cx-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-radius: var(--cx-radius-md);
  border: 1px solid var(--cx-edge);
  transition: transform .3s var(--cx-ease), border-color .3s var(--cx-ease), background .3s var(--cx-ease);
}
.cx-card:hover {
  transform: translateY(-4px);
  background: var(--cx-glass-hover);
  border-color: var(--cx-edge-strong);
}

/* Panel = non-hover glass (hero rail, sidebars) */
.cx-panel {
  background: var(--cx-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--cx-edge);
  border-radius: var(--cx-radius-md);
}

:focus-visible {
  outline: 2px solid var(--cx-blue-bright);
  outline-offset: 3px;
}

.cx-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--cx-blue);
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 var(--cx-radius-sm) 0;
}
.cx-skip-link:focus { left: 0; }

[data-cx-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--cx-ease), transform .6s var(--cx-ease);
}
[data-cx-reveal].cx-revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-cx-reveal] { transition: none; opacity: 1; transform: none; }
  .cx-btn, .cx-card { transition: none; }
}

@media (max-width: 640px) {
  .cx-section { padding: 64px 0; }
}
