/* ==========================================================================
   LUCIEN — DESIGN SYSTEM & CORE FOUNDATION (LIGHT OFF-COLOR ENTERPRISE THEME)
   LUCIEN CURELABS PRIVATE LIMITED
   ========================================================================== */

:root {
  /* Surface & Off-Color Backgrounds */
  --bg-primary: #F8F9FC;
  --bg-secondary: #EDF2F7;
  --bg-panel: #FFFFFF;
  --bg-panel-light: #F1F5F9;
  --bg-panel-overlay: rgba(255, 255, 255, 0.92);
  
  /* Borders & Grids */
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-medium: rgba(15, 23, 42, 0.14);
  --border-strong: rgba(15, 23, 42, 0.25);
  --border-glow: rgba(79, 70, 229, 0.28);

  /* Typography */
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-inverse: #FFFFFF;

  /* Accent Palette */
  --accent-primary: #4F46E5;
  --accent-primary-hover: #4338CA;
  --accent-secondary: #0284C7;
  --accent-secondary-hover: #0369A1;
  --accent-violet: #7C3AED;
  --accent-glow: rgba(79, 70, 229, 0.12);
  --accent-gradient: linear-gradient(135deg, #4F46E5 0%, #0284C7 50%, #7C3AED 100%);
  --accent-gradient-subtle: linear-gradient(135deg, rgba(79, 70, 229, 0.07) 0%, rgba(2, 132, 199, 0.05) 100%);

  /* State Colors */
  --success: #059669;
  --success-bg: rgba(5, 150, 105, 0.08);
  --warning: #D97706;
  --warning-bg: rgba(217, 119, 6, 0.08);
  --danger: #DC2626;
  --danger-bg: rgba(220, 38, 38, 0.08);
  --info: #0284C7;
  --info-bg: rgba(2, 132, 199, 0.08);

  /* Typography Stacks */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Layout */
  --container-max: 1280px;
  --container-wide: 1440px;
  --nav-height: 72px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Elevation / Shadows (Refined Crisp Enterprise Shadows) */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 16px 36px -4px rgba(15, 23, 42, 0.1), 0 6px 16px -2px rgba(15, 23, 42, 0.05);
  --shadow-glow: 0 0 25px rgba(79, 70, 229, 0.15);
  --shadow-glow-cyan: 0 0 25px rgba(2, 132, 199, 0.15);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 250ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Subtle background grid pattern for light theme */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
}

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

h1 { font-size: clamp(2.5rem, 5vw + 1rem, 4.25rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.85rem, 3.5vw + 0.5rem, 2.75rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.35rem, 2vw + 0.4rem, 1.75rem); letter-spacing: -0.02em; }
h4 { font-size: 1.25rem; }

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-wide {
  max-width: var(--container-wide);
}

.section {
  padding-top: clamp(4.5rem, 8vw, 8rem);
  padding-bottom: clamp(4.5rem, 8vw, 8rem);
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-header.left-aligned {
  text-align: left;
  margin-left: 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.22);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.section-tag.violet {
  color: var(--accent-violet);
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.22);
}

.section-title {
  margin-bottom: 1.25rem;
}

.section-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.mono-text {
  font-family: var(--font-mono);
}

/* Grid System */
.grid {
  display: grid;
  gap: 1.5rem;
}

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

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}