/* ============================================
   Sandos Solutions - sandos.app
   Modern, Professional Design System
   ============================================ */

/* CSS Custom Properties */
:root {
  /* Dark sophisticated palette */
  --color-bg-dark: #0a0a0f;
  --color-bg-card: #12121a;
  --color-bg-elevated: #1a1a24;
  --color-bg-subtle: #0f0f14;
  
  /* Primary colors */
  --color-primary: #1e3a5f;
  --color-primary-light: #2d5a87;
  --color-primary-dark: #0f2440;
  
  /* Accent - vibrant gradient colors from logo */
  --color-accent: #6366f1;
  --color-accent-cyan: #22d3ee;
  --color-accent-purple: #a855f7;
  --color-accent-pink: #ec4899;
  --color-accent-orange: #f97316;
  --color-accent-green: #10b981;
  
  /* Text colors */
  --color-text-primary: #f8fafc;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;
  
  /* Borders */
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-subtle: rgba(255, 255, 255, 0.04);
  
  /* Gradients */
  --gradient-rainbow: linear-gradient(135deg, #ec4899, #f97316, #eab308, #22c55e, #22d3ee, #6366f1, #a855f7);
  --gradient-hero: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.1) 50%, rgba(236, 72, 153, 0.05) 100%);
  --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  --gradient-cta: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
  --shadow-glow-pink: 0 0 40px rgba(236, 72, 153, 0.2);
  
  /* Layout */
  --header-height: 72px;
  --border-radius: 12px;
  --border-radius-lg: 20px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  background: var(--color-bg-dark);
  color: var(--color-text-primary);
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Animated background gradient */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(168, 85, 247, 0.1), transparent),
    radial-gradient(ellipse 50% 30% at 20% 60%, rgba(236, 72, 153, 0.08), transparent);
  pointer-events: none;
  z-index: -1;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--gradient-cta);
  color: white;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  z-index: 10000;
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Gradient text utility */
.gradient-text {
  background: var(--gradient-rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass morphism card */
.glass-card {
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  transition: all var(--transition-base);
}

.glass-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-height);
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.header--scrolled {
  background: rgba(10, 10, 15, 0.95);
  box-shadow: var(--shadow-md);
}

/* Navigation Links */
.nav-link {
  position: relative;
  color: var(--color-text-secondary);
  font-weight: 500;
  text-decoration: none;
  padding: 8px 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-cta);
  border-radius: 2px;
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--border-radius);
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-cta);
  color: white;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-accent);
}

.btn-white {
  background: white;
  color: var(--color-bg-dark);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Rainbow border effect */
.rainbow-border {
  position: relative;
  background: var(--color-bg-card);
  border-radius: var(--border-radius-lg);
}

.rainbow-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--border-radius-lg) + 1px);
  background: var(--gradient-rainbow);
  z-index: -1;
  opacity: 0.5;
  transition: opacity var(--transition-base);
}

.rainbow-border:hover::before {
  opacity: 1;
}

/* Feature cards */
.feature-card {
  padding: 32px;
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  transition: all var(--transition-base);
}

.feature-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.1));
  border-radius: 14px;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
}

/* Stats with glow */
.stat-value {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-top: 8px;
}

/* Hero section */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-accent);
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--color-accent-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* Floating animation for hero image */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.hero-image {
  animation: float 6s ease-in-out infinite;
}

/* Section styling */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--color-bg-subtle);
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--color-text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* FAQ Accordion */
details summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-weight: 600;
  color: var(--color-text-primary);
  border-top: 1px solid var(--color-border);
  transition: color var(--transition-fast);
}

details summary::-webkit-details-marker {
  display: none;
}

details summary:hover {
  color: var(--color-accent);
}

details[open] summary {
  color: var(--color-accent);
}

details .faq-icon {
  transition: transform var(--transition-base);
  color: var(--color-text-muted);
}

details[open] .faq-icon {
  transform: rotate(45deg);
  color: var(--color-accent);
}

details > div {
  padding-bottom: 20px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* Contact form */
.form-input {
  width: 100%;
  padding: 14px 18px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  color: var(--color-text-primary);
  font-size: 15px;
  transition: all var(--transition-fast);
}

.form-input::placeholder {
  color: var(--color-text-muted);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--color-text-primary);
  font-size: 14px;
}

/* CTA Section */
.cta-section {
  position: relative;
  background: var(--gradient-cta);
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* Footer */
.footer {
  background: var(--color-bg-dark);
  border-top: 1px solid var(--color-border);
  padding: 64px 0 32px;
}

.footer-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-text-primary);
}

.footer-heading {
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* Mobile menu */
.mobile-nav--open {
  display: flex !important;
}

.menu-toggle[aria-expanded="true"] .bar-1 {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .bar-2 {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .bar-3 {
  transform: translateY(-7px) rotate(-45deg);
}

/* Step cards with connectors */
@media (min-width: 1024px) {
  .step-card {
    position: relative;
  }
  
  .step-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -32px;
    width: 64px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
  }
}

.step-number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-cta);
  border-radius: 50%;
  font-weight: 700;
  font-size: 18px;
  color: white;
  margin: 0 auto 16px;
}

/* Info box (replacing blue box) */
.info-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.05));
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--border-radius);
  padding: 20px 24px;
}

/* Prose for content pages */
.prose {
  max-width: 65ch;
  color: var(--color-text-secondary);
}

.prose p { margin-bottom: 1rem; }
.prose h2 { margin-top: 2rem; margin-bottom: 1rem; color: var(--color-text-primary); }
.prose h3 { margin-top: 1.5rem; margin-bottom: 0.75rem; color: var(--color-text-primary); }
.prose ul, .prose ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.prose li { margin-bottom: 0.5rem; }
.prose a { color: var(--color-accent); text-decoration: underline; }
.prose a:hover { color: var(--color-accent-cyan); }

/* Contact info cards */
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  transition: all var(--transition-base);
}

.contact-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateX(4px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.1));
  border-radius: 12px;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
}

/* Breadcrumb styling */
.breadcrumb {
  padding-top: calc(var(--header-height) + 16px);
  padding-bottom: 16px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb .current {
  color: var(--color-text-primary);
}

/* Logo styling */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* Pricing cards */
.pricing-card {
  padding: 32px;
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-base);
}

.pricing-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}

.pricing-card--featured {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-glow);
}

.pricing-card--gradient {
  background: var(--gradient-cta);
  border-color: transparent;
}

.btn-accent {
  background: var(--color-accent);
  color: white;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-accent:hover {
  background: var(--color-accent-purple);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.5);
}

/* Print styles */
@media print {
  .no-print { display: none !important; }
  body { background: white; color: black; }
  body::before { display: none; }
}
