/* ============================================
   SYSIX - Design System & Global Styles
   ============================================ */

/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
  /* Colors - Corporate Light Identity (Thermon-like) */
  --color-bg-primary: #ffffff;
  /* White - Clean Professional */
  --color-bg-secondary: #f1f5f9;
  /* Slate 100 - Visible Light Gray (was Slate 50) */
  --color-bg-tertiary: #e2e8f0;
  /* Slate 200 - Borders/Deep BG */
  --color-bg-glass: rgba(255, 255, 255, 0.95);
  /* Frosted Glass White */

  --color-text-primary: #1e293b;
  /* Slate 800 - High Contrast Dark (Not pure black) */
  --color-text-secondary: #475569;
  /* Slate 600 - Perfect for body text */
  --color-text-muted: #94a3b8;
  /* Slate 400 - Subtitles/Meta */

  /* Brand Colors - Retaining Identity with Professional Tone */
  --color-accent-primary: #0284c7;
  /* Sky 600 - Trusted Corporate Blue (Darker than neon) */
  --color-accent-secondary: #0ea5e9;
  /* Sky 500 - Vivid Interaction Blue */
  --color-accent-tertiary: #0c4a6e;
  /* Sky 900 - Deep Brand Navy */

  /* Gradients - Professional & Subtle */
  --color-gradient-1: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
  --color-gradient-2: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  --color-gradient-3: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
  --color-gradient-hero: linear-gradient(to bottom, #ffffff 0%, #f1f5f9 100%);

  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;

  /* Typography - Clean Sans */
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Inter', 'Outfit', sans-serif;
  /* Prioritizing Inter for corporate feel */

  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;
  --font-size-7xl: 4.5rem;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  --line-height-tight: 1.2;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Border Radius - Slightly Blockier for Corporate feel */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-full: 9999px;

  /* Shadows - Soft & Clean (Light Mode optimized) */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: none;
  /* Removed neon glow */
  --shadow-glow-hover: 0 10px 25px -5px rgba(2, 132, 199, 0.25);
  /* Subtle Blue shadow */

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;

  /* Layout */
  --container-max-width: 1280px;
  --container-padding: var(--space-6);
  --section-padding-y: var(--space-20);
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
  overscroll-behavior-x: none;
}






/* ============================================
   Typography
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

h1 {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-extrabold);
}

h2 {
  font-size: var(--font-size-4xl);
}

h3 {
  font-size: var(--font-size-3xl);
}

h4 {
  font-size: var(--font-size-2xl);
}

h5 {
  font-size: var(--font-size-xl);
}

h6 {
  font-size: var(--font-size-lg);
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
}

a {
  color: var(--color-accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-secondary);
}

/* ============================================
   Layout Utilities
   ============================================ */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

/* Grid System */
.section {
  padding: var(--section-padding-y) 0;
  position: relative;
}

.section-alt {
  background-color: var(--color-bg-secondary);
  border-top: 1px solid var(--color-bg-tertiary);
  border-bottom: 1px solid var(--color-bg-tertiary);
}

.section-brand-light {
  background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
  /* Sky 50 to Sky 100 */
  border-top: 1px solid #bae6fd;
  border-bottom: 1px solid #bae6fd;
}

.section-cta {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  /* Dark Slate for contrast at end */
  color: #ffffff;
}

.section-cta h2,
.section-cta p {
  color: #ffffff;
}

.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}

.grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1024px) {
  .grid-5 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  }
}

/* Flexbox Utilities */
.flex {
  display: flex;
  flex-wrap: wrap;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: var(--space-2);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

.gap-8 {
  gap: var(--space-8);
}

/* ============================================
   Glassmorphism Effect
   ============================================ */
.glass {
  background: var(--color-bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: var(--shadow-glow);
  }

  50% {
    box-shadow: var(--shadow-glow-hover);
  }
}

/* Animation Utility Classes */
.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.4s ease-out forwards;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Stagger delays for sequential animations */
.delay-100 {
  animation-delay: 100ms;
}

.delay-200 {
  animation-delay: 200ms;
}

.delay-300 {
  animation-delay: 300ms;
}

.delay-400 {
  animation-delay: 400ms;
}

.delay-500 {
  animation-delay: 500ms;
}

/* ============================================
   Responsive Typography
   ============================================ */
@media (max-width: 768px) {
  :root {
    --font-size-5xl: 2.5rem;
    --font-size-4xl: 2rem;
    --font-size-3xl: 1.5rem;
    --section-padding-y: var(--space-12);
  }

  h1 {
    font-size: var(--font-size-4xl);
  }

  h2 {
    font-size: var(--font-size-3xl);
  }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-gradient {
  background: var(--color-gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.mb-2 {
  margin-bottom: var(--space-2);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-6 {
  margin-bottom: var(--space-6);
}

.mb-8 {
  margin-bottom: var(--space-8);
}

.mb-12 {
  margin-bottom: var(--space-12);
}

.mt-2 {
  margin-top: var(--space-2);
}

.mt-4 {
  margin-top: var(--space-4);
}

.mt-6 {
  margin-top: var(--space-6);
}

.mt-8 {
  margin-top: var(--space-8);
}

.mt-12 {
  margin-top: var(--space-12);
}

/* ============================================
   Accessibility
   ============================================ */
.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;
}

/* Focus styles */
*:focus-visible {
  outline: 2px solid var(--color-accent-primary);
  outline-offset: 2px;
}

/* ============================================
   Decorative White Elements
   ============================================ */
.decorative-circle {
  position: absolute;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.15);
  /* Increased contrast */
  pointer-events: none;
  z-index: 0;
}

.decorative-circle-sm {
  width: 100px;
  height: 100px;
}

.decorative-circle-md {
  width: 200px;
  height: 200px;
}

.decorative-circle-lg {
  width: 300px;
  height: 300px;
}

.decorative-line {
  position: absolute;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
  height: 1px;
  pointer-events: none;
  z-index: 0;
}

.accent-border-white {
  border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.accent-border-white-left {
  border-left: 3px solid rgba(255, 255, 255, 0.15);
}

/* White accent dots */
.decorative-dots {
  position: relative;
}

.decorative-dots::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  box-shadow:
    15px 0 0 rgba(255, 255, 255, 0.3),
    30px 0 0 rgba(255, 255, 255, 0.3);
}