/* ============================================================
   ARCIUM DESIGN SYSTEM — Core color & type foundations
   Confidential computing network · Secure MPC
   Brand: #6D45FF primary · white · black
   Type: Aeonik Pro (primary) · Dot Matrix Two (secondary/mono)
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Aeonik Pro";
  src: url("fonts/AeonikPro-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Aeonik Pro";
  src: url("fonts/AeonikPro-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Aeonik Pro";
  src: url("fonts/AeonikPro-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Dot Matrix Two";
  src: url("fonts/dotmatrix-tworegular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

:root {
  /* ============================================================
     COLOR — PRIMARY (Arcium Violet)
     #6D45FF is the hero. Used generously: fills, type, glows.
     ============================================================ */
  --violet-50:  #f1ecff;
  --violet-100: #e3d9ff;
  --violet-200: #c7b3ff;
  --violet-300: #a586ff;
  --violet-400: #8a63ff;
  --violet-500: #6d45ff;   /* ← BRAND PRIMARY */
  --violet-600: #5a33e6;   /* hover / pressed */
  --violet-700: #4724b3;
  --violet-800: #321a80;
  --violet-900: #1f1052;

  --primary:        var(--violet-500);
  --primary-hover:  var(--violet-600);
  --primary-press:  var(--violet-700);
  --primary-tint:   var(--violet-50);

  /* ============================================================
     COLOR — NEUTRALS (true black → true white)
     Arcium runs dark. Black is a primary surface, not an accent.
     ============================================================ */
  --black:    #000000;
  --ink-900:  #0a0a0c;   /* near-black page base */
  --ink-800:  #121215;
  --ink-700:  #1a1a1f;   /* raised surface */
  --ink-600:  #26262d;   /* card / border-strong */
  --ink-500:  #3a3a44;
  --ink-400:  #56565f;
  --ink-300:  #82828c;   /* muted text on dark */
  --ink-200:  #b4b4bd;
  --ink-100:  #dededf;
  --ink-050:  #f2f2f3;
  --white:    #ffffff;

  /* ============================================================
     SEMANTIC — LIGHT THEME (default / canonical)
     White is the default canvas. Black is reserved for SPECIFIC
     emphasis areas (hero accent panels, CTA, code, footer) via
     the --invert-* tokens below. Violet stays the hero accent.
     ============================================================ */
  --bg:            var(--white);     /* default page canvas */
  --bg-raised:     #f7f7f8;          /* subtle raised section */
  --bg-subtle:     var(--ink-050);   /* light fill / inset */
  --bg-card:       var(--white);
  --fg1:           var(--black);     /* primary text */
  --fg2:           var(--ink-400);   /* secondary text */
  --fg3:           var(--ink-300);   /* muted / captions */
  --border:        var(--ink-100);   /* hairline border */
  --border-faint:  rgba(0,0,0,0.08);
  --accent:        var(--violet-500);
  --accent-soft:   rgba(109,69,255,0.10);
  --accent-tint:   var(--violet-50);
  --on-accent:     var(--white);

  /* ---- INVERT — the "specific black areas" ----
     Use on focal panels: CTA blocks, code consoles, footer, hero
     accent. White text + violet glows live here. */
  --anthracite:       #1a1a1f;          /* dark gray surface on black panels: inputs, placeholder boxes, cards */
  --invert-bg:        var(--ink-900);   /* near-black panel */
  --invert-bg-raised: var(--ink-800);
  --invert-bg-card:   var(--anthracite);
  --invert-fg1:       var(--white);
  --invert-fg2:       var(--ink-200);
  --invert-fg3:       var(--ink-300);
  --invert-border:    rgba(255,255,255,0.10);

  /* Status (sparingly used — technical UI) */
  --success: #1f9d6b;
  --warning: #c9760a;
  --danger:  #d83a3a;
  --info:    var(--violet-600);

  /* Legacy aliases (kept for back-compat) */
  --light-bg:        var(--white);
  --light-bg-raised: var(--ink-050);
  --light-fg1:       var(--black);
  --light-fg2:       var(--ink-400);
  --light-border:    var(--ink-100);

  /* ============================================================
     TYPE — families
     ============================================================ */
  --font-sans: "Aeonik Pro", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Dot Matrix Two", "Aeonik Pro", monospace;

  /* Type scale (px @ desktop) — generous, geometric */
  --text-display: 88px;   /* hero */
  --text-h1:      56px;
  --text-h2:      40px;
  --text-h3:      28px;
  --text-h4:      22px;
  --text-lg:      18px;
  --text-body:    16px;
  --text-sm:      14px;
  --text-xs:      12px;
  --text-mono:    13px;   /* dot-matrix labels */

  --lh-tight:  1.02;
  --lh-snug:   1.12;
  --lh-normal: 1.5;
  --lh-loose:  1.65;

  /* Letter-spacing — Aeonik is set tight at display sizes,
     Dot Matrix labels are set WIDE & uppercase. */
  --tracking-display: -0.02em;
  --tracking-head:    -0.01em;
  --tracking-body:    0em;
  --tracking-mono:    0.22em;   /* the signature dot-matrix label spacing */

  /* ============================================================
     SPACING — 4px base grid
     ============================================================ */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* ============================================================
     RADIUS — restrained. Arcium leans sharp/technical.
     ============================================================ */
  --radius-none: 0px;
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   14px;
  --radius-xl:   22px;
  --radius-pill: 999px;

  /* ============================================================
     ELEVATION — soft neutral shadows on white;
     violet glow reserved for accent/invert focal moments.
     ============================================================ */
  --shadow-sm:  0 1px 2px rgba(16,16,24,0.06);
  --shadow-md:  0 8px 24px rgba(16,16,24,0.10);
  --shadow-lg:  0 24px 64px rgba(16,16,24,0.14);
  --glow-violet:      0 0 0 1px rgba(109,69,255,0.4), 0 0 40px rgba(109,69,255,0.30);
  --glow-violet-soft: 0 10px 40px rgba(109,69,255,0.20);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 140ms;
  --dur: 240ms;
  --dur-slow: 520ms;
}

/* ============================================================
   SEMANTIC TYPE CLASSES
   ============================================================ */
.ds-display {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
}
.ds-h1 { font-family: var(--font-sans); font-weight: 400; font-size: var(--text-h1); line-height: var(--lh-snug); letter-spacing: var(--tracking-head); }
.ds-h2 { font-family: var(--font-sans); font-weight: 400; font-size: var(--text-h2); line-height: var(--lh-snug); letter-spacing: var(--tracking-head); }
.ds-h3 { font-family: var(--font-sans); font-weight: 500; font-size: var(--text-h3); line-height: var(--lh-snug); }
.ds-h4 { font-family: var(--font-sans); font-weight: 500; font-size: var(--text-h4); line-height: var(--lh-normal); }
.ds-body { font-family: var(--font-sans); font-weight: 400; font-size: var(--text-body); line-height: var(--lh-normal); }
.ds-lg { font-family: var(--font-sans); font-weight: 400; font-size: var(--text-lg); line-height: var(--lh-normal); }
.ds-sm { font-family: var(--font-sans); font-weight: 400; font-size: var(--text-sm); line-height: var(--lh-normal); }

/* The signature label: Dot Matrix, uppercase, wide-tracked, often violet */
.ds-label {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--text-mono);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--accent);
}
.ds-mono {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  letter-spacing: 0.08em;
}
