/* ============================================================================
 * PRIVONIX TECHNOLOGIES PRIVATE LIMITED | CENTRAL DESIGN TOKENS
 * ---------------------------------------------------------------------------
 * File        : tokens.css
 * Version     : 1.0.1
 * Status      : Central / Design-system source of truth
 * Author      : BOSS294 (Privonix Technologies Private Limited)
 * Copyright   : © 2026 Privonix Technologies Private Limited. All rights reserved.
 * Trademark   : PRIVONIX™
 *
 * PURPOSE
 *   Define the single source of truth for the Privonix website's design values.
 *
 * SUMMARY
 *   Contains the established monochrome, obsidian, slate, and restrained
 *   emerald palette; typography; type scale; spacing; layout; radii; shadows;
 *   easing; and transition tokens. Existing token names are retained for
 *   compatibility with existing website content modules and the central base.css.
 *
 * BRAND DIRECTION
 *   - Primary identity: monochrome black, white, and neutral slate.
 *   - Dark surfaces: deep obsidian and layered charcoal.
 *   - Accent behavior: high-contrast monochrome; restrained emerald for
 *     success/status/telemetry. No purple or blue brand accent is introduced.
 *   - The existing source palette values are preserved.
 *
 * HOW TO USE
 *   1. Load this file FIRST in the website stylesheet order.
 *   2. Load /Assets/Modules/base.css immediately after this file.
 *   3. Keep shared buttons, tags and form primitives in base.css. Navigation,
 *      footer and section-specific styles live inside their owning PHP modules.
 *   4. Reference tokens with var(--token-name); do not hardcode a value when an
 *      existing semantic token already represents it.
 *   5. Add a new token here when a value is genuinely shared across modules.
 *
 * COMPATIBILITY
 *   - --font remains the primary sans-serif alias used by existing modules.
 *   - --f-mono remains available for existing content modules that use a
 *     monospace font token.
 *   - --s-7 completes the existing spacing sequence and fixes its current use
 *     in existing page content modules. Existing token names and source palette values are kept.
 *
 * UPDATE / MAINTENANCE NOTE (MANDATORY)
 *   Before changing this file:
 *   1. Search the whole website for every use of the token being changed.
 *   2. Do not rename or remove a token while any page, component, or content
 *      module still consumes it. Add a compatibility alias and migrate usages
 *      deliberately when a rename is necessary.
 *   3. Keep semantic tokens (for example --c-text-2) separate from component
 *      selectors. Never put page or component CSS in this file.
 *   4. Preserve the documented monochrome/slate brand direction and established
 *      palette unless a deliberate brand-system revision is approved.
 *   5. Check contrast and visual states on light and dark surfaces.
 *   6. Update the version and append a dated changelog entry below.
 *   7. After changes, verify tokens.css -> base.css -> self-contained shared
 *      modules (nav/footer) -> page content modules.
 *
 * VERSIONING (Semantic Versioning)
 *   MAJOR  : Breaking token renames/removals or meaning/value changes that
 *            require coordinated migration across the website.
 *   MINOR  : Backward-compatible token additions or new design-system scales.
 *   PATCH  : Backward-compatible corrections and documentation refinements.
 *
 * CHANGELOG
 *   1.0.1 | 2026-11-10
 *       - Updated ownership details to the full legal company name.
 *       - Updated integration and maintenance instructions for the self-contained
 *         module architecture; components.css is no longer part of the load order.
 *       - No design-token values were changed.
 *   1.0.0 | 2026-11-10
 *       - Created the central token file from the supplied design tokens v2.
 *       - Preserved existing monochrome, slate, emerald, typography, spacing,
 *         layout, radius, shadow, and transition values.
 *       - Added --s-7 for an existing inner.css spacing reference.
 *       - Added --font-sans / --font-mono and the --f-mono compatibility alias.
 *       - Retained --font as the existing shared sans-serif token.
 *
 * ============================================================================
 * © 2026 Privonix Technologies Private Limited. All rights reserved.
 * PRIVONIX™ is a trademark. No registration status is implied.
 * ============================================================================ */

/* Load Inter once from the central token file. System fonts remain the fallback. */
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800;0,14..32,900&display=swap");

:root {
  /* ========================================================================
     1. BRAND PALETTE
     Monochrome & precision-tech slate. Existing source colors are preserved.
     ======================================================================== */

  /* Backgrounds */
  --c-bg:              #FAFBFC;
  --c-bg-subtle:       #F4F5F7;
  --c-bg-dark:         #090A0F;
  --c-bg-dark-2:       #0E1017;
  --c-bg-dark-card:    #131622;
  --c-bg-dark-border:  rgba(255, 255, 255, 0.08);

  /* Surfaces */
  --c-surface:         #FAFBFC;
  --c-surface-subtle:  #F0F1F3;

  /* Text */
  --c-text:            #090A0F;
  --c-text-2:          #3F3F46;
  --c-text-3:          #71717A;
  --c-text-4:          #A1A1AA;
  --c-text-inv:        #FFFFFF;
  --c-text-inv-2:      rgba(255, 255, 255, 0.78);
  --c-text-inv-3:      rgba(255, 255, 255, 0.55);

  /* Borders */
  --c-border:          #E4E4E7;
  --c-border-2:        #D4D4D8;

  /* Brand accent: monochrome, not a secondary bright color */
  --c-accent:          #090A0F;
  --c-accent-hover:    #27272A;
  --c-accent-subtle:   #F4F4F5;
  --c-accent-border:   #E4E4E7;

  /* Semantic status colors */
  --c-success:         #10B981;
  --c-danger:          #EF4444;

  /* ========================================================================
     2. TYPOGRAPHY
     ======================================================================== */

  --font:              'Inter', system-ui, -apple-system, sans-serif;
  --font-sans:         var(--font);
  --font-mono:         ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
                       "Liberation Mono", "Courier New", monospace;

  /* Backward-compatible mono alias used by the existing inner-page styles. */
  --f-mono:            var(--font-mono);

  /* Type scale */
  --t-xs:              0.6875rem;  /* 11px */
  --t-sm:              0.8125rem;  /* 13px */
  --t-base:            0.9375rem;  /* 15px */
  --t-md:              1rem;       /* 16px */
  --t-lg:              1.125rem;   /* 18px */
  --t-xl:              1.25rem;    /* 20px */
  --t-2xl:             1.5rem;     /* 24px */
  --t-3xl:             1.875rem;   /* 30px */
  --t-4xl:             2.25rem;    /* 36px */
  --t-5xl:             3rem;       /* 48px */
  --t-6xl:             3.75rem;    /* 60px */
  --t-7xl:             4.5rem;     /* 72px */

  /* Font weights */
  --fw-light:          300;
  --fw-regular:        400;
  --fw-medium:         500;
  --fw-semibold:       600;
  --fw-bold:           700;
  --fw-extrabold:      800;
  --fw-black:          900;

  /* Line heights */
  --lh-tight:          1.15;
  --lh-snug:           1.3;
  --lh-normal:         1.5;
  --lh-relaxed:        1.68;

  /* Letter spacing */
  --ls-tight:          -0.03em;
  --ls-snug:           -0.02em;
  --ls-normal:         0;
  --ls-wide:            0.03em;
  --ls-wider:           0.06em;
  --ls-widest:          0.12em;

  /* ========================================================================
     3. SPACING
     4px base rhythm. --s-7 is included for existing page content spacing.
     ======================================================================== */

  --s-1:               0.25rem;  /* 4px */
  --s-2:               0.5rem;   /* 8px */
  --s-3:               0.75rem;  /* 12px */
  --s-4:               1rem;     /* 16px */
  --s-5:               1.25rem;  /* 20px */
  --s-6:               1.5rem;   /* 24px */
  --s-7:               1.75rem;  /* 28px */
  --s-8:               2rem;     /* 32px */
  --s-10:              2.5rem;   /* 40px */
  --s-12:              3rem;     /* 48px */
  --s-14:              3.5rem;   /* 56px */
  --s-16:              4rem;     /* 64px */
  --s-20:              5rem;     /* 80px */
  --s-24:              6rem;     /* 96px */
  --s-28:              7rem;     /* 112px */
  --s-32:              8rem;     /* 128px */

  /* ========================================================================
     4. LAYOUT
     ======================================================================== */

  --max-w:             min(1520px, 94vw);
  --max-w-wide:        min(1620px, 96vw);
  --max-w-text:        720px;
  --nav-h:             70px;
  --gutter:            clamp(1.25rem, 2.5vw, 2.5rem);

  /* ========================================================================
     5. RADII
     ======================================================================== */

  --r-sm:              4px;
  --r-md:              8px;
  --r-lg:              12px;
  --r-xl:              16px;
  --r-2xl:             24px;
  --r-full:            9999px;

  /* ========================================================================
     6. SHADOWS
     ======================================================================== */

  --sh-xs:             0 1px 2px rgba(0, 0, 0, 0.04);
  --sh-sm:             0 2px 8px rgba(0, 0, 0, 0.06);
  --sh-md:             0 4px 16px rgba(0, 0, 0, 0.08);
  --sh-lg:             0 12px 32px rgba(0, 0, 0, 0.10);
  --sh-xl:             0 24px 48px rgba(0, 0, 0, 0.12);
  --sh-card-hover:     0 20px 40px rgba(0, 0, 0, 0.4);

  /* ========================================================================
     7. MOTION & TRANSITIONS
     ======================================================================== */

  --ease:              cubic-bezier(0.16, 1, 0.3, 1);
  --tr-fast:           120ms var(--ease);
  --tr-base:           200ms var(--ease);
  --tr-slow:           350ms var(--ease);
}

/* Respect the visitor's motion preference at the token level as well. */
@media (prefers-reduced-motion: reduce) {
  :root {
    --tr-fast: 0ms;
    --tr-base: 0ms;
    --tr-slow: 0ms;
  }
}
