/* =====================================================================
 * BOTRIX HIGH-TECH DESIGN SYSTEM — LOGO THEME
 * Inspired by Linear, Vercel, and Apple Pro Dark Architecture
 * Primary: Electric Cyan (#00D2FF) to Royal Cobalt (#0066FF)
 * Canvas: Deep Atmospheric Midnight Navy & Obsidian (No flat solid black)
 * ===================================================================== */

:root {
  /* Brand Gradient & Accents (Exact match to Botrix Logo) */
  --primary: #00D2FF;
  --primary-light: #38BDF8;
  --primary-dark: #0066FF;
  --primary-gradient: linear-gradient(135deg, #00D2FF 0%, #0066FF 100%);
  --primary-gradient-subtle: linear-gradient(135deg, rgba(0, 210, 255, 0.12) 0%, rgba(0, 102, 255, 0.12) 100%);
  --primary-glow: 0 0 25px rgba(0, 210, 255, 0.35);

  /* Background Canvas — Atmospheric Deep Midnight (Multi-stop Mesh) */
  --bg-base: #040714;
  --background: #050917;
  --background-canvas: 
    radial-gradient(1300px 700px at 50% -5%, rgba(0, 102, 255, 0.16), transparent 70%),
    radial-gradient(900px 500px at 85% 25%, rgba(0, 210, 255, 0.08), transparent 60%),
    radial-gradient(1000px 600px at 15% 75%, rgba(0, 102, 255, 0.07), transparent 60%),
    linear-gradient(180deg, #050917 0%, #030611 100%);

  /* Layered Surfaces (Shades and Tints of Midnight Blue & Ink) */
  --surface: #090E1F;             /* Base Card / Container Surface */
  --surface-alt: #0D152C;         /* Secondary Surface / Table Headers */
  --surface-elevated: #111C38;    /* Floating / Modals / Elevated Cards */
  --surface-hover: #162446;       /* Interactive Hover State */
  
  /* Glassmorphic Tints */
  --glass-surface: rgba(9, 14, 31, 0.75);
  --glass-surface-elevated: rgba(13, 21, 44, 0.85);
  --glass-border: rgba(56, 189, 248, 0.14);
  --glass-border-hover: rgba(0, 210, 255, 0.45);
  --glass-blur: blur(16px) saturate(180%);

  /* Contrast Typography Hierarchy (Clean, High-Readability, Argent Tints) */
  --text-primary: #FFFFFF;        /* Luminous White for Headings */
  --text-secondary: #CBD5E1;      /* Soft Slate Argent for Easy Reading */
  --text-muted: #94A3B8;          /* Cool Blue-Gray for Metadata */
  --text-brand: #38BDF8;          /* Electric Cyan Accent Text */
  
  /* Precision Borders with Subtle Blue Luminescence */
  --border: rgba(56, 189, 248, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(0, 210, 255, 0.35);
  --border-hover: rgba(0, 210, 255, 0.6);

  /* Status Tokens (Consistent, Disciplined, Minimal Visual Noise) */
  --c-success: #00E676;
  --c-warning: #F5A623;
  --c-info: #00D2FF;
  --c-error: #FF5252;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  /* Spacing */
  --spacing-xs: 0.25rem;  /* 4px */
  --spacing-sm: 0.5rem;   /* 8px */
  --spacing-md: 1rem;     /* 16px */
  --spacing-lg: 1.5rem;   /* 24px */
  --spacing-xl: 2.5rem;   /* 40px */
  --spacing-2xl: 4rem;    /* 64px */
  
  /* Typographic Scale System (Standard 8-step hierarchy) */
  --text-2xs: 0.75rem;    /* 12px - Badges, micro-labels, status tags */
  --text-xs: 0.8125rem;   /* 13px - Eyebrows, small metadata */
  --text-sm: 0.875rem;    /* 14px - Body small, secondary, buttons */
  --text-base: 1rem;      /* 16px - Standard body text */
  --text-lg: 1.125rem;    /* 18px - Lead paragraphs / card intros */
  --text-xl: 1.25rem;     /* 20px - Card titles */
  --text-2xl: 1.75rem;    /* 28px - Feature titles */
  --text-3xl: 2.25rem;    /* 36px - Section titles */
  --text-display: clamp(2.25rem, 5vw, 3.5rem); /* Hero display */
  
  /* Radius — Standardized 4-tier System */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
  
  /* Shadows with Midnight Blue Ambient Dispersion */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.6), 0 2px 8px -2px rgba(0, 102, 255, 0.15);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 24px rgba(0, 210, 255, 0.18);
  --shadow-glow: 0 0 30px rgba(0, 210, 255, 0.25);
}

/* =====================================================================
 * GLOBAL CANVAS & TYPOGRAPHY
 * ===================================================================== */
html {
  background: #050917 !important;
  background-image: 
    radial-gradient(1300px 700px at 50% -5%, rgba(0, 102, 255, 0.16), transparent 70%),
    radial-gradient(900px 500px at 85% 25%, rgba(0, 210, 255, 0.08), transparent 60%),
    radial-gradient(1000px 600px at 15% 75%, rgba(0, 102, 255, 0.07), transparent 60%),
    linear-gradient(180deg, #050917 0%, #030611 100%) !important;
  background-attachment: fixed !important;
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: transparent !important;
  min-height: 100vh;
  margin: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings with Modern Tracking & High Contrast */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: #FFFFFF;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-top: 0;
}

p {
  color: var(--text-secondary);
  line-height: 1.65;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #FFFFFF;
}

/* Text Gradient Brand Utility */
.text-gradient, .text-brand-gradient {
  background: linear-gradient(135deg, #38BDF8 0%, #00D2FF 45%, #0066FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* =====================================================================
 * STANDARDIZED BUTTON SYSTEM (Consistent, High Contrast, Tactile)
 * ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}

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

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

.btn-primary {
  background: linear-gradient(135deg, #00D2FF 0%, #0066FF 100%) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 4px 18px rgba(0, 150, 255, 0.35), 0 0 0 1px rgba(0, 210, 255, 0.2) inset !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #38BDF8 0%, #0080FF 100%) !important;
  box-shadow: 0 6px 24px rgba(0, 180, 255, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.3) inset !important;
  transform: translateY(-2px);
}

.btn-secondary, .btn-outline {
  background: rgba(14, 23, 46, 0.6) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  color: #F1F5F9 !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

.btn-secondary:hover:not(:disabled), .btn-outline:hover:not(:disabled) {
  background: rgba(0, 102, 255, 0.14) !important;
  border-color: #00D2FF !important;
  color: #38BDF8 !important;
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.25) !important;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35) !important;
}

.btn-whatsapp:hover:not(:disabled) {
  background: linear-gradient(135deg, #34D399 0%, #10B981 100%) !important;
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.5) !important;
  transform: translateY(-2px);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* =====================================================================
 * CARDS & SURFACES (Deep Tech Atmosphere, Glass Borders, No Flat Pitch Black)
 * ===================================================================== */
.card, .product-card, .stat-card, .session-card, .project-preview-card, .order-card {
  background: linear-gradient(180deg, rgba(13, 21, 44, 0.75) 0%, rgba(8, 14, 30, 0.85) 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.14) !important;
  border-radius: var(--radius-md) !important;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.03) inset !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px;
}

.card:hover, .product-card:hover, .stat-card:hover, .session-card:hover, .project-preview-card:hover {
  border-color: rgba(0, 210, 255, 0.4) !important;
  box-shadow: 0 16px 36px -10px rgba(0, 102, 255, 0.25), 0 0 20px rgba(0, 210, 255, 0.1) !important;
  transform: translateY(-3px);
}

/* Component Tag & Pill System */
.badge-pill, .category-tag, .component-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-pill.badge-success, .badge-pill.badge-green, .badge-pill.badge-blue {
  background: rgba(0, 210, 255, 0.12) !important;
  color: #38BDF8 !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
}

.badge-pill.badge-warning {
  background: rgba(245, 158, 11, 0.12) !important;
  color: #FBBF24 !important;
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

.component-tag {
  background: rgba(14, 23, 48, 0.7) !important;
  border: 1px solid rgba(56, 189, 248, 0.15) !important;
  color: #E2E8F0 !important;
  border-radius: 8px !important;
  padding: 8px 14px !important;
  transition: all 0.2s ease;
}

.component-tag:hover {
  border-color: #00D2FF !important;
  background: rgba(0, 102, 255, 0.15) !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.2);
}

/* =====================================================================
 * FORMS & INPUT CONTROLS
 * ===================================================================== */
input[type="text"], input[type="password"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  background: rgba(6, 11, 26, 0.75) !important;
  border: 1px solid rgba(56, 189, 248, 0.2) !important;
  border-radius: 8px !important;
  color: #FFFFFF !important;
  font-family: var(--font-sans);
  padding: 12px 16px;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none !important;
  border-color: #00D2FF !important;
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.15), 0 0 16px rgba(0, 102, 255, 0.2) !important;
}

/* Accessibility Focus Ring */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
