/* ==========================================================================
   LIGONEXUS — DESIGN TOKENS
   Engineering-schematic brand system. Every value below is a deliberate
   choice, not a framework default — see /assets/README-design.md for the
   rationale behind the palette, type scale and the "Signal Map" signature.
   ========================================================================== */

:root {
  /* ---- Color: base ---- */
  --ink-950: #07111F;      /* primary dark background */
  --ink-900: #0D1729;      /* card / surface */
  --ink-850: #101d33;      /* elevated surface */
  --ink-border: rgba(255, 255, 255, 0.08);
  --ink-border-strong: rgba(255, 255, 255, 0.16);

  --paper: #F7FAFC;        /* light section background */
  --paper-card: #FFFFFF;

  --ink-text: #0A0F1F;     /* text on light */
  --ink-text-soft: #64748B;
  --mist-text: rgba(247, 250, 252, 0.72);   /* body text on dark */
  --mist-text-soft: rgba(247, 250, 252, 0.48);

  /* ---- Color: brand ---- */
  --royal: #0A4DFF;
  --royal-dim: #0A3FCC;
  --cyan: #00D9FF;
  --violet: #6C4DFF;
  --gold: #F4B400;
  --success: #22C55E;

  /* signal gradient — used exactly once per view, never stacked */
  --signal-gradient: linear-gradient(115deg, var(--royal) 0%, var(--violet) 52%, var(--cyan) 100%);

  /* ---- Type families ---- */
  --font-display: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  --font-body: "Plus Jakarta Sans", "Inter", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", monospace;

  /* ---- Type scale (fluid) ---- */
  --fs-display-xl: clamp(3.2rem, 2.1rem + 5vw, 7.2rem);
  --fs-display-l: clamp(2.6rem, 1.9rem + 3vw, 5rem);
  --fs-display-m: clamp(2.1rem, 1.7rem + 1.6vw, 3.2rem);
  --fs-display-s: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  --fs-body-l: clamp(1.1rem, 1.02rem + 0.3vw, 1.3rem);
  --fs-body: 1rem;
  --fs-body-s: 0.9rem;
  --fs-mono: 0.8rem;
  --fs-eyebrow: 0.78rem;

  /* ---- Spacing ---- */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1.25rem;
  --space-m: 2rem;
  --space-l: 3.5rem;
  --space-xl: 6rem;
  --space-2xl: 9rem;
  --space-3xl: 12rem;

  /* ---- Layout ---- */
  --container-w: 1320px;
  --container-pad: clamp(1.25rem, 4vw, 3.5rem);
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --radius-full: 999px;

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur-med: 420ms;
  --dur-slow: 900ms;

  /* ---- Shadow / depth ---- */
  --shadow-s: 0 2px 10px rgba(3, 8, 20, 0.35);
  --shadow-m: 0 12px 40px rgba(3, 8, 20, 0.45);
  --shadow-l: 0 30px 80px rgba(3, 8, 20, 0.55);
  --shadow-glow-royal: 0 0 0 1px rgba(10, 77, 255, 0.35), 0 20px 60px rgba(10, 77, 255, 0.25);
  --shadow-glow-cyan: 0 0 0 1px rgba(0, 217, 255, 0.3), 0 20px 60px rgba(0, 217, 255, 0.18);
}

/* ==========================================================================
   RESET
   ========================================================================== */

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

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

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

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd {
  margin: 0;
}

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

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

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

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

button { cursor: pointer; background: none; border: none; }

/* ==========================================================================
   BASE
   ========================================================================== */

body {
  font-family: var(--font-body);
  background: var(--ink-950);
  color: var(--mist-text);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.on-light {
  background: var(--paper);
  color: var(--ink-text-soft);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.on-light h1, .on-light h2, .on-light h3, .on-light h4 { color: var(--ink-text); }

::selection {
  background: var(--violet);
  color: #fff;
}

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

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.bleed {
  width: 100%;
  max-width: none;
}

section { position: relative; }

.section-pad { padding-block: var(--space-2xl); }
.section-pad-s { padding-block: var(--space-xl); }

@media (max-width: 780px) {
  .section-pad { padding-block: var(--space-xl); }
  .section-pad-s { padding-block: var(--space-l); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px 2px var(--cyan);
}

.on-light .eyebrow { color: var(--royal); }
.on-light .eyebrow::before { background: var(--royal); box-shadow: 0 0 12px 2px rgba(10,77,255,.4); }

.text-soft { color: var(--mist-text-soft); }
.on-light .text-soft { color: var(--ink-text-soft); }

.fs-display-xl { font-size: var(--fs-display-xl); }
.fs-display-l { font-size: var(--fs-display-l); }
.fs-display-m { font-size: var(--fs-display-m); }
.fs-display-s { font-size: var(--fs-display-s); }
