/* V0 Design System - Comprehensive Implementation
   Matching Streamlit v0_styles.css for consistency across all platforms */

/* ============================================
   CSS Variables - V0 Design Tokens (Complete)
   ============================================ */
:root {
  /* Refined Professional Palette (calm, less saturated) */
  --v0-primary: #0ea5e9;        /* sky-500 */
  --v0-primary-dark: #0284c7;   /* sky-600 */
  --v0-primary-light: #38bdf8;  /* sky-400 */
  --v0-secondary: #64748b;      /* slate-500 */
  --v0-accent: #14b8a6;         /* teal-500 */
  --v0-success: #10b981;        /* emerald-500 */
  --v0-warning: #f59e0b;        /* amber-500 */
  --v0-error: #ef4444;          /* red-500 */
  --v0-info: #0ea5e9;           /* align info to primary */
  
  /* Backgrounds */
  --v0-bg-primary: #ffffff;
  --v0-bg-secondary: #f9fafb;
  --v0-bg-tertiary: #f3f4f6;
  --v0-bg-dark: #111827;
  
  /* Text Colors */
  --v0-text-primary: #111827;
  --v0-text-secondary: #6b7280;
  --v0-text-tertiary: #9ca3af;
  --v0-text-inverse: #ffffff;
  
  /* Borders */
  --v0-border: #e5e7eb;
  --v0-border-light: #f3f4f6;
  --v0-border-dark: #d1d5db;
  
  /* Shadows - V0 Elevation System */
  --v0-shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --v0-shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --v0-shadow-md: 0 4px 8px -2px rgba(15, 23, 42, 0.08);
  --v0-shadow-lg: 0 10px 16px -3px rgba(15, 23, 42, 0.10);
  --v0-shadow-xl: 0 20px 24px -5px rgba(15, 23, 42, 0.12);
  
  /* Border Radius */
  --v0-radius-sm: 0.375rem;
  --v0-radius-md: 0.5rem;
  --v0-radius-lg: 0.75rem;
  --v0-radius-xl: 1rem;
  --v0-radius-full: 9999px;
  
  /* Spacing */
  --v0-spacing-xs: 0.25rem;
  --v0-spacing-sm: 0.5rem;
  --v0-spacing-md: 1rem;
  --v0-spacing-lg: 1.5rem;
  --v0-spacing-xl: 2rem;
  
  /* Transitions */
  --v0-transition-fast: 150ms ease;
  --v0-transition-base: 200ms ease;
  --v0-transition-slow: 300ms ease;
}

/* ============================================
   Global V0 Enhancements
   ============================================ */

/* Section utilities to remove inline styles in HTML */
.v0-section-gradient {
  background: linear-gradient(135deg, var(--v0-bg-secondary) 0%, var(--v0-bg-primary) 100%);
}

.v0-section-padding {
  padding: var(--v0-spacing-xl) 0;
}

.v0-title-gradient {
  background: linear-gradient(135deg, var(--v0-primary) 0%, var(--v0-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.v0-card-contained {
  max-width: 900px;
  margin: 2rem auto;
  padding: var(--v0-spacing-xl);
  background: var(--v0-bg-primary);
  border-radius: var(--v0-radius-xl);
  box-shadow: var(--v0-shadow-lg);
  border: 1px solid var(--v0-border);
}

.v0-card-narrow {
  max-width: 600px;
  margin: 2rem auto;
  padding: var(--v0-spacing-xl);
}

.v0-subtle-panel {
  margin-top: var(--v0-spacing-lg);
  padding: var(--v0-spacing-md);
  background: var(--v0-bg-secondary);
  border-radius: var(--v0-radius-md);
}

/* Spacing utilities */
.v0-mt-lg { margin-top: var(--v0-spacing-lg); }
.v0-mt-xl { margin-top: var(--v0-spacing-xl); }

/* Heading utility */
.v0-heading-card {
  color: var(--v0-text-primary);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

/* Utility visibility */
.is-hidden { display: none; }

/* Emphasis text utility */
.v0-emphasis {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--v0-primary);
}

/* Responsive grid helpers */
.v0-grid {
  display: grid;
  gap: var(--v0-spacing-lg);
}

.v0-grid-2 {
  grid-template-columns: 1fr;
}

.v0-grid-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .v0-grid-2 { grid-template-columns: 1fr 1fr; }
  .v0-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* Container max width polish */
.container {
  max-width: 1200px;
}

/* Reduced Motion Support (global) */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Firefox video fallback - show poster when autoplay blocked */
@-moz-document url-prefix() {
  .hero-background-video {
    background-image: url('../assets/images/bg-video-fallback.jpg');
    background-size: cover;
    background-position: center;
  }
  
  .hero-background-video:not([poster]) {
    background-image: url('../assets/images/bg-video-fallback.jpg');
  }
}

/* Apply v0 styling to all buttons */
button,
.btn,
.btn-modern,
.hero-button-modern,
.btn-creative,
.btn-primary,
.btn-secondary {
  background: linear-gradient(135deg, var(--v0-primary) 0%, var(--v0-primary-dark) 100%);
  color: var(--v0-text-inverse);
  border: none;
  border-radius: var(--v0-radius-md);
  padding: 0.625rem 1.25rem;
  font-weight: 600;
  transition: all var(--v0-transition-base);
  box-shadow: var(--v0-shadow-sm);
  cursor: pointer;
}

button:hover,
.btn:hover,
.btn-modern:hover,
.hero-button-modern:hover,
.btn-creative:hover {
  transform: translateY(-2px);
  box-shadow: var(--v0-shadow-md);
  background: linear-gradient(135deg, var(--v0-primary-dark) 0%, var(--v0-primary-light) 100%);
}

/* Secondary button styling */
.btn-secondary,
.btn-modern-secondary,
.hero-button-secondary {
  background: var(--v0-bg-secondary);
  color: var(--v0-text-primary);
  border: 1px solid var(--v0-border);
}

.btn-secondary:hover,
.btn-modern-secondary:hover,
.hero-button-secondary:hover {
  background: var(--v0-bg-tertiary);
  border-color: var(--v0-primary-light);
}

/* Apply v0 styling to all inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
textarea,
select {
  border-radius: var(--v0-radius-md);
  border: 1px solid var(--v0-border);
  transition: all var(--v0-transition-base);
  padding: 0.625rem 1rem;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--v0-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  outline: none;
}

/* Apply v0 styling to all links */
a {
  color: var(--v0-primary);
  transition: color var(--v0-transition-base);
}

a:hover {
  color: var(--v0-primary-dark);
}

/* Apply v0 styling to headings */
h1 {
  background: linear-gradient(135deg, var(--v0-primary) 0%, var(--v0-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2, h3 {
  color: var(--v0-text-primary);
  font-weight: 600;
}

/* Apply v0 styling to cards */
.card,
.article-card-contained,
.service-card-modern,
.streamlit-feature-card,
.feature-card-modern,
.document-card,
.discover-item,
.adobe-item {
  background: var(--v0-bg-primary);
  border: 1px solid var(--v0-border);
  border-radius: var(--v0-radius-lg);
  box-shadow: var(--v0-shadow-sm);
  transition: all var(--v0-transition-base);
}

.card:hover,
.article-card-contained:hover,
.service-card-modern:hover,
.streamlit-feature-card:hover,
.feature-card-modern:hover,
.document-card:hover,
.discover-item:hover,
.adobe-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--v0-shadow-md);
  border-color: var(--v0-primary-light);
}

/* Apply v0 styling to sections */
section {
  padding: var(--v0-spacing-xl) 0;
}

.section-bg-white {
  background: var(--v0-bg-primary);
}

.section-bg-gradient-light {
  background: linear-gradient(135deg, var(--v0-bg-primary) 0%, var(--v0-bg-secondary) 100%);
}

/* Apply v0 styling to containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--v0-spacing-lg);
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--v0-bg-secondary);
  border-radius: var(--v0-radius-sm);
}

::-webkit-scrollbar-thumb {
  background: var(--v0-primary);
  border-radius: var(--v0-radius-sm);
  transition: background var(--v0-transition-base);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--v0-primary-dark);
}

/* Focus States */
*:focus-visible {
  outline: 2px solid var(--v0-primary);
  outline-offset: 2px;
  border-radius: var(--v0-radius-sm);
}

/* Selection */
::selection {
  background: var(--v0-primary);
  color: var(--v0-text-inverse);
}

/* ============================================
   Essential scroll-triggered animations only
   ============================================ */
.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
}

.animate-fade-up {
  transform: translateY(20px);
}

.animate-fade-up.animated {
  transform: translateY(0);
}

/* Modern Service Cards - V0 Style with Updated Color Scheme */
.services-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card-modern {
  background: var(--v0-bg-primary);
  border-radius: var(--v0-radius);
  padding: 2rem;
  box-shadow: var(--v0-shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--v0-border);
  position: relative;
  overflow: hidden;
}

.service-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--v0-primary), var(--v0-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: var(--v0-shadow-lg);
  border-color: var(--v0-primary-light);
}

.service-card-modern:hover::before {
  transform: scaleX(1);
}

.service-icon-modern {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--v0-primary), var(--v0-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
  color: white;
}

.service-card-modern:hover .service-icon-modern {
  transform: scale(1.1) rotate(5deg);
}

.service-card-modern h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

.service-card-modern p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-features-modern {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.service-features-modern li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.service-features-modern li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

.service-price-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--v0-primary), var(--v0-secondary));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  box-shadow: var(--v0-shadow-sm);
}

.service-card-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-modern {
  padding: 0.75rem 1.5rem;
  border-radius: var(--v0-radius);
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
  box-shadow: var(--v0-shadow-sm);
}

.btn-modern-primary {
  background: linear-gradient(135deg, var(--v0-primary), var(--v0-primary-dark));
  color: white;
}

.btn-modern-primary:hover {
  background: linear-gradient(135deg, var(--v0-primary-dark), var(--v0-primary));
  transform: translateY(-2px);
  box-shadow: var(--v0-shadow-md);
}

.btn-modern-secondary {
  background: var(--v0-bg-secondary);
  color: var(--v0-primary);
  border: 1px solid var(--v0-border);
}

.btn-modern-secondary:hover {
  background: var(--v0-bg-tertiary);
  border-color: var(--v0-primary-light);
  color: var(--v0-primary-dark);
  transform: translateY(-2px);
}

/* Enhanced Hero Section */
.hero-enhanced {
  position: relative;
  overflow: hidden;
}

.hero-content-enhanced {
  position: relative;
  z-index: 2;
}

.hero-buttons-enhanced {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-button-modern {
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.hero-button-modern::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.hero-button-modern:hover::before {
  width: 300px;
  height: 300px;
}

.hero-button-primary {
  background: linear-gradient(135deg, var(--v0-primary), var(--v0-primary-dark));
  color: white;
  border: 2px solid var(--v0-primary);
  box-shadow: var(--v0-shadow-sm);
}

.hero-button-primary:hover {
  background: linear-gradient(135deg, var(--v0-primary-dark), var(--v0-primary));
  transform: translateY(-3px);
  box-shadow: var(--v0-shadow-lg);
  border-color: var(--v0-primary-light);
}

.hero-button-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hero-button-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
}

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, var(--v0-primary) 0%, var(--v0-secondary) 100%);
  color: white;
  padding: 4rem 0;
  margin: 4rem 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  opacity: 0.5;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1.5rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Enhanced Client Portal */
.portal-hero-enhanced {
  background: linear-gradient(135deg, var(--v0-primary) 0%, var(--v0-secondary) 100%);
  padding: 5rem 0;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.portal-dashboard-button {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  color: white;
  padding: 1.25rem 2.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  display: inline-block;
  margin-top: 2rem;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.portal-dashboard-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: white;
  transition: left 0.3s ease;
  z-index: -1;
}

.portal-dashboard-button:hover::before {
  left: 0;
}

.portal-dashboard-button:hover {
  color: var(--v0-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Feature Cards */
.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.feature-card-modern {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  text-align: center;
}

.feature-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: var(--v0-shadow-md);
  border-color: var(--v0-primary-light);
}

.feature-icon-large {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Loading States */
.loading-shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Streamlit Features Grid */
.streamlit-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.streamlit-feature-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.streamlit-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--v0-primary), var(--v0-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.streamlit-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--v0-shadow-md);
  border-color: var(--v0-primary-light);
}

.streamlit-feature-card:hover::before {
  transform: scaleX(1);
}

.streamlit-feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.streamlit-feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

.streamlit-feature-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.streamlit-feature-link {
  color: var(--v0-primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.streamlit-feature-link:hover {
  color: var(--v0-primary-dark);
  gap: 0.75rem;
}

.streamlit-status {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.streamlit-status.online {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.streamlit-status.offline {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .services-preview-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .hero-buttons-enhanced {
    flex-direction: column;
  }
  
  .hero-button-modern {
    width: 100%;
    text-align: center;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .feature-cards-grid {
    grid-template-columns: 1fr;
  }

  .streamlit-features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Enhanced Gradient Text Effects */
.gradient-text {
  background: linear-gradient(135deg, var(--v0-primary), var(--v0-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* Enhanced Section Headers */
.section-header-modern {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header-modern h2 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--v0-primary), var(--v0-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-header-modern p {
  color: var(--v0-text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Modern Card Hover Effects */
.card-hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: var(--v0-shadow-lg);
}

/* Smooth Transitions */
* {
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Dark Mode Support */
:root[color-mode="dark"] .service-card-modern {
  background: var(--dark-bg);
  border-color: var(--dark-border);
}

:root[color-mode="dark"] .feature-card-modern {
  background: var(--dark-bg);
  border-color: var(--dark-border);
}

/* Portal and Streamlit Status Styles */
.streamlit-status-container {
  text-align: center;
  margin-bottom: 2rem;
}

.streamlit-status-initial {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.services-cta-container {
  text-align: center;
  margin-top: 3rem;
}

.streamlit-cta-container {
  text-align: center;
  margin-top: 3rem;
}

.streamlit-dashboard-btn {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* ============================================
   Comprehensive Element Styling
   ============================================ */

/* Forms */
form {
  background: var(--v0-bg-primary);
  border: 1px solid var(--v0-border);
  border-radius: var(--v0-radius-lg);
  padding: var(--v0-spacing-lg);
  box-shadow: var(--v0-shadow-sm);
}

/* Tables */
table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  border-radius: var(--v0-radius-md);
  overflow: hidden;
  box-shadow: var(--v0-shadow-sm);
  border: 1px solid var(--v0-border);
}

table th {
  background: var(--v0-bg-secondary);
  color: var(--v0-text-primary);
  font-weight: 600;
  padding: var(--v0-spacing-md);
  text-align: left;
  border-bottom: 2px solid var(--v0-border);
}

table td {
  padding: var(--v0-spacing-md);
  border-bottom: 1px solid var(--v0-border-light);
  color: var(--v0-text-primary);
}

table tr:last-child td {
  border-bottom: none;
}

table tr:hover {
  background: var(--v0-bg-secondary);
}

/* Navigation */
nav,
.nav-menu,
.header {
  background: var(--v0-bg-primary);
  border-bottom: 1px solid var(--v0-border);
  box-shadow: var(--v0-shadow-sm);
}

.nav-menu a {
  color: var(--v0-text-primary);
  padding: var(--v0-spacing-sm) var(--v0-spacing-md);
  border-radius: var(--v0-radius-md);
  transition: all var(--v0-transition-base);
}

.nav-menu a:hover {
  background: var(--v0-bg-secondary);
  color: var(--v0-primary);
}

/* Article Cards */
.article-card-contained {
  background: var(--v0-bg-primary);
  border: 1px solid var(--v0-border);
  border-radius: var(--v0-radius-lg);
  overflow: hidden;
  box-shadow: var(--v0-shadow-sm);
  transition: all var(--v0-transition-base);
}

.article-card-contained:hover {
  transform: translateY(-4px);
  box-shadow: var(--v0-shadow-md);
  border-color: var(--v0-primary-light);
}

.article-card-contained img {
  border-radius: var(--v0-radius-lg) var(--v0-radius-lg) 0 0;
}

/* Hero Section */
.hero,
.hero-with-video {
  position: relative;
}

.hero-title-edgy,
.hero-title {
  background: linear-gradient(135deg, var(--v0-primary) 0%, var(--v0-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Section Titles */
.section-title,
.section-title-centered,
.section-title-edgy {
  color: var(--v0-text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-subtitle,
.section-subtitle-centered {
  color: var(--v0-text-secondary);
}

/* Lists */
ul,
ol {
  color: var(--v0-text-secondary);
}

li {
  margin-bottom: var(--v0-spacing-xs);
}

/* Dividers */
hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--v0-border) 50%, transparent 100%);
  margin: var(--v0-spacing-xl) 0;
}

/* Modals */
.modal {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  background: var(--v0-bg-primary);
  border-radius: var(--v0-radius-lg);
  box-shadow: var(--v0-shadow-xl);
  border: 1px solid var(--v0-border);
}

/* Badges and Tags */
.article-tag,
.badge,
.tag {
  display: inline-block;
  padding: var(--v0-spacing-xs) var(--v0-spacing-sm);
  border-radius: var(--v0-radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--v0-primary) 0%, var(--v0-primary-dark) 100%);
  color: var(--v0-text-inverse);
}

/* Newsletter Form */
.newsletter-form {
  display: flex;
  gap: var(--v0-spacing-sm);
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  border-radius: var(--v0-radius-md);
  border: 1px solid var(--v0-border);
  padding: var(--v0-spacing-md);
}

.newsletter-form button {
  border-radius: var(--v0-radius-md);
}

/* Discover Grid */
.discover-grid,
.logos-grid,
.adobe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--v0-spacing-lg);
}

.discover-item,
.logo-item,
.adobe-item {
  background: var(--v0-bg-primary);
  border: 1px solid var(--v0-border);
  border-radius: var(--v0-radius-lg);
  padding: var(--v0-spacing-lg);
  transition: all var(--v0-transition-base);
  box-shadow: var(--v0-shadow-sm);
}

.discover-item:hover,
.logo-item:hover,
.adobe-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--v0-shadow-md);
  border-color: var(--v0-primary-light);
}

/* Video Cards */
.video-card {
  background: var(--v0-bg-primary);
  border: 1px solid var(--v0-border);
  border-radius: var(--v0-radius-lg);
  overflow: hidden;
  box-shadow: var(--v0-shadow-sm);
  transition: all var(--v0-transition-base);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--v0-shadow-md);
  border-color: var(--v0-primary-light);
}

/* Document Cards */
.document-card {
  background: var(--v0-bg-primary);
  border: 1px solid var(--v0-border);
  border-radius: var(--v0-radius-lg);
  padding: var(--v0-spacing-lg);
  text-align: center;
  transition: all var(--v0-transition-base);
  box-shadow: var(--v0-shadow-sm);
  cursor: pointer;
}

.document-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--v0-shadow-md);
  border-color: var(--v0-primary-light);
}

.document-icon {
  font-size: 3rem;
  margin-bottom: var(--v0-spacing-md);
}

/* Footer */
footer,
.footer {
  background: var(--v0-bg-secondary);
  border-top: 1px solid var(--v0-border);
  padding: var(--v0-spacing-xl) 0;
}

footer a {
  color: var(--v0-text-secondary);
  transition: color var(--v0-transition-base);
}

footer a:hover {
  color: var(--v0-primary);
}

/* Pricing Plans */
.pricing-plans,
.plan {
  background: var(--v0-bg-primary);
  border: 1px solid var(--v0-border);
  border-radius: var(--v0-radius-lg);
  padding: var(--v0-spacing-lg);
  box-shadow: var(--v0-shadow-sm);
  transition: all var(--v0-transition-base);
}

.plan:hover {
  transform: translateY(-4px);
  box-shadow: var(--v0-shadow-md);
  border-color: var(--v0-primary-light);
}

/* Plus Section */
.plus-section {
  background: linear-gradient(135deg, var(--v0-bg-primary) 0%, var(--v0-bg-secondary) 100%);
}

.plus-features .feature {
  padding: var(--v0-spacing-sm);
  color: var(--v0-text-secondary);
}

/* Stats Banner */
.stats-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--v0-spacing-lg);
  margin: var(--v0-spacing-xl) 0;
}

.stat-item {
  text-align: center;
  padding: var(--v0-spacing-lg);
  background: var(--v0-bg-primary);
  border-radius: var(--v0-radius-lg);
  border: 1px solid var(--v0-border);
  box-shadow: var(--v0-shadow-sm);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--v0-primary) 0%, var(--v0-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--v0-text-secondary);
  font-size: 0.875rem;
  margin-top: var(--v0-spacing-xs);
}

/* Promo Banner */
.ucfer-promo-banner {
  background: linear-gradient(135deg, var(--v0-primary) 0%, var(--v0-secondary) 100%);
  border-radius: var(--v0-radius-lg);
  padding: var(--v0-spacing-xl);
  color: var(--v0-text-inverse);
  margin: var(--v0-spacing-xl) 0;
  box-shadow: var(--v0-shadow-lg);
}

.promo-banner-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--v0-spacing-sm);
}

.promo-banner-text {
  opacity: 0.9;
  font-size: 1rem;
}

.promo-banner-stats {
  display: flex;
  gap: var(--v0-spacing-lg);
  margin-top: var(--v0-spacing-lg);
  flex-wrap: wrap;
  justify-content: center;
}

.promo-stat {
  display: flex;
  align-items: center;
  gap: var(--v0-spacing-sm);
}

.promo-stat-icon {
  font-size: 1.25rem;
}

.promo-stat-text {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* Video Background Section */
.video-background-section {
  position: relative;
  overflow: hidden;
}

.video-background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.8) 0%, rgba(139, 92, 246, 0.8) 100%);
  z-index: 1;
}

.video-content-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--v0-spacing-xl) 0;
  color: var(--v0-text-inverse);
}

.neon-glow {
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Articles Container */
.articles-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--v0-spacing-lg);
}

.article-meta {
  display: flex;
  gap: var(--v0-spacing-md);
  margin-top: var(--v0-spacing-md);
  font-size: 0.875rem;
  color: var(--v0-text-tertiary);
}

.article-date,
.article-tag {
  padding: var(--v0-spacing-xs) var(--v0-spacing-sm);
}

.read-more {
  color: var(--v0-primary);
  font-weight: 600;
  display: inline-block;
  margin-top: var(--v0-spacing-md);
  transition: all var(--v0-transition-base);
}

.read-more:hover {
  color: var(--v0-primary-dark);
  transform: translateX(4px);
}

/* Dark Mode Support */
:root[color-mode="dark"] {
  --v0-bg-primary: #1f2937;
  --v0-bg-secondary: #111827;
  --v0-text-primary: #f9fafb;
  --v0-text-secondary: #d1d5db;
  --v0-border: #374151;
}

:root[color-mode="dark"] .service-card-modern,
:root[color-mode="dark"] .feature-card-modern,
:root[color-mode="dark"] .streamlit-feature-card,
:root[color-mode="dark"] .article-card-contained {
  background: var(--v0-bg-primary);
  border-color: var(--v0-border);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .services-preview-grid,
  .streamlit-features-grid,
  .articles-container,
  .discover-grid,
  .logos-grid,
  .adobe-grid {
    grid-template-columns: 1fr;
    gap: var(--v0-spacing-md);
  }
  
  .hero-buttons-enhanced {
    flex-direction: column;
  }
  
  .hero-button-modern {
    width: 100%;
    text-align: center;
  }
  
  .stats-grid,
  .stats-banner {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--v0-spacing-md);
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .promo-banner-stats {
    flex-direction: column;
    align-items: center;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form button {
    width: 100%;
  }
}

/* Print Styles */
@media print {
  .service-card-modern,
  .streamlit-feature-card,
  .article-card-contained {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid var(--v0-border);
  }
}

