/* ============================================
   WATPLUS — Design Tokens
   ============================================ */

:root {
  /* Brand */
  --wp-magenta: #ED1E79;
  --wp-magenta-600: #C81668;
  --wp-magenta-400: #FF4F97;
  --wp-magenta-50: #FFE7F1;

  --wp-ink: #0B0B0F;        /* near-black */
  --wp-ink-2: #15151C;
  --wp-ink-3: #1E1E26;

  --wp-paper: #FAFAF7;
  --wp-paper-2: #F2F2EC;
  --wp-line: #E4E4DE;

  --wp-muted: #6A6A72;
  --wp-muted-2: #9A9AA2;

  /* Accents (for charts, tags, status) */
  --wp-accent-violet: #6B4BFF;
  --wp-accent-lime: #C8F26E;
  --wp-accent-amber: #FFB547;

  /* Fonts */
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* Spacing base */
  --gap: 24px;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;

  /* Density */
  --density: 1;
  --section-pad: calc(120px * var(--density));
  --container: 1240px;

  /* Current theme (light by default) */
  --bg: var(--wp-paper);
  --bg-2: var(--wp-paper-2);
  --fg: var(--wp-ink);
  --fg-muted: var(--wp-muted);
  --line: var(--wp-line);
  --surface: #ffffff;
  --accent: var(--wp-magenta);
  --accent-ink: #ffffff;
}

[data-theme="dark"] {
  --bg: #07070A;
  --bg-2: #0E0E14;
  --fg: #FAFAF7;
  --fg-muted: #8C8C94;
  --line: #22222C;
  --surface: #111119;
  --accent-ink: #ffffff;
}

/* Density variants */
[data-density="compact"] { --density: 0.75; --gap: 18px; }
[data-density="airy"]    { --density: 1.25; --gap: 32px; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .3s ease, color .3s ease;
}

::selection { background: var(--accent); color: var(--accent-ink); }

/* Type scale — display + mono contrast */
.t-display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.t-mono {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.t-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.t-h1 { font-size: clamp(48px, 7vw, 104px); }
.t-h2 { font-size: clamp(36px, 4.5vw, 64px); }
.t-h3 { font-size: clamp(24px, 2.4vw, 34px); }
.t-lead { font-size: clamp(18px, 1.4vw, 22px); color: var(--fg-muted); line-height: 1.5; }

/* Layout */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.section { padding: var(--section-pad) 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--fg); }
.btn-ink {
  background: var(--fg);
  color: var(--bg);
}
.btn-ink:hover { filter: brightness(1.1); }

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  background: var(--surface);
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

/* Divider */
.hairline { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Scrollbar subtle */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--fg-muted); }
