/* ============================================================
   Winspeed Design System — Colors & Type
   AI consultants who can actually build.
   ============================================================ */

/* ---------- Fonts ---------- */
/* Inter Tight stand-in (OFL), self-hosted: latin and latin-ext subsets of Inter Tight, Instrument Serif and
   JetBrains Mono, served from /assets/fonts so no third-party stylesheet blocks rendering. Substitution flagged in README
   - replace with licensed "Söhne" or "General Sans" if/when available. */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/instrumentserif-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/instrumentserif-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/instrumentserif-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/instrumentserif-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/intertight-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/intertight-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/intertight-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/intertight-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/intertight-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/intertight-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/intertight-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/intertight-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/jetbrainsmono-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/jetbrainsmono-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/jetbrainsmono-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/jetbrainsmono-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/jetbrainsmono-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/jetbrainsmono-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* ============================================================
     COLOR — Premium dark base, electric cyan accent, indigo support
     ============================================================ */

  /* Base / surfaces — deep navy → near-black */
  --ws-ink-1000: #05070D;   /* deepest, pure background */
  --ws-ink-950:  #0A0E1A;   /* primary dark page bg */
  --ws-ink-900:  #0E1424;   /* card / elevated surface on dark */
  --ws-ink-850:  #131A2E;   /* hovered surface */
  --ws-ink-800:  #1A2238;   /* raised element / input */
  --ws-ink-700:  #232C45;   /* divider on dark / border subtle */
  --ws-ink-600:  #34405F;   /* border emphasis on dark */
  --ws-ink-500:  #4A5878;   /* muted icon */
  --ws-ink-400:  #6E7B9B;   /* tertiary text on dark */
  --ws-ink-300:  #97A3C0;   /* secondary text on dark */
  --ws-ink-200:  #C2CADD;   /* primary text on dark, lower emphasis */
  --ws-ink-100:  #E4E8F2;   /* primary text on dark */
  --ws-ink-50:   #F4F6FB;   /* near-white text */
  --ws-ink-0:    #FFFFFF;

  /* Light surfaces — for clean readable sections */
  --ws-paper:        #FAFAF7;  /* off-white, slightly warm */
  --ws-paper-alt:    #F2F2EC;  /* faint contrast band */
  --ws-paper-line:   #E5E5DD;  /* hairline on paper */
  --ws-paper-text:   #0E1424;  /* body text on paper (use ink-900) */
  --ws-paper-muted:  #5A6480;

  /* Primary accent — Electric blue / cyan (drawn from logo's top stop) */
  --ws-cyan-50:  #E6FBFF;
  --ws-cyan-100: #BFF4FF;
  --ws-cyan-200: #7CE6FF;
  --ws-cyan-300: #38D4FF;   /* logo top stop */
  --ws-cyan-400: #1FA8FF;   /* primary accent */
  --ws-cyan-500: #3B82F6;   /* logo mid-blue stop */
  --ws-cyan-600: #2563EB;
  --ws-cyan-700: #1E40AF;

  /* Secondary accent — Violet / magenta (drawn from logo's lower stops) */
  --ws-indigo-100: #E6DEFB;
  --ws-indigo-300: #A78BFA;
  --ws-indigo-500: #7C5BE0;   /* logo violet stop */
  --ws-indigo-700: #4F3DAD;
  --ws-magenta-400: #E25590;  /* logo magenta stop */
  --ws-magenta-500: #D24A8F;
  --ws-coral-400:   #F26D55;  /* logo bottom red-coral stop */

  /* Brand gradient — full logo spectrum */
  --ws-brand-gradient: linear-gradient(135deg, #38D4FF 0%, #3B82F6 30%, #7C5BE0 58%, #E25590 82%, #F26D55 100%);

  /* Semantic */
  --ws-success: #34D9A4;
  --ws-warning: #F4B740;
  --ws-danger:  #F26D6D;
  --ws-info:    var(--ws-cyan-400);

  /* Aliases — semantic foreground / background */
  --fg-1: var(--ws-ink-50);     /* highest emphasis text on dark */
  --fg-2: var(--ws-ink-200);    /* body text on dark */
  --fg-3: var(--ws-ink-300);    /* secondary */
  --fg-4: var(--ws-ink-400);    /* tertiary / metadata */
  --fg-5: var(--ws-ink-500);    /* disabled / icon muted */

  --bg-1: var(--ws-ink-950);    /* page */
  --bg-2: var(--ws-ink-900);    /* card */
  --bg-3: var(--ws-ink-850);    /* hover card */
  --bg-4: var(--ws-ink-800);    /* input */

  --line-1: var(--ws-ink-700);  /* subtle divider */
  --line-2: var(--ws-ink-600);  /* visible border */

  --accent:        var(--ws-cyan-400);
  --accent-soft:   color-mix(in oklab, var(--ws-cyan-400) 14%, transparent);
  --accent-edge:   color-mix(in oklab, var(--ws-cyan-400) 38%, transparent);
  --accent-2:      var(--ws-indigo-500);
  --accent-3:      var(--ws-magenta-400);

  /* ============================================================
     TYPE — Inter Tight (UI), Instrument Serif (editorial accents),
            JetBrains Mono (code / technical numbers)
     ============================================================ */
  --font-sans: "Inter Tight", "Söhne", "General Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-serif: "Instrument Serif", "Tiempos Headline", Georgia, serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Base scale — compact, premium.  Display drops below 1.0 line-height for tight headlines. */
  --fs-display-xl: clamp(64px, 7.4vw, 112px);
  --fs-display-l:  clamp(48px, 5.6vw, 80px);
  --fs-display-m:  clamp(40px, 4.4vw, 64px);
  --fs-h1: 44px;
  --fs-h2: 32px;
  --fs-h3: 24px;
  --fs-h4: 20px;
  --fs-h5: 17px;
  --fs-body: 16px;
  --fs-body-s: 14px;
  --fs-caption: 13px;
  --fs-eyebrow: 11px;

  /* Line heights */
  --lh-display: 0.96;
  --lh-tight:   1.08;
  --lh-snug:    1.2;
  --lh-body:    1.55;
  --lh-loose:   1.7;

  /* Letter spacing */
  --ls-display: -0.025em;
  --ls-tight:   -0.015em;
  --ls-normal:  0;
  --ls-eyebrow: 0.16em;
  --ls-mono:    -0.01em;

  /* Weights */
  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semibold: 600;
  --fw-bold:    700;

  /* ============================================================
     SPACING / RADII / SHADOWS / TIMING
     ============================================================ */
  --sp-0:  0;
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;
  --sp-32: 128px;

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

  /* Borders */
  --border-hair: 1px solid var(--line-1);
  --border-line: 1px solid var(--line-2);

  /* Shadows — soft, low key, with cyan glow for emphasis only */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.02) inset;
  --shadow-md: 0 8px 24px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.03) inset;
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04) inset;
  --glow-cyan: 0 0 0 1px color-mix(in oklab, var(--ws-cyan-400) 40%, transparent),
               0 8px 32px color-mix(in oklab, var(--ws-cyan-400) 18%, transparent);
  --glow-brand: 0 0 0 1px rgba(124,91,224,0.4),
                0 12px 40px rgba(124,91,224,0.22);

  /* Motion — calm, mostly fades + small Y. No bounce. */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 140ms;
  --dur-base: 220ms;
  --dur-slow: 420ms;

  /* Grid motif — subtle network/grid background */
  --grid-color: color-mix(in oklab, var(--ws-cyan-400) 6%, transparent);
  --grid-size: 56px;
}

/* ============================================================
   Semantic helpers — drop-in classes used by previews + UI kit
   ============================================================ */

.ws-display-xl { font: var(--fw-medium) var(--fs-display-xl)/var(--lh-display) var(--font-sans); letter-spacing: var(--ls-display); }
.ws-display-l  { font: var(--fw-medium) var(--fs-display-l)/var(--lh-display) var(--font-sans); letter-spacing: var(--ls-display); }
.ws-display-m  { font: var(--fw-medium) var(--fs-display-m)/var(--lh-display) var(--font-sans); letter-spacing: var(--ls-display); }
.ws-h1 { font: var(--fw-medium) var(--fs-h1)/var(--lh-tight) var(--font-sans); letter-spacing: var(--ls-tight); }
.ws-h2 { font: var(--fw-medium) var(--fs-h2)/var(--lh-tight) var(--font-sans); letter-spacing: var(--ls-tight); }
.ws-h3 { font: var(--fw-medium) var(--fs-h3)/var(--lh-snug) var(--font-sans); letter-spacing: var(--ls-tight); }
.ws-h4 { font: var(--fw-semibold) var(--fs-h4)/var(--lh-snug) var(--font-sans); letter-spacing: var(--ls-tight); }
.ws-h5 { font: var(--fw-semibold) var(--fs-h5)/var(--lh-snug) var(--font-sans); }
.ws-body  { font: var(--fw-regular) var(--fs-body)/var(--lh-body) var(--font-sans); }
.ws-body-s { font: var(--fw-regular) var(--fs-body-s)/var(--lh-body) var(--font-sans); }
.ws-caption { font: var(--fw-regular) var(--fs-caption)/var(--lh-snug) var(--font-sans); color: var(--fg-3); }
.ws-eyebrow {
  font: var(--fw-semibold) var(--fs-eyebrow)/1.2 var(--font-sans);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
}
.ws-mono { font-family: var(--font-mono); letter-spacing: var(--ls-mono); }
.ws-serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

/* Editorial italic accent — used in pull-quote-style headlines */
.ws-headline em,
.ws-headline .accent-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ws-ink-200);
  letter-spacing: -0.01em;
}

/* Background motif — subtle technical grid */
.ws-grid-bg {
  background-color: var(--bg-1);
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  background-position: -1px -1px;
}

/* Cyan signal — small horizontal accent rule */
.ws-signal-rule {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 12px;
}
