.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: var(--space-20);
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 8vw, var(--text-6xl));
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
  color: #000000;
}

.hero-title-visual-accent {
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero Title Line Animations */
.title-line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  margin-bottom: 0.5rem;
}

/* Ensure proper spacing between lines */
.hero-title .title-line:not(:last-child) {
  margin-bottom: 0.25rem;
}

.title-line.animate-fade-in {
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 0.2s;
}

.title-line.animate-slide-in {
  animation: slideInLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 0.6s;
}

.title-line.animate-highlight-in {
  animation: highlightIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 1s;
}

/* Gradient accent for middle phrase */
.title-line.gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 3s ease-in-out infinite;
}

/* Visual highlight effect for last phrase */
.title-line.highlight {
  position: relative;
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 50%, #4a5568 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-line.highlight::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: underlineExpand 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 1.5s;
}

/* Responsive typography */
.hero-title {
  font-size: clamp(2.5rem, 8vw, 4rem); /* 4xl mobile, 6xl desktop */
}

@media (min-width: 768px) {
  .hero-title {
    font-size: clamp(3rem, 6vw, 4.5rem); /* 5xl tablet */
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: clamp(3.5rem, 5vw, 5rem); /* 6xl desktop */
  }
}

/* Keyframe Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes highlightIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@keyframes underlineExpand {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

h1.hero-title,
h1.hero-title * {
  color: #000000;
  text-shadow: none;
  opacity: 1;
  visibility: visible;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: #2d2d2d;
  line-height: 1.7;
  margin-bottom: var(--space-8);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  justify-content: center;
}

.title-line {
  display: block;
  color: #000000;
}

.title-line.gradient {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-line.highlight {
  color: #000000;
  position: relative;
}

.title-line.highlight::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(
    90deg,
    var(--primary-200) 0%,
    var(--primary-300) 100%
  );
  z-index: -1;
  border-radius: var(--radius-sm);
  opacity: 0.8;
}

.hero-title .title-line:first-of-type {
  color: #000000;
  text-shadow: none;
  opacity: 1;
  visibility: visible;
  font-weight: 700;
  background: none;
  -webkit-text-fill-color: #000000;
}

.hero .hero-content .hero-title .title-line:first-child {
  color: #000000;
  text-shadow: none;
  opacity: 1;
  visibility: visible;
  font-weight: 700;
}

.hero .hero-title .title-line,
.hero .hero-content .hero-title .title-line {
  color: #000000;
  text-shadow: none;
  opacity: 1;
  visibility: visible;
  font-weight: 700;
}

.hero .hero-title .title-line.gradient,
.hero .hero-content .hero-title .title-line.gradient {
  color: #000000;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: #000000;
  background-clip: initial;
  text-shadow: none;
  opacity: 1;
  visibility: visible;
  font-weight: 700;
}

.hero .hero-title .title-line.highlight,
.hero .hero-content .hero-title .title-line.highlight {
  color: #000000;
  background: none;
  background-image: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: #000000;
  background-clip: initial;
  text-shadow: none;
  opacity: 1;
  visibility: visible;
  font-weight: 700;
  position: relative;
}

.hero .hero-title .title-line.highlight::after,
.hero .hero-content .hero-title .title-line.highlight::after {
  display: none;
}

.hero .hero-title,
.hero .hero-content .hero-title {
  color: #000000;
}

.hero .hero-content .hero-title .title-line:first-child {
  color: #000000;
  text-shadow: none;
  opacity: 1;
  visibility: visible;
  font-weight: 700;
  background: none;
  -webkit-text-fill-color: #000000;
}

/* Hero Title Animations */
.animate-fade-in {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.animate-slide-in {
  animation: slideInLeft 0.8s ease-out 0.3s forwards;
  opacity: 0;
  transform: translateX(-30px);
}

.animate-highlight-in {
  animation: highlightIn 1s ease-out 0.6s forwards;
  opacity: 0;
  transform: scale(0.95);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes highlightIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Enhanced gradient for "Stronger Growth" */
.title-line.gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 3s ease-in-out infinite;
}

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

/* Enhanced highlight effect for "A Transformed Business" */
.title-line.highlight {
  position: relative;
  color: #000000;
}

.title-line.highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: highlightGlow 2s ease-out 0.6s forwards;
}

.title-line.highlight::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  z-index: -1;
  border-radius: 4px;
  opacity: 0;
  animation: highlightUnderline 1s ease-out 1.2s forwards;
}

@keyframes highlightGlow {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes highlightUnderline {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
  to {
    opacity: 0.8;
    transform: scaleX(1);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }
}
