/* ==========================================================================
   vydora.in - Modern SaaS Design Token System & Custom CSS
   ========================================================================== */

:root {
  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Brand Colors */
  --brand-primary: #4f46e5;
  --brand-primary-hover: #4338ca;
  --brand-accent: #06b6d4;
  --brand-gradient: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  --brand-gradient-hover: linear-gradient(135deg, #4338ca 0%, #0891b2 100%);
  --brand-glow: rgba(79, 70, 229, 0.25);

  /* Light Theme Tokens */
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-tertiary: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;
  
  /* Shadows & Glassmorphism */
  --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --card-shadow-hover: 0 20px 40px -10px rgba(79, 70, 229, 0.15), 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(226, 232, 240, 0.8);
  --glass-blur: blur(12px);
}

[data-bs-theme="dark"] {
  /* Dark Theme Tokens */
  --bg-primary: #0b0f19;
  --bg-surface: #111827;
  --bg-tertiary: #1f2937;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: #1f2937;
  --border-subtle: #374151;

  /* Shadows & Glassmorphism Dark */
  --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.4);
  --card-shadow-hover: 0 20px 40px -10px rgba(79, 70, 229, 0.3);
  --glass-bg: rgba(17, 24, 39, 0.85);
  --glass-border: rgba(31, 41, 55, 0.8);
  --glass-blur: blur(12px);
}

/* Base Reset & Typography */
body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand-title {
  font-family: var(--font-heading);
}

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

/* Focus Visible for WCAG AA Accessibility */
:focus-visible {
  outline: 3px solid var(--brand-accent) !important;
  outline-offset: 2px !important;
}

/* Glassmorphism Navbar */
.glass-nav {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border) !important;
  transition: padding 0.3s ease, background 0.3s ease;
}

.glass-nav.navbar-scrolled {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Hero Section Styles */
.hero-section {
  position: relative;
  padding: 5rem 0 4rem 0;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--brand-glow) 0%, rgba(79, 70, 229, 0) 70%);
  z-index: 0;
  pointer-events: none;
  animation: floatGlow 8s ease-in-out infinite alternate;
}

@keyframes floatGlow {
  0% { transform: translateX(-50%) translateY(0) scale(1); }
  100% { transform: translateX(-50%) translateY(30px) scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* URL Input Box */
.url-input-container {
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.url-input-container:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px var(--brand-glow), var(--card-shadow-hover);
}

.url-input {
  background: transparent !important;
  border: none !important;
  color: var(--text-primary) !important;
  font-size: 1.1rem;
  box-shadow: none !important;
}

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

/* Premium Buttons */
.btn-brand {
  background: var(--brand-gradient);
  color: #ffffff !important;
  border: none;
  font-weight: 600;
  border-radius: 0.85rem;
  padding: 0.75rem 1.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--brand-glow);
}

.btn-brand:hover {
  background: var(--brand-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--brand-glow);
}

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

/* Feature & Component Cards */
.card-hover {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  box-shadow: var(--card-shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(79, 70, 229, 0.3);
}

/* Feature Icon Wrapper */
.icon-shape {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
  color: var(--brand-primary);
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}

.card-hover:hover .icon-shape {
  background: var(--brand-gradient);
  color: #ffffff;
  transform: scale(1.1) rotate(3deg);
}

/* How It Works Timeline */
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
  box-shadow: 0 4px 15px var(--brand-glow);
}

/* Statistics Counter Box */
.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--card-shadow);
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  font-family: var(--font-heading);
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

/* Format Quality Cards */
.format-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.25rem;
  transition: all 0.25s ease;
}

.format-card:hover {
  border-color: var(--brand-primary);
  box-shadow: var(--card-shadow-hover);
}

/* Shimmer Loading Skeleton */
.skeleton-shimmer {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--border-color) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 0.5rem;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Footer Styling */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
}

/* Motion Accessibility */
@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;
  }
}
