/* Hero Section */

.hero {
  padding: 180px 0 120px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f9ff 0%, #f8fafc 50%, #f0f7ff 100%);
}

.hero__shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.2) 0%, rgba(105, 121, 248, 0.2) 100%);
  top: -100px;
  left: -100px;
  animation: float 10s infinite alternate ease-in-out;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.2) 0%, rgba(255, 154, 107, 0.2) 100%);
  top: 30%;
  right: -50px;
  animation: float 8s infinite alternate-reverse ease-in-out;
}

.shape-3 {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.15) 0%, rgba(105, 121, 248, 0.15) 100%);
  bottom: 10%;
  left: 10%;
  animation: float 12s infinite alternate ease-in-out;
}

.shape-4 {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.15) 0%, rgba(255, 154, 107, 0.15) 100%);
  bottom: 20%;
  right: 20%;
  animation: float 6s infinite alternate-reverse ease-in-out;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  100% {
    transform: translate(20px, 20px) rotate(10deg);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
}

.hero-content {
  position: relative;
}

/* Interactive Audience Switch */

.audience-switch {
  margin-bottom: 30px;
}

.switch-track {
  display: inline-flex;
  background: white;
  border-radius: 100px;
  padding: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.switch-option {
  padding: 12px 20px;
  border-radius: 100px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.switch-option i {
  font-size: 1rem;
}

.switch-option.active {
  color: white;
}

.switch-highlight {
  position: absolute;
  top: 6px;
  left: 6px;
  height: calc(100% - 12px);
  border-radius: 100px;
  background: linear-gradient(90deg, var(--primary) 0%, #6979f8 100%);
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    width 0.3s ease;
  z-index: 1;
  width: 148px;
}

.segment-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.segment-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-description {
  font-size: 1.1rem;
  max-width: 90%;
  margin-bottom: 30px;
  color: var(--text-light);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: white;
  border-radius: 100px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}

.animated-badge {
  position: relative;
  overflow: hidden;
}

.animated-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.animated-badge:hover::before {
  left: 100%;
}

.badge i {
  color: var(--primary);
}

.badge.blue i {
  color: var(--secondary);
}

.badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Pulse Button */

.pulse-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  background: linear-gradient(90deg, var(--primary) 0%, #6979f8 100%);
  color: white;
  box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.pulse-button::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(90deg, var(--primary) 0%, #6979f8 100%);
  border-radius: var(--radius);
  z-index: -1;
}

.pulse-button::before {
  content: '';
  position: absolute;
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  background: linear-gradient(90deg, var(--primary) 0%, #6979f8 100%);
  border-radius: var(--radius);
  z-index: -2;
  opacity: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.pulse-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(67, 97, 238, 0.4);
}

.outline-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.outline-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(67, 97, 238, 0.1) 0%, transparent 100%);
  transition: left 0.3s ease;
}

.outline-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(67, 97, 238, 0.1);
}

.outline-button:hover::before {
  left: 100%;
}

/* Mockup Device */

.hero-illustration {
  position: relative;
}

.mockup-device {
  position: relative;
  max-width: 100%;
  z-index: 2;
}

.device-frame {
  position: relative;
  background: white;
  border-radius: 32px;
  overflow: hidden;
  padding: 8px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.device-screen {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--bg-light);
}

.screen-content {
  width: 100%;
  height: auto;
  display: block;
  transform: translateZ(0);
  transition: transform 0.5s ease;
}

.device-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 30px;
  background: white;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.device-shadow {
  position: absolute;
  bottom: -20px;
  left: 5%;
  right: 5%;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  filter: blur(20px);
  z-index: 1;
}
