/* ==============================================================================
   CdnXyz9 — Core Light Mode Gradient Design System & Global Styles
   Refined luminous cloud SaaS aesthetic (Clean white, soft coral/purple/sky ambient mesh)
   ============================================================================== */

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

:root {
  /* Surface & Background Palette */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-glass-hover: rgba(248, 250, 252, 0.95);

  /* Borders & Dividers */
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-focus: #7c3aed;
  --border-gradient: linear-gradient(135deg, rgba(225, 29, 72, 0.25), rgba(124, 58, 237, 0.25), rgba(37, 99, 235, 0.25));

  /* Gradient Palette - Vibrant Luminous Rose / Purple / Sky / Amber */
  --grad-brand: linear-gradient(135deg, #e11d48 0%, #9333ea 55%, #2563eb 100%);
  --grad-accent: linear-gradient(135deg, #7c3aed 0%, #2563eb 60%, #06b6d4 100%);
  --grad-cyan-blue: linear-gradient(135deg, #2563eb 0%, #0284c7 100%);
  --grad-pink-purple: linear-gradient(135deg, #e11d48 0%, #9333ea 100%);

  /* Ambient Mesh Gradients - Backblaze Inspired Luminous Aura */
  --grad-ambient-mesh: radial-gradient(ellipse 70% 45% at 50% 100%, rgba(168, 85, 247, 0.16) 0%, rgba(129, 140, 248, 0.1) 40%, transparent 70%),
                       radial-gradient(circle 500px at 0% 100%, rgba(244, 63, 94, 0.14) 0%, transparent 60%),
                       radial-gradient(circle 450px at 100% 90%, rgba(192, 132, 252, 0.15) 0%, transparent 60%),
                       radial-gradient(circle 600px at 50% -10%, rgba(224, 231, 255, 0.35) 0%, transparent 60%);

  /* Accent Colors */
  --accent-pink: #e11d48;
  --accent-purple: #7c3aed;
  --accent-blue: #2563eb;
  --accent-cyan: #0284c7;
  --accent-emerald: #059669;
  --accent-amber: #d97706;
  --accent-rose: #e11d48;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  /* Text Colors (High Contrast Crisp Slate) */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  /* Shadows (Soft Luminous Elevation) */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 16px 36px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 4px 24px -2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);

  /* Spacing & Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

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

/* Base Resets & Global Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ==============================================================================
   Completely Hide Vertical & Horizontal Scrollbars on Desktop & Mobile
   ============================================================================== */
html, body, * {
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE & Edge */
}

::-webkit-scrollbar {
  width: 0px !important;
  height: 0px !important;
  display: none !important; /* Chrome, Safari, Opera */
}

html {
  font-family: var(--font-sans);
  background-color: #ffffff;
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.5;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  background-color: #ffffff;
  background-image: var(--grad-ambient-mesh);
  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  word-break: break-word;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

p {
  color: var(--text-secondary);
  line-height: 1.6;
  word-break: break-word;
}

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

a:not(.btn):not(.dash-brand):not(.auth-brand-icon):hover {
  color: var(--accent-pink);
}

code, pre, .font-mono {
  font-family: var(--font-mono);
}

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

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

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

/* Global Containers (Fully Responsive with Zero Horizontal Overflow) */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.container-narrow {
  max-width: 900px;
}

@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }
}

/* Background Ambient Glow Orbs */
.ambient-glow-top {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 750px;
  height: 400px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(244, 63, 94, 0.1) 40%, rgba(59, 130, 246, 0.06) 65%, transparent 80%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* Reveal Animations */
.reveal-init {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal-init {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
