/* ==========================================
   CSS Variables & Theme
   ========================================== */
:root {
  /* CaptainBI Cyan */
  --primary: oklch(0.65 0.15 200);
  --primary-foreground: oklch(1 0 0);
  --primary-light: oklch(0.65 0.15 200 / 0.1);
  
  /* Walmart Blue */
  --secondary: oklch(0.50 0.18 240);
  --secondary-foreground: oklch(1 0 0);
  --secondary-light: oklch(0.50 0.18 240 / 0.1);
  
  /* Walmart Yellow */
  --accent: oklch(0.80 0.15 85);
  --accent-foreground: oklch(0.20 0.015 65);
  
  /* Success/Green */
  --success: oklch(0.55 0.15 145);
  --success-light: oklch(0.55 0.15 145 / 0.1);
  
  /* Warning/Orange */
  --warning: oklch(0.70 0.15 50);
  
  /* Purple */
  --purple: oklch(0.55 0.15 290);
  --purple-light: oklch(0.55 0.15 290 / 0.1);
  
  /* Neutral Colors */
  --background: oklch(1 0 0);
  --foreground: oklch(0.235 0.015 65);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.235 0.015 65);
  --muted: oklch(0.967 0.001 286.375);
  --muted-foreground: oklch(0.552 0.016 285.938);
  --border: oklch(0.92 0.004 286.32);
  
  /* Layout */
  --radius: 0.65rem;
  --max-width: 1280px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

button {
  font-family: inherit;
  cursor: pointer;
}

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

/* ==========================================
   Layout Utilities
   ========================================== */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
    max-width: var(--max-width);
  }
}

/* ==========================================
   Flexbox & Grid Utilities
   ========================================== */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.justify-around {
  justify-content: space-around;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-12 {
  gap: 3rem;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.grid {
  display: grid;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .md-grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .lg-grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .lg-grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .lg-gap-16 {
    gap: 4rem;
  }
}

/* ==========================================
   Spacing Utilities
   ========================================== */
.min-h-screen {
  min-height: 100vh;
}

.h-4 {
  height: 1rem;
}

.h-6 {
  height: 1.5rem;
}

.h-8 {
  height: 2rem;
}

.h-16 {
  height: 4rem;
}

.h-32 {
  height: 8rem;
}

.w-4 {
  width: 1rem;
}

.w-5 {
  width: 1.25rem;
}

.w-6 {
  width: 1.5rem;
}

.w-8 {
  width: 2rem;
}

.w-auto {
  width: auto;
}

.w-full {
  width: 100%;
}

.w-fit {
  width: fit-content;
}

.max-w-xl {
  max-width: 36rem;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-12 {
  margin-top: 3rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 640px) {
  .sm-py-32 {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

.pt-4 {
  padding-top: 1rem;
}

.pt-8 {
  padding-top: 2rem;
}

.pb-4 {
  padding-bottom: 1rem;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

/* ==========================================
   Header
   ========================================== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.bg-header {
  background-color: rgba(255, 255, 255, 0.95);
}

/* ==========================================
   Typography
   ========================================== */
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

@media (min-width: 640px) {
  .sm-text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
  
  .sm-text-5xl {
    font-size: 3rem;
    line-height: 1;
  }
  
  .sm-inline {
    display: inline;
  }
  
  .sm-flex-row {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .lg-text-6xl {
    font-size: 3.75rem;
    line-height: 1;
  }
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.tracking-tight {
  letter-spacing: -0.025em;
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: var(--secondary);
}

.text-success {
  color: var(--success);
}

.text-warning {
  color: var(--warning);
}

.text-purple {
  color: var(--purple);
}

.text-muted-foreground {
  color: var(--muted-foreground);
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 500;
  transition: all 0.2s ease;
  border: none;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  background-color: var(--muted);
}

/* ==========================================
   Sections
   ========================================== */
.bg-background {
  background-color: var(--background);
}

.bg-gradient-hero {
  background: linear-gradient(135deg, 
    oklch(0.65 0.15 200 / 0.05) 0%, 
    var(--background) 50%, 
    oklch(0.50 0.18 240 / 0.05) 100%);
}

.bg-muted-section {
  background-color: oklch(0.98 0.001 286.375);
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.overflow-hidden {
  overflow: hidden;
}

.z-50 {
  z-index: 50;
}

/* ==========================================
   Badge
   ========================================== */
.inline-flex {
  display: inline-flex;
}

.rounded-full {
  border-radius: 9999px;
}

.border {
  border: 1px solid var(--border);
}

.border-b {
  border-bottom: 1px solid var(--border);
}

.border-t {
  border-top: 1px solid var(--border);
}

.bg-badge {
  background-color: rgba(255, 255, 255, 0.5);
}

/* ==========================================
   Cards
   ========================================== */
.bg-card {
  background-color: var(--card);
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-lg {
  border-radius: var(--radius);
}

.rounded-t {
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.bg-gradient-glow {
  background: linear-gradient(135deg, 
    oklch(0.65 0.15 200 / 0.2) 0%, 
    oklch(0.50 0.18 240 / 0.2) 100%);
}

.bg-chart-bg {
  background: linear-gradient(135deg, 
    oklch(0.65 0.15 200 / 0.1) 0%, 
    oklch(0.50 0.18 240 / 0.1) 100%);
}

.bg-primary {
  background-color: var(--primary);
}

.items-end {
  align-items: flex-end;
}

/* ==========================================
   Feature Cards
   ========================================== */
.card {
  position: relative;
  overflow: hidden;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.card-hover:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.card-header {
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.card-content {
  font-size: 0.875rem;
}

.icon-box {
  height: 3rem;
  width: 3rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-primary-light {
  background-color: var(--primary-light);
}

.bg-secondary-light {
  background-color: var(--secondary-light);
}

.bg-success-light {
  background-color: var(--success-light);
}

.bg-purple-light {
  background-color: var(--purple-light);
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.icon-check {
  height: 1rem;
  width: 1rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

/* ==========================================
   Stats Cards
   ========================================== */
.stat-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

/* ==========================================
   CTA Section
   ========================================== */
.cta-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, 
    oklch(0.65 0.15 200 / 0.1) 0%, 
    oklch(0.50 0.18 240 / 0.1) 50%,
    oklch(0.65 0.15 200 / 0.1) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cta-content {
  position: relative;
  padding: 3rem;
  text-align: center;
}

/* ==========================================
   Footer
   ========================================== */
footer {
  border-top: 1px solid var(--border);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--foreground);
}

/* ==========================================
   Responsive Utilities
   ========================================== */
.hidden {
  display: none;
}

@media (min-width: 640px) {
  .sm-block {
    display: block;
  }
}

/* ==========================================
   Blur Effect
   ========================================== */
.blur-3xl {
  filter: blur(64px);
}

.backdrop-blur {
  backdrop-filter: blur(10px);
}

/* ==========================================
   Smooth Scroll
   ========================================== */
html {
  scroll-behavior: smooth;
}
