/* =========================================================
   StrategicSyntax Design System — Colors & Type
   =========================================================
   Palette is drawn directly from the 2025 Brand Visual
   Identity Guidelines. Blue 1/2/3 are the only brand colors;
   neutrals are a supporting scale built from Blue 3 (navy).
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* Samsung Sharp Sans — brand display face (licensed, provided by StrategicSyntax) */
@font-face {
  font-family: 'Samsung Sharp Sans';
  src: url('fonts/SAMSUNGSHARPSANS.otf') format('opentype');
  font-display: swap;
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Samsung Sharp Sans';
  src: url('fonts/SAMSUNGSHARPSANS-MEDIUM.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Samsung Sharp Sans';
  src: url('fonts/SAMSUNGSHARPSANS-BOLD.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

:root {
  /* -------- Brand colors (from BRAND GUIDE, page 007) -------- */
  --ss-blue-1: #24CAFF;   /* Cyan / accent — the ".ai" blue */
  --ss-blue-2: #2F85ED;   /* Mid blue — CTAs, links */
  --ss-blue-3: #1D2254;   /* Navy — primary brand, wordmark */

  /* -------- Extended tonal ramps (for UI work) -------- */
  --ss-blue-1-050: #EAFAFF;
  --ss-blue-1-100: #C6F1FF;
  --ss-blue-1-200: #8FE3FF;
  --ss-blue-1-300: #54D5FF;
  --ss-blue-1-400: #24CAFF; /* brand */
  --ss-blue-1-500: #09A8DF;
  --ss-blue-1-600: #0284B3;

  --ss-blue-2-050: #EEF4FE;
  --ss-blue-2-100: #D4E3FC;
  --ss-blue-2-200: #A7C6F8;
  --ss-blue-2-300: #6FA5F2;
  --ss-blue-2-400: #2F85ED; /* brand */
  --ss-blue-2-500: #1B68D0;
  --ss-blue-2-600: #1452A3;

  --ss-blue-3-050: #E7E8EF;
  --ss-blue-3-100: #C5C8D7;
  --ss-blue-3-200: #9096AF;
  --ss-blue-3-300: #5A618A;
  --ss-blue-3-400: #373E70;
  --ss-blue-3-500: #1D2254; /* brand */
  --ss-blue-3-600: #141843;
  --ss-blue-3-700: #0C0F2E;

  /* -------- Neutrals (cool, biased toward navy) -------- */
  --ss-white:    #FFFFFF;
  --ss-paper:    #F8FAFD;   /* default page bg (slight cool tint) */
  --ss-fog:      #EEF2F8;
  --ss-mist:     #DDE3ED;
  --ss-silver:   #B8C0D0;
  --ss-slate:    #6B7391;
  --ss-graphite: #3A4161;
  --ss-ink:      #1D2254;   /* === Blue 3 */
  --ss-obsidian: #0C0F2E;

  /* -------- Semantic (reserved / minimal — brand is blue-first) -------- */
  --ss-success:  #12A579;
  --ss-warning:  #E9A324;
  --ss-danger:   #DC3545;

  /* -------- Foreground / background semantic tokens -------- */
  --fg-1: var(--ss-ink);        /* primary text */
  --fg-2: var(--ss-graphite);   /* secondary text */
  --fg-3: var(--ss-slate);      /* tertiary / captions */
  --fg-mute: var(--ss-silver);  /* disabled / placeholder */
  --fg-on-dark: var(--ss-white);
  --fg-link: var(--ss-blue-2);
  --fg-link-hover: var(--ss-blue-2-500);

  --bg-1: var(--ss-white);      /* card / surface */
  --bg-2: var(--ss-paper);      /* default page */
  --bg-3: var(--ss-fog);        /* subtle container */
  --bg-inverse: var(--ss-ink);  /* dark section */
  --bg-inverse-2: var(--ss-obsidian);

  --border-1: var(--ss-mist);   /* default hairline */
  --border-2: var(--ss-silver); /* stronger */
  --border-focus: var(--ss-blue-2);

  --accent-1: var(--ss-blue-2);  /* primary action */
  --accent-2: var(--ss-blue-1);  /* highlight / accent */

  /* -------- Spacing (4pt grid) -------- */
  --s-0:  0;
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  20px;
  --s-6:  24px;
  --s-8:  32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;
  --s-32: 128px;

  /* -------- Radius -------- */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;
  --r-circle: 50%;

  /* -------- Shadow -------- */
  --shadow-xs: 0 1px 2px rgba(29, 34, 84, 0.06);
  --shadow-sm: 0 2px 6px rgba(29, 34, 84, 0.08), 0 1px 2px rgba(29, 34, 84, 0.04);
  --shadow-md: 0 8px 24px rgba(29, 34, 84, 0.10), 0 2px 6px rgba(29, 34, 84, 0.05);
  --shadow-lg: 0 20px 48px rgba(29, 34, 84, 0.14), 0 4px 12px rgba(29, 34, 84, 0.06);
  --shadow-glow: 0 0 0 4px rgba(47, 133, 237, 0.18);

  /* -------- Motion -------- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 320ms;

  /* -------- Type families --------
     Display/logo: Samsung Sharp Sans (licensed — see fonts/).
     Body: Open Sans (Google Fonts).
     Mono: JetBrains Mono (Google Fonts). */
  --font-display: 'Samsung Sharp Sans', 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-sans:    'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* -------- Type scale (1.250 — Major Third) -------- */
  --fs-12: 0.75rem;    /* 12 */
  --fs-14: 0.875rem;   /* 14 */
  --fs-16: 1rem;       /* 16 base */
  --fs-18: 1.125rem;
  --fs-20: 1.25rem;
  --fs-24: 1.5rem;
  --fs-30: 1.875rem;
  --fs-36: 2.25rem;
  --fs-48: 3rem;
  --fs-60: 3.75rem;
  --fs-72: 4.5rem;

  /* -------- Line heights -------- */
  --lh-tight: 1.05;
  --lh-snug: 1.2;
  --lh-base: 1.5;
  --lh-loose: 1.7;

  /* -------- Letter spacing -------- */
  --ls-tight: -0.02em;
  --ls-snug: -0.01em;
  --ls-base: 0;
  --ls-wide: 0.04em;
  --ls-eyebrow: 0.12em;
}

/* =========================================================
   Semantic element styles (usable as base defaults)
   ========================================================= */

html { color: var(--fg-1); background: var(--bg-2); }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-16);
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--fg-1);
}

h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--fg-1);
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}

h1, .h1 { font-size: clamp(var(--fs-36), 5vw, var(--fs-72)); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); font-weight: 700; }
h2, .h2 { font-size: clamp(var(--fs-30), 3.5vw, var(--fs-48)); line-height: var(--lh-snug);  letter-spacing: var(--ls-tight); font-weight: 700; }
h3, .h3 { font-size: var(--fs-24); line-height: var(--lh-snug); letter-spacing: var(--ls-snug); font-weight: 500; }
h4, .h4 { font-size: var(--fs-20); line-height: var(--lh-snug); font-weight: 500; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-12);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--fg-link);
}

p { margin: 0 0 var(--s-4); max-width: 68ch; text-wrap: pretty; }

.lede {
  font-family: var(--font-sans);
  font-weight: 300; /* Open Sans Light — per brand guide */
  font-size: var(--fs-20);
  line-height: var(--lh-loose);
  color: var(--fg-2);
  max-width: 56ch;
}

small, .small, .caption { font-size: var(--fs-14); color: var(--fg-3); }

code, kbd, samp, pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}
code {
  background: var(--bg-3);
  border: 1px solid var(--border-1);
  padding: 1px 6px;
  border-radius: var(--r-xs);
  color: var(--ss-blue-3-600);
}
pre {
  background: var(--ss-obsidian);
  color: var(--ss-white);
  padding: var(--s-5);
  border-radius: var(--r-md);
  overflow-x: auto;
  line-height: var(--lh-base);
}

a { color: var(--fg-link); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
a:hover { color: var(--fg-link-hover); text-decoration: underline; text-underline-offset: 3px; }

hr { border: 0; border-top: 1px solid var(--border-1); margin: var(--s-8) 0; }

*:focus-visible {
  outline: none;
  box-shadow: var(--shadow-glow);
  border-radius: var(--r-xs);
}

/* =========================================================
   Utility helpers
   ========================================================= */
.ss-display { font-family: var(--font-display); letter-spacing: var(--ls-tight); }
.ss-gradient-text {
  background: linear-gradient(90deg, var(--ss-blue-3) 0%, var(--ss-blue-2) 55%, var(--ss-blue-1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.ss-surface { background: var(--bg-1); border: 1px solid var(--border-1); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.ss-dark { background: var(--bg-inverse); color: var(--fg-on-dark); }
.ss-dark h1, .ss-dark h2, .ss-dark h3, .ss-dark h4 { color: var(--fg-on-dark); }
