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

:root {
  /* Corporate palette (neutral, Up Business Solutions) */
  --ubs-bg:              #f7f9fb;
  --ubs-surface:         #ffffff;
  --ubs-surface-low:     #f2f4f6;
  --ubs-surface-high:    #eceef0;
  --ubs-ink:             #191c1e;
  --ubs-ink-2:           #434654;
  --ubs-ink-3:           #6b6f7a;
  --ubs-line:            rgba(25,28,30,0.08);

  /* Corporate accent — a cooled, architectural indigo that sits between
     the two product hues so neither product dominates the masthead. */
  --ubs-accent:          #2b3a67;
  --ubs-accent-2:        #3a4f8a;

  /* Product 1 — Atelier Payroll (deeper, editorial) */
  --p1-primary:          #003d9b;
  --p1-primary-2:        #0052cc;
  --p1-ink:              #0a1530;

  /* Product 2 — Architect ERP (brighter, engineered) */
  --p2-primary:          #004bca;
  --p2-primary-2:        #0061ff;
  --p2-ink:              #081630;

  /* Typography */
  --font-display: 'Manrope', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', 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:              #0b0f14;
  --ubs-surface:         #12171e;
  --ubs-surface-low:     #0f141a;
  --ubs-surface-high:    #1a212a;
  --ubs-ink:             #e7eaef;
  --ubs-ink-2:           #a0a6b3;
  --ubs-ink-3:           #6b7280;
  --ubs-line:            rgba(255,255,255,0.07);
  --ubs-accent:          #6b7fb5;
  --ubs-accent-2:        #8596c9;
  --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(43,58,103,.25);
}
.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; }
