/* ==========================================================================
   PostGate — brand foundation (tokens + primitives)
   Reused across the marketing site and the product dashboard.
   ========================================================================== */
:root {
  /* Surfaces */
  --bg:        #06070D;
  --bg-2:      #0B1020;
  --bg-3:      #0F1424;
  --card:      #0E1322;
  --card-hi:   #131A2E;
  --border:    rgba(255,255,255,0.07);
  --border-hi: rgba(255,255,255,0.14);

  /* Text */
  --text:      #E7EAF3;
  --text-dim:  #9097AE;
  --text-mute: #5A6079;

  /* Brand */
  --pink:   #FF4DDE;
  --purple: #7B5CFF;
  --blue:   #2D7DFF;
  --accent: var(--purple);
  --grad:      linear-gradient(135deg, #FF4DDE 0%, #7B5CFF 50%, #2D7DFF 100%);
  --grad-soft: linear-gradient(135deg, rgba(255,77,222,0.18), rgba(123,92,255,0.18), rgba(45,125,255,0.18));

  /* Status */
  --ok:   #44D17A;
  --warn: #F0B044;
  --err:  #FF5466;

  /* Platform brand colors */
  --c-ig: #E1306C; --c-yt: #FF0033; --c-li: #0A66C2;
  --c-x: #E7EAF3; --c-fb: #1877F2; --c-th: #E7EAF3;
  --c-tt: #25F4EE; --c-bs: #1185FE;

  /* Radii / shadow */
  --radius-s: 8px; --radius-m: 12px; --radius-l: 18px; --radius-xl: 24px;
  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 10px 40px -20px rgba(0,0,0,0.6);
  --shadow-pop: 0 24px 60px -24px rgba(0,0,0,0.75), 0 1px 0 rgba(255,255,255,0.05) inset;

  --t-fast: 140ms cubic-bezier(.4,0,.2,1);
  --t-med:  260ms cubic-bezier(.4,0,.2,1);

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.mono { font-family: var(--font-mono); }

/* Brand mark + wordmark */
.pg-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; color: #fff; }
.pg-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: radial-gradient(circle at 30% 30%, rgba(255,77,222,0.20), transparent 60%), #0B1020;
  border: 1px solid rgba(255,255,255,0.09);
}
.pg-mark svg { width: 22px; height: 22px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; font-size: 14.5px; font-weight: 600; border-radius: 999px; border: 0;
  letter-spacing: -0.005em; white-space: nowrap;
  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--grad); color: #fff;
  box-shadow: 0 8px 24px -10px rgba(123,92,255,0.55), inset 0 1px 0 rgba(255,255,255,0.18); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -12px rgba(123,92,255,0.7), inset 0 1px 0 rgba(255,255,255,0.22); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: rgba(255,255,255,0.03); color: var(--text); border: 1px solid var(--border-hi); }
.btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.22); }
.btn-soft { background: rgba(255,255,255,0.05); color: var(--text); }
.btn-soft:hover { background: rgba(255,255,255,0.09); }
.btn-sm { padding: 8px 15px; font-size: 13px; }
.btn-sm svg { width: 14px; height: 14px; }
.btn-block { width: 100%; }

/* Status dot + pill */
.dot { width: 8px; height: 8px; border-radius: 99px; display: inline-block; }
.dot-ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(68,209,122,0.18); }
.dot-warn { background: var(--warn); box-shadow: 0 0 0 3px rgba(240,176,68,0.18); }
.dot-err { background: var(--err); box-shadow: 0 0 0 3px rgba(255,84,102,0.18); }

.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600;
  padding: 3px 9px; border-radius: 99px; letter-spacing: 0.04em; text-transform: uppercase; }
.pill svg { width: 11px; height: 11px; }
.pill-ok   { background: rgba(68,209,122,0.14); color: #79E3A4; }
.pill-warn { background: rgba(240,176,68,0.15); color: #FFC872; }
.pill-err  { background: rgba(255,84,102,0.14); color: #FF8A96; }
.pill-mute { background: rgba(255,255,255,0.05); color: var(--text-dim); }
.pill-accent { background: rgba(123,92,255,0.16); color: #C7B9FF; }

/* Gradient text */
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; }

/* Scrollbars */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.16); background-clip: content-box; }

/* Platform chip helper */
.plat-dot { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.plat-dot svg { width: 15px; height: 15px; }
