/* ========================================================================
   OriumAI - Stripe-Level Advanced Animations & Design System
   Inspired by stripe.com, openai.com, cursor.com
   ======================================================================== */

/* ========================================================================
   1. CSS Custom Properties - Brand Colors from Brand Guide
   ======================================================================== */
:root {
  --orium-primary: #5D4CDA;
  --orium-secondary: #7867E8;
  --orium-accent: #5A1A66;
  --orium-light: #E9E7F3;
  --orium-dark: #222531;
  --orium-gradient: linear-gradient(135deg, #5D4CDA 0%, #7867E8 50%, #9D8CF5 100%);
  --orium-gradient-subtle: linear-gradient(135deg, rgba(93, 76, 218, 0.1) 0%, rgba(120, 103, 232, 0.1) 100%);
  
  --stripe-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --stripe-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --stripe-ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
  
  --anim-duration-xs: 0.15s;
  --anim-duration-sm: 0.3s;
  --anim-duration-md: 0.6s;
  --anim-duration-lg: 1s;
  --anim-duration-xl: 1.5s;
}

/* ========================================================================
   2. Stripe-Style Gradient Mesh Background
   ======================================================================== */
.stripe-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.stripe-hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(93, 76, 218, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(120, 103, 232, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 40% 80%, rgba(157, 140, 245, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 80% 40% at 100% 60%, rgba(93, 76, 218, 0.15) 0%, transparent 50%);
  animation: gradientMeshFloat 20s ease-in-out infinite;
}

.stripe-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.03) 50%, 
    rgba(255, 255, 255, 0.08) 100%
  );
  pointer-events: none;
}

@keyframes gradientMeshFloat {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(2%, -1%) rotate(0.5deg);
  }
  50% {
    transform: translate(-1%, 2%) rotate(-0.5deg);
  }
  75% {
    transform: translate(-2%, -1%) rotate(0.25deg);
  }
}

/* ========================================================================
   3. Stripe-Style Animated Gradient Lines/Trails
   ======================================================================== */
.gradient-trail {
  position: absolute;
  width: 1px;
  background: linear-gradient(180deg, 
    transparent 0%, 
    rgba(93, 76, 218, 0.8) 20%, 
    rgba(120, 103, 232, 0.6) 50%,
    rgba(157, 140, 245, 0.4) 80%,
    transparent 100%
  );
  animation: trailFlow 4s ease-in-out infinite;
  opacity: 0.6;
}

.gradient-trail-1 {
  left: 15%;
  height: 200px;
  animation-delay: 0s;
}

.gradient-trail-2 {
  left: 35%;
  height: 150px;
  animation-delay: 1s;
}

.gradient-trail-3 {
  right: 25%;
  height: 180px;
  animation-delay: 2s;
}

.gradient-trail-4 {
  right: 10%;
  height: 120px;
  animation-delay: 0.5s;
}

@keyframes trailFlow {
  0%, 100% {
    transform: translateY(-100%) scaleY(0.5);
    opacity: 0;
  }
  10% {
    opacity: 0.4;
  }
  50% {
    transform: translateY(100%) scaleY(1);
    opacity: 0.6;
  }
  90% {
    opacity: 0.4;
  }
}

/* Horizontal gradient line */
.gradient-line {
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(93, 76, 218, 0.5) 20%, 
    rgba(120, 103, 232, 0.8) 50%,
    rgba(93, 76, 218, 0.5) 80%,
    transparent 100%
  );
  animation: lineGlow 3s ease-in-out infinite;
}

@keyframes lineGlow {
  0%, 100% {
    opacity: 0.3;
    transform: scaleX(0.95);
  }
  50% {
    opacity: 0.8;
    transform: scaleX(1);
  }
}

/* ========================================================================
   4. Premium Hero Section - Clean & Focused
   ======================================================================== */
.premium-hero-stripe {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16132a 100%);
  overflow: hidden;
  padding: 6rem 0;
}

.hero-content-centered {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-badge-minimal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(93, 76, 218, 0.15);
  border: 1px solid rgba(93, 76, 218, 0.3);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.8s var(--stripe-ease-out) forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.hero-badge-minimal i {
  color: #9D8CF5;
}

.hero-title-stripe {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s var(--stripe-ease-out) forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

.hero-title-stripe .gradient-word {
  background: linear-gradient(135deg, #9D8CF5 0%, #7867E8 50%, #5D4CDA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-subtitle-stripe {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
  animation: fadeInUp 0.8s var(--stripe-ease-out) forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

/* Single Primary CTA - Stripe Style */
.hero-cta-single {
  animation: fadeInUp 0.8s var(--stripe-ease-out) forwards;
  animation-delay: 0.8s;
  opacity: 0;
}

.btn-stripe-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  background: var(--orium-gradient);
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--stripe-ease-out);
  box-shadow: 
    0 4px 20px rgba(93, 76, 218, 0.4),
    0 0 0 0 rgba(93, 76, 218, 0);
}

.btn-stripe-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-stripe-primary:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 10px 40px rgba(93, 76, 218, 0.5),
    0 0 0 4px rgba(93, 76, 218, 0.15);
  color: white;
}

.btn-stripe-primary:hover::before {
  opacity: 1;
}

.btn-stripe-primary .btn-arrow {
  transition: transform 0.3s var(--stripe-ease-out);
}

.btn-stripe-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.hero-secondary-action {
  margin-top: 1.5rem;
  animation: fadeInUp 0.8s var(--stripe-ease-out) forwards;
  animation-delay: 1s;
  opacity: 0;
}

.hero-link-stripe {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s;
}

.hero-link-stripe:hover {
  color: #9D8CF5;
}

/* Trust indicators - Minimal */
.trust-minimal {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 4rem;
  animation: fadeInUp 0.8s var(--stripe-ease-out) forwards;
  animation-delay: 1.2s;
  opacity: 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.trust-item i {
  color: #5D4CDA;
}

/* ========================================================================
   5. Scroll-Triggered Reveal Animations
   ======================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--stripe-ease-out);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s var(--stripe-ease-out);
}

.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s var(--stripe-ease-out);
}

.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s var(--stripe-ease-out);
}

.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered reveal delays */
.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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ========================================================================
   6. Floating Elements - Subtle Motion
   ======================================================================== */
.floating-element {
  animation: gentleFloat 6s ease-in-out infinite;
}

.floating-element-1 { animation-delay: 0s; }
.floating-element-2 { animation-delay: 1s; }
.floating-element-3 { animation-delay: 2s; }

@keyframes gentleFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(1deg);
  }
}

.floating-card-stripe {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: all 0.4s var(--stripe-ease-out);
}

.floating-card-stripe:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(93, 76, 218, 0.3);
}

/* ========================================================================
   7. Section Dividers with Gradient
   ======================================================================== */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(93, 76, 218, 0.3) 30%, 
    rgba(120, 103, 232, 0.5) 50%,
    rgba(93, 76, 218, 0.3) 70%,
    transparent 100%
  );
  margin: 0;
}

/* ========================================================================
   8. One CTA Per Section Layout
   ======================================================================== */
.section-single-cta {
  padding: 120px 0;
  position: relative;
}

.section-single-cta .section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-single-cta .section-cta {
  text-align: center;
  margin-top: 3rem;
}

.section-badge-stripe {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(93, 76, 218, 0.1);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: #5D4CDA;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}

.section-title-stripe {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.section-title-stripe .highlight {
  background: var(--orium-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle-stripe {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================================================
   9. Logo + Text Navigation
   ======================================================================== */
.nav-logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #5D4CDA 0%, #7867E8 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.nav-logo-icon::before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 12px solid white;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.nav-logo-text {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 22px;
  background: linear-gradient(135deg, #5D4CDA 0%, #7867E8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================================================
   10. Feature Cards - Stripe Style
   ======================================================================== */
.feature-card-stripe {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid #e2e8f0;
  transition: all 0.4s var(--stripe-ease-out);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.feature-card-stripe::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--orium-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--stripe-ease-out);
}

.feature-card-stripe:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
  border-color: rgba(93, 76, 218, 0.2);
}

.feature-card-stripe:hover::before {
  transform: scaleX(1);
}

.feature-icon-stripe {
  width: 56px;
  height: 56px;
  background: rgba(93, 76, 218, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s var(--stripe-ease-out);
}

.feature-icon-stripe i {
  font-size: 1.5rem;
  color: #5D4CDA;
}

.feature-card-stripe:hover .feature-icon-stripe {
  background: var(--orium-gradient);
}

.feature-card-stripe:hover .feature-icon-stripe i {
  color: white;
}

.feature-card-stripe h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.feature-card-stripe p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #64748b;
  margin: 0;
}

/* ========================================================================
   11. Stats Section - Minimal
   ======================================================================== */
.stats-strip {
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding: 2rem 0;
}

.stat-item-stripe {
  text-align: center;
}

.stat-number-stripe {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--orium-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label-stripe {
  font-size: 0.9rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========================================================================
   12. Dark Section - AI Features
   ======================================================================== */
.dark-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.dark-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse 50% 50% at 20% 30%, rgba(93, 76, 218, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 80% 70%, rgba(120, 103, 232, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.dark-section .section-title-stripe {
  color: white;
}

.dark-section .section-subtitle-stripe {
  color: rgba(255, 255, 255, 0.7);
}

/* ========================================================================
   13. Responsive Adjustments
   ======================================================================== */
@media (max-width: 991px) {
  .premium-hero-stripe {
    padding: 4rem 0;
    min-height: auto;
  }
  
  .stats-strip {
    flex-wrap: wrap;
    gap: 2rem;
  }
  
  .trust-minimal {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

@media (max-width: 767px) {
  .hero-title-stripe {
    font-size: 2.2rem;
  }
  
  .btn-stripe-primary {
    padding: 16px 32px;
    font-size: 1rem;
  }
  
  .section-single-cta {
    padding: 80px 0;
  }
  
  .stats-strip {
    gap: 1.5rem;
  }
  
  .stat-number-stripe {
    font-size: 2rem;
  }
}

/* ========================================================================
   14. Reduced Motion Support
   ======================================================================== */
@media (prefers-reduced-motion: reduce) {
  .stripe-hero-bg::before,
  .gradient-trail,
  .floating-element {
    animation: none;
  }
  
  .reveal-on-scroll,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    transition: none;
    opacity: 1;
    transform: none;
  }
  
  .hero-badge-minimal,
  .hero-title-stripe,
  .hero-subtitle-stripe,
  .hero-cta-single,
  .hero-secondary-action,
  .trust-minimal {
    animation: none;
    opacity: 1;
  }
}
