/* ==========================================================================
   VYGOTANIUM — Design tokens
   A rich-black / graphite / near-white base with restrained cyan-violet
   accents. Blue is not banished — it lives in the logo and one accent —
   it's just no longer the whole site's personality.
   ========================================================================== */

:root {
  /* ---- surface ---- */
  --ink:        #08090b;   /* base background */
  --ink-raised: #0e1013;   /* slightly lifted panels */
  --graphite:   #14171c;   /* card / section surfaces */
  --graphite-2: #1b1f26;   /* hover / elevated state */
  --hairline:   #262b33;   /* borders, dividers */
  --hairline-soft: rgba(255,255,255,0.06);

  /* ---- text ---- */
  --paper:      #f3f1ec;   /* primary text, warm near-white */
  --paper-dim:  #c9cad0;   /* secondary text */
  --silver:     #8b9098;   /* tertiary / muted text */
  --silver-dim: #5a5f68;   /* faintest text, captions */

  /* ---- accent ---- */
  --cyan:       #5fd4d8;
  --cyan-dim:   #2a5f63;
  --violet:     #8b7cf6;
  --violet-dim: #423a6e;
  --blue:       #4f8cff;   /* the logo's blue, used sparingly */
  --amber:      #f0b429;   /* in-development / build-progress status */
  --amber-dim:  #6b4f14;

  /* ---- gradients ---- */
  --aurora: linear-gradient(120deg, var(--blue) 0%, var(--cyan) 45%, var(--violet) 100%);
  --glass-edge: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0));

  /* ---- type ---- */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  /* ---- scale ---- */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
  --space-7: 144px;

  --radius-sm: 3px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--ink);
  color: var(--paper-dim);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

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

button { font-family: inherit; cursor: pointer; }

ul, ol { list-style: none; }

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

::selection { background: rgba(95,212,216,0.28); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ==========================================================================
   Typography scale
   ========================================================================== */

h1, h2, h3, h4 {
  color: var(--paper);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.display-1 {
  font-size: clamp(48px, 7vw, 108px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

.display-2 {
  font-size: clamp(34px, 4.6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

.display-3 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.body-lg { font-size: clamp(17px, 1.6vw, 21px); font-weight: 400; line-height: 1.6; color: var(--paper-dim); }
.body-md { font-size: 16px; line-height: 1.6; color: var(--paper-dim); }
.body-sm { font-size: 14px; line-height: 1.55; color: var(--silver); }

.mono-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}

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

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
}

@media (min-width: 1024px) { .container { padding: 0 56px; } }

.container-narrow { max-width: 860px; }

section { position: relative; }

.panel {
  background: var(--graphite);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
}

.hairline-top { border-top: 1px solid var(--hairline); }
.hairline-bottom { border-bottom: 1px solid var(--hairline); }

/* glass surface used sparingly — nav, floating dock, key cards */
.glass {
  background: rgba(20, 23, 28, 0.62);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.08);
}

/* subtle grain texture overlay, applied once at body level via ::before in base.css companion file */
