/* ============================================================
   Solo.io Design System — Colors & Type
   Version Blue 1.0
   ============================================================ */

/* ---- Webfonts (Google Fonts) ---- */
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;500;600;700;800&family=DM+Sans:wght@300;400;500;600;700&family=DM+Mono:wght@300;400;500&display=swap');

:root {
  /* =====================================================
     COLORS — Main Palette (from Brandbook "Main Colors")
     ===================================================== */
  --solo-primary-dark:    #151927;   /* Primary Dark — 50% usage */
  --solo-primary-grey:    #EDEEF7;   /* Primary Grey — 30% usage */
  --solo-secondary-blue:  #20B7F3;   /* Secondary Blue — 10% */
  --solo-white:           #FFFFFF;   /* White — 10% */

  /* Extended palette, derived from sub-brand usage */
  --solo-electric-blue:   #20B7F3;   /* alias */
  --solo-electric-purple: #8A3FFC;   /* kagent / agentgateway purple */
  --solo-deep-purple:     #4C1D95;   /* hero purple gradients */

  /* Neutrals (dark-mode surfaces, observed in product hero screenshots) */
  --solo-ink-900: #0B0E18;  /* deeper than primary-dark */
  --solo-ink-800: #151927;  /* primary dark */
  --solo-ink-700: #1E2337;  /* card on dark */
  --solo-ink-600: #2A3044;  /* border on dark */
  --solo-ink-500: #3B4258;  /* muted text on dark */
  --solo-ink-400: #6B7289;  /* secondary text on dark */
  --solo-ink-300: #9AA0B5;  /* tertiary */

  /* Neutrals (light-mode surfaces) */
  --solo-paper-0:   #FFFFFF;
  --solo-paper-50:  #F6F7FB;
  --solo-paper-100: #EDEEF7;  /* primary grey */
  --solo-paper-200: #DEE0EE;
  --solo-paper-300: #C3C7DC;
  --solo-paper-400: #9AA0B5;

  /* Semantic */
  --solo-success: #22C55E;
  --solo-warning: #F59E0B;
  --solo-danger:  #EF4444;
  --solo-info:    #20B7F3;

  /* =====================================================
     FG / BG ROLES — prefer these in components
     ===================================================== */
  /* on dark surface */
  --bg-0:  var(--solo-ink-900);
  --bg-1:  var(--solo-ink-800);
  --bg-2:  var(--solo-ink-700);
  --bg-3:  var(--solo-ink-600);
  --fg-1:  #FFFFFF;
  --fg-2:  #C8CCDB;
  --fg-3:  #8289A3;
  --fg-4:  #5A6078;
  --accent-blue:   var(--solo-electric-blue);
  --accent-purple: var(--solo-electric-purple);
  --border-subtle: rgba(255,255,255,0.08);
  --border-default: rgba(255,255,255,0.12);
  --border-strong:  rgba(255,255,255,0.24);

  /* =====================================================
     TYPE
     ===================================================== */
  --font-primary:   'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-secondary: 'DM Sans',  ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono:      'DM Mono',  ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Type scale — Figtree for display/headings, DM Sans for body */
  --fs-display-1: clamp(56px, 7vw, 96px);   /* hero */
  --fs-display-2: clamp(44px, 5.5vw, 72px); /* page title */
  --fs-h1: clamp(36px, 4vw, 56px);
  --fs-h2: clamp(28px, 3vw, 40px);
  --fs-h3: 24px;
  --fs-h4: 20px;
  --fs-h5: 18px;
  --fs-body-lg: 18px;
  --fs-body:    16px;
  --fs-body-sm: 14px;
  --fs-caption: 12px;
  --fs-overline: 12px;

  --lh-tight: 1.05;
  --lh-snug:  1.15;
  --lh-heading: 1.2;
  --lh-body:  1.55;
  --lh-loose: 1.7;

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

  /* Tracking (letter-spacing) */
  --tracking-tight: -0.02em;
  --tracking-snug:  -0.01em;
  --tracking-normal: 0;
  --tracking-wide:  0.04em;
  --tracking-mono-label: 0.06em;  /* DM Mono labels have wide tracking */

  /* =====================================================
     RADII — noticeably generous; buttons are fully pill
     ===================================================== */
  --radius-xs:  4px;
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;   /* cards */
  --radius-xl:  20px;   /* product tiles */
  --radius-2xl: 28px;   /* hero tiles */
  --radius-pill: 999px; /* nav bar, buttons, chips */

  /* =====================================================
     SPACING — 4px base
     ===================================================== */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;
  --space-11: 80px;
  --space-12: 96px;
  --space-13: 128px;

  /* =====================================================
     SHADOWS / ELEVATION
     ===================================================== */
  --elev-0: none;
  --elev-1: 0 1px 2px rgba(15, 19, 35, 0.08);
  --elev-2: 0 4px 12px rgba(15, 19, 35, 0.10);
  --elev-3: 0 10px 28px rgba(15, 19, 35, 0.14);
  --elev-4: 0 24px 60px rgba(15, 19, 35, 0.22);

  /* Glows (used behind product marks on dark) */
  --glow-blue:   0 0 80px rgba(32, 183, 243, 0.35);
  --glow-purple: 0 0 80px rgba(138, 63, 252, 0.35);

  /* =====================================================
     MOTION
     ===================================================== */
  --ease-standard: cubic-bezier(.2, .6, .2, 1);
  --ease-out:      cubic-bezier(.16, 1, .3, 1);
  --ease-in:       cubic-bezier(.4, 0, 1, 1);
  --dur-fast:   120ms;
  --dur-base:   200ms;
  --dur-slow:   400ms;

  /* Focus ring */
  --focus-ring: 0 0 0 2px var(--solo-electric-blue);
}

/* ============================================================
   SEMANTIC ELEMENT STYLES
   Primary voice: Figtree medium for headlines, DM Sans for body,
   DM Mono for meta/labels (eyebrows, stats, microcopy).
   ============================================================ */

html, body {
  font-family: var(--font-secondary);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg-1);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Display & Headings → Figtree */
.display-1, h1.display-1 {
  font-family: var(--font-primary);
  font-size: var(--fs-display-1);
  font-weight: var(--fw-medium);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
}
.display-2, h1.display-2 {
  font-family: var(--font-primary);
  font-size: var(--fs-display-2);
  font-weight: var(--fw-medium);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
}

h1 {
  font-family: var(--font-primary);
  font-size: var(--fs-h1);
  font-weight: var(--fw-medium);
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-tight);
  margin: 0;
}
h2 {
  font-family: var(--font-primary);
  font-size: var(--fs-h2);
  font-weight: var(--fw-medium);
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-snug);
  margin: 0;
}
h3 {
  font-family: var(--font-primary);
  font-size: var(--fs-h3);
  font-weight: var(--fw-medium);
  line-height: 1.3;
  letter-spacing: var(--tracking-snug);
  margin: 0;
}
h4 {
  font-family: var(--font-primary);
  font-size: var(--fs-h4);
  font-weight: var(--fw-medium);
  line-height: 1.35;
  margin: 0;
}
h5, h6 {
  font-family: var(--font-primary);
  font-size: var(--fs-h5);
  font-weight: var(--fw-semibold);
  line-height: 1.4;
  margin: 0;
}

p, .body {
  font-family: var(--font-secondary);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg-2);
  margin: 0;
}
.body-lg {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-loose);
}
.body-sm { font-size: var(--fs-body-sm); }
.caption { font-size: var(--fs-caption); color: var(--fg-3); }

/* Monospace eyebrow / overline — appears above hero titles in the product
   e.g. "• From the Founders of Istio & Ambient Mesh", "• Built in Rust • Linux Foundation Project" */
.eyebrow, .overline {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: var(--fw-regular);
  letter-spacing: var(--tracking-mono-label);
  text-transform: none;  /* NOT uppercase — Solo keeps mono eyebrows lowercase/sentence */
  color: var(--accent-blue);
}
.eyebrow--purple { color: var(--accent-purple); }
.eyebrow--muted  { color: var(--fg-3); }

/* Stat numbers (big Electric-Blue figures under hero sections) */
.stat-figure {
  font-family: var(--font-primary);
  font-size: 40px;
  font-weight: var(--fw-medium);
  color: var(--accent-blue);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
  letter-spacing: var(--tracking-mono-label);
  margin-top: 6px;
}

/* Code — DM Mono */
code, pre, kbd, samp, .code {
  font-family: var(--font-mono);
  font-size: 13px;
}

/* Links */
a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: opacity var(--dur-base) var(--ease-standard);
}
a:hover { opacity: 0.8; }

/* Utility classes for type mixing */
.t-figtree   { font-family: var(--font-primary); }
.t-dmsans    { font-family: var(--font-secondary); }
.t-dmmono    { font-family: var(--font-mono); }
.t-muted     { color: var(--fg-3); }
.t-subtle    { color: var(--fg-2); }
.t-blue      { color: var(--accent-blue); }
.t-purple    { color: var(--accent-purple); }

/* ============================================================
   CORE PATTERNS
   ============================================================ */

/* Pill nav — the defining chrome element on solo.io */
.solo-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-7);
  padding: 10px 10px 10px 24px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* Pill button */
.solo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: var(--fw-medium);
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-standard), transform var(--dur-fast) var(--ease-standard), opacity var(--dur-base) var(--ease-standard);
}
.solo-btn--primary { background: var(--accent-blue); color: #fff; }
.solo-btn--primary:hover { background: #2AC0FB; }
.solo-btn--purple  { background: var(--accent-purple); color: #fff; }
.solo-btn--purple:hover { background: #9C55FF; }
.solo-btn--ghost   { background: rgba(255,255,255,0.04); color: #fff; border-color: var(--border-default); }
.solo-btn--ghost:hover { background: rgba(255,255,255,0.08); }
.solo-btn--dark    { background: #0B0E18; color: #fff; }
.solo-btn:active   { transform: scale(0.98); }

/* Card on dark — subtle inner glow, no drop shadow */
.solo-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

/* Stat tile */
.solo-stat-tile {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
}
