/* ==========================================================================
   SoloPOS Enterprise Design System // Core Tokens & Base Styles
   Al Shaheen Group for Services // Technology Division
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette - Light Enterprise Authority */
  --bg-canvas: #ffffff;
  --bg-surface: #f8fafc;
  --bg-subtle: #f1f5f9;
  --bg-elevated: #ffffff;
  --bg-dark: #090a0c;
  
  /* Hairline Borders & Dividers */
  --border-hairline: #e2e8f0;
  --border-subtle: #edf2f7;
  --border-focus: #1665ff;
  --border-hover: #cbd5e1;

  /* Typography Colors */
  --text-primary: #090a0c;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;
  --text-inverse-muted: #94a3b8;

  /* Brand Colors (From SoloPOS Official Mark) */
  --brand-blue: #1665ff;
  --brand-blue-hover: #0d52db;
  --brand-blue-light: #eff6ff;
  --brand-blue-border: #bfdbfe;
  --brand-blue-glow: rgba(22, 101, 255, 0.12);

  /* Semantic Status */
  --status-emerald: #10b981;
  --status-emerald-bg: #ecfdf5;
  --status-emerald-border: #a7f3d0;
  --status-amber: #f59e0b;
  --status-amber-bg: #fffbeb;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(9, 10, 12, 0.04);
  --shadow-sm: 0 2px 4px rgba(9, 10, 12, 0.05), 0 1px 2px rgba(9, 10, 12, 0.03);
  --shadow-md: 0 4px 16px -2px rgba(9, 10, 12, 0.06), 0 2px 6px -1px rgba(9, 10, 12, 0.03);
  --shadow-lg: 0 16px 36px -4px rgba(9, 10, 12, 0.08), 0 6px 14px -2px rgba(9, 10, 12, 0.04);
  --shadow-xl: 0 24px 48px -6px rgba(9, 10, 12, 0.12), 0 12px 24px -4px rgba(9, 10, 12, 0.06);

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Layout */
  --max-width: 1280px;
  --header-height: 80px;
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
}

/* Precision Blueprint Grid Background Pattern */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(226, 232, 240, 0.5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.5) 1px, transparent 1px);
}

.bg-dot-pattern {
  background-image: radial-gradient(rgba(148, 163, 184, 0.3) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-narrow {
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.32;
  letter-spacing: -0.02em;
}

h4 {
  font-size: 1.25rem;
  line-height: 1.4;
}

p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* Monospaced Meta Labeling */
.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
}

.badge-brand {
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  border: 1px solid var(--brand-blue-border);
}

.badge-status-live {
  background: var(--status-emerald-bg);
  color: var(--status-emerald);
  border: 1px solid var(--status-emerald-border);
}

.badge-status-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--status-emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--text-primary);
  color: #ffffff;
  border-color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: #1e2229;
  border-color: #1e2229;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-blue {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
  box-shadow: 0 4px 14px rgba(22, 101, 255, 0.25);
}

.btn-blue:hover {
  background: var(--brand-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(22, 101, 255, 0.35);
}

.btn-outline {
  background: #ffffff;
  color: var(--text-primary);
  border-color: var(--border-hairline);
  box-shadow: var(--shadow-xs);
}

.btn-outline:hover {
  background: var(--bg-surface);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 34px;
  font-size: 1.0625rem;
  border-radius: var(--radius-lg);
}

/* Section Containers & Spacing */
.section {
  padding: 110px 0;
  position: relative;
}

.section-tight {
  padding: 70px 0;
}

.section-header {
  margin-bottom: 64px;
}

.section-header.text-center {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  margin-top: 18px;
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.76;
}

/* Responsive Utilities */
@media (max-width: 991px) {
  .section {
    padding: 70px 0;
  }
  :root {
    --header-height: 70px;
  }
}

@media (max-width: 767px) {
  .section {
    padding: 50px 0;
  }
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }
}
