/* Akuno design tokens — colors, spacing, typography, shadows.
   Dark theme is default (root). Light theme is opt-in via [data-theme="light"]. */

:root {
  color-scheme: dark;

  /* Demo-Banner (zentral in /shared/demo-banner.css) */
  --demo-banner-bg: #0d0d0d;
  --demo-banner-fg: #f4f4f1;
  --demo-banner-accent: #9ebb11;

  /* Brand */
  --brand-lime: #9ebb11;
  --brand-lime-hover: #b5d61e;
  --brand-lime-soft: rgba(158, 187, 17, 0.12);
  --brand-lime-glow: rgba(158, 187, 17, 0.35);

  /* Surfaces (dark) */
  --bg-base: #0a0a0a;
  --bg-elevated: #141414;
  --surface: #1a1a1a;
  --surface-hover: #1f1f1f;
  --border: #262626;
  --border-strong: #333333;

  /* Text (dark) */
  --text-primary: #f5f5f5;
  --text-secondary: #cccccc;
  --text-muted: #808080;
  --text-on-accent: #0a0a0a;

  /* Status */
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.12);
  --success: #10b981;
  --success-soft: rgba(16, 185, 129, 0.12);

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;
  --space-11: 80px;
  --space-12: 96px;

  /* Layout */
  --container-max: 1200px;
  --container-pad: clamp(16px, 4vw, 32px);
  --section-pad: clamp(64px, 10vw, 120px);

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  --fs-xs: 0.8125rem;   /* 13px */
  --fs-sm: 0.9375rem;   /* 15px */
  --fs-base: 1rem;      /* 16px */
  --fs-md: 1.125rem;    /* 18px */
  --fs-lg: 1.375rem;    /* 22px */
  --fs-xl: 1.75rem;     /* 28px */
  --fs-h3: clamp(1.375rem, 2.5vw, 1.75rem);
  --fs-h2: clamp(1.75rem, 4vw, 2.5rem);
  --fs-h1: clamp(2.25rem, 6vw, 3.75rem);

  /* Shadows / glows */
  --glow-sm: 0 0 0 1px var(--brand-lime), 0 0 14px var(--brand-lime-glow);
  --glow-md: 0 0 0 1px var(--brand-lime), 0 0 32px var(--brand-lime-glow);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.02), 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-popover: 0 12px 40px rgba(0, 0, 0, 0.6);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 140ms var(--ease-out);
  --t-mid: 280ms var(--ease-out);
  --t-slow: 520ms var(--ease-out);

  /* Z-Index */
  --z-nav: 50;
  --z-banner: 60;
  --z-modal: 70;
}

/* Light theme */
[data-theme="light"] {
  color-scheme: light;

  --bg-base: #ffffff;
  --bg-elevated: #f7f7f7;
  --surface: #fafafa;
  --surface-hover: #f0f0f0;
  --border: #e5e5e5;
  --border-strong: #cccccc;

  --text-primary: #0a0a0a;
  --text-secondary: #404040;
  --text-muted: #737373;
  --text-on-accent: #0a0a0a;

  --brand-lime-soft: rgba(158, 187, 17, 0.18);
  --brand-lime-glow: rgba(158, 187, 17, 0.25);

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-popover: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Respect users who explicitly want reduced motion */
@media (prefers-reduced-motion: reduce) {
  :root {
    --t-fast: 0ms;
    --t-mid: 0ms;
    --t-slow: 0ms;
  }
}
