/* ==========================================================================
   RISORA DIGITAL — MASTER DESIGN SYSTEM & CORE STYLES (ENHANCED V2)
   "Where Vision Becomes Value"
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* --- 1. CSS CUSTOM PROPERTIES / TOKENS --- */
:root {
  /* Brand Colors from Risora Digital Logo */
  --color-primary: #7928CA;
  --color-primary-light: #9333EA;
  --color-secondary: #D946EF;
  --color-secondary-light: #F472B6;
  --color-accent-pink: #EC4899;
  --color-accent-blue: #3B82F6;
  --color-accent-indigo: #6366F1;
  --color-accent-cyan: #06B6D4;
  --color-accent-emerald: #10B981;
  --color-whatsapp: #25D366;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #7928CA 0%, #D946EF 50%, #EC4899 100%);
  --grad-brand-alt: linear-gradient(135deg, #3B82F6 0%, #7928CA 50%, #D946EF 100%);
  --grad-glow: radial-gradient(circle, rgba(217, 70, 239, 0.22) 0%, rgba(121, 40, 202, 0.06) 50%, transparent 70%);
  --grad-card-border: linear-gradient(135deg, rgba(217, 70, 239, 0.35), rgba(121, 40, 202, 0.15), rgba(255, 255, 255, 0.04));
  --grad-dark-mesh: radial-gradient(at 10% 20%, rgba(121, 40, 202, 0.16) 0px, transparent 50%),
                    radial-gradient(at 90% 80%, rgba(217, 70, 239, 0.14) 0px, transparent 50%),
                    radial-gradient(at 50% 50%, rgba(59, 130, 246, 0.08) 0px, transparent 50%);

  /* Dark Theme Surfaces */
  --bg-main: #060814;
  --bg-surface: #0B0E23;
  --bg-surface-elevated: #111638;
  --bg-surface-card: rgba(17, 22, 56, 0.75);
  --bg-surface-card-hover: rgba(23, 29, 74, 0.88);
  --bg-glass: rgba(6, 8, 20, 0.85);
  --bg-glass-card: rgba(255, 255, 255, 0.03);

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-accent: rgba(217, 70, 239, 0.4);
  --border-glass: rgba(255, 255, 255, 0.07);

  /* Typography Colors */
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-inverse: #060814;
  --text-accent: #E879F9;

  /* Typography Fonts */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 5.5rem;

  /* Border Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Shadows & Glows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-brand-glow: 0 0 35px rgba(217, 70, 239, 0.35);
  --shadow-primary-glow: 0 0 25px rgba(121, 40, 202, 0.4);
  --shadow-blue-glow: 0 0 30px rgba(59, 130, 246, 0.35);

  /* Layout Containers */
  --container-max: 1280px;
  --container-narrow: 960px;
  --container-wide: 1400px;
  --container-padding: 1.5rem;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- 2. BASE RESETS & NORMALIZATION --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  background-image: var(--grad-dark-mesh);
  background-attachment: fixed;
  background-size: cover;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #1e2448;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

::selection {
  background-color: var(--color-secondary);
  color: #FFFFFF;
}

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

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

button, input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

ul, ol {
  list-style: none;
}

/* --- 3. TYPOGRAPHY SYSTEM (REFINED HEADINGS) --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

/* Display Titles: Scaled to prevent awkward multi-line text wrapping */
.display-title {
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

h1, .h1 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 800;
}

h2, .h2 {
  font-size: clamp(1.75rem, 2.8vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.22;
}

h3, .h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  font-weight: 600;
}

h4, .h4 {
  font-size: 1.15rem;
  font-weight: 600;
}

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

.text-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.62;
  font-weight: 400;
}

.text-muted {
  color: var(--text-muted);
}

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

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

/* --- 4. LAYOUT & CONTAINERS --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

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

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

.section {
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
  position: relative;
}

.section-sm {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.section-header {
  margin-bottom: var(--space-2xl);
}

.section-header.text-center {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  background: rgba(217, 70, 239, 0.1);
  border: 1px solid rgba(217, 70, 239, 0.3);
  border-radius: var(--radius-pill);
  color: var(--text-accent);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}

.section-tag svg {
  width: 14px;
  height: 14px;
}

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

.section-desc {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Grid Utilities */
.grid {
  display: grid;
  gap: 1.65rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto-fit { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

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

.gap-sm { gap: 0.5rem; }
.gap-md { gap: 1rem; }
.gap-lg { gap: 1.5rem; }
.gap-xl { gap: 2rem; }

/* Visual Glow Orbs */
.bg-glow-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--grad-glow);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.glow-top-right { top: -150px; right: -100px; }
.glow-bottom-left { bottom: -150px; left: -100px; }
.glow-center { top: 50%; left: 50%; transform: translate(-50%, -50%); }

/* --- 5. ANIMATIONS & REVEALS --- */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.05); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.animate-float { animation: floatSlow 6s ease-in-out infinite; }
.animate-pulse-glow { animation: pulseGlow 4s ease-in-out infinite; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
