/* ==========================================================================
   ZAHIQ AI - Visual Hero Section
   Interactive Phone Demo with Minimal Text
   ========================================================================== */

/* ==========================================================================
   Hero Container - Split Layout
   ========================================================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--background);
  padding: var(--space-20) 0;
}

/* Gradient Mesh Background */
.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  opacity: 0.5;
  z-index: 0;
}

.hero-container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: grid;
  grid-template-columns: 40% 60%;
  gap: var(--space-16);
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Left Content - Minimal Text
   ========================================================================== */

.hero-text {
  max-width: 500px;
}

/* Announcement Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  position: relative;
  overflow: hidden;
}

.hero-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,112,243,0.1), transparent);
  animation: badge-shimmer 3s infinite;
}

@keyframes badge-shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.badge-new {
  padding: 2px 6px;
  background: var(--gradient-primary, var(--gradient-green));
  color: var(--text-on-primary, var(--white));
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

/* Hero Title */
.hero-title {
  font-size: var(--text-5xl);
  font-weight: var(--font-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-4);
}

.hero-title-gradient {
  background: var(--gradient-primary, var(--gradient-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  position: relative;
}

/* Animated Text */
.hero-title-animated {
  position: relative;
  min-height: 1.2em;
}

.hero-title-animated::after {
  content: '|';
  position: absolute;
  animation: blink 1s infinite;
  color: var(--primary);
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Subtitle */
.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  line-height: var(--leading-relaxed);
}

/* CTA Group */
.hero-cta-group {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.btn-hero-primary {
  background: var(--gradient-primary, var(--gradient-blue));
  color: var(--text-on-primary, var(--white));
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-all);
  position: relative;
  overflow: hidden;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary, var(--shadow-blue));
}

.btn-hero-secondary {
  background: var(--background);
  color: var(--text-primary);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition-all);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.btn-hero-secondary:hover {
  background: var(--surface);
  border-color: var(--text-primary);
}

.play-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gradient-primary, var(--gradient-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-primary, var(--white));
  font-size: 8px;
}

.duration {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Metrics */
.hero-metrics {
  display: flex;
  gap: var(--space-4);
}

.metric-pill {
  padding: var(--space-2) var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  transition: var(--transition-all);
}

.metric-pill:hover {
  background: var(--background);
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.metric-number {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  background: var(--gradient-primary, var(--gradient-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

/* ==========================================================================
   Right Visual - Interactive Phone Demo
   ========================================================================== */

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

/* 3D Phone Mockup */
.phone-mockup {
  width: 320px;
  height: 640px;
  background: var(--text-primary);
  border-radius: var(--space-10);
  padding: var(--space-2);
  box-shadow: var(--shadow-largest);
  position: relative;
  /* Removed 3D rotation - keep phone straight for better visibility */
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
  transition: transform 0.6s ease;
}

.phone-mockup:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--background);
  border-radius: var(--space-9);
  overflow: hidden;
  position: relative;
}

/* Phone Interface */
.phone-interface {
  padding: var(--space-4);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.phone-status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--gradient-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
}

.status-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* Waveform Animation */
.waveform-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) 0;
}

.waveform {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100px;
}

.wave-bar {
  width: 4px;
  background: var(--gradient-primary, var(--gradient-blue));
  border-radius: var(--radius-full);
  animation: wave 1.5s ease-in-out infinite;
}

.wave-bar:nth-child(1) { height: 20px; animation-delay: 0s; }
.wave-bar:nth-child(2) { height: 40px; animation-delay: 0.1s; }
.wave-bar:nth-child(3) { height: 60px; animation-delay: 0.2s; }
.wave-bar:nth-child(4) { height: 80px; animation-delay: 0.3s; }
.wave-bar:nth-child(5) { height: 100px; animation-delay: 0.4s; }
.wave-bar:nth-child(6) { height: 80px; animation-delay: 0.5s; }
.wave-bar:nth-child(7) { height: 60px; animation-delay: 0.6s; }
.wave-bar:nth-child(8) { height: 40px; animation-delay: 0.7s; }
.wave-bar:nth-child(9) { height: 20px; animation-delay: 0.8s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}

/* Live Transcript */
.transcript-container {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  opacity: 1 !important;
}

.transcript-message {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  opacity: 1 !important;
  /* Animation removed to ensure transcript is always visible */
}

@keyframes message-appear {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.transcript-speaker {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--text-muted);
  text-transform: uppercase;
  min-width: 60px;
}

.transcript-text {
  font-size: var(--text-sm);
  color: var(--text-primary);
  flex: 1;
}

/* Language Switcher */
.language-switcher {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
}

.language-flag {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-all);
}

.language-flag:hover,
.language-flag.active {
  border-color: var(--primary);
  transform: scale(1.1);
}

/* Floating UI Elements */
.floating-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.floating-bubble {
  position: absolute;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  box-shadow: var(--shadow-large);
  animation: float 6s ease-in-out infinite;
  pointer-events: auto;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(2deg); }
  66% { transform: translateY(5px) rotate(-2deg); }
}

.bubble-metric {
  top: 20%;
  left: -100px;
  animation-delay: 0s;
}

.bubble-language {
  bottom: 30%;
  right: -100px;
  animation-delay: 2s;
}

.bubble-sentiment {
  top: 50%;
  right: -120px;
  animation-delay: 4s;
}

/* Try Demo Button */
.try-demo-btn {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary, var(--gradient-blue));
  color: var(--text-on-primary, var(--white));
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-weight: var(--font-semibold);
  cursor: pointer;
  transition: var(--transition-all);
  border: none;
  box-shadow: var(--shadow-large);
}

.try-demo-btn:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: var(--shadow-primary, var(--shadow-blue));
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-text {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .hero-cta-group {
    justify-content: center;
  }
  
  .hero-metrics {
    justify-content: center;
  }
  
  .floating-bubble {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: var(--text-4xl);
  }
  
  .phone-mockup {
    width: 280px;
    height: 560px;
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
  }
  
  .hero-cta-group {
    flex-direction: column;
  }
  
  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: var(--text-3xl);
  }
  
  .hero-subtitle {
    font-size: var(--text-base);
  }
  
  .hero-metrics {
    flex-direction: column;
    width: 100%;
  }
  
  .metric-pill {
    width: 100%;
  }
  
  .phone-mockup {
    width: 240px;
    height: 480px;
  }
}