/* ========================================================================
   Up Business Solutions — Shared design tokens
   Corporate system is neutral/tech. Product pages override accents.
   ======================================================================== */

:root {
  /* Corporate palette — UP Business Solutions Brand 2025 */
  --ubs-bg:              #f5f7f9;
  --ubs-surface:         #ffffff;
  --ubs-surface-low:     #eef1f4;
  --ubs-surface-high:    #e4e8ec;
  --ubs-ink:             #00182A;
  --ubs-ink-2:           #2B3137;
  --ubs-ink-3:           #6A6084;
  --ubs-line:            rgba(0,24,42,0.08);

  /* Corporate accent — Verde principal UP Business #00C389 */
  --ubs-accent:          #00C389;
  --ubs-accent-2:        #00a876;

  /* Product 1 — Atelier Payroll */
  --p1-primary:          #00C389;
  --p1-primary-2:        #00a876;
  --p1-ink:              #00182A;

  /* Product 2 — Architect ERP */
  --p2-primary:          #00182A;
  --p2-primary-2:        #2B3137;
  --p2-ink:              #00182A;

  /* Typography — Montserrat (brand font) */
  --font-display: 'Montserrat', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body:    'Montserrat', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* Motion / radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --shadow-ambient: 0 20px 40px rgba(25,28,30,0.06);
  --shadow-lift:    0px 12px 32px rgba(25,28,30,0.04), 0px 4px 8px rgba(25,28,30,0.04);

  --easing: cubic-bezier(.2,.7,.3,1);
}

[data-theme="dark"] {
  --ubs-bg:              #00101c;
  --ubs-surface:         #00182A;
  --ubs-surface-low:     #001422;
  --ubs-surface-high:    #1a2a38;
  --ubs-ink:             #e7eaef;
  --ubs-ink-2:           #a0a6b3;
  --ubs-ink-3:           #6A6084;
  --ubs-line:            rgba(255,255,255,0.07);
  --ubs-accent:          #00C389;
  --ubs-accent-2:        #00a876;
  --shadow-ambient: 0 20px 40px rgba(0,0,0,0.35);
  --shadow-lift:    0 12px 32px rgba(0,0,0,0.28), 0 4px 8px rgba(0,0,0,0.24);
}

/* Reset-ish */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--ubs-bg);
  color: var(--ubs-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* Typography scale (Manrope tight, Inter body) */
.display-xl { font-family: var(--font-display); font-weight: 600; font-size: clamp(48px, 6.4vw, 104px); line-height: 0.98; letter-spacing: -0.035em; }
.display-lg { font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 4.8vw, 72px); line-height: 1.02; letter-spacing: -0.03em; }
.headline   { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.1; letter-spacing: -0.02em; }
.title      { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.015em; }
.body-lg    { font-size: 18px; line-height: 1.55; color: var(--ubs-ink-2); }
.body-md    { font-size: 15px; line-height: 1.55; color: var(--ubs-ink-2); }
.body-sm    { font-size: 13px; line-height: 1.5; color: var(--ubs-ink-2); }
.label-sm   { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ubs-ink-3); font-weight: 600; }
.mono       { font-family: var(--font-mono); font-feature-settings: "zero", "ss01"; }

/* Buttons — corporate */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  letter-spacing: 0.01em; border: none; cursor: pointer;
  transition: transform .15s var(--easing), box-shadow .15s var(--easing), background .15s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--ubs-accent), var(--ubs-accent-2));
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 8px 22px rgba(0,195,137,.30);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ubs-ink); }
.btn-ghost:hover { background: var(--ubs-surface-high); }

/* Containers */
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.rule { height: 1px; background: var(--ubs-line); border: 0; margin: 0; }

/* Placeholders — abstract striped blocks */
.placeholder {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg,
      rgba(25,28,30,0.045) 0 10px,
      transparent 10px 20px),
    var(--ubs-surface-low);
  color: var(--ubs-ink-3);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex; align-items: flex-end; padding: 12px;
  border-radius: var(--r-md);
}
[data-theme="dark"] .placeholder {
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.05) 0 10px,
      transparent 10px 20px),
    var(--ubs-surface-low);
}

/* Scrollbar hide (canvas) */
html, body { scrollbar-width: thin; }
