/**
 * CB Nova Tech — Design Tokens
 * ----------------------------------------------------------------------------
 * The single source of truth for colour, type, space, motion and elevation.
 * Nothing else in the codebase may hard-code a colour or a font size.
 *
 * These values are mirrored into Elementor's Global Colors and Global Fonts by
 * elementor/cbnt-kit.json, so editors working in the builder pick from the same
 * palette. If you change a value here, update that file too.
 *
 * @package cbnovatech
 */

:root {

  /* ==========================================================================
     1. COLOUR — RAW PALETTE
     Do not use these directly in components. Use the semantic tokens in §2.
     ========================================================================== */

  /* ---------------------------------------------------------------------
     Palette sampled directly from the supplied logo artwork (Nov 2026).
     The mark is built from pure, saturated blues — the red channel is
     effectively zero throughout, which is what gives it its clean,
     unmistakably "tech" character. The palette preserves that: no purple
     drift, no warm greys.
     --------------------------------------------------------------------- */

  /* Navy — primary. navy-900 is the logo's own dark background. */
  --cbnt-navy-950: #000A24;
  --cbnt-navy-900: #02103A;   /* Primary. Sampled from the logo lockup. */
  --cbnt-navy-800: #04214F;   /* Sampled from the wordmark. */
  --cbnt-navy-700: #062C68;
  --cbnt-navy-600: #083A85;

  /* Blue — the action colour. Buttons and links. */
  --cbnt-blue-800: #003A8F;
  --cbnt-blue-700: #0044A8;   /* Sampled from the mark's gradient. */
  --cbnt-blue-600: #0057CC;   /* Secondary. 6.4:1 on white. */
  --cbnt-blue-500: #0070E8;
  --cbnt-blue-400: #0094FF;   /* Sampled. 5.8:1 on navy-900. */
  --cbnt-blue-200: #A3D7FF;
  --cbnt-blue-100: #D1EBFF;
  --cbnt-blue-50:  #EDF7FF;

  /* Cyan — accent. The brightest note in the mark.
     NOTE: accent-400 is 9.3:1 on navy-900 but only 1.7:1 on white. It is a
     dark-surface and graphic colour. For accent TEXT on a light background
     use accent-700 (6.7:1 on white). */
  --cbnt-accent-700: #00647F;   /* Text on light.  6.7:1 on white */
  --cbnt-accent-600: #0087AB;   /* Icons, rules on light */
  --cbnt-accent-500: #00B4E6;   /* Graphics */
  --cbnt-accent-400: #00C8FF;   /* Sampled. Accent on dark. 9.3:1 on navy-900 */
  --cbnt-accent-300: #66DCFF;   /* Links on dark */

  /* Neutrals — very slightly cool, to sit with the navy without muddying
     the clean white surfaces the layout depends on. */
  --cbnt-white:    #FFFFFF;
  --cbnt-grey-50:  #F8FAFC;
  --cbnt-grey-100: #F1F5F9;
  --cbnt-grey-200: #E4EAF2;
  --cbnt-grey-300: #CBD5E3;
  --cbnt-grey-400: #94A3B8;
  --cbnt-grey-500: #64748B;
  --cbnt-grey-600: #51607A;
  --cbnt-grey-700: #3E4C63;
  --cbnt-grey-800: #2A3547;

  /* Functional — status and feedback only, never decorative */
  --cbnt-success: #0E7C4A;
  --cbnt-success-bg: #E6F5ED;
  --cbnt-warning: #8A5A00;
  --cbnt-warning-bg: #FDF3E2;
  --cbnt-error:   #B3261E;
  --cbnt-error-bg: #FDECEA;


  /* ==========================================================================
     2. COLOUR — SEMANTIC TOKENS
     These are what components actually consume.
     ========================================================================== */

  --cbnt-color-primary:        var(--cbnt-navy-900);
  --cbnt-color-secondary:      var(--cbnt-blue-600);
  --cbnt-color-accent:         var(--cbnt-accent-500);

  /* Text */
  --cbnt-text:                 var(--cbnt-navy-900);   /* 18.9:1 on white */
  --cbnt-text-muted:           var(--cbnt-grey-700);   /*  7.6:1 on white */
  --cbnt-text-subtle:          var(--cbnt-grey-600);   /*  5.4:1 on white */
  --cbnt-text-link:            var(--cbnt-blue-600);
  --cbnt-text-link-hover:      var(--cbnt-blue-800);
  --cbnt-text-on-dark:         var(--cbnt-white);
  --cbnt-text-on-dark-muted:   #B7C4DA;                /*  9.1:1 on navy-900 */
  --cbnt-text-accent-on-light: var(--cbnt-accent-700);   /*  6.7:1 on white */
  --cbnt-text-accent-on-dark:  var(--cbnt-accent-400);   /*  9.3:1 on navy-900 */

  /* Surfaces — the four background treatments used to separate sections */
  --cbnt-surface:              var(--cbnt-white);
  --cbnt-surface-subtle:       var(--cbnt-grey-50);
  --cbnt-surface-tint:         var(--cbnt-blue-50);
  --cbnt-surface-dark:         var(--cbnt-navy-900);
  --cbnt-surface-dark-alt:     var(--cbnt-navy-800);
  --cbnt-surface-raised:       var(--cbnt-white);

  /* Borders */
  --cbnt-border:               var(--cbnt-grey-200);
  --cbnt-border-strong:        var(--cbnt-grey-300);
  --cbnt-border-on-dark:       rgba(255, 255, 255, 0.14);
  --cbnt-border-accent:        var(--cbnt-blue-200);

  /* Focus ring — used site-wide, never removed */
  --cbnt-focus-ring:           var(--cbnt-blue-600);
  --cbnt-focus-ring-on-dark:   var(--cbnt-accent-400);
  --cbnt-focus-ring-width:     3px;
  --cbnt-focus-ring-offset:    2px;

  /* Gradients — used sparingly.
     Blue→cyan stays within one hue family, so it ramps cleanly with no muddy
     midpoint. This is the gradient in the logo mark itself. */
  --cbnt-gradient-dark:   linear-gradient(155deg, var(--cbnt-navy-900) 0%, var(--cbnt-navy-800) 60%, var(--cbnt-blue-800) 140%);
  --cbnt-gradient-accent: linear-gradient(90deg, var(--cbnt-blue-600) 0%, var(--cbnt-accent-400) 100%);
  --cbnt-gradient-mark:   linear-gradient(135deg, var(--cbnt-accent-400) 0%, var(--cbnt-blue-700) 100%);

  /* Light hero wash — the "clean modern" ground. A barely-there tint rather
     than a dark slab, so the page opens bright. */
  --cbnt-gradient-hero:   radial-gradient(ellipse 120% 90% at 70% -10%, var(--cbnt-blue-50) 0%, rgba(237,247,255,0) 60%),
                          linear-gradient(180deg, #FFFFFF 0%, var(--cbnt-grey-50) 100%);
  --cbnt-gradient-tint:   linear-gradient(180deg, var(--cbnt-white) 0%, var(--cbnt-blue-50) 100%);


  /* ==========================================================================
     3. TYPOGRAPHY
     Two families only. Plus Jakarta Sans for headings (geometric, distinctive,
     echoes the wordmark). Inter for body (best-in-class screen readability).
     Both self-hosted variable fonts — no third-party request.
     ========================================================================== */

  --cbnt-font-heading: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --cbnt-font-body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --cbnt-font-mono:    ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;

  /* Fluid type scale. Each clamp interpolates between a 375px and a 1440px
     viewport, so there are no jarring jumps at breakpoints. */
  --cbnt-text-display: clamp(2.5rem,   1.62rem + 3.75vw, 4.5rem);    /* 40 → 72 */
  --cbnt-text-h1:      clamp(2.125rem, 1.55rem + 2.45vw, 3.5rem);    /* 34 → 56 */
  --cbnt-text-h2:      clamp(1.75rem,  1.40rem + 1.50vw, 2.625rem);  /* 28 → 42 */
  --cbnt-text-h3:      clamp(1.25rem,  1.13rem + 0.51vw, 1.5rem);    /* 20 → 24 */
  --cbnt-text-h4:      clamp(1.125rem, 1.07rem + 0.23vw, 1.25rem);   /* 18 → 20 */
  --cbnt-text-lead:    clamp(1.0625rem,1.00rem + 0.28vw, 1.1875rem); /* 17 → 19 */
  --cbnt-text-base:    1rem;                                          /* 16 */
  --cbnt-text-sm:      0.9375rem;                                     /* 15 */
  --cbnt-text-xs:      0.8125rem;                                     /* 13 */
  --cbnt-text-eyebrow: 0.8125rem;                                     /* 13 */

  --cbnt-weight-regular:  400;
  --cbnt-weight-medium:   500;
  --cbnt-weight-semibold: 600;
  --cbnt-weight-bold:     700;
  --cbnt-weight-extrabold:800;

  /* Line heights — tighter as type gets larger */
  --cbnt-leading-display: 1.06;
  --cbnt-leading-heading: 1.16;
  --cbnt-leading-snug:    1.35;
  --cbnt-leading-body:    1.65;
  --cbnt-leading-relaxed: 1.75;

  /* Letter spacing — optical correction for large sizes */
  --cbnt-tracking-display: -0.03em;
  --cbnt-tracking-heading: -0.02em;
  --cbnt-tracking-tight:   -0.01em;
  --cbnt-tracking-normal:  0;
  --cbnt-tracking-eyebrow: 0.12em;

  /* Measure — caps line length for readability */
  --cbnt-measure:       68ch;
  --cbnt-measure-tight: 54ch;


  /* ==========================================================================
     4. SPACING — 4px base scale
     ========================================================================== */

  --cbnt-space-1:  0.25rem;   /*  4 */
  --cbnt-space-2:  0.5rem;    /*  8 */
  --cbnt-space-3:  0.75rem;   /* 12 */
  --cbnt-space-4:  1rem;      /* 16 */
  --cbnt-space-5:  1.25rem;   /* 20 */
  --cbnt-space-6:  1.5rem;    /* 24 */
  --cbnt-space-8:  2rem;      /* 32 */
  --cbnt-space-10: 2.5rem;    /* 40 */
  --cbnt-space-12: 3rem;      /* 48 */
  --cbnt-space-16: 4rem;      /* 64 */
  --cbnt-space-20: 5rem;      /* 80 */
  --cbnt-space-24: 6rem;      /* 96 */
  --cbnt-space-32: 8rem;      /* 128 */

  /* Fluid vertical rhythm for sections — the main driver of the "premium,
     generous whitespace" feel. Scales down gracefully on mobile. */
  --cbnt-section-y:       clamp(4rem, 2.5rem + 6.4vw, 7.5rem);   /*  64 → 120 */
  --cbnt-section-y-tight: clamp(3rem, 2.1rem + 3.8vw, 5rem);     /*  48 →  80 */
  --cbnt-section-y-loose: clamp(5rem, 2.8rem + 9.4vw, 10rem);    /*  80 → 160 */
  --cbnt-stack-gap:       clamp(2rem, 1.4rem + 2.6vw, 3.5rem);


  /* ==========================================================================
     5. LAYOUT
     ========================================================================== */

  --cbnt-container:        1240px;
  --cbnt-container-wide:   1440px;
  --cbnt-container-narrow: 820px;
  --cbnt-gutter:           clamp(1.25rem, 0.8rem + 1.9vw, 2.5rem);  /* 20 → 40 */
  --cbnt-grid-gap:         clamp(1.25rem, 0.9rem + 1.5vw, 2rem);
  --cbnt-header-h:         84px;
  --cbnt-header-h-scrolled:72px;
  --cbnt-announce-h:       40px;


  /* ==========================================================================
     6. RADII
     ========================================================================== */

  --cbnt-radius-sm:   6px;
  --cbnt-radius:      10px;
  --cbnt-radius-md:   14px;
  --cbnt-radius-lg:   20px;
  --cbnt-radius-xl:   28px;
  --cbnt-radius-pill: 999px;


  /* ==========================================================================
     7. ELEVATION
     Layered, low-opacity, navy-tinted shadows. Tinting the shadow with the
     brand hue rather than pure black is what separates a premium surface
     from a default Bootstrap card.
     ========================================================================== */

  /* Lighter than a conventional UI scale. A clean, modern surface is defined
     mostly by its border and its whitespace; the shadow is there to lift it
     a millimetre off the page, not to make it float. */
  --cbnt-shadow-xs: 0 1px 2px rgba(2, 16, 58, 0.04);
  --cbnt-shadow-sm: 0 1px 2px rgba(2, 16, 58, 0.05), 0 1px 1px rgba(2, 16, 58, 0.03);
  --cbnt-shadow:    0 2px 8px rgba(2, 16, 58, 0.05), 0 1px 2px rgba(2, 16, 58, 0.04);
  --cbnt-shadow-md: 0 6px 18px rgba(2, 16, 58, 0.07), 0 2px 4px rgba(2, 16, 58, 0.04);
  --cbnt-shadow-lg: 0 14px 34px rgba(2, 16, 58, 0.09), 0 3px 8px rgba(2, 16, 58, 0.04);
  --cbnt-shadow-xl: 0 26px 60px rgba(2, 16, 58, 0.12), 0 6px 16px rgba(2, 16, 58, 0.05);
  --cbnt-shadow-header: 0 1px 0 rgba(2, 16, 58, 0.06), 0 4px 16px rgba(2, 16, 58, 0.04);
  --cbnt-shadow-focus: 0 0 0 4px rgba(0, 87, 204, 0.18);


  /* ==========================================================================
     8. MOTION
     Deliberately restrained. Every duration is short enough to feel
     responsive rather than decorative. All of it is disabled under
     prefers-reduced-motion (see base.css).
     ========================================================================== */

  --cbnt-duration-instant: 80ms;
  --cbnt-duration-fast:    160ms;
  --cbnt-duration:         240ms;
  --cbnt-duration-slow:    400ms;
  --cbnt-duration-reveal:  620ms;

  --cbnt-ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --cbnt-ease-out:      cubic-bezier(0.16, 1, 0.3, 1);      /* the "premium" curve */
  --cbnt-ease-in-out:   cubic-bezier(0.65, 0, 0.35, 1);
  --cbnt-ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);

  --cbnt-transition-colors: color var(--cbnt-duration-fast) var(--cbnt-ease),
                            background-color var(--cbnt-duration-fast) var(--cbnt-ease),
                            border-color var(--cbnt-duration-fast) var(--cbnt-ease);


  /* ==========================================================================
     9. Z-INDEX — a named scale prevents the z-index: 99999 arms race
     ========================================================================== */

  --cbnt-z-base:       1;
  --cbnt-z-raised:     10;
  --cbnt-z-sticky:     100;
  --cbnt-z-header:     200;
  --cbnt-z-dropdown:   300;
  --cbnt-z-mobile-nav: 400;
  --cbnt-z-overlay:    500;
  --cbnt-z-modal:      600;
  --cbnt-z-toast:      700;
  --cbnt-z-skip-link:  800;
}


/* ============================================================================
   SURFACE CONTEXTS
   Applying .cbnt-on-dark remaps the semantic text/border tokens so any
   component nested inside automatically adapts. This is why the component CSS
   never needs a dark-mode variant for every card, button and heading.
   ========================================================================== */

.cbnt-on-dark {
  --cbnt-text:          var(--cbnt-text-on-dark);
  --cbnt-text-muted:    var(--cbnt-text-on-dark-muted);
  --cbnt-text-subtle:   var(--cbnt-text-on-dark-muted);
  --cbnt-text-link:     var(--cbnt-accent-300);
  --cbnt-text-link-hover: var(--cbnt-white);
  --cbnt-border:        var(--cbnt-border-on-dark);
  --cbnt-border-strong: rgba(255, 255, 255, 0.24);
  --cbnt-surface-raised: rgba(255, 255, 255, 0.045);
  --cbnt-focus-ring:    var(--cbnt-focus-ring-on-dark);
  color: var(--cbnt-text-on-dark);
}
