/* =========================================================
   HIDRYX — GLOBAL DESIGN TOKENS & BASE STYLES
   Shared across the site. Page-level style.css files add
   page-specific styling on top of these variables.
   Values sourced from 19_BRAND_GUIDELINES/design-tokens.json
   and 08_WEBSITE/website-guidelines.md — not new design.
========================================================= */

:root {

  /* ---- Core palette (brand source of truth) ---- */
  --hx-bg: #0A0A0C;
  --hx-panel: #0F0D12;
  --hx-surface-1: #0F0D12;
  --hx-surface-2: #121014;
  --hx-surface-hover: #17131C;
  --hx-surface-active: #1B1620;
  --hx-surface-active-2: #201A28;
  --hx-border: #241E2C;

  --hx-purple-dark: #2E0B4E;
  --hx-purple: #4B1878;
  --hx-violet: #8A4FD1;
  --hx-accent: #8A4FD1;

  --hx-text-primary: #EDEBF2;
  --hx-text-secondary: #B9AFCB;
  --hx-text-muted: #6E6480;

  /* ---- Semantic status colors (muted, brand-tinted) ---- */
  --hx-success: #69D69B;
  --hx-warning: #C9974A;
  --hx-danger: #C4536B;

  /* ---- Typography ---- */
  --hx-font-primary: "Space Grotesk", "IBM Plex Sans Arabic", sans-serif;
  --hx-font-secondary: "Space Grotesk", "IBM Plex Sans Arabic", sans-serif;
  --hx-font-mono: "IBM Plex Mono", "Space Grotesk", monospace;

  /* ---- Radius / motion ---- */
  --hx-radius-sm: 4px;
  --hx-radius-md: 6px;
  --hx-radius-lg: 10px;
  --hx-radius-pill: 999px;

  --hx-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---- Reset ---- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--hx-bg);
  color: var(--hx-text-primary);
  font-family: var(--hx-font-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button,
input,
textarea,
select {
  font-family: inherit;
}

button {
  cursor: pointer;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

::selection {
  background: var(--hx-violet);
  color: var(--hx-bg);
}

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