:root {
  --ds-font-sans-ko: "IBM Plex Sans KR", "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
  --ds-font-sans-en: "Manrope", "Inter", "IBM Plex Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
  --ds-font-sans: var(--ds-font-sans-ko);
  --ds-font-mono: "JetBrains Mono", "Fira Code", "SFMono-Regular", ui-monospace, monospace;
  --ds-base: #1a2238;
  --ds-primary: #2562eb;
  --ds-accent: #34d399;
  --ds-highlight: #60a5fa;
}

html[lang="en"],
:root[data-locale="en"] {
  --ds-font-sans: var(--ds-font-sans-en);
}

html[lang="ko"],
:root[data-locale="ko"] {
  --ds-font-sans: var(--ds-font-sans-ko);
}

:root,
:root[data-theme="guide"] {
  color-scheme: light;
  --ds-bg: #f8fafc;
  --ds-surface: #ffffff;
  --ds-surface-alt: #f1f5f9;
  --ds-foreground: #0f172a;
  --ds-muted: #94a3b8;
  --ds-border: #e2e8f0;
  --ds-border-strong: #cbd5e1;
  --ds-input-bg: #ffffff;
  --ds-action: #2562eb;
  --ds-action-hover: #1d4fd7;
  --ds-action-foreground: #ffffff;
  --ds-action-subtle: #eff6ff;
  --ds-link: #1d4fd7;
  --ds-success: #16a34a;
  --ds-success-surface: #ecfdf5;
  --ds-success-foreground: #166534;
  --ds-warning: #ca8a04;
  --ds-warning-surface: #fef3c7;
  --ds-warning-foreground: #92400e;
  --ds-error: #dc2626;
  --ds-error-surface: #fee2e2;
  --ds-error-foreground: #991b1b;
  --ds-info: #2562eb;
  --ds-info-surface: #dbeafe;
  --ds-info-foreground: #1d4fd7;
  --ds-overlay: rgba(15, 23, 42, 0.32);
  --ds-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --ds-shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
}

:root[data-theme="light"] {
  color-scheme: light;
  --ds-bg: #f4ede3;
  --ds-surface: #fffaf2;
  --ds-surface-alt: #f3eadf;
  --ds-foreground: #30271d;
  --ds-muted: #7a6b5d;
  --ds-border: #dfd3c3;
  --ds-border-strong: #cdbda9;
  --ds-input-bg: #fffdf8;
  --ds-action: #1a2238;
  --ds-action-hover: #111827;
  --ds-action-foreground: #ffffff;
  --ds-action-subtle: #ece5dd;
  --ds-link: #5c4023;
  --ds-success: #2f855a;
  --ds-success-surface: #edf7f1;
  --ds-success-foreground: #276749;
  --ds-warning: #a16207;
  --ds-warning-surface: #f7e7c8;
  --ds-warning-foreground: #7c4a17;
  --ds-error: #c2410c;
  --ds-error-surface: #fce7df;
  --ds-error-foreground: #9a3412;
  --ds-info: #1f4f82;
  --ds-info-surface: #e7eef7;
  --ds-info-foreground: #1f4f82;
  --ds-overlay: rgba(48, 39, 29, 0.3);
  --ds-shadow-sm: 0 1px 2px rgba(48, 39, 29, 0.05);
  --ds-shadow-md: 0 4px 18px rgba(48, 39, 29, 0.08);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ds-bg: #0f172a;
  --ds-surface: #1a2238;
  --ds-surface-alt: #1f2a44;
  --ds-foreground: #f1f5f9;
  --ds-muted: #94a3b8;
  --ds-border: #243147;
  --ds-border-strong: #3a4964;
  --ds-input-bg: #131d31;
  --ds-action: #60a5fa;
  --ds-action-hover: #3b82f6;
  --ds-action-foreground: #0f172a;
  --ds-action-subtle: #17314f;
  --ds-link: #93c5fd;
  --ds-success: #4ade80;
  --ds-success-surface: #052e1a;
  --ds-success-foreground: #bbf7d0;
  --ds-warning: #facc15;
  --ds-warning-surface: #3f2a09;
  --ds-warning-foreground: #fde68a;
  --ds-error: #f87171;
  --ds-error-surface: #3f1017;
  --ds-error-foreground: #fecaca;
  --ds-info: #60a5fa;
  --ds-info-surface: #172554;
  --ds-info-foreground: #bfdbfe;
  --ds-overlay: rgba(2, 6, 23, 0.72);
  --ds-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.24);
  --ds-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.28);
}

/* ── Elegant Dark Particle preset ────────────────────────────────────────────
   The devscent.com landing identity: near-black charcoal base, navy action,
   mint accent, azure highlight. Every --ds-* token is defined so page-level
   CSS (pricing, estimate, portfolio-detail) inherits the dark chrome without
   per-file overrides. See docs/02_DESIGN_GUIDE_v2.md §3.4.7.
-------------------------------------------------------------------------- */
:root[data-theme="elegant-dark"] {
  color-scheme: dark;
  --ds-font-sans: "DM Sans", "IBM Plex Sans KR", "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", -apple-system, sans-serif;
  --ds-font-display: "Syne", "DM Sans", "Manrope", sans-serif;

  --ds-bg: #08090c;
  --ds-surface: #101218;
  --ds-surface-alt: #161921;
  --ds-surface-raised: #1e2230;
  --ds-surface-strong: #242a34;

  --ds-foreground: #e6e4df;
  --ds-foreground-dim: rgba(230, 228, 223, 0.72);
  --ds-muted: #565d72;
  --ds-muted-foreground: #8b93a8;

  --ds-border: #1e2232;
  --ds-border-strong: #2c3148;

  --ds-input-bg: #10131b;
  --ds-action: #2562eb;
  --ds-action-hover: #1d4fcc;
  --ds-action-foreground: #ffffff;
  --ds-action-subtle: rgba(37, 98, 235, 0.12);
  --ds-link: #60a5fa;

  --ds-accent: #34d399;
  --ds-accent-hover: #28b880;
  --ds-accent-subtle: rgba(52, 211, 153, 0.12);

  --ds-highlight: #60a5fa;
  --ds-highlight-subtle: rgba(96, 165, 250, 0.14);

  --ds-success: #34d399;
  --ds-success-surface: rgba(52, 211, 153, 0.12);
  --ds-success-foreground: #86efac;
  --ds-warning: #f4a261;
  --ds-warning-surface: rgba(244, 162, 97, 0.14);
  --ds-warning-foreground: #fcd9a5;
  --ds-error: #f87171;
  --ds-error-surface: rgba(248, 113, 113, 0.14);
  --ds-error-foreground: #fecaca;
  --ds-info: #60a5fa;
  --ds-info-surface: rgba(96, 165, 250, 0.14);
  --ds-info-foreground: #bfdbfe;

  --ds-overlay: rgba(8, 9, 12, 0.72);
  --ds-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --ds-shadow-md: 0 12px 32px rgba(0, 0, 0, 0.4);
  --ds-shadow-lg: 0 32px 80px rgba(0, 0, 0, 0.6);
}
