/* ═══════════════════════════════════════════════════════════
   BELKIS ONE 1.0 — Core Design System
   ═══════════════════════════════════════════════════════════ */

/* ─── Custom Properties ─── */
:root {
  /* Base Colors */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --text-primary: #f0f0f5;
  --text-secondary: #8e8e93;
  --text-muted: #5a5a65;

  /* Semantic Colors */
  --danger: #ff3b30;
  --danger-light: #ff6b6b;
  --warning: #ffcc00;
  --warning-dark: #ff9500;
  --success: #34c759;
  --success-light: #30d158;
  --progress: #00d4ff;
  --progress-light: #5ac8fa;
  --accent: #ffffff;

  /* Zone Colors */
  --zone-critical: #ff3b30;
  --zone-concerning: #ff9500;
  --zone-mixed: #ffcc00;
  --zone-positive: #34c759;
  --zone-excellent: #00d4ff;

  /* Glass Effect */
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bg-hover: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.15);
  --glass-blur: 20px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.15);

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', 'Liberation Mono', monospace;

  --text-hero: clamp(4rem, 10vw, 10rem);
  --text-section: clamp(2rem, 5vw, 4rem);
  --text-sub: clamp(1.2rem, 3vw, 2rem);
  --text-body: clamp(0.875rem, 2vw, 1.125rem);
  --text-label: clamp(0.75rem, 1.5vw, 0.875rem);
  --text-micro: clamp(0.625rem, 1.2vw, 0.75rem);

  /* Spacing */
  --space-xs: clamp(0.25rem, 0.5vw, 0.5rem);
  --space-sm: clamp(0.5rem, 1vw, 1rem);
  --space-md: clamp(1rem, 2vw, 2rem);
  --space-lg: clamp(2rem, 4vw, 4rem);
  --space-xl: clamp(3rem, 6vw, 6rem);
  --space-2xl: clamp(4rem, 8vw, 8rem);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 200ms;
  --duration-normal: 400ms;
  --duration-slow: 800ms;
  --duration-slower: 1200ms;

  /* Layout */
  --max-width: 1200px;
  --max-width-wide: 1440px;
  --section-padding: clamp(2rem, 5vw, 5rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

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

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

a:hover {
  color: var(--progress-light);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* ─── Typography ─── */
.text-hero {
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}

.text-section {
  font-size: var(--text-section);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.text-sub {
  font-size: var(--text-sub);
  font-weight: 600;
  line-height: 1.3;
}

.text-body {
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.6;
}

.text-label {
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.text-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

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

.text-gradient {
  background: linear-gradient(135deg, var(--progress), var(--success-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─── Layout ─── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--wide {
  max-width: var(--max-width-wide);
}

.section {
  position: relative;
  min-height: 100vh;
  padding: var(--section-padding) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  transition: background-color 1s ease;
}

.section__content {
  position: relative;
  z-index: 2;
}

.section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ─── Utility Classes ─── */
.flex {
  display: flex;
}

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

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

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

.flex-wrap {
  flex-wrap: wrap;
}

.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.grid {
  display: grid;
}

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

.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;
}

.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* ─── Reduced Motion ─── */
@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;
  }
}

/* ─── Focus Styles ─── */
:focus-visible {
  outline: 2px solid var(--progress);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ─── Selection ─── */
::selection {
  background: rgba(0, 212, 255, 0.3);
  color: var(--text-primary);
}
