/* ============================================
   RYPLEX SOFTWARES — Design System
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
  /* Colors – Core Ryplex Enterprise Dark Theme */
  --bg-primary: #050814;
  --bg-secondary: #0A0F24;
  --bg-card: #0F172A;
  --bg-card-hover: #16203B;
  --bg-surface: #111B38;

  /* Colors – Accent (Exact Ryplex Brand Palette) */
  --accent-cyan: #0D99F0;      /* Primary Ryplex Electric Blue */
  --accent-blue: #0284C7;      /* Tech Cerulean */
  --accent-purple: #4F46E5;    /* Deep Tech Indigo */
  --accent-pink: #EC4899;      /* Accent Rose */
  --accent-green: #10B981;     /* Success / Live Emerald */
  --accent-orange: #F59E0B;    /* Warm Amber */

  /* Text */
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.78);
  --text-muted: rgba(255, 255, 255, 0.48);
  --text-accent: var(--accent-cyan);

  /* Glass Effects */
  --glass-bg: rgba(15, 23, 42, 0.65);
  --glass-bg-hover: rgba(22, 32, 59, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(13, 153, 240, 0.35);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0D99F0 0%, #2563EB 50%, #4F46E5 100%);
  --gradient-secondary: linear-gradient(135deg, #4F46E5 0%, #EC4899 100%);
  --gradient-accent: linear-gradient(135deg, #0D99F0 0%, #10B981 100%);
  --gradient-hero: radial-gradient(ellipse at 25% 45%, rgba(13, 153, 240, 0.14) 0%, transparent 55%),
                    radial-gradient(ellipse at 80% 25%, rgba(79, 70, 229, 0.12) 0%, transparent 50%),
                    radial-gradient(ellipse at 50% 90%, rgba(2, 132, 199, 0.08) 0%, transparent 45%),
                    linear-gradient(180deg, #050814 0%, #0A0F24 100%);
  --gradient-text: linear-gradient(135deg, #FFFFFF 0%, #0D99F0 60%, #93C5FD 100%);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);

  /* Glow / Shadows */
  --glow-cyan: 0 0 32px rgba(13, 153, 240, 0.35), 0 0 64px rgba(13, 153, 240, 0.15);
  --glow-purple: 0 0 32px rgba(79, 70, 229, 0.3), 0 0 64px rgba(79, 70, 229, 0.12);
  --glow-pink: 0 0 30px rgba(236, 72, 153, 0.25);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-card-hover: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 24px rgba(13, 153, 240, 0.12);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --fs-display: clamp(2.8rem, 5.5vw, 4.5rem);
  --fs-h1: clamp(2.2rem, 4vw, 3.5rem);
  --fs-h2: clamp(1.8rem, 3vw, 2.75rem);
  --fs-h3: clamp(1.3rem, 2vw, 1.75rem);
  --fs-h4: clamp(1.1rem, 1.5vw, 1.35rem);
  --fs-body: 1rem;
  --fs-body-lg: 1.125rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.75rem;

  /* Spacing */
  --section-py: clamp(80px, 10vw, 140px);
  --container-max: 1200px;
  --container-px: clamp(16px, 4vw, 32px);
  --gap-xs: 8px;
  --gap-sm: 12px;
  --gap-md: 20px;
  --gap-lg: 32px;
  --gap-xl: 48px;
  --gap-2xl: 64px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --transition-fast: 0.2s var(--ease-out);
  --transition-normal: 0.35s var(--ease-out);
  --transition-slow: 0.6s var(--ease-out);

  /* Z-indexes */
  --z-behind: -1;
  --z-base: 1;
  --z-overlay: 10;
  --z-sticky: 100;
  --z-nav: 1000;
  --z-modal: 2000;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

ul, ol {
  list-style: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

::selection {
  background: rgba(0, 212, 255, 0.3);
  color: #fff;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

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

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.section {
  position: relative;
  padding: var(--section-py) 0;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: var(--gap-2xl);
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-title .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: var(--fs-body-lg);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ---- Utility Classes ---- */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-secondary {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

.grid { display: grid; }

.gap-xs  { gap: var(--gap-xs); }
.gap-sm  { gap: var(--gap-sm); }
.gap-md  { gap: var(--gap-md); }
.gap-lg  { gap: var(--gap-lg); }
.gap-xl  { gap: var(--gap-xl); }

.relative { position: relative; }

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

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