/* Ignite ERP — design tokens */
:root {
  /* Surfaces — near-white, neutral-cool */
  --bg:        #ffffff;
  --bg-soft:   oklch(0.978 0.004 250);
  --bg-card:   #ffffff;
  --bg-dark:   oklch(0.18 0.018 250);
  --bg-dark-2: oklch(0.22 0.018 250);

  /* Ink */
  --ink:       oklch(0.18 0.015 250);
  --ink-2:     oklch(0.36 0.012 250);
  --ink-3:     oklch(0.52 0.010 250);
  --ink-4:     oklch(0.66 0.008 250);
  --ink-on-dark: oklch(0.95 0.006 80);
  --ink-on-dark-2: oklch(0.72 0.010 250);

  /* Lines */
  --line:      oklch(0.92 0.006 250);
  --line-2:    oklch(0.88 0.008 250);
  --line-dark: oklch(0.30 0.018 250);

  /* Brand — green primary (#0E8C5A) */
  /* Blue alt: oklch(0.56 0.18 252) / #2D6FF7 — swap back by replacing all five values */
  --primary:       oklch(0.54 0.14 160);
  --primary-ink:   oklch(0.40 0.13 160);
  --primary-hover: oklch(0.48 0.14 160);
  --primary-soft:  oklch(0.96 0.03 160);
  --primary-tint:  oklch(0.88 0.06 160);

  /* Accent — ember (used sparingly, ties to "Ignite") */
  --accent:        oklch(0.72 0.16 55);
  --accent-ink:    oklch(0.50 0.15 50);
  --accent-soft:   oklch(0.96 0.035 65);

  /* Semantic */
  --good:    oklch(0.62 0.14 155);
  --warn:    oklch(0.74 0.16 75);

  /* Radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 0 rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 60px -20px rgba(15, 23, 42, 0.18), 0 8px 24px -8px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 40px 100px -30px rgba(15, 23, 42, 0.28), 0 16px 36px -12px rgba(15, 23, 42, 0.12);

  /* Density (tweakable) */
  --section-y: 120px;
  --container: 1440px;
  --gutter: 24px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "ss01", "cv11";
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.5;
}
.mono { font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace; }

h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

img, svg { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section-y) 0; }
.section-tight { padding: calc(var(--section-y) * 0.6) 0; }

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-ink);
  font-family: "Geist Mono", ui-monospace, monospace;
}

.eyebrow-muted {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-family: "Geist Mono", ui-monospace, monospace;
}

.h-display {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  text-wrap: balance;
}
.h1 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
}
.h3 {
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 600;
}
.lede {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
  max-width: 56ch;
}

.muted { color: var(--ink-3); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--r-md);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform 0.06s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 1px 2px rgba(15,23,42,0.18);
}
.btn-primary:hover { background: oklch(0.24 0.02 250); }

.btn-accent {
  background: var(--primary);
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 1px 2px rgba(15,23,42,0.12);
}
.btn-accent:hover { background: var(--primary-hover); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--ink-4); }

.btn-link {
  background: transparent;
  color: var(--ink);
  padding: 0 4px;
  height: auto;
}
.btn-link:hover { color: var(--primary-ink); }

.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: var(--r-sm); }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: var(--r-md); }

/* Card */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border-radius: var(--r-pill);
  background: var(--bg-card);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
}

.dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--good);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--good) 18%, transparent);
}

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
}

/* Utility */
.flex { display: flex; }
.row { display: flex; align-items: center; gap: 12px; }
.col { display: flex; flex-direction: column; gap: 12px; }
.center { display: flex; align-items: center; justify-content: center; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.grow { flex: 1; }

/* Subtle scroll-in (no JS dependency required for first paint) */
@media (prefers-reduced-motion: no-preference) {
  .fade-up { animation: fadeUp 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* Selection */
::selection { background: var(--primary-tint); color: var(--ink); }
