/* === HERO REDESIGN (100x BETTER) === */

:root {
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-shadow: 0 8px 32px rgba(99, 102, 241, 0.15);
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --hero-padding: 160px 0 100px;
}

.hero-v2 {
  position: relative;
  min-height: 100vh; /* Full viewport height */
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: var(--hero-padding);
  background-color: #f8fafc;
}

/* === ANIMATED BACKGROUND === */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.6;
  animation: orbFloat 20s infinite alternate ease-in-out;
}

.orb-1 {
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
  top: -20%;
  left: -10%;
}

.orb-2 {
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
  bottom: -10%;
  right: -10%;
  animation-delay: -5s;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

/* === LAYOUT === */
.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* === CONTENT LEFT === */
.hero-content-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: 4.5rem; /* Massive Headline */
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientText 8s ease infinite;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 90%;
}

/* Actions */
.hero-actions-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.cta-button.primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--primary);
  color: white;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
}

.cta-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 35px -10px rgba(99, 102, 241, 0.5);
  background: var(--secondary);
}

.app-store-buttons {
  display: flex;
  gap: 12px;
}

.store-button {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  color: var(--text-primary);
  font-size: 1.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.store-button:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Trust Bar */
.trust-bar {
  display: flex;
  align-items: center;
  gap: 16px;
}

.trust-avatars {
  display: flex;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid white;
  margin-left: -10px;
  background-size: cover;
  background-position: center;
}

.avatar:first-child {
  margin-left: 0;
}

.trust-text {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
}

.stars {
  color: #f59e0b;
  font-size: 0.8rem;
  margin-bottom: 2px;
}

.caption {
  color: var(--text-secondary);
  font-weight: 500;
}

/* === VISUAL RIGHT (GLASS CARDS) === */
.hero-visual-right {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

/* === ULTRA-LUMINESCENT GLASS EFFECT === */
/* This replaces the standard glassmorphism with a high-end optical glass look */

/* Base Glass Style */
.glass-card, .glass-pill {
  /* Ultra-thin optical glass base */
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  
  /* Double-layered border for "cut crystal" edge effect */
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 
    /* Inner rim highlight (top/left light source) */
    inset 0 1px 0 0 rgba(255, 255, 255, 0.7),
    /* Inner depth shadow */
    inset 0 0 20px rgba(255, 255, 255, 0.05),
    /* Soft glow around the object */
    0 20px 50px -10px rgba(0, 0, 0, 0.15),
    /* Subtle colored reflection */
    0 0 0 1px rgba(99, 102, 241, 0.1);
    
  position: relative;
  overflow: hidden;
}

/* Sheen/Glow Animation Layer */
.glass-card::before, .glass-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg, 
    transparent 0%, 
    transparent 40%, 
    rgba(255, 255, 255, 0.4) 45%, 
    rgba(255, 255, 255, 0.1) 50%, 
    transparent 55%, 
    transparent 100%
  );
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* Aurora Inner Glow (The AI Soul) */
.glass-card::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
  animation: innerGlowPulse 8s infinite alternate ease-in-out;
}

@keyframes innerGlowPulse {
  0% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.8); }
  100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.2); }
}

/* Spotlight Effect (controlled by JS) */
.main-card {
  width: 380px;
  padding: 28px;
  border-radius: 24px;
  position: relative;
  z-index: 10;
  transform-style: preserve-3d;
  --mouse-x: 50%;
  --mouse-y: 50%;
  /* Clearer glass with stronger edge highlights */
  background: 
    radial-gradient(
      800px circle at var(--mouse-x) var(--mouse-y), 
      rgba(255, 255, 255, 0.25), 
      transparent 40%
    ),
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.01));
  
  /* Enhance the bevel effect on the main card */
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.8),
    inset 1px 0 0 0 rgba(255, 255, 255, 0.5),
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Hover Interaction */
.main-card:hover::before {
  opacity: 1;
  animation: sheenPass 1.5s ease-out forwards;
}

@keyframes sheenPass {
  0% { background-position: 200% 0; transform: translateX(-100%); }
  100% { background-position: -200% 0; transform: translateX(100%); }
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.ai-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
  padding: 6px 12px;
  border-radius: 8px;
}

.time-badge {
  font-size: 0.85rem;
  color: #9ca3af;
  font-weight: 500;
}

.card-headline {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 12px;
}

.card-summary {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  margin-bottom: 20px;
}

.tags {
  display: flex;
  gap: 8px;
}

.tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: #f3f4f6;
  border-radius: 6px;
  color: var(--text-secondary);
  font-weight: 600;
}

.read-time {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Timeline Preview - Horizontal */
.timeline-preview {
  background: rgba(99, 102, 241, 0.03);
  border-radius: 12px;
  border: 1px dashed rgba(99, 102, 241, 0.2);
  padding: 12px 16px;
  margin-top: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timeline-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #9ca3af;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  width: 100%;
}

.timeline-content-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 2;
  padding-top: 4px; /* Space for dots */
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  flex: 1;
}

.timeline-dot {
  width: 8px;
  height: 8px;
  background: #cbd5e1;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 3px #fff; /* White ring to separate from line */
}

.timeline-dot.active {
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Horizontal connecting line */
.timeline-line-horizontal {
  position: absolute;
  top: 7px; /* (4px padding + 4px half-dot height - 1px half-line height) */
  left: 16.5%; /* Center of first dot */
  right: 16.5%; /* Center of last dot */
  height: 2px; 
  background: #cbd5e1;
  z-index: 1;
}

.timeline-info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  align-items: center;
}

.timeline-info small {
  font-size: 0.6rem;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 1px;
}

.timeline-info span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

/* Orbiting Pills */
.glass-pill {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  z-index: 5;
}

.pill-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
}

.bg-blue { background: #3b82f6; }
.bg-purple { background: #8b5cf6; }

.pill-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.pill-text .label {
  font-size: 0.7rem;
  color: #6b7280;
  text-transform: uppercase;
}

.pill-text .value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Positions for pills */
.pill-1 {
  top: 10%;
  left: -50px;
}

.pill-2 {
  bottom: 10%;
  right: -40px;
}

/* === ANIMATIONS === */
.floating-anim {
  animation: float 6s ease-in-out infinite;
}

.floating-anim-delayed {
  animation: float 7s ease-in-out infinite;
  animation-delay: 1s;
}

.floating-anim-delayed-2 {
  animation: float 8s ease-in-out infinite;
  animation-delay: 2s;
}

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

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
  100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -30px) scale(1.1); }
}

@keyframes gradientText {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-content-left {
    align-items: center;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-visual-right {
    height: 450px;
    /* Scale down visual slightly on tablets */
    transform: scale(0.9);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.75rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-actions-group {
    justify-content: center;
    flex-direction: column;
    width: 100%;
  }
  
  .cta-button.primary {
    width: 100%;
    justify-content: center;
  }
  
  .app-store-buttons {
    width: 100%;
    justify-content: center;
  }
  
  .store-button {
    width: 48%;
    height: 48px;
  }
  
  /* Mobile-optimized pill positions: move them closer to avoid being cut off */
  .pill-1 {
    left: -10px;
    top: 0%;
    transform: scale(0.8);
    z-index: 15; /* Bring on top of card for visibility */
  }
  
  .pill-2 {
    right: -10px;
    bottom: 0%;
    transform: scale(0.8);
    z-index: 15; /* Bring on top of card for visibility */
  }
  
  .main-card {
    width: 90%;
    max-width: 320px;
    margin: 0 auto;
  }
  
  .hero-visual-right {
    height: auto;
    min-height: 380px;
    display: flex;
    justify-content: center;
    padding: 20px;
    overflow: visible; /* Allow pills to float outside bounds slightly */
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.25rem;
  }
  
  .pill-1 {
    top: -10px;
    left: 50%;
    transform: translateX(-50%) scale(0.75);
    width: max-content;
  }
  
  .pill-2 {
    bottom: -20px;
    right: 50%;
    transform: translateX(50%) scale(0.75);
    width: max-content;
  }
}
