/* ===========================================
   DESIGN SYSTEM TOKENS & BASE STYLES
   =========================================== */

:root {
  /* Colors - Based on KuboDev Design System */
  --primary: #005cab;
  --primary-container: #0075d7;
  --primary-fixed-dim: #a6c8ff;
  --on-primary: #ffffff;
  
  --surface: #fcf9f8;
  --surface-container-low: #f6f3f2;
  --surface-container-lowest: #ffffff;
  --surface-container: #f0eded;
  --surface-container-high: #eae7e7;
  --surface-container-highest: #e5e2e1;
  
  --on-surface: #1c1b1b;
  --on-surface-variant: #404754;
  --secondary: #5f5e5e;
  
  --outline-variant: #c0c7d6;
  --outline: #707785;
  
  /* Typography */
  --font-main: 'Inter', sans-serif;
  --font-display: 'Inter', sans-serif;
  
  /* Radius */
  --radius-sm: 0.25rem;
  --radius-lg: 0.5rem;
  --radius-xl: 1.5rem;
  --radius-btn: 1.5rem;
  --radius-full: 9999px;
  
  /* Spacing */
  --spacing-section: 6rem;
  --container-max-width: 80rem; /* 1280px */
}

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

body {
  font-family: var(--font-main);
  background-color: var(--surface);
  color: var(--on-surface);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Typography Foundations */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

/* Common Patterns */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.blueprint-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--outline-variant) 0.5px, transparent 0.5px);
  background-size: 24px 24px;
  opacity: 0.15;
  pointer-events: none;
}

/* Sectioning */
section {
  padding: var(--spacing-section) 0;
  position: relative;
}

.section-bg-low {
  background-color: var(--surface-container-low);
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fadeUp 0.6s ease forwards;
}

/* Sticky CTA Mobile */
.sticky-cta {
  display: flex;
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 1000;
  padding: 1rem 2rem;
  background-color: var(--primary);
  color: white;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 0 0 rgba(0, 92, 171, 0.4);
  animation: stickyPulse 2s infinite;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
}

.sticky-cta.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

@keyframes stickyPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 92, 171, 0.7), 0 10px 20px rgba(0,0,0,0.1);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(0, 92, 171, 0), 0 10px 20px rgba(0,0,0,0.1);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 92, 171, 0), 0 10px 20px rgba(0,0,0,0.1);
  }
}

@media (min-width: 1024px) {
  .sticky-cta {
    display: none !important;
  }
}

/* Material Symbols Adjustments */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}
/* Slider Arrows Global */
.slider-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  background: white;
  border: 1px solid rgba(192, 199, 214, 0.3);
  color: var(--on-surface);
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.slider-arrow:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.slider-arrow.prev { left: -1.5rem; }
.slider-arrow.next { right: -1.5rem; }

@media (min-width: 1024px) {
  .slider-arrow {
    display: none !important;
  }
}
