/* Global Variables — aligned with arewa.ai landing (terminal-max theme) */
:root {
  /* Surfaces (deep blue-black, layered) */
  --bg-app: #07070f;
  --bg-sidebar: #0d0d1a;
  --bg-card: #111120;          /* landing --surface */
  --bg-card-hover: #1a1a30;    /* landing --surface-hi */
  --bg-2: #0d0d1a;
  --bg-3: #141426;
  --surface: #111120;
  --surface-hi: #1a1a30;
  --code-bg: #080810;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.13);
  --border-hi: rgba(255, 255, 255, 0.13);
  --border-accent: rgba(139, 0, 204, 0.30);

  /* Brand (Arewa purple) */
  --primary: #8b00cc;          /* solid fills (landing --brand) */
  --primary-hover: #a830e8;    /* landing --brand-hi */
  --primary-glow: rgba(139, 0, 204, 0.4);
  --brand-bright: #a830e8;     /* legible accent for text/icons/eyebrows on dark */
  --brand-dim: rgba(139, 0, 204, 0.13);
  --brand-glow: rgba(139, 0, 204, 0.28);

  /* Text (fg scale) */
  --text-primary: #f1f0f8;     /* fg-1 */
  --text-secondary: #c5c5d6;   /* fg-2 */
  --text-muted: #7a7a96;       /* fg-3 */
  --text-faint: #4a4a65;       /* fg-4 */

  /* Status */
  --success: #34d399;
  --warning: #f59e0b;
  --error: #ef4444;
  --danger: #ef4444;
  --info: #60a5fa;

  /* Syntax (code surfaces) */
  --syntax-key: #a78bfa;
  --syntax-str: #34d399;
  --syntax-val: #f472b6;
  --syntax-fn: #60a5fa;
  --syntax-cmt: #4a4a65;

  /* Fonts — DM Sans body, DM Mono headings/terminal (DM Mono caps at weight 500) */
  --font-sans: 'DM Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-heading: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Spacing */
  --header-height: 64px;
  --sidebar-width: 260px;
}

/* Base Reset & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500; /* DM Mono caps at 500 */
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

pre, code, kbd, samp {
  font-family: var(--font-mono);
}

body {
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Signature texture — faint grid + radial brand glow, masked to stay subtle */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 70% 0%, black 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 70% 0%, black 10%, transparent 75%);
}
body::after {
  content: '';
  position: fixed; top: -10%; right: -5%; z-index: 0; pointer-events: none;
  width: 720px; height: 520px;
  background: radial-gradient(ellipse at center, var(--brand-glow) 0%, transparent 65%);
  opacity: 0.5;
}

/* Keep all app content above the fixed texture layers */
#__nuxt { position: relative; z-index: 1; }

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.mono {
  font-family: var(--font-mono);
}

/* Glassmorphism Classes */
.glass {
  background: rgba(13, 13, 26, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
}

.glass-panel {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}

/* Card with the landing's gradient-top accent on hover */
.glass-panel--accent {
  position: relative;
  overflow: hidden;
  transition: background 0.25s, transform 0.2s, border-color 0.25s;
}
.glass-panel--accent::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.glass-panel--accent:hover {
  background: var(--bg-3);
  border-color: var(--border-hi);
}
.glass-panel--accent:hover::before { opacity: 1; }

/* Eyebrow — mono uppercase label (landing .section-eyebrow) */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-bright);
}

/* Spec chip — small mono pill (landing .spec-chip) */
.spec-chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.22rem 0.55rem;
  border-radius: 5px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.spec-chip.brand {
  color: var(--brand-bright);
  border-color: var(--border-accent);
  background: var(--brand-dim);
}

/* Premium Inputs */
input, select, textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  outline: none;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
  color-scheme: dark;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 2px var(--brand-dim);
}

/* Fix for browser autofill background colors */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
input:autofill,
input:autofill:hover,
input:autofill:focus,
input:autofill:active,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus,
select:autofill,
select:autofill:hover,
select:autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
textarea:autofill,
textarea:autofill:hover,
textarea:autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--bg-card) inset !important;
  box-shadow: 0 0 0 1000px var(--bg-card) inset !important;
  -webkit-text-fill-color: var(--text-primary) !important;
  caret-color: var(--text-primary) !important;
  background-color: transparent !important;
  background-image: none !important;
  color-scheme: dark;
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  gap: 0.5rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-primary);
  border-radius: 9px;
  letter-spacing: 0.01em;
  box-shadow: 0 0 32px rgba(139, 0, 204, 0.4);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  box-shadow: 0 0 48px rgba(139, 0, 204, 0.55);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-app);
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Global Page Headers */
.page-header {
  margin-bottom: 3rem;
}

.page-title {
  font-family: var(--font-heading);
  font-size: 1.875rem; /* 30px */
  font-weight: 500; /* DM Mono caps at 500 */
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.page-subtitle {
  color: var(--text-muted);
  font-weight: 300;
  font-size: 1rem;
  margin-bottom: 3rem;
  line-height: 1.6;
}
