/* ==========================================================================
   XALE POS — BRAND THEME (MILKY WHITE, BLACK, MUTED GREEN & RED)
   ========================================================================== */

:root {
  /* Color Palette - Milky Warm White & Bold Black */
  --bg-main: #FBF8F3;       /* Warm Cream / Milky White Background */
  --bg-card: #FFFFFF;       /* Pure Crisp White Cards */
  --bg-subtle: #F2EDE4;     /* Subtle Soft Milky Tint */
  --bg-dark-footer: #0F1218;/* Deep Premium Dark */

  --border-color: #E2DBD0;
  --border-hover: #111111;
  --border-focus: #99bca2;

  --text-heading: #111111;  /* Pure Bold Black */
  --text-body: #27272A;     /* Dark Charcoal Text */
  --text-muted: #6B7280;    /* Muted Slate Gray */

  --primary: #99bca2;       /* XalePro Theme Primary Green */
  --primary-hover: #85a98e;
  --primary-light: #EBF3ED;
  --primary-glow: rgba(153, 188, 162, 0.25);

  --secondary: #99bca2;     /* Theme Green Accent */
  --secondary-hover: #85a98e;
  --secondary-light: #EBF3ED;

  --accent-green: #2E7D32;   /* Positive / Supplier Debt Green */
  --accent-green-light: #F0FDF4;
  
  --accent-red: #E53E3E;     /* Alert / Customer Debt Red */
  --accent-red-light: #FFF5F5;

  --accent-amber: #D97706;
  --accent-amber-light: #FFFBEB;

  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;

  /* Layout & Radii */
  --container-max: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  /* Elevation Shadows */
  --shadow-sm: 0 2px 5px rgba(17, 17, 17, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(17, 17, 17, 0.07), 0 8px 10px -6px rgba(17, 17, 17, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(17, 17, 17, 0.1), 0 12px 15px -8px rgba(17, 17, 17, 0.05);
  --shadow-hover: 0 25px 45px -12px rgba(17, 17, 17, 0.22);

  /* Animations */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

xale-navbar, xale-hero, xale-trust-marquee, xale-stats, xale-use-cases, xale-features, xale-showcase, xale-download, xale-pricing, xale-footer {
  display: block;
  width: 100%;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-success { color: var(--accent-green); }
.text-danger { color: var(--accent-red); }

/* Ambient Background Blobs (Warm Milky & Muted Green Tint) */
.ambient-blob {
  position: absolute;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  filter: blur(150px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.blob-1 {
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, #EAE5D9 0%, rgba(234, 229, 217, 0) 70%);
}

.blob-2 {
  top: 800px;
  right: -250px;
  background: radial-gradient(circle, #DCFCE7 0%, rgba(220, 252, 231, 0) 70%);
}

/* Button System (Black, White & Muted Accents) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-family);
  font-weight: 700;
  border-radius: var(--radius-md);
  padding: 0.55rem 1.25rem;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid transparent;
}

.btn-primary {
  background: #111111;
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #27272A;
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.35);
}

.btn-secondary {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  color: var(--text-heading);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-accent-green {
  background: var(--accent-green);
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(21, 128, 61, 0.25);
}

.btn-accent-green:hover {
  background: #166534;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.65rem 1.4rem;
  font-size: 0.92rem;
  border-radius: var(--radius-md);
}

.btn-xl {
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  border-radius: var(--radius-lg);
}

/* Section Header Shared */
.section-header {
  margin-bottom: 4rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}
