/* ============================================================
   BASE — Custom Properties + Reset
============================================================ */

/* ---- CSS Custom Properties --------------------------------- */
:root {
  --bg:           #09090B;
  --bg-2:         #111114;
  --bg-card:      #16161A;
  --bg-card-2:    #1C1C21;
  --border:       rgba(255,255,255,0.07);
  --border-glow:  rgba(var(--purple-rgb), 0.35);

  --text:         #F4F4F5;
  --text-muted:   #71717A;
  --text-dim:     #3F3F46;

  --purple:       #8B5CF6;
  --purple-light: #A78BFA;
  --purple-dark:  #6D28D9;
  --purple-glow:  rgba(var(--purple-rgb), 0.2);
  /* RGB channels of the primary, for rgba(var(--purple-rgb), a) tints */
  --purple-rgb:       139,92,246;
  --purple-light-rgb: 167,139,250;
  --purple-dark-rgb:  109,40,217;
  --green:        #34D399;
  --amber:        #F59E0B;

  --radius-sm:    8px;
  --radius:       16px;
  --radius-lg:    24px;
  --radius-xl:    32px;

  --shadow-card:  0 4px 32px rgba(0,0,0,0.4);
  --shadow-glow:  0 0 48px rgba(var(--purple-rgb), 0.15);

  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-body:   'Plus Jakarta Sans', system-ui, sans-serif;
  --font-display:'Manrope', system-ui, sans-serif;
}

/* ---- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; min-height: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Sticky footer: case study pages use .cs-nav-footer */
.cs-nav-footer { margin-top: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ---- Focus visibility (keyboard nav only) ------------------- */
:focus-visible {
  outline: 2px solid var(--purple-light);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
