/*
 * Sprinklr — Colors & Type Foundations
 *
 * Source of truth:
 *  - 2019 Brand Style Guide (research/brand_styleguide_text.txt)
 *  - Live www.sprinklr.com extraction (research/site_extract.json)
 *
 * Brand says: human, authentic, joyful. Sentence case. Color used purposefully.
 * Body copy stays Steel Gray or black.
 *
 * Primary type face is Proxima Nova (commercial, paid). Mulish is the closest
 * free Google Fonts substitute and is used here as a fallback. SUBSTITUTION
 * FLAGGED — replace @font-face with licensed Proxima Nova for production.
 */

/* ---------------------------------------------------------------- */
/* Webfont — Proxima Nova (brand fonts uploaded)                    */
/* ---------------------------------------------------------------- */
@font-face {
  font-family: 'Proxima Nova';
  src: url('fonts/normal400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Proxima Nova';
  src: url('fonts/normal600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Proxima Nova';
  src: url('fonts/normal700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Proxima Nova';
  src: url('fonts/normal800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ============================================================== */
  /* COLORS — Brand primaries (from 2019 Style Guide)                */
  /* ============================================================== */
  --sprinklr-spring-fern:     #C9D75B; /* Spring Fern Green */
  --sprinklr-passion-flower:  #E1251B; /* Passion Flower Red */
  --sprinklr-sunshine:        #FFCD2D; /* Sunshine Yellow */
  --sprinklr-horizon-blue:    #28AAE1; /* Horizon Blue */
  --sprinklr-steel-gray:      #3D4543; /* Steel Gray */

  /* Logo burst colors (sampled from official mark) */
  --burst-orange:   #F7941D; /* upper-left petal */
  --burst-cyan:     #29ABE2; /* tall center petal — same as Horizon Blue family */
  --burst-green:    #8DC63F; /* lower-left petal */
  --burst-blue:     #1B75BC; /* lower-right petal */

  /* ============================================================== */
  /* COLORS — Live site (sprinklr.com) extensions                    */
  /* ============================================================== */
  --site-primary:   #0D7CB7; /* primary CTA blue used across the marketing site */
  --site-link:      #107EFF; /* link color, hover states */
  --site-link-hover:#2492FF;
  --site-cta-hover: #259EDF;

  /* Neutrals (extracted from sprinklr.com palette) */
  --neutral-0:   #FFFFFF;
  --neutral-50:  #F8FAFC;
  --neutral-100: #F1F5F9;
  --neutral-200: #E2E8F0; /* most-used border / divider */
  --neutral-300: #CBD5E1;
  --neutral-400: #BCBCBC;
  --neutral-500: #646470; /* secondary body text */
  --neutral-600: #475569;
  --neutral-700: #2E3841; /* primary body / strong text */
  --neutral-800: #1E293B; /* deep navy used for dark sections */
  --neutral-900: #0F172A;
  --neutral-1000:#000000;

  /* ============================================================== */
  /* SEMANTIC COLOR TOKENS                                           */
  /* ============================================================== */
  --bg:               var(--neutral-0);
  --bg-subtle:        var(--neutral-50);
  --bg-muted:         var(--neutral-100);
  --bg-inverted:      var(--neutral-800);
  --bg-burst-tint:    #EAF6FB; /* very pale Horizon-Blue wash for hero / cards */

  --fg:               var(--neutral-700); /* default body */
  --fg-strong:        var(--neutral-800);
  --fg-muted:         var(--neutral-500);
  --fg-faint:         var(--neutral-400);
  --fg-on-dark:       var(--neutral-0);
  --fg-on-dark-muted: rgba(255,255,255,0.72);

  --border:           var(--neutral-200);
  --border-strong:    var(--neutral-300);
  --border-on-dark:   rgba(255,255,255,0.16);

  --accent:           var(--site-primary);
  --accent-hover:     var(--site-cta-hover);
  --accent-fg:        var(--neutral-0);

  --link:             var(--site-link);
  --link-hover:       var(--site-link-hover);

  --success:          #058A5E;
  --success-bg:       #E6F5EE;
  --warning:          #FFCD2D;     /* Sunshine */
  --warning-bg:       #FFF8E0;
  --danger:           #E1251B;     /* Passion Flower */
  --danger-bg:        #FDECEB;
  --info:             #28AAE1;     /* Horizon */
  --info-bg:          #E6F5FB;

  /* ============================================================== */
  /* TYPOGRAPHY — Families                                            */
  /* ============================================================== */
  --font-sans: 'Proxima Nova', -apple-system, system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'JetBrains Mono', Menlo, Consolas, 'Liberation Mono', monospace;

  /* Weights (Proxima Nova naming) */
  --weight-regular:  400;  /* body */
  --weight-medium:   500;
  --weight-semibold: 600;  /* sub-headers */
  --weight-bold:     700;  /* small subheaders, all-caps */
  --weight-extrabold:800;  /* large headlines */

  /* ============================================================== */
  /* TYPOGRAPHY — Type scale (extracted from sprinklr.com)            */
  /* ============================================================== */
  --fs-display:  64px; /* big hero headlines */
  --fs-h1:       48px;
  --fs-h2:       32px;
  --fs-h3:       24px;
  --fs-h4:       20px;
  --fs-h5:       18px;
  --fs-body-lg:  18px;
  --fs-body:     16px;
  --fs-body-sm:  14px;
  --fs-caption:  12px;

  --lh-tight:   1.19; /* headlines */
  --lh-snug:    1.30;
  --lh-normal:  1.42; /* body */
  --lh-loose:   1.60;

  --ls-eyebrow: 0.42px; /* uppercase label letter-spacing */
  --ls-caps:    0.54px;

  /* ============================================================== */
  /* SPACING — 8px scale (live site uses this)                       */
  /* ============================================================== */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  40px;
  --space-8:  56px;
  --space-9:  64px;
  --space-10: 100px;
  --space-11: 140px;

  /* ============================================================== */
  /* RADII                                                           */
  /* ============================================================== */
  --radius-xs:   4px;   /* default — used most often on site */
  --radius-sm:   6px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-pill: 9999px; /* CTA buttons are full-pill */

  /* ============================================================== */
  /* GRADIENTS                                                       */
  /* Sprinklr leans on gradients for hero/section backgrounds and as */
  /* fills behind imagery. They lean cyan→blue (Horizon→Site) with   */
  /* warm burst-orange accents for emphasis.                         */
  /* ============================================================== */
  /* The single signature gradient used on sprinklr.com:            */
  /* warm orange → magenta/pink → cyan/blue, diagonal.              */
  /* Horizontal soft wash, weighted warm with cool only at the tail.  */
  --grad-brand: linear-gradient(
    90deg,
    #F7941D 0%,
    #F26A3F 18%,
    #EC1E79 38%,
    #B83A9E 55%,
    #6A78C9 72%,
    #28AAE1 90%,
    #1B75BC 100%
  );
  /* Same palette as a hazy horizontal multi-stop wash for hero sections. */
  --grad-brand-soft: var(--grad-brand);

  /* ============================================================== */
  /* SHADOWS                                                         */
  /* ============================================================== */
  --shadow-card:  0 4px 6px -1px rgba(0,0,0,0.10), 0 2px 4px -2px rgba(0,0,0,0.10);
  --shadow-pop:   0 10px 15px -3px rgba(0,0,0,0.10), 0 4px 6px -4px rgba(0,0,0,0.10);
  --shadow-soft:  0 1px 2px rgba(0,0,0,0.06);

  /* ============================================================== */
  /* MOTION                                                          */
  /* ============================================================== */
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:     120ms;
  --dur-base:     200ms;
  --dur-slow:     320ms;

  /* ============================================================== */
  /* LAYOUT                                                          */
  /* ============================================================== */
  --content-max:  1200px;
  --content-wide: 1400px;
  --gutter:       24px;
}

/* ================================================================ */
/* SEMANTIC ELEMENT STYLES                                           */
/* Use the .ds- prefix or attach these styles by including this file */
/* in a page/component scope.                                        */
/* ================================================================ */
.ds-root,
.ds-root * { box-sizing: border-box; }

.ds-root {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.ds-display, h1.ds-display {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  font-weight: var(--weight-extrabold);
  color: var(--fg-strong);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.ds-h1, h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  font-weight: var(--weight-extrabold);
  color: var(--fg-strong);
  text-wrap: balance;
}
.ds-h2, h2 {
  font-size: var(--fs-h2);
  line-height: 1.21;
  font-weight: var(--weight-bold);
  color: var(--fg-strong);
  text-wrap: balance;
}
.ds-h3, h3 {
  font-size: var(--fs-h3);
  line-height: 1.25;
  font-weight: var(--weight-semibold);
  color: var(--fg-strong);
}
.ds-h4, h4 {
  font-size: var(--fs-h4);
  line-height: 1.30;
  font-weight: var(--weight-semibold);
  color: var(--fg-strong);
}
.ds-h5, h5 {
  font-size: var(--fs-h5);
  line-height: 1.39;
  font-weight: var(--weight-semibold);
  color: var(--fg-strong);
}

.ds-eyebrow {
  font-size: var(--fs-body-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
}

.ds-body, p {
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--fg);
  text-wrap: pretty;
}
.ds-body-lg {
  font-size: var(--fs-body-lg);
  line-height: 1.39;
}
.ds-body-sm {
  font-size: var(--fs-body-sm);
  line-height: 1.43;
}
.ds-caption {
  font-size: var(--fs-caption);
  line-height: 1.30;
  color: var(--fg-muted);
}

a, .ds-link {
  color: var(--link);
  text-decoration: underline;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover, .ds-link:hover { color: var(--link-hover); }

code, .ds-code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--bg-muted);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  color: var(--fg-strong);
}
