/* ==========================================================================
   ONLIDESK — CORE DESIGN SYSTEM & STYLES
   "Your Business Deserves a Better Website."
   "Your Website. Before You Pay."
   ========================================================================== */

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

:root {
  /* Color Palette - Deep Obsidian & Electric Blue/Purple */
  --bg-darkest: #06070B;
  --bg-primary: #0A0C14;
  --bg-secondary: #101322;
  --bg-tertiary: #161B2E;
  --bg-card: rgba(16, 19, 34, 0.65);
  --bg-card-hover: rgba(22, 27, 46, 0.85);
  --bg-glass: rgba(10, 12, 20, 0.75);

  /* Vibrant Accents matching Logo */
  --brand-blue: #0066FF;
  --brand-blue-light: #2582FF;
  --brand-cyan: #00D2FF;
  --brand-indigo: #4F46E5;
  --brand-purple: #9333EA;
  --brand-violet: #A855F7;
  --brand-magenta: #D946EF;

  /* Text Colors */
  --text-pure: #FFFFFF;
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-accent: #38BDF8;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #0066FF 0%, #6366F1 50%, #A855F7 100%);
  --grad-brand-horizontal: linear-gradient(90deg, #0066FF 0%, #4F46E5 50%, #9333EA 100%);
  --grad-cyan-blue: linear-gradient(135deg, #00D2FF 0%, #0066FF 100%);
  --grad-purple-pink: linear-gradient(135deg, #A855F7 0%, #EC4899 100%);
  --grad-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  --grad-card-border: linear-gradient(135deg, rgba(0, 102, 255, 0.4) 0%, rgba(168, 85, 247, 0.2) 50%, rgba(255, 255, 255, 0.05) 100%);

  /* Glows and Shadows */
  --glow-blue: 0 0 35px rgba(0, 102, 255, 0.28);
  --glow-purple: 0 0 35px rgba(147, 51, 234, 0.24);
  --glow-button: 0 4px 25px rgba(0, 102, 255, 0.35);
  --shadow-subtle: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  --shadow-floating: 0 30px 60px -20px rgba(0, 0, 0, 0.85);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-highlight: rgba(0, 102, 255, 0.3);

  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Grotesk', ui-monospace, SFMono-Regular, monospace;

  /* Layout Spacing */
  --container-max: 1240px;
  --section-pad-y: 110px;
  --section-pad-y-sm: 70px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* 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-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-darkest);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient Background Grid & Glows */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.08) 0%, rgba(147, 51, 234, 0.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  filter: blur(80px);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-darkest);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-blue);
}

/* Selection */
::selection {
  background: rgba(0, 102, 255, 0.35);
  color: var(--text-pure);
}

/* Links & Images */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================================================
   TYPOGRAPHY SYSTEM
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-pure);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 700;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: 400;
}

p.lead {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  color: var(--text-primary);
  line-height: 1.6;
}

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

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

/* Badge Pill */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 102, 255, 0.08);
  border: 1px solid rgba(0, 102, 255, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-cyan);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.badge-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--brand-cyan);
  box-shadow: 0 0 10px var(--brand-cyan);
  animation: pulse-dot 2s infinite ease-in-out;
}

.badge-pill.purple {
  background: rgba(147, 51, 234, 0.08);
  border-color: rgba(147, 51, 234, 0.25);
  color: var(--brand-violet);
}

.badge-pill.purple .dot {
  background-color: var(--brand-violet);
  box-shadow: 0 0 10px var(--brand-violet);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

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

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

.container-wide {
  max-width: 1360px;
}

section {
  position: relative;
  padding: var(--section-pad-y) 0;
  z-index: 1;
}

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

.section-header .badge-pill {
  margin-bottom: 18px;
}

.section-header h2 {
  margin-bottom: 18px;
}

.section-header p {
  font-size: 1.15rem;
  line-height: 1.6;
}

/* ==========================================================================
   BUTTONS & CTAS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

/* Primary Brand Gradient Button */
.btn-primary {
  background: var(--grad-brand-horizontal);
  color: var(--text-pure);
  box-shadow: var(--glow-button);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 102, 255, 0.5), 0 0 20px rgba(147, 51, 234, 0.3);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:active {
  transform: translateY(0);
}

/* Secondary Glass Button */
.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--brand-blue);
  color: var(--text-pure);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 102, 255, 0.15);
}

/* Outline Glow Button */
.btn-outline {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.btn-outline:hover {
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
  background: rgba(0, 210, 255, 0.05);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
}

.btn-icon {
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: translateX(3px);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 22px 0;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  padding: 12px 0;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-logo-img {
  height: 38px;
  width: auto;
  transition: transform var(--transition-fast);
}

.navbar-brand:hover .navbar-logo-img {
  transform: scale(1.03);
}

.navbar-nav {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

.navbar-link {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--grad-brand-horizontal);
  transition: width var(--transition-normal);
  border-radius: 2px;
}

.navbar-link:hover, .navbar-link.active {
  color: var(--text-pure);
}

.navbar-link:hover::after, .navbar-link.active::after {
  width: 100%;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-pure);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   SCROLL REVEAL UTILITIES
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-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; }

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