/* ========================================================================
   OriumAI Premium Landing Page - Animations & Enhanced Styles
   ========================================================================
   Architecture:
   1. CSS Custom Properties (Animation Tokens)
   2. Layout & Components
   3. Scroll Reveal Animations
   4. Keyframes & Motion
   ======================================================================== */

/* ========================================================================
   1. CSS Custom Properties - Animation Tokens
   ======================================================================== */
:root {
  --anim-duration-fast: 0.3s;
  --anim-duration-base: 0.6s;
  --anim-duration-slow: 0.9s;
  --anim-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --anim-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --journey-connector-color: #cbd5e1;
  --journey-connector-width: 3px;
  --marketing-brand: #3b82f6;
  --marketing-accent: #8b5cf6;
  --marketing-surface: #ffffff;
  --marketing-bg: #f8fafc;
  --marketing-text: #0f172a;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--marketing-text);
  background: var(--marketing-bg);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--marketing-text);
  letter-spacing: -0.02em;
}

/* ========================================================================
   2. How It Works - Journey Flow Layout
   ======================================================================== */
.journey-flow {
  position: relative;
  padding: 2rem 0;
}

.journey-step {
  opacity: 0;
  transform: translateY(40px);
  transition: all var(--anim-duration-slow) var(--anim-ease);
}

.journey-step.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.journey-step[data-step="1"] { transition-delay: calc(var(--anim-duration-fast) * 0); }
.journey-step[data-step="2"] { transition-delay: calc(var(--anim-duration-fast) * 1); }
.journey-step[data-step="3"] { transition-delay: calc(var(--anim-duration-fast) * 2); }
.journey-step[data-step="4"] { transition-delay: calc(var(--anim-duration-fast) * 3); }

.journey-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 320px;
}

.journey-icon-container {
  width: 180px;
  height: 180px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

.journey-animation-bg {
  position: absolute;
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  border-radius: 50%;
  animation: pulse-bg 4s ease-in-out infinite;
  z-index: 1;
}

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

.journey-content {
  padding: 2rem;
}

.step-number {
  display: inline-block;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: visible;
  min-width: fit-content;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

.step-number:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

@media (max-width: 576px) {
  .step-number {
    font-size: 0.85rem;
    padding: 6px 16px;
  }
}

.journey-title {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #0f172a;
  line-height: 1.2;
}

.journey-description {
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.journey-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.journey-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  color: #475569;
}

.journey-feature-item i {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 1.1rem;
}

/* Journey Connectors */
.journey-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem 0;
  gap: 1rem;
}

.connector-line {
  width: var(--journey-connector-width);
  height: 60px;
  background: linear-gradient(180deg, var(--journey-connector-color) 0%, transparent 100%);
  opacity: 0;
  animation: lineGrow 1s ease forwards;
  animation-delay: 0.5s;
}

@keyframes lineGrow {
  from {
    height: 0;
    opacity: 0;
  }
  to {
    height: 60px;
    opacity: 1;
  }
}

.connector-arrow {
  color: var(--journey-connector-color);
  font-size: 1.5rem;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* ========================================================================
   3. AI Features Showcase - Dark Section
   ======================================================================== */
.ai-features-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
                    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.ai-feature-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  height: 100%;
  transition: all var(--anim-duration-base) var(--anim-ease);
  opacity: 0;
  transform: translateY(40px);
}

.ai-feature-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ai-feature-card:nth-child(1) { transition-delay: calc(var(--anim-duration-fast) * 0); }
.ai-feature-card:nth-child(2) { transition-delay: calc(var(--anim-duration-fast) * 1); }
.ai-feature-card:nth-child(3) { transition-delay: calc(var(--anim-duration-fast) * 2); }
.ai-feature-card:nth-child(4) { transition-delay: calc(var(--anim-duration-fast) * 3); }
.ai-feature-card:nth-child(5) { transition-delay: calc(var(--anim-duration-fast) * 4); }
.ai-feature-card:nth-child(6) { transition-delay: calc(var(--anim-duration-fast) * 5); }

.ai-feature-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3);
}

.ai-feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.ai-feature-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.ai-feature-card:hover .ai-feature-icon::before {
  opacity: 1;
}

.ai-feature-card:hover .ai-feature-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 50px rgba(59, 130, 246, 0.5);
}

.ai-feature-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.ai-feature-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

.feature-highlight {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #fbbf24;
  font-weight: 600;
}

/* Comparison Table */
.comparison-table-container {
  overflow-x: auto;
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', sans-serif;
}

.comparison-table thead th {
  background: #f8fafc;
  padding: 1rem;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  border-bottom: 2px solid #e2e8f0;
  color: #0f172a;
}

.comparison-table thead th.orium-col {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.comparison-table tbody td {
  padding: 1.25rem 1rem;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
  color: #475569;
}

.comparison-table tbody td:first-child {
  text-align: left;
  font-weight: 600;
  color: #0f172a;
}

.comparison-table tbody td.orium-col {
  background: rgba(59, 130, 246, 0.05);
  font-weight: 600;
}

.comparison-table tbody tr:hover {
  background: #f8fafc;
}

/* ========================================================================
   4. Section Headings (BEM Structure)
   ======================================================================== */
.section-badge {
  display: inline-block;
  margin-bottom: 1rem;
}

.section-badge__text {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.section-badge__text--dark {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

.section-title {
  font-family: 'Inter', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.25rem;
  color: #64748b;
  max-width: 700px;
  margin: 0 auto;
}

.gradient-text {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% { 
    filter: hue-rotate(0deg); 
  }
  50% { 
    filter: hue-rotate(10deg); 
  }
}

/* ========================================================================
   4. Mobile Responsiveness
   ======================================================================== */
@media (max-width: 991px) {
  .section-title {
    font-size: 2.25rem;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
  }
  
  .journey-title {
    font-size: 1.75rem;
  }
  
  .journey-icon-container {
    width: 140px;
    height: 140px;
  }
  
  .journey-animation-bg {
    width: 220px;
    height: 220px;
  }
  
  .journey-connector {
    margin: 1rem 0;
  }
  
  .connector-line {
    height: 40px;
  }
  
  @keyframes lineGrow {
    to { height: 40px; }
  }
  
  .comparison-section h3 {
    font-size: 1.75rem !important;
  }
}

@media (max-width: 767px) {
  .section-title {
    font-size: 1.875rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .journey-visual {
    height: 240px;
    margin-bottom: 2rem;
  }
  
  .journey-icon-container {
    width: 120px;
    height: 120px;
  }
  
  .journey-icon-container i {
    font-size: 2rem !important;
  }
  
  .journey-animation-bg {
    width: 180px;
    height: 180px;
  }
  
  .journey-title {
    font-size: 1.5rem;
  }
  
  .journey-description {
    font-size: 1rem;
  }
  
  .journey-content {
    padding: 1rem 0;
  }
  
  .connector-line {
    height: 30px;
  }
  
  @keyframes lineGrow {
    to { height: 30px; }
  }
  
  .comparison-table-container {
    padding: 1rem;
    max-width: 100%;
  }
  
  .comparison-table-container table {
    display: block;
    min-width: 700px;
  }
  
  .comparison-table {
    font-size: 0.85rem;
  }
  
  .comparison-table thead th,
  .comparison-table tbody td {
    padding: 0.75rem 0.5rem;
    white-space: nowrap;
  }
  
  .comparison-section h3 {
    font-size: 1.5rem !important;
  }
  
  .ai-feature-card {
    padding: 2rem 1.5rem;
  }
  
  .ai-feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .ai-feature-card h4 {
    font-size: 1.25rem;
  }
}

/* ========================================================================
   5. Reduced Motion Support (Accessibility)
   ======================================================================== */
@media (prefers-reduced-motion: reduce) {
  .journey-step,
  .ai-feature-card {
    animation: none;
    transition: none;
    opacity: 1 !important;
    transform: none !important;
  }
  
  .journey-icon-container {
    animation: none;
  }
  
  .journey-animation-bg {
    animation: none;
  }
  
  .connector-arrow {
    animation: none;
  }
  
  .connector-line {
    animation: none;
    opacity: 1;
    height: 60px;
  }
}

/* ========================================================================
   6. Performance Optimizations
   ======================================================================== */
.journey-icon-container,
.journey-animation-bg,
.ai-feature-card {
  will-change: transform;
}

.journey-step.is-visible,
.ai-feature-card.is-visible {
  will-change: auto;
}
