/* 
   ========================================
   1. VARIABLES
   ========================================
*/
:root {
  /* Colors - Futuristic Dark Mode Palette */
  --color-bg: #050505;          /* Deep Matte Black */
  --color-surface: #111111;     /* Slightly lighter for cards */
  --color-surface-hover: #1a1a1a;
  
  --color-text-main: #e0e0e0;   /* Silver Grey */
  --color-text-muted: #a0a0a0;
  --color-text-heading: #ffffff;
  
  --color-primary: #00f3ff;     /* Neon Cyan / Electric Blue */
  --color-primary-hover: #00c2cc;
  --color-secondary: #4e5d6c;   /* Technical Grey */
  
  --color-success: #00ff9d;
  --color-warning: #ffb800;
  --color-danger: #ff0055;
  
  --color-border: #333333;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Fira Code', 'Courier New', monospace;
  
  --size-text-xs: 0.75rem;
  --size-text-sm: 0.875rem;
  --size-text-base: 1rem;
  --size-text-lg: 1.125rem;
  --size-text-xl: 1.25rem;
  --size-text-2xl: 1.5rem;
  --size-text-3xl: 2rem;
  --size-text-4xl: 3rem;

  --line-height-tight: 1.2;
  --line-height-base: 1.6;
  
  /* Spacing Scale */
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  
  /* UI Elements */
  --radius-sm: 2px;    /* Sharp, technical feel */
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 10px rgba(0, 243, 255, 0.3); /* Neon Glow */
  
  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;
}

/* 
   ========================================
   2. RESET / NORMALIZE
   ========================================
*/
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

/* 
   ========================================
   3. BASE STYLES
   ========================================
*/
body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-heading);
  font-weight: 700;
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--size-text-4xl);
}

h2 {
  font-size: var(--size-text-3xl);
}

h3 {
  font-size: var(--size-text-2xl);
}

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

a:hover {
  color: var(--color-primary-hover);
  text-shadow: 0 0 8px rgba(0, 243, 255, 0.6);
}

p {
  margin-bottom: var(--space-4);
  }

/* 
   ========================================
   4. UTILITIES
   ========================================
*/
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.d-flex {
  display: flex;
}

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

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

.grid {
  display: grid;
  gap: var(--space-4);
}

  .grid-2,.grid-2-cols {
    grid-template-columns: 1fr 1fr;
    display: grid;
  gap: var(--space-4);
  }

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* 
   ========================================
   5. COMPONENTS
   ========================================
*/

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: var(--size-text-sm);
}

.btn-primary {
  background-color: var(--color-primary);
  color: #000000!important;
  box-shadow: 0 0 5px rgba(0, 243, 255, 0.2);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  background-color: rgba(0, 243, 255, 0.1);
  box-shadow: var(--shadow-glow);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Inputs */
.input {
  width: 100%;
  padding: var(--space-3);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-heading);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(0, 243, 255, 0.2);
}

/* Cards */
.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--color-secondary);
}

/* Product Image Container */
.card-image {
  background-color: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: var(--space-4);
  position: relative;
}

/* 
   ========================================
   6. ACCESSIBILITY
   ========================================
*/
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.section-spacing {
  margin-top: var(--space-16);
  margin-bottom: var(--space-16);
}
