/* Specwright Brand Design Tokens — aligned with GV OS brand guide */

:root {
  /* Primary palette */
  --color-primary: #0077cc;
  --color-primary-light: #339fdd;
  --color-primary-dark: #005fa3;
  --color-accent: #10b981;
  --color-accent-light: #34d399;
  --color-accent-dim: #059669;

  /* Theme-aware tokens (light defaults) */
  --theme-text: #1a202c;
  --theme-text-secondary: #4a5568;
  --theme-text-muted: #718096;
  --theme-bg: #ffffff;
  --theme-bg-alt: #f7fafc;
  --theme-bg-elevated: #f1f5f9;
  --theme-bg-nav: rgba(255, 255, 255, 0.85);
  --theme-border: #e2e8f0;
  --theme-divider: #f1f5f9;

  /* Gradient */
  --color-gradient-start: #10b981;
  --color-gradient-end: #06b6d4;

  /* Status (semantic) */
  --color-success: #16a34a;
  --color-warning: #d97706;
  --color-error: #dc2626;
  --color-info: #2563eb;

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;

  /* Text sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

html.dark {
  --theme-text: #e2e8f0;
  --theme-text-secondary: #a0aec0;
  --theme-text-muted: #718096;
  --theme-bg: #0a0f1a;
  --theme-bg-alt: #111827;
  --theme-bg-elevated: #1e293b;
  --theme-bg-nav: rgba(10, 15, 26, 0.85);
  --theme-border: #1e293b;
  --theme-divider: rgba(30, 41, 59, 0.5);
}

/* --- Utility classes --- */

.gradient-text {
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-6);
  background-color: var(--color-primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.15s ease;
  text-decoration: none;
}
.brand-btn-primary:hover {
  background-color: var(--color-primary-dark);
}

.brand-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-6);
  background-color: transparent;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  text-decoration: none;
}
.brand-btn-secondary:hover {
  background-color: var(--color-primary);
  color: #fff;
}

.brand-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-6);
  background-color: transparent;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.15s ease;
  text-decoration: none;
}
.brand-btn-outline:hover {
  border-color: var(--color-text-muted);
}

.brand-card {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
