/* ============================================================
   KazManager — Design System Global
   Version : 1.0 · 2026-03-26
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-primary:    #080c10;
  --bg-secondary:  #0d1319;
  --bg-tertiary:   #111820;

  /* Accents */
  --accent-cyan:   #00e5ff;
  --accent-green:  #7fffb0;
  --accent-amber:  #ffad00;
  --accent-red:    #ff4757;

  /* Texte */
  --text-primary:  #f0f8ff;
  --text-body:     #c8d8e8;
  --text-muted:    #5a7a90;

  /* Bordures */
  --border:        #1e2d3d;
  --border-accent: rgba(0, 229, 255, 0.3);

  /* Typographie */
  --font-display:  'Space Grotesk', sans-serif;
  --font-mono:     'IBM Plex Mono', monospace;

  /* Spacing */
  --section-padding: 96px 0;
  --container-max:   960px;
  --container-pad:   24px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;
}

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

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

body {
  background-color: var(--bg-primary);
  color: var(--text-body);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(36px, 6vw, 62px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h4 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

p {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-body);
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

a:hover {
  opacity: 0.8;
}

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

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

section {
  padding: var(--section-padding);
  position: relative;
}

/* ── Section Labels ───────────────────────────────────────── */
.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent-cyan);
  opacity: 0.6;
}

/* ── Hero centrage ────────────────────────────────────────── */
#hero .container {
  text-align: center;
}

/* ── Grid ─────────────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ── Utilities ────────────────────────────────────────────── */
.text-cyan   { color: var(--accent-cyan); }
.text-green  { color: var(--accent-green); }
.text-amber  { color: var(--accent-amber); }
.text-red    { color: var(--accent-red); }
.text-muted  { color: var(--text-muted); }
.text-mono   { font-family: var(--font-mono); }

.font-mono { font-family: var(--font-mono); }

.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mb-64 { margin-bottom: 64px; }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

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

/* ── Dividers ─────────────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border) 20%,
    var(--border) 80%,
    transparent
  );
  margin: 0;
}

.divider-accent {
  background: linear-gradient(
    90deg,
    transparent,
    var(--border-accent) 30%,
    var(--border-accent) 70%,
    transparent
  );
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
  :root {
    --section-padding: 72px 0;
    --container-pad: 20px;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  :root {
    --section-padding: 56px 0;
    --container-pad: 16px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 26px;
  }
}
